java.lang.NullPointerException

MuleSoft JIRA | Alberto Aresca | 5 years ago
tip
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

    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}

    MuleSoft JIRA | 5 years ago | Alberto Aresca
    java.lang.NullPointerException
  2. 0

    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}

    MuleSoft JIRA | 5 years ago | Alberto Aresca
    java.lang.NullPointerException

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at org.mule.routing.ExpressionSplitter.splitMessage()
    2. Mule Core
      AbstractMessageSequenceSplitter.process
      1. org.mule.routing.ExpressionSplitter.splitMessage(ExpressionSplitter.java:97)
      2. org.mule.routing.AbstractSplitter.splitMessageIntoSequence(AbstractSplitter.java:37)
      3. org.mule.routing.outbound.AbstractMessageSequenceSplitter.process(AbstractMessageSequenceSplitter.java:60)
      3 frames