java.lang.NullPointerException

MuleSoft JIRA | Tony DeFusco | 2 years ago
  1. 0

    The v3.6.1 WebService Consumer is receiving a response of type _org.mule.module.ws.consumer.NamespaceRestorerXMLStreamReader_. When converted to a _java.lang.String_, it resembles the following XML: {code:xml} <?xml version="1.0" encoding="utf-8"?> <IsValidEmailResponse xmlns="http://www.webservicex.net"> <IsValidEmailResult>false</IsValidEmailResult> </IsValidEmailResponse> {code} The following xpath3 function call is issued against the payload: {code}xpath3('wx:IsValidEmailResponse/ws:IsValidEmailResult', payload, 'STRING'){code} The following error message is displayed: {quote}org.mule.exception.DefaultMessagingExceptionStrategy: ******************************************************************************** Message : Execution of the expression "xpath3('wx:IsValidEmailResponse/ws:IsValidEmailResult', payload, 'STRING')" failed. (org.mule.api.expression.ExpressionRuntimeException). Message payload is of type: DepthXMLStreamReader Code : MULE_ERROR--2 -------------------------------------------------------------------------------- Exception stack is: 1. null (java.lang.NullPointerException) java.net.URL:522 (null) 2. null (java.net.MalformedURLException) java.net.URL:617 (null) 3. java.net.MalformedURLException (org.mule.api.MuleRuntimeException) org.mule.module.xml.el.XPath3Function:151 (http://www.mulesoft.org/docs/site/current3/apidocs/org/mule/api/MuleRuntimeException.html) 4. [Error: java.net.MalformedURLException] [Near : {... xpath3('wx:IsValidEmailRespons ....}] ^ [Line: 1, Column: 1] (org.mule.mvel2.CompileException) org.mule.mvel2.optimizers.impl.refl.ReflectiveAccessorOptimizer:438 (http://www.mulesoft.org/docs/site/current3/apidocs/org/mule/mvel2/CompileException.html) 5. Execution of the expression "xpath3('wx:IsValidEmailResponse/ws:IsValidEmailResult', payload, 'STRING')" failed. (org.mule.api.expression.ExpressionRuntimeException) org.mule.el.mvel.MVELExpressionLanguage:202 (http://www.mulesoft.org/docs/site/current3/apidocs/org/mule/api/expression/ExpressionRuntimeException.html) 6. Execution of the expression "xpath3('wx:IsValidEmailResponse/ws:IsValidEmailResult', payload, 'STRING')" failed. (org.mule.api.expression.ExpressionRuntimeException). Message payload is of type: DepthXMLStreamReader (org.mule.api.transformer.TransformerMessagingException) org.mule.transformer.AbstractTransformer:135 (http://www.mulesoft.org/docs/site/current3/apidocs/org/mule/api/transformer/TransformerMessagingException.html) -------------------------------------------------------------------------------- Root Exception stack trace: java.lang.NullPointerException at java.net.URL.<init>(URL.java:522) at java.net.URL.<init>(URL.java:480) at java.net.URL.<init>(URL.java:429) + 3 more (set debug level logging or '-Dmule.verbose.exceptions=true' for everything) *******************************************************************************{quote}

    MuleSoft JIRA | 2 years ago | Tony DeFusco
    java.lang.NullPointerException
  2. 0

    The v3.6.1 WebService Consumer is receiving a response of type _org.mule.module.ws.consumer.NamespaceRestorerXMLStreamReader_. When converted to a _java.lang.String_, it resembles the following XML: {code:xml} <?xml version="1.0" encoding="utf-8"?> <IsValidEmailResponse xmlns="http://www.webservicex.net"> <IsValidEmailResult>false</IsValidEmailResult> </IsValidEmailResponse> {code} The following xpath3 function call is issued against the payload: {code}xpath3('wx:IsValidEmailResponse/ws:IsValidEmailResult', payload, 'STRING'){code} The following error message is displayed: {quote}org.mule.exception.DefaultMessagingExceptionStrategy: ******************************************************************************** Message : Execution of the expression "xpath3('wx:IsValidEmailResponse/ws:IsValidEmailResult', payload, 'STRING')" failed. (org.mule.api.expression.ExpressionRuntimeException). Message payload is of type: DepthXMLStreamReader Code : MULE_ERROR--2 -------------------------------------------------------------------------------- Exception stack is: 1. null (java.lang.NullPointerException) java.net.URL:522 (null) 2. null (java.net.MalformedURLException) java.net.URL:617 (null) 3. java.net.MalformedURLException (org.mule.api.MuleRuntimeException) org.mule.module.xml.el.XPath3Function:151 (http://www.mulesoft.org/docs/site/current3/apidocs/org/mule/api/MuleRuntimeException.html) 4. [Error: java.net.MalformedURLException] [Near : {... xpath3('wx:IsValidEmailRespons ....}] ^ [Line: 1, Column: 1] (org.mule.mvel2.CompileException) org.mule.mvel2.optimizers.impl.refl.ReflectiveAccessorOptimizer:438 (http://www.mulesoft.org/docs/site/current3/apidocs/org/mule/mvel2/CompileException.html) 5. Execution of the expression "xpath3('wx:IsValidEmailResponse/ws:IsValidEmailResult', payload, 'STRING')" failed. (org.mule.api.expression.ExpressionRuntimeException) org.mule.el.mvel.MVELExpressionLanguage:202 (http://www.mulesoft.org/docs/site/current3/apidocs/org/mule/api/expression/ExpressionRuntimeException.html) 6. Execution of the expression "xpath3('wx:IsValidEmailResponse/ws:IsValidEmailResult', payload, 'STRING')" failed. (org.mule.api.expression.ExpressionRuntimeException). Message payload is of type: DepthXMLStreamReader (org.mule.api.transformer.TransformerMessagingException) org.mule.transformer.AbstractTransformer:135 (http://www.mulesoft.org/docs/site/current3/apidocs/org/mule/api/transformer/TransformerMessagingException.html) -------------------------------------------------------------------------------- Root Exception stack trace: java.lang.NullPointerException at java.net.URL.<init>(URL.java:522) at java.net.URL.<init>(URL.java:480) at java.net.URL.<init>(URL.java:429) + 3 more (set debug level logging or '-Dmule.verbose.exceptions=true' for everything) *******************************************************************************{quote}

    MuleSoft JIRA | 2 years ago | Tony DeFusco
    java.lang.NullPointerException
  3. 0

    Serialization fails if the type of a value is more generic than the declared type of a field

    GitHub | 2 years ago | ahgittin
    com.fasterxml.jackson.databind.JsonMappingException: (was java.lang.NullPointerException) (through reference chain: javax.mail.internet.MimeMessage["session"]->javax.mail.Session["transport"]->com.sun.mail.smtp.SMTPTransport["urlname"]->javax.mail.URLName["url"])
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    MalformedURLException when node list is empty

    GitHub | 2 years ago | chris-martin
    java.lang.NullPointerException

    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.net.URL.<init>()
    2. Java RT
      URL.<init>
      1. java.net.URL.<init>(URL.java:522)
      2. java.net.URL.<init>(URL.java:480)
      3. java.net.URL.<init>(URL.java:429)
      3 frames