Skip to content

NullPointerException in JmsUtils.buildExceptionMessage [SPR-5785] #10455

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

Closed
spring-projects-issues opened this issue May 25, 2009 · 0 comments
Closed
Assignees
Labels
in: messaging Issues in messaging modules (jms, messaging) status: duplicate A duplicate of another issue

Comments

@spring-projects-issues
Copy link
Collaborator

spring-projects-issues commented May 25, 2009

joachim harabasz opened SPR-5785 and commented

I triggered this by fetching an invalid JMS message from a JMS Queue, that causes a NullPointerException exeption.

The spring framework catches this exeption and tries to handle it. But while it tries to generate the error output it triggers another NPE.

I think what happens is, that it does "message.indexOf(linkedEx.getMessage())" but "linkedEx.getMessage()" is null.

Exception in thread "OrderStateListener-2" java.lang.NullPointerException
at java.lang.String.indexOf(String.java:1734)
at java.lang.String.indexOf(String.java:1716)
at org.springframework.jms.support.JmsUtils.buildExceptionMessage(JmsUtils.java:255)
at org.springframework.jms.listener.DefaultMessageListenerContainer.handleListenerSetupFailure(DefaultMessageListenerContainer.java:745)
at org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.run(DefaultMessageListenerContainer.java:897)
at java.lang.Thread.run(Thread.java:619)


Affects: 2.5.6

Issue Links:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: messaging Issues in messaging modules (jms, messaging) status: duplicate A duplicate of another issue
Projects
None yet
Development

No branches or pull requests

2 participants