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 am trying access the Rest service. java class and method looks good. but when it passes the response to the rest I am getting the following error. My mule conf is as below <spring:beans> <spring:bean name="myJaxb" class="javax.xml.bind.JAXBContext" factory-method="newInstance"> <!-- colon-separated list of package names where JAXB classes exist --> <spring:constructor-arg value="package_name"/> </spring:bean> </spring:beans> <flow name="ServiceFlow" doc:name="ServiceFlow"> <http:inbound-endpoint exchange-pattern="request-response" doc:name="HTTP" host="localhost" port="8082" contentType="text/xml"/> <jersey:resources doc:name="REST"> <component class="class_name"/> <component class="ExecuteService"/> </jersey:resources> </flow> </mule> ERROR 2014-08-21 18:35:35,394 [[Projectname].connector.http.mule.default.receiver.02] org.mule.exception.DefaultSystemExceptionStrategy: Caught exception in Exception Strategy: null java.lang.NullPointerException at org.mule.session.DefaultMuleSession.getPropertyNamesAsSet(DefaultMuleSession.java:215) at org.mule.session.DefaultMuleSession.<init>(DefaultMuleSession.java:81) at org.mule.transport.AbstractMessageReceiver.routeEvent(AbstractMessageReceiver.java:523) at org.mule.transport.AbstractTransportMessageProcessTemplate.routeEvent(AbstractTransportMessageProcessTemplate.java:84) at org.mule.execution.FlowProcessingPhase$1$1.process(FlowProcessingPhase.java:75) at org.mule.execution.FlowProcessingPhase$1$1.process(FlowProcessingPhase.java:64) at org.mule.execution.ExecuteCallbackInterceptor.execute(ExecuteCallbackInterceptor.java:20) at org.mule.execution.HandleExceptionInterceptor.execute(HandleExceptionInterceptor.java:34) at org.mule.execution.HandleExceptionInterceptor.execute(HandleExceptionInterceptor.java:18) at org.mule.execution.BeginAndResolveTransactionInterceptor.execute(BeginAndResolveTransactionInterceptor.java:58) at org.mule.execution.ResolvePreviousTransactionInterceptor.execute(ResolvePreviousTransactionInterceptor.java:48) at org.mule.execution.SuspendXaTransactionInterceptor.execute(SuspendXaTransactionInterceptor.java:54) at org.mule.execution.ValidateTransactionalStateInterceptor.execute(ValidateTransactionalStateInterceptor.java:44) at org.mule.execution.IsolateCurrentTransactionInterceptor.execute(IsolateCurrentTransactionInterceptor.java:44) at org.mule.execution.ExternalTransactionInterceptor.execute(ExternalTransactionInterceptor.java:52) at org.mule.execution.RethrowExceptionInterceptor.execute(RethrowExceptionInterceptor.java:32) at org.mule.execution.RethrowExceptionInterceptor.execute(RethrowExceptionInterceptor.java:17) at org.mule.execution.TransactionalErrorHandlingExecutionTemplate.execute(TransactionalErrorHandlingExecutionTemplate.java:113) at org.mule.execution.FlowProcessingPhase$1.run(FlowProcessingPhase.java:63) at org.mule.transport.TrackingWorkManager$TrackeableWork.run(TrackingWorkManager.java:271) at org.mule.work.WorkerContext.run(WorkerContext.java:311) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source)
    via by pallavi deshpande,
  • I am trying access the Rest service. java class and method looks good. but when it passes the response to the rest I am getting the following error. My mule conf is as below <spring:beans> <spring:bean name="myJaxb" class="javax.xml.bind.JAXBContext" factory-method="newInstance"> <!-- colon-separated list of package names where JAXB classes exist --> <spring:constructor-arg value="package_name"/> </spring:bean> </spring:beans> <flow name="ServiceFlow" doc:name="ServiceFlow"> <http:inbound-endpoint exchange-pattern="request-response" doc:name="HTTP" host="localhost" port="8082" contentType="text/xml"/> <jersey:resources doc:name="REST"> <component class="class_name"/> <component class="ExecuteService"/> </jersey:resources> </flow> </mule> ERROR 2014-08-21 18:35:35,394 [[Projectname].connector.http.mule.default.receiver.02] org.mule.exception.DefaultSystemExceptionStrategy: Caught exception in Exception Strategy: null java.lang.NullPointerException at org.mule.session.DefaultMuleSession.getPropertyNamesAsSet(DefaultMuleSession.java:215) at org.mule.session.DefaultMuleSession.<init>(DefaultMuleSession.java:81) at org.mule.transport.AbstractMessageReceiver.routeEvent(AbstractMessageReceiver.java:523) at org.mule.transport.AbstractTransportMessageProcessTemplate.routeEvent(AbstractTransportMessageProcessTemplate.java:84) at org.mule.execution.FlowProcessingPhase$1$1.process(FlowProcessingPhase.java:75) at org.mule.execution.FlowProcessingPhase$1$1.process(FlowProcessingPhase.java:64) at org.mule.execution.ExecuteCallbackInterceptor.execute(ExecuteCallbackInterceptor.java:20) at org.mule.execution.HandleExceptionInterceptor.execute(HandleExceptionInterceptor.java:34) at org.mule.execution.HandleExceptionInterceptor.execute(HandleExceptionInterceptor.java:18) at org.mule.execution.BeginAndResolveTransactionInterceptor.execute(BeginAndResolveTransactionInterceptor.java:58) at org.mule.execution.ResolvePreviousTransactionInterceptor.execute(ResolvePreviousTransactionInterceptor.java:48) at org.mule.execution.SuspendXaTransactionInterceptor.execute(SuspendXaTransactionInterceptor.java:54) at org.mule.execution.ValidateTransactionalStateInterceptor.execute(ValidateTransactionalStateInterceptor.java:44) at org.mule.execution.IsolateCurrentTransactionInterceptor.execute(IsolateCurrentTransactionInterceptor.java:44) at org.mule.execution.ExternalTransactionInterceptor.execute(ExternalTransactionInterceptor.java:52) at org.mule.execution.RethrowExceptionInterceptor.execute(RethrowExceptionInterceptor.java:32) at org.mule.execution.RethrowExceptionInterceptor.execute(RethrowExceptionInterceptor.java:17) at org.mule.execution.TransactionalErrorHandlingExecutionTemplate.execute(TransactionalErrorHandlingExecutionTemplate.java:113) at org.mule.execution.FlowProcessingPhase$1.run(FlowProcessingPhase.java:63) at org.mule.transport.TrackingWorkManager$TrackeableWork.run(TrackingWorkManager.java:271) at org.mule.work.WorkerContext.run(WorkerContext.java:311) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source)
    via by pallavi deshpande,
  • Mule: process expression evaluator
    via Stack Overflow by Daniel
    ,
  • Choice Configuration in Mule Flow in tomcat
    via Stack Overflow by Atmaram
    ,
  • [mule-dev] Muel mmc not starting up
    via by tyler tyler,
    • java.lang.NullPointerException at org.mule.session.DefaultMuleSession.getPropertyNamesAsSet(DefaultMuleSession.java:215) at org.mule.session.DefaultMuleSession.<init>(DefaultMuleSession.java:81) at org.mule.transport.AbstractMessageReceiver.routeEvent(AbstractMessageReceiver.java:523) at org.mule.transport.AbstractTransportMessageProcessTemplate.routeEvent(AbstractTransportMessageProcessTemplate.java:84) at org.mule.execution.FlowProcessingPhase$1$1.process(FlowProcessingPhase.java:75) at org.mule.execution.FlowProcessingPhase$1$1.process(FlowProcessingPhase.java:64) at org.mule.execution.ExecuteCallbackInterceptor.execute(ExecuteCallbackInterceptor.java:20) at org.mule.execution.HandleExceptionInterceptor.execute(HandleExceptionInterceptor.java:34) at org.mule.execution.HandleExceptionInterceptor.execute(HandleExceptionInterceptor.java:18) at org.mule.execution.BeginAndResolveTransactionInterceptor.execute(BeginAndResolveTransactionInterceptor.java:58) at org.mule.execution.ResolvePreviousTransactionInterceptor.execute(ResolvePreviousTransactionInterceptor.java:48) at org.mule.execution.SuspendXaTransactionInterceptor.execute(SuspendXaTransactionInterceptor.java:54) at org.mule.execution.ValidateTransactionalStateInterceptor.execute(ValidateTransactionalStateInterceptor.java:44) at org.mule.execution.IsolateCurrentTransactionInterceptor.execute(IsolateCurrentTransactionInterceptor.java:44) at org.mule.execution.ExternalTransactionInterceptor.execute(ExternalTransactionInterceptor.java:52) at org.mule.execution.RethrowExceptionInterceptor.execute(RethrowExceptionInterceptor.java:32) at org.mule.execution.RethrowExceptionInterceptor.execute(RethrowExceptionInterceptor.java:17) at org.mule.execution.TransactionalErrorHandlingExecutionTemplate.execute(TransactionalErrorHandlingExecutionTemplate.java:113) at org.mule.execution.FlowProcessingPhase$1.run(FlowProcessingPhase.java:63) at org.mule.transport.TrackingWorkManager$TrackeableWork.run(TrackingWorkManager.java:271) at org.mule.work.WorkerContext.run(WorkerContext.java:311) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source)
    No Bugmate found.