java.lang.NullPointerException

MuleSoft JIRA | Michał Kalinowski | 6 years ago
  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
  3. 0

    Android: Saving Map State in Google map

    Stack Overflow | 11 months ago | Junie Negentien
    java.lang.RuntimeException: Unable to resume activity {com.ourThesis.junieNegentien2015/com.ourThesis.junieNegentien2015.MainActivity}: java.lang.NullPointerException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    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 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