org.mule.api.transformer.TransformerMessagingException: null (java.lang.NullPointerException). Message payload is of type: String

mulesoft.org | 8 months 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

    Considering this sub-flow: {code:xml} <sub-flow name="subflow_1"> <set-payload value="tested!" /> </sub-flow> {code} one could expect that testing it with: {code:java} MessageProcessor subFlow = muleContext.getRegistry().lookupObject("subflow_1"); MuleEvent result = subFlow.process(getTestEvent("test_data")); {code} would work, but it doesn't and throws the exception below. So it would be nice if the Mule functional test toolkit could provide a way to test sub-flows. {noformat} org.mule.api.transformer.TransformerMessagingException: null (java.lang.NullPointerException). Message payload is of type: String at org.mule.transformer.AbstractTransformer.process(AbstractTransformer.java:139) at org.mule.execution.ExceptionToMessagingExceptionExecutionInterceptor.execute(ExceptionToMessagingExceptionExecutionInterceptor.java:27) at org.mule.execution.MessageProcessorNotificationExecutionInterceptor.execute(MessageProcessorNotificationExecutionInterceptor.java:43) at org.mule.execution.MessageProcessorExecutionTemplate.execute(MessageProcessorExecutionTemplate.java:43) at org.mule.processor.chain.DefaultMessageProcessorChain.doProcess(DefaultMessageProcessorChain.java:93) at org.mule.processor.chain.AbstractMessageProcessorChain.process(AbstractMessageProcessorChain.java:66) at org.mule.processor.chain.InterceptingChainLifecycleWrapper.doProcess(InterceptingChainLifecycleWrapper.java:57) at org.mule.processor.chain.AbstractMessageProcessorChain.process(AbstractMessageProcessorChain.java:66) at org.mule.processor.chain.InterceptingChainLifecycleWrapper.access$001(InterceptingChainLifecycleWrapper.java:29) at org.mule.processor.chain.InterceptingChainLifecycleWrapper$1.process(InterceptingChainLifecycleWrapper.java:90) at org.mule.execution.ExceptionToMessagingExceptionExecutionInterceptor.execute(ExceptionToMessagingExceptionExecutionInterceptor.java:27) at org.mule.execution.MessageProcessorNotificationExecutionInterceptor.execute(MessageProcessorNotificationExecutionInterceptor.java:43) at org.mule.execution.MessageProcessorExecutionTemplate.execute(MessageProcessorExecutionTemplate.java:43) at org.mule.processor.chain.InterceptingChainLifecycleWrapper.process(InterceptingChainLifecycleWrapper.java:85) at org.mule.api.processor.MessageProcessors$LifecyleAwareMessageProcessorWrapper.process(MessageProcessors.java:114) at net.dossot.GenericTest.doIt(GenericTest.java:21) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28) at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31) at org.junit.rules.TestWatcher$1.evaluate(TestWatcher.java:46) at org.junit.internal.runners.statements.FailOnTimeout$1.run(FailOnTimeout.java:28) Caused by: java.lang.NullPointerException at org.mule.util.AttributeEvaluator.isExpression(AttributeEvaluator.java:65) at org.mule.util.AttributeEvaluator.resolveValue(AttributeEvaluator.java:75) at org.mule.transformer.simple.SetPayloadTransformer.transformMessage(SetPayloadTransformer.java:50) at org.mule.transformer.AbstractMessageTransformer.transform(AbstractMessageTransformer.java:145) at org.mule.transformer.AbstractMessageTransformer.transform(AbstractMessageTransformer.java:93) at org.mule.DefaultMuleMessage.transformMessage(DefaultMuleMessage.java:1455) at org.mule.DefaultMuleMessage.applyAllTransformers(DefaultMuleMessage.java:1363) at org.mule.DefaultMuleMessage.applyTransformers(DefaultMuleMessage.java:1341) at org.mule.DefaultMuleMessage.applyTransformers(DefaultMuleMessage.java:1333) at org.mule.transformer.AbstractTransformer.process(AbstractTransformer.java:123) ... 27 more {noformat}

    MuleSoft JIRA | 4 years ago | David Dossot
    org.mule.api.transformer.TransformerMessagingException: null (java.lang.NullPointerException). Message payload is of type: String
  2. 0

    Considering this sub-flow: {code:xml} <sub-flow name="subflow_1"> <set-payload value="tested!" /> </sub-flow> {code} one could expect that testing it with: {code:java} MessageProcessor subFlow = muleContext.getRegistry().lookupObject("subflow_1"); MuleEvent result = subFlow.process(getTestEvent("test_data")); {code} would work, but it doesn't and throws the exception below. So it would be nice if the Mule functional test toolkit could provide a way to test sub-flows. {noformat} org.mule.api.transformer.TransformerMessagingException: null (java.lang.NullPointerException). Message payload is of type: String at org.mule.transformer.AbstractTransformer.process(AbstractTransformer.java:139) at org.mule.execution.ExceptionToMessagingExceptionExecutionInterceptor.execute(ExceptionToMessagingExceptionExecutionInterceptor.java:27) at org.mule.execution.MessageProcessorNotificationExecutionInterceptor.execute(MessageProcessorNotificationExecutionInterceptor.java:43) at org.mule.execution.MessageProcessorExecutionTemplate.execute(MessageProcessorExecutionTemplate.java:43) at org.mule.processor.chain.DefaultMessageProcessorChain.doProcess(DefaultMessageProcessorChain.java:93) at org.mule.processor.chain.AbstractMessageProcessorChain.process(AbstractMessageProcessorChain.java:66) at org.mule.processor.chain.InterceptingChainLifecycleWrapper.doProcess(InterceptingChainLifecycleWrapper.java:57) at org.mule.processor.chain.AbstractMessageProcessorChain.process(AbstractMessageProcessorChain.java:66) at org.mule.processor.chain.InterceptingChainLifecycleWrapper.access$001(InterceptingChainLifecycleWrapper.java:29) at org.mule.processor.chain.InterceptingChainLifecycleWrapper$1.process(InterceptingChainLifecycleWrapper.java:90) at org.mule.execution.ExceptionToMessagingExceptionExecutionInterceptor.execute(ExceptionToMessagingExceptionExecutionInterceptor.java:27) at org.mule.execution.MessageProcessorNotificationExecutionInterceptor.execute(MessageProcessorNotificationExecutionInterceptor.java:43) at org.mule.execution.MessageProcessorExecutionTemplate.execute(MessageProcessorExecutionTemplate.java:43) at org.mule.processor.chain.InterceptingChainLifecycleWrapper.process(InterceptingChainLifecycleWrapper.java:85) at org.mule.api.processor.MessageProcessors$LifecyleAwareMessageProcessorWrapper.process(MessageProcessors.java:114) at net.dossot.GenericTest.doIt(GenericTest.java:21) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28) at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31) at org.junit.rules.TestWatcher$1.evaluate(TestWatcher.java:46) at org.junit.internal.runners.statements.FailOnTimeout$1.run(FailOnTimeout.java:28) Caused by: java.lang.NullPointerException at org.mule.util.AttributeEvaluator.isExpression(AttributeEvaluator.java:65) at org.mule.util.AttributeEvaluator.resolveValue(AttributeEvaluator.java:75) at org.mule.transformer.simple.SetPayloadTransformer.transformMessage(SetPayloadTransformer.java:50) at org.mule.transformer.AbstractMessageTransformer.transform(AbstractMessageTransformer.java:145) at org.mule.transformer.AbstractMessageTransformer.transform(AbstractMessageTransformer.java:93) at org.mule.DefaultMuleMessage.transformMessage(DefaultMuleMessage.java:1455) at org.mule.DefaultMuleMessage.applyAllTransformers(DefaultMuleMessage.java:1363) at org.mule.DefaultMuleMessage.applyTransformers(DefaultMuleMessage.java:1341) at org.mule.DefaultMuleMessage.applyTransformers(DefaultMuleMessage.java:1333) at org.mule.transformer.AbstractTransformer.process(AbstractTransformer.java:123) ... 27 more {noformat}

    MuleSoft JIRA | 4 years ago | David Dossot
    org.mule.api.transformer.TransformerMessagingException: null (java.lang.NullPointerException). Message payload is of type: String
  3. 0

    [MULE-6632] Provide a way to test sub-flows - JIRA

    mulesoft.org | 8 months ago
    org.mule.api.transformer.TransformerMessagingException: null (java.lang.NullPointerException). Message payload is of type: String
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at org.mule.util.AttributeEvaluator.isExpression()
    2. Mule Core
      MessageProcessors$LifecyleAwareMessageProcessorWrapper.process
      1. org.mule.util.AttributeEvaluator.isExpression(AttributeEvaluator.java:65)
      2. org.mule.util.AttributeEvaluator.resolveValue(AttributeEvaluator.java:75)
      3. org.mule.transformer.simple.SetPayloadTransformer.transformMessage(SetPayloadTransformer.java:50)
      4. org.mule.transformer.AbstractMessageTransformer.transform(AbstractMessageTransformer.java:145)
      5. org.mule.transformer.AbstractMessageTransformer.transform(AbstractMessageTransformer.java:93)
      6. org.mule.DefaultMuleMessage.transformMessage(DefaultMuleMessage.java:1455)
      7. org.mule.DefaultMuleMessage.applyAllTransformers(DefaultMuleMessage.java:1363)
      8. org.mule.DefaultMuleMessage.applyTransformers(DefaultMuleMessage.java:1341)
      9. org.mule.DefaultMuleMessage.applyTransformers(DefaultMuleMessage.java:1333)
      10. org.mule.transformer.AbstractTransformer.process(AbstractTransformer.java:123)
      11. org.mule.execution.ExceptionToMessagingExceptionExecutionInterceptor.execute(ExceptionToMessagingExceptionExecutionInterceptor.java:27)
      12. org.mule.execution.MessageProcessorNotificationExecutionInterceptor.execute(MessageProcessorNotificationExecutionInterceptor.java:43)
      13. org.mule.execution.MessageProcessorExecutionTemplate.execute(MessageProcessorExecutionTemplate.java:43)
      14. org.mule.processor.chain.DefaultMessageProcessorChain.doProcess(DefaultMessageProcessorChain.java:93)
      15. org.mule.processor.chain.AbstractMessageProcessorChain.process(AbstractMessageProcessorChain.java:66)
      16. org.mule.processor.chain.InterceptingChainLifecycleWrapper.doProcess(InterceptingChainLifecycleWrapper.java:57)
      17. org.mule.processor.chain.AbstractMessageProcessorChain.process(AbstractMessageProcessorChain.java:66)
      18. org.mule.processor.chain.InterceptingChainLifecycleWrapper.access$001(InterceptingChainLifecycleWrapper.java:29)
      19. org.mule.processor.chain.InterceptingChainLifecycleWrapper$1.process(InterceptingChainLifecycleWrapper.java:90)
      20. org.mule.execution.ExceptionToMessagingExceptionExecutionInterceptor.execute(ExceptionToMessagingExceptionExecutionInterceptor.java:27)
      21. org.mule.execution.MessageProcessorNotificationExecutionInterceptor.execute(MessageProcessorNotificationExecutionInterceptor.java:43)
      22. org.mule.execution.MessageProcessorExecutionTemplate.execute(MessageProcessorExecutionTemplate.java:43)
      23. org.mule.processor.chain.InterceptingChainLifecycleWrapper.process(InterceptingChainLifecycleWrapper.java:85)
      24. org.mule.api.processor.MessageProcessors$LifecyleAwareMessageProcessorWrapper.process(MessageProcessors.java:114)
      24 frames
    3. net.dossot
      GenericTest.doIt
      1. net.dossot.GenericTest.doIt(GenericTest.java:21)
      1 frame
    4. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:616)
      4 frames
    5. JUnit
      FailOnTimeout$1.run
      1. org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
      2. org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
      3. org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
      4. org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
      5. org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
      6. org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
      7. org.junit.rules.TestWatcher$1.evaluate(TestWatcher.java:46)
      8. org.junit.internal.runners.statements.FailOnTimeout$1.run(FailOnTimeout.java:28)
      8 frames