Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RuntimeCodebase cannot be located on collocated call #18503

Closed
joe-chacko opened this issue Sep 10, 2021 · 2 comments · Fixed by #18490
Closed

RuntimeCodebase cannot be located on collocated call #18503

joe-chacko opened this issue Sep 10, 2021 · 2 comments · Fixed by #18490
Assignees
Labels
bug This bug is not present in a released version of Open Liberty release bug This bug is present in a released version of Open Liberty release:210010

Comments

@joe-chacko
Copy link
Member

joe-chacko commented Sep 10, 2021

Describe the bug
When invoking a Remote EJB in the same server, the call be routed internally (collocated) instead of going via the network.

If the calling app and the called app have different versions of the same class, some negotiation is required between them. This negotiation happens using the RuntimeCodebase object.

The bug here is that the RuntimeCodebase is not available for collocated calls.

Steps to Reproduce
Run the org.apache.yoko.FullValueDescriptorTest$Collocated test case from Yoko against an earlier version of Yoko.

Expected behavior
The versioned object should be transmitted successfully between the collocated client and server code.

Diagnostic information:

  • OpenLiberty Version: [20.0.0.12]
  • Affected feature(s) [ejbRemote-3.2, enterpriseBeansRemote-4.0]
  • Java Version: [Eclipse OpenJ9 VM AdoptOpenJDK-11.0.11+9 (build openj9-0.26.0, JRE 11 Mac OS X amd64-64-Bit Compressed References 20210421_957 (JIT enabled, AOT enabled)]
  • server.xml configuration (WITHOUT sensitive information like passwords) [none]
  • If it would be useful, upload the messages.log file found in $WLP_OUTPUT_DIR/messages.log

Additional context

@joe-chacko joe-chacko added bug This bug is not present in a released version of Open Liberty release bug This bug is present in a released version of Open Liberty labels Sep 10, 2021
@joe-chacko joe-chacko reopened this Sep 23, 2021
@joe-chacko joe-chacko assigned joe-chacko and ngmr and unassigned joe-chacko Sep 23, 2021
@ngmr
Copy link
Member

ngmr commented Sep 24, 2021

Some tests hit a security exception when this fix went in.
This was the result of an unprivileged call to a secure method which now occurs on a different codepath in those tests.

I'll create a new issue for addressing the unprivileged call issue because:

  1. It is not directly related to this issue, merely uncovered by its change in internal testing (of another Liberty component)
  2. This issue has already been marked as released in 21.0.0.10, and I don't want to risk throwing that system into confusion

@ngmr ngmr closed this as completed Sep 24, 2021
@mbroz2
Copy link
Member

mbroz2 commented Sep 29, 2021

@joe-chacko please update the description of this release bug so that it follows/conforms to the Bug report template

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This bug is not present in a released version of Open Liberty release bug This bug is present in a released version of Open Liberty release:210010
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants