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.

  • 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.
    via by Micha&#322; Kalinowski,
  • 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.
    via by Micha&#322; Kalinowski,
    • 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)
    No Bugmate found.