Spring JIRA | joachim harabasz | 8 years ago
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    db:: 3.14::How to shutdown JMS client threads safely? 91 | 1 year ago
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    Apachem Camel with Oracle AQ

    Oracle Community | 8 years ago | 694177
  4. 0

    I saw a NullPointerException in the logs of my tomcat (started using maven cargo): {noformat} [INFO] [talledLocalContainer] java.lang.NullPointerException [INFO] [talledLocalContainer] at java.lang.String.indexOf( [INFO] [talledLocalContainer] at java.lang.String.indexOf( [INFO] [talledLocalContainer] at org.springframework.jms.JmsException.getMessage( [INFO] [talledLocalContainer] at java.lang.Throwable.getLocalizedMessage( [INFO] [talledLocalContainer] at java.lang.Throwable.toString( [INFO] [talledLocalContainer] at java.lang.String.valueOf( [INFO] [talledLocalContainer] at [INFO] [talledLocalContainer] at java.lang.Throwable.printStackTrace( [INFO] [talledLocalContainer] at org.apache.log4j.spi.ThrowableInformation.getThrowableStrRep( [INFO] [talledLocalContainer] at org.apache.log4j.spi.LoggingEvent.getThrowableStrRep( [INFO] [talledLocalContainer] at org.apache.log4j.WriterAppender.subAppend( [INFO] [talledLocalContainer] at org.apache.log4j.WriterAppender.append( [INFO] [talledLocalContainer] at org.apache.log4j.AppenderSkeleton.doAppend( [INFO] [talledLocalContainer] at org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders( [INFO] [talledLocalContainer] at org.apache.log4j.Category.callAppenders( [INFO] [talledLocalContainer] at org.apache.log4j.Category.forcedLog( [INFO] [talledLocalContainer] at org.apache.log4j.Category.error( {noformat} The problem can be seen by looking at the code of {code} public String getMessage() { String message = super.getMessage(); Throwable cause = getCause(); if (cause instanceof JMSException) { Exception linkedEx = ((JMSException) cause).getLinkedException(); if (linkedEx != null && cause.getMessage().indexOf(linkedEx.getMessage()) == -1) { message = message + "; nested exception is " + linkedEx; } } return message; } {code} The line that does the {{indexOf()}} can give a NPE if {{linkedEx.getMessage()}} returns {{null}}

    Spring JIRA | 8 years ago | Wim Deblauwe

    1 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at java.lang.String.indexOf()
    2. Java RT
      1. java.lang.String.indexOf(
      2. java.lang.String.indexOf(
      2 frames
    3. Spring Framework
      2. org.springframework.jms.listener.DefaultMessageListenerContainer.handleListenerSetupFailure(
      3. org.springframework.jms.listener.DefaultMessageListenerContainer$
      3 frames
    4. Java RT
      1 frame