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

NullPointerException in MethodAttribUtils.getXMLCMCLockAccessTimeout #7434

Closed
tkburroughs opened this issue May 6, 2019 · 0 comments · Fixed by #7435
Closed

NullPointerException in MethodAttribUtils.getXMLCMCLockAccessTimeout #7434

tkburroughs opened this issue May 6, 2019 · 0 comments · Fixed by #7435
Assignees
Labels
in:EJB Container release bug This bug is present in a released version of Open Liberty release:19005 team:Blizzard

Comments

@tkburroughs
Copy link
Member

In an EJB 2.x stateful session bean specifies an access timeout in ejb-jar.xml (), then a NullPointerException will occur in MethodAttribUtils.getXMLCMCLockAccessTimeout() when starting the application.

@tkburroughs tkburroughs added in:EJB Container team:Blizzard release bug This bug is present in a released version of Open Liberty labels May 6, 2019
@tkburroughs tkburroughs self-assigned this May 6, 2019
tkburroughs added a commit to tkburroughs/open-liberty that referenced this issue May 6, 2019
EJB 2.x stateful beans (with a home) have an extra method added to the
list of method attributes to handle the remove method on the home. metadata
for the method is set, but not the method reflect object, which is
used by MethodAttribUtils; so an NPE occurs processing <access-timeout>
for such a scenario.

A null check has been added to skip further checking; access-timeout would
never apply to the home method.
tkburroughs added a commit that referenced this issue May 8, 2019
…ssTimeout

Issue #7434-Fix NPE with Stateful access-timeout
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in:EJB Container release bug This bug is present in a released version of Open Liberty release:19005 team:Blizzard
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants