-
Notifications
You must be signed in to change notification settings - Fork 30
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
NPE BeanManager #340
Comments
I am working on a PR ... |
dmatej
added a commit
to dmatej/soteria
that referenced
this issue
Nov 8, 2022
…tion - Both usages in Soteria require an object, null results in exceptions - BeanManager can have two possible JNDI names, we don't care which, we need an instance. - The lookup now allows to provide a list contexts which are processed in order. - IllegalStateException was replaced by NamingException. It's message simply reports used unsuccessful names. - BeanManager is used in functions etc, so the exception may be wrapped by IllegalStateException again. Null cannot be provided (old impl then resulted in NullpointerException). - DataSource can still result in the same exception if it is not available, but new impl simplified the code. Signed-off-by: David Matějček <david.matejcek@omnifish.ee>
arjantijms
added a commit
that referenced
this issue
Nov 8, 2022
Fix for #340 - JNDI lookup returns object or throws exception
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The Lookup can end with returning null or throwing an NamingException. The rest of the code should expect that, but doesn't, so I am seeing this in GlassFish's server.log while running the TCK. Despite that all tests passed.
The text was updated successfully, but these errors were encountered: