java.lang.NullPointerException

MuleSoft JIRA | Michał Kalinowski | 6 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

    I have a flow: {code} <flow name="aero2BtsServiceInbound"> <http:inbound-endpoint host="${host}" port="${port}" path="${path}" keep-alive="true" method="POST" /> <message-properties-transformer scope="session"> <add-message-property key="param1" value="value1"/> </message-properties-transformer> <vm:outbound-endpoint path="secondFlow" responseTransformer-refs="toString" transformer-refs="httpRequestToMapTransformer debug" exchange-pattern="request-response" /> </flow> {code} Every first invocation after start or restart mule, i have exception: {code} ******************************************************************************** Message : Failed to unmarshal Type : org.mule.api.registry.ResolverException Code : MULE_ERROR--2 JavaDoc : http://www.mulesoft.org/docs/site/current3/apidocs/org/mule/api/registry/ResolverException.html ******************************************************************************** Exception stack is: 1. null (java.lang.NullPointerException) org.mule.module.xml.transformer.jaxb.JAXBTransformerResolver:166 (null) 2. Failed to unmarshal (org.mule.api.registry.ResolverException) org.mule.module.xml.transformer.jaxb.JAXBTransformerResolver:141 (http://www.mulesoft.org/docs/site/current3/apidocs/org/mule/api/registry/ResolverException.html) ******************************************************************************** Root Exception stack trace: java.lang.NullPointerException at org.mule.module.xml.transformer.jaxb.JAXBTransformerResolver.hasJaxbAnnotations(JAXBTransformerResolver.java:166) at org.mule.module.xml.transformer.jaxb.JAXBTransformerResolver.resolve(JAXBTransformerResolver.java:103) at org.mule.registry.MuleRegistryHelper.resolveTransformer(MuleRegistryHelper.java:266) at org.mule.registry.MuleRegistryHelper.lookupTransformer(MuleRegistryHelper.java:236) at org.mule.DefaultMuleMessage.getPayload(DefaultMuleMessage.java:352) at org.mule.DefaultMuleMessage.getPayload(DefaultMuleMessage.java:311) at org.mule.DefaultMuleMessage.getPayloadAsBytes(DefaultMuleMessage.java:584) at org.mule.transport.http.transformers.HttpRequestBodyToParamMap.transformMessage(HttpRequestBodyToParamMap.java:67) at org.mule.transformer.AbstractMessageTransformer.transform(AbstractMessageTransformer.java:160) at org.mule.transformer.AbstractMessageTransformer.transform(AbstractMessageTransformer.java:100) at org.mule.DefaultMuleMessage.applyAllTransformers(DefaultMuleMessage.java:1305) at org.mule.DefaultMuleMessage.applyTransformers(DefaultMuleMessage.java:1265) at org.mule.DefaultMuleMessage.applyTransformers(DefaultMuleMessage.java:1258) {code} Nexts invocations are ok.

    MuleSoft JIRA | 6 years ago | Micha&#322; Kalinowski
    java.lang.NullPointerException
  2. 0

    I have a flow: {code} <flow name="aero2BtsServiceInbound"> <http:inbound-endpoint host="${host}" port="${port}" path="${path}" keep-alive="true" method="POST" /> <message-properties-transformer scope="session"> <add-message-property key="param1" value="value1"/> </message-properties-transformer> <vm:outbound-endpoint path="secondFlow" responseTransformer-refs="toString" transformer-refs="httpRequestToMapTransformer debug" exchange-pattern="request-response" /> </flow> {code} Every first invocation after start or restart mule, i have exception: {code} ******************************************************************************** Message : Failed to unmarshal Type : org.mule.api.registry.ResolverException Code : MULE_ERROR--2 JavaDoc : http://www.mulesoft.org/docs/site/current3/apidocs/org/mule/api/registry/ResolverException.html ******************************************************************************** Exception stack is: 1. null (java.lang.NullPointerException) org.mule.module.xml.transformer.jaxb.JAXBTransformerResolver:166 (null) 2. Failed to unmarshal (org.mule.api.registry.ResolverException) org.mule.module.xml.transformer.jaxb.JAXBTransformerResolver:141 (http://www.mulesoft.org/docs/site/current3/apidocs/org/mule/api/registry/ResolverException.html) ******************************************************************************** Root Exception stack trace: java.lang.NullPointerException at org.mule.module.xml.transformer.jaxb.JAXBTransformerResolver.hasJaxbAnnotations(JAXBTransformerResolver.java:166) at org.mule.module.xml.transformer.jaxb.JAXBTransformerResolver.resolve(JAXBTransformerResolver.java:103) at org.mule.registry.MuleRegistryHelper.resolveTransformer(MuleRegistryHelper.java:266) at org.mule.registry.MuleRegistryHelper.lookupTransformer(MuleRegistryHelper.java:236) at org.mule.DefaultMuleMessage.getPayload(DefaultMuleMessage.java:352) at org.mule.DefaultMuleMessage.getPayload(DefaultMuleMessage.java:311) at org.mule.DefaultMuleMessage.getPayloadAsBytes(DefaultMuleMessage.java:584) at org.mule.transport.http.transformers.HttpRequestBodyToParamMap.transformMessage(HttpRequestBodyToParamMap.java:67) at org.mule.transformer.AbstractMessageTransformer.transform(AbstractMessageTransformer.java:160) at org.mule.transformer.AbstractMessageTransformer.transform(AbstractMessageTransformer.java:100) at org.mule.DefaultMuleMessage.applyAllTransformers(DefaultMuleMessage.java:1305) at org.mule.DefaultMuleMessage.applyTransformers(DefaultMuleMessage.java:1265) at org.mule.DefaultMuleMessage.applyTransformers(DefaultMuleMessage.java:1258) {code} Nexts invocations are ok.

    MuleSoft JIRA | 6 years ago | Micha&#322; Kalinowski
    java.lang.NullPointerException

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at org.mule.module.xml.transformer.jaxb.JAXBTransformerResolver.hasJaxbAnnotations()
    2. XML Extensions
      JAXBTransformerResolver.resolve
      1. org.mule.module.xml.transformer.jaxb.JAXBTransformerResolver.hasJaxbAnnotations(JAXBTransformerResolver.java:166)
      2. org.mule.module.xml.transformer.jaxb.JAXBTransformerResolver.resolve(JAXBTransformerResolver.java:103)
      2 frames
    3. Mule Core
      DefaultMuleMessage.getPayloadAsBytes
      1. org.mule.registry.MuleRegistryHelper.resolveTransformer(MuleRegistryHelper.java:266)
      2. org.mule.registry.MuleRegistryHelper.lookupTransformer(MuleRegistryHelper.java:236)
      3. org.mule.DefaultMuleMessage.getPayload(DefaultMuleMessage.java:352)
      4. org.mule.DefaultMuleMessage.getPayload(DefaultMuleMessage.java:311)
      5. org.mule.DefaultMuleMessage.getPayloadAsBytes(DefaultMuleMessage.java:584)
      5 frames
    4. HTTP Transport
      HttpRequestBodyToParamMap.transformMessage
      1. org.mule.transport.http.transformers.HttpRequestBodyToParamMap.transformMessage(HttpRequestBodyToParamMap.java:67)
      1 frame
    5. Mule Core
      DefaultMuleMessage.applyTransformers
      1. org.mule.transformer.AbstractMessageTransformer.transform(AbstractMessageTransformer.java:160)
      2. org.mule.transformer.AbstractMessageTransformer.transform(AbstractMessageTransformer.java:100)
      3. org.mule.DefaultMuleMessage.applyAllTransformers(DefaultMuleMessage.java:1305)
      4. org.mule.DefaultMuleMessage.applyTransformers(DefaultMuleMessage.java:1265)
      5. org.mule.DefaultMuleMessage.applyTransformers(DefaultMuleMessage.java:1258)
      5 frames