java.lang.NullPointerException

MuleSoft JIRA | pallavi deshpande | 2 years ago
  1. 0

    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)

    MuleSoft JIRA | 2 years ago | pallavi deshpande
    java.lang.NullPointerException
  2. 0

    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)

    MuleSoft JIRA | 2 years ago | pallavi deshpande
    java.lang.NullPointerException
  3. 0

    Mule: process expression evaluator

    Stack Overflow | 4 years ago | Daniel
    java.lang.NullPointerException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Choice Configuration in Mule Flow in tomcat

    Stack Overflow | 1 year ago | Atmaram
    java.lang.NullPointerException
  6. 0

    [mule-dev] Muel mmc not starting up

    Google Groups | 5 years ago | tyler tyler
    org.mule.api.MuleRuntimeException: An exception occurred while invoking messag e processor "org.mule.transport.AbstractConnector$DispatcherMessageProcessor" fo r asynchronously.

    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.session.DefaultMuleSession.getPropertyNamesAsSet()
    2. Mule Core
      WorkerContext.run
      1. org.mule.session.DefaultMuleSession.getPropertyNamesAsSet(DefaultMuleSession.java:215)
      2. org.mule.session.DefaultMuleSession.<init>(DefaultMuleSession.java:81)
      3. org.mule.transport.AbstractMessageReceiver.routeEvent(AbstractMessageReceiver.java:523)
      4. org.mule.transport.AbstractTransportMessageProcessTemplate.routeEvent(AbstractTransportMessageProcessTemplate.java:84)
      5. org.mule.execution.FlowProcessingPhase$1$1.process(FlowProcessingPhase.java:75)
      6. org.mule.execution.FlowProcessingPhase$1$1.process(FlowProcessingPhase.java:64)
      7. org.mule.execution.ExecuteCallbackInterceptor.execute(ExecuteCallbackInterceptor.java:20)
      8. org.mule.execution.HandleExceptionInterceptor.execute(HandleExceptionInterceptor.java:34)
      9. org.mule.execution.HandleExceptionInterceptor.execute(HandleExceptionInterceptor.java:18)
      10. org.mule.execution.BeginAndResolveTransactionInterceptor.execute(BeginAndResolveTransactionInterceptor.java:58)
      11. org.mule.execution.ResolvePreviousTransactionInterceptor.execute(ResolvePreviousTransactionInterceptor.java:48)
      12. org.mule.execution.SuspendXaTransactionInterceptor.execute(SuspendXaTransactionInterceptor.java:54)
      13. org.mule.execution.ValidateTransactionalStateInterceptor.execute(ValidateTransactionalStateInterceptor.java:44)
      14. org.mule.execution.IsolateCurrentTransactionInterceptor.execute(IsolateCurrentTransactionInterceptor.java:44)
      15. org.mule.execution.ExternalTransactionInterceptor.execute(ExternalTransactionInterceptor.java:52)
      16. org.mule.execution.RethrowExceptionInterceptor.execute(RethrowExceptionInterceptor.java:32)
      17. org.mule.execution.RethrowExceptionInterceptor.execute(RethrowExceptionInterceptor.java:17)
      18. org.mule.execution.TransactionalErrorHandlingExecutionTemplate.execute(TransactionalErrorHandlingExecutionTemplate.java:113)
      19. org.mule.execution.FlowProcessingPhase$1.run(FlowProcessingPhase.java:63)
      20. org.mule.transport.TrackingWorkManager$TrackeableWork.run(TrackingWorkManager.java:271)
      21. org.mule.work.WorkerContext.run(WorkerContext.java:311)
      21 frames
    3. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      3. java.lang.Thread.run(Unknown Source)
      3 frames