java.lang.NullPointerException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • If you send a org.w3c.dom.Document to the mp foreach and you try to split it using an xpath expression you will obtain the following exception {code} 8328[Thread-2]ERROR (DispatchingLogger.java:341) - ******************************************************************************** Message               : null (java.lang.NullPointerException). Message payload is of type: DocumentImpl Code                  : MULE_ERROR-29999 -------------------------------------------------------------------------------- Exception stack is: 1. null (java.lang.NullPointerException)  org.mule.routing.ExpressionSplitter:97 (null) 2. null (java.lang.NullPointerException). Message payload is of type: DocumentImpl (org.mule.api.MessagingException)  org.mule.execution.ExceptionToMessagingExceptionExecutionInterceptor:35 (http://www.mulesoft.org/docs/site/current3/apidocs/org/mule/api/MessagingException.html) -------------------------------------------------------------------------------- Root Exception stack trace: java.lang.NullPointerException    at org.mule.routing.ExpressionSplitter.splitMessage(ExpressionSplitter.java:97)    at org.mule.routing.AbstractSplitter.splitMessageIntoSequence(AbstractSplitter.java:37)    at org.mule.routing.outbound.AbstractMessageSequenceSplitter.process(AbstractMessageSequenceSplitter.java:60)    + 3 more (set debug level logging or '-Dmule.verbose.exceptions=true' for everything) ******************************************************************************** {code}
    via by Alberto Aresca,
  • If you send a org.w3c.dom.Document to the mp foreach and you try to split it using an xpath expression you will obtain the following exception {code} 8328[Thread-2]ERROR (DispatchingLogger.java:341) - ******************************************************************************** Message               : null (java.lang.NullPointerException). Message payload is of type: DocumentImpl Code                  : MULE_ERROR-29999 -------------------------------------------------------------------------------- Exception stack is: 1. null (java.lang.NullPointerException)  org.mule.routing.ExpressionSplitter:97 (null) 2. null (java.lang.NullPointerException). Message payload is of type: DocumentImpl (org.mule.api.MessagingException)  org.mule.execution.ExceptionToMessagingExceptionExecutionInterceptor:35 (http://www.mulesoft.org/docs/site/current3/apidocs/org/mule/api/MessagingException.html) -------------------------------------------------------------------------------- Root Exception stack trace: java.lang.NullPointerException    at org.mule.routing.ExpressionSplitter.splitMessage(ExpressionSplitter.java:97)    at org.mule.routing.AbstractSplitter.splitMessageIntoSequence(AbstractSplitter.java:37)    at org.mule.routing.outbound.AbstractMessageSequenceSplitter.process(AbstractMessageSequenceSplitter.java:60)    + 3 more (set debug level logging or '-Dmule.verbose.exceptions=true' for everything) ******************************************************************************** {code}
    via by Alberto Aresca,
    • java.lang.NullPointerException at org.mule.routing.ExpressionSplitter.splitMessage(ExpressionSplitter.java:97) at org.mule.routing.AbstractSplitter.splitMessageIntoSequence(AbstractSplitter.java:37) at org.mule.routing.outbound.AbstractMessageSequenceSplitter.process(AbstractMessageSequenceSplitter.java:60)
    No Bugmate found.