org.mule.api.expression.ExpressionRuntimeException: Execution of the expression "flowVars['match']=__object_for_enrichment" failed.

MuleSoft JIRA | Jesica Fera | 1 year ago
  1. 0

    When using both a message enricher and a filter, together with an http request in Non Blocking mode, request becomes unresponsive. Attaching app that reproduces the issue. Expected: http request is successful Actual: http request is hung, and an exception is thrown ERROR 2015-07-06 12:41:43,657 [[enricher-issue].enricher-issue.01] org.mule.exception.DefaultMessagingExceptionStrategy: Caught exception in Exception Strategy: Execution of the expression "flowVars['match']=__object_for_enrichment" failed. org.mule.api.expression.ExpressionRuntimeException: Execution of the expression "flowVars['match']=__object_for_enrichment" failed. at org.mule.el.mvel.MVELExpressionLanguage.evaluateInternal(MVELExpressionLanguage.java:232) ~[mule-core-3.7.0.jar:3.7.0] at org.mule.el.mvel.MVELExpressionLanguage.evaluate(MVELExpressionLanguage.java:192) ~[mule-core-3.7.0.jar:3.7.0] at org.mule.el.mvel.MVELExpressionLanguage.enrich(MVELExpressionLanguage.java:198) ~[mule-core-3.7.0.jar:3.7.0] at org.mule.expression.DefaultExpressionManager.enrichTyped(DefaultExpressionManager.java:262) ~[mule-core-3.7.0.jar:3.7.0] at org.mule.enricher.MessageEnricher.enrich(MessageEnricher.java:93) ~[mule-core-3.7.0.jar:3.7.0] at org.mule.enricher.MessageEnricher$EnricherProcessor.processResponse(MessageEnricher.java:225) ~[mule-core-3.7.0.jar:3.7.0] at org.mule.processor.AbstractRequestResponseMessageProcessor$1.processReplyTo(AbstractRequestResponseMessageProcessor.java:104) ~[mule-core-3.7.0.jar:3.7.0] at org.mule.execution.MessageProcessorNotificationExecutionInterceptor$1.processReplyTo(MessageProcessorNotificationExecutionInterceptor.java:79) ~[mule-core-3.7.0.jar:3.7.0] at org.mule.processor.NonBlockingProcessorExecutor.resume(NonBlockingProcessorExecutor.java:91) ~[mule-core-3.7.0.jar:3.7.0] at org.mule.processor.NonBlockingProcessorExecutor.access$100(NonBlockingProcessorExecutor.java:37) ~[mule-core-3.7.0.jar:3.7.0] at org.mule.processor.NonBlockingProcessorExecutor$NonBlockingProcessorExecutorReplyToHandler.processReplyTo(NonBlockingProcessorExecutor.java:111) ~[mule-core-3.7.0.jar:3.7.0] at org.mule.processor.NonBlockingProcessorExecutor.resume(NonBlockingProcessorExecutor.java:91) ~[mule-core-3.7.0.jar:3.7.0] at org.mule.processor.NonBlockingProcessorExecutor.access$100(NonBlockingProcessorExecutor.java:37) ~[mule-core-3.7.0.jar:3.7.0] at org.mule.processor.NonBlockingProcessorExecutor$NonBlockingProcessorExecutorReplyToHandler.processReplyTo(NonBlockingProcessorExecutor.java:111) ~[mule-core-3.7.0.jar:3.7.0] at org.mule.execution.MessageProcessorNotificationExecutionInterceptor$1.processReplyTo(MessageProcessorNotificationExecutionInterceptor.java:79) ~[mule-core-3.7.0.jar:3.7.0] at org.mule.processor.AbstractNonBlockingMessageProcessor$NonBlockingCompletionHandler.onCompletion(AbstractNonBlockingMessageProcessor.java:88) ~[mule-core-3.7.0.jar:3.7.0] at org.mule.processor.AbstractNonBlockingMessageProcessor$NonBlockingCompletionHandler.onCompletion(AbstractNonBlockingMessageProcessor.java:65) ~[mule-core-3.7.0.jar:3.7.0] at org.mule.module.http.internal.request.DefaultHttpRequester$1.onCompletion(DefaultHttpRequester.java:236) ~[mule-module-http-3.7.0.jar:3.7.0] at org.mule.module.http.internal.request.DefaultHttpRequester$1.onCompletion(DefaultHttpRequester.java:205) ~[mule-module-http-3.7.0.jar:3.7.0] at org.mule.module.http.internal.request.grizzly.GrizzlyHttpClient$WorkManagerSourceAsyncCompletionHandler.onCompleted(GrizzlyHttpClient.java:259) ~[mule-module-http-3.7.0.jar:3.7.0] at org.mule.module.http.internal.request.grizzly.GrizzlyHttpClient$WorkManagerSourceAsyncCompletionHandler.onCompleted(GrizzlyHttpClient.java:243) ~[mule-module-http-3.7.0.jar:3.7.0] at com.ning.http.client.AsyncCompletionHandler.onCompleted(AsyncCompletionHandler.java:55) ~[async-http-client-1.9.21.jar:?] at com.ning.http.client.providers.grizzly.AhcEventFilter.onHttpPacketParsed(AhcEventFilter.java:416) ~[async-http-client-1.9.21.jar:?] at org.glassfish.grizzly.http.HttpCodecFilter.decodeWithTransferEncoding(HttpCodecFilter.java:1274) ~[grizzly-http-2.3.21.jar:2.3.21] at org.glassfish.grizzly.http.HttpCodecFilter.handleRead(HttpCodecFilter.java:594) ~[grizzly-http-2.3.21.jar:2.3.21] at org.glassfish.grizzly.http.HttpClientFilter.handleRead(HttpClientFilter.java:175) ~[grizzly-http-2.3.21.jar:2.3.21] at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119) ~[grizzly-framework-2.3.21.jar:2.3.21] at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:283) ~[grizzly-framework-2.3.21.jar:2.3.21] at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:200) ~[grizzly-framework-2.3.21.jar:2.3.21] at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:132) ~[grizzly-framework-2.3.21.jar:2.3.21] at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:111) ~[grizzly-framework-2.3.21.jar:2.3.21] at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77) ~[grizzly-framework-2.3.21.jar:2.3.21] at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:536) ~[grizzly-framework-2.3.21.jar:2.3.21] at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:112) ~[grizzly-framework-2.3.21.jar:2.3.21] at org.mule.module.http.internal.request.grizzly.FlowWorkManagerIOStrategy.run0(FlowWorkManagerIOStrategy.java:134) ~[mule-module-http-3.7.0.jar:3.7.0] at org.mule.module.http.internal.request.grizzly.FlowWorkManagerIOStrategy.access$100(FlowWorkManagerIOStrategy.java:31) ~[mule-module-http-3.7.0.jar:3.7.0] at org.mule.module.http.internal.request.grizzly.FlowWorkManagerIOStrategy$WorkerThreadRunnable.run(FlowWorkManagerIOStrategy.java:157) ~[mule-module-http-3.7.0.jar:3.7.0] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_11] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_11] at java.lang.Thread.run(Thread.java:745) [?:1.8.0_11] Caused by: java.lang.IllegalStateException: Only owner thread can write to message: Thread[[enricher-issue].HTTP_Listener_Configuration.worker.01,5,main]/Thread[[enricher-issue].enricher-issue.01,5,main] at org.mule.DefaultMuleMessage.newException(DefaultMuleMessage.java:1784) ~[mule-core-3.7.0.jar:3.7.0] at org.mule.DefaultMuleMessage.checkMutable(DefaultMuleMessage.java:1770) ~[mule-core-3.7.0.jar:3.7.0] at org.mule.DefaultMuleMessage.assertAccess(DefaultMuleMessage.java:1699) ~[mule-core-3.7.0.jar:3.7.0] at org.mule.DefaultMuleMessage.setProperty(DefaultMuleMessage.java:535) ~[mule-core-3.7.0.jar:3.7.0] at org.mule.DefaultMuleMessage.setProperty(DefaultMuleMessage.java:529) ~[mule-core-3.7.0.jar:3.7.0] at org.mule.el.context.MessagePropertyMapContext.put(MessagePropertyMapContext.java:49) ~[mule-core-3.7.0.jar:3.7.0] at org.mule.el.context.MessagePropertyMapContext.put(MessagePropertyMapContext.java:17) ~[mule-core-3.7.0.jar:3.7.0] at org.mule.mvel2.optimizers.impl.refl.nodes.MapAccessorNest.setValue(MapAccessorNest.java:67) ~[mule-mvel2-2.1.9-MULE-006.jar:?] at org.mule.mvel2.optimizers.impl.refl.nodes.VariableAccessor.setValue(VariableAccessor.java:46) ~[mule-mvel2-2.1.9-MULE-006.jar:?] at org.mule.mvel2.compiler.CompiledAccExpression.setValue(CompiledAccExpression.java:59) ~[mule-mvel2-2.1.9-MULE-006.jar:?] at org.mule.mvel2.ast.AssignmentNode.getReducedValueAccelerated(AssignmentNode.java:111) ~[mule-mvel2-2.1.9-MULE-006.jar:?] at org.mule.mvel2.MVELRuntime.execute(MVELRuntime.java:86) ~[mule-mvel2-2.1.9-MULE-006.jar:?] at org.mule.mvel2.compiler.CompiledExpression.getDirectValue(CompiledExpression.java:123) ~[mule-mvel2-2.1.9-MULE-006.jar:?] at org.mule.mvel2.compiler.CompiledExpression.getValue(CompiledExpression.java:119) ~[mule-mvel2-2.1.9-MULE-006.jar:?] at org.mule.mvel2.MVEL.executeExpression(MVEL.java:943) ~[mule-mvel2-2.1.9-MULE-006.jar:?] at org.mule.el.mvel.MVELExpressionExecutor.execute(MVELExpressionExecutor.java:72) ~[mule-core-3.7.0.jar:3.7.0] at org.mule.el.mvel.MVELExpressionLanguage.evaluateInternal(MVELExpressionLanguage.java:228) ~[mule-core-3.7.0.jar:3.7.0] ... 39 more

    MuleSoft JIRA | 1 year ago | Jesica Fera
    org.mule.api.expression.ExpressionRuntimeException: Execution of the expression "flowVars['match']=__object_for_enrichment" failed.
  2. 0

    When using both a message enricher and a filter, together with an http request in Non Blocking mode, request becomes unresponsive. Attaching app that reproduces the issue. Expected: http request is successful Actual: http request is hung, and an exception is thrown ERROR 2015-07-06 12:41:43,657 [[enricher-issue].enricher-issue.01] org.mule.exception.DefaultMessagingExceptionStrategy: Caught exception in Exception Strategy: Execution of the expression "flowVars['match']=__object_for_enrichment" failed. org.mule.api.expression.ExpressionRuntimeException: Execution of the expression "flowVars['match']=__object_for_enrichment" failed. at org.mule.el.mvel.MVELExpressionLanguage.evaluateInternal(MVELExpressionLanguage.java:232) ~[mule-core-3.7.0.jar:3.7.0] at org.mule.el.mvel.MVELExpressionLanguage.evaluate(MVELExpressionLanguage.java:192) ~[mule-core-3.7.0.jar:3.7.0] at org.mule.el.mvel.MVELExpressionLanguage.enrich(MVELExpressionLanguage.java:198) ~[mule-core-3.7.0.jar:3.7.0] at org.mule.expression.DefaultExpressionManager.enrichTyped(DefaultExpressionManager.java:262) ~[mule-core-3.7.0.jar:3.7.0] at org.mule.enricher.MessageEnricher.enrich(MessageEnricher.java:93) ~[mule-core-3.7.0.jar:3.7.0] at org.mule.enricher.MessageEnricher$EnricherProcessor.processResponse(MessageEnricher.java:225) ~[mule-core-3.7.0.jar:3.7.0] at org.mule.processor.AbstractRequestResponseMessageProcessor$1.processReplyTo(AbstractRequestResponseMessageProcessor.java:104) ~[mule-core-3.7.0.jar:3.7.0] at org.mule.execution.MessageProcessorNotificationExecutionInterceptor$1.processReplyTo(MessageProcessorNotificationExecutionInterceptor.java:79) ~[mule-core-3.7.0.jar:3.7.0] at org.mule.processor.NonBlockingProcessorExecutor.resume(NonBlockingProcessorExecutor.java:91) ~[mule-core-3.7.0.jar:3.7.0] at org.mule.processor.NonBlockingProcessorExecutor.access$100(NonBlockingProcessorExecutor.java:37) ~[mule-core-3.7.0.jar:3.7.0] at org.mule.processor.NonBlockingProcessorExecutor$NonBlockingProcessorExecutorReplyToHandler.processReplyTo(NonBlockingProcessorExecutor.java:111) ~[mule-core-3.7.0.jar:3.7.0] at org.mule.processor.NonBlockingProcessorExecutor.resume(NonBlockingProcessorExecutor.java:91) ~[mule-core-3.7.0.jar:3.7.0] at org.mule.processor.NonBlockingProcessorExecutor.access$100(NonBlockingProcessorExecutor.java:37) ~[mule-core-3.7.0.jar:3.7.0] at org.mule.processor.NonBlockingProcessorExecutor$NonBlockingProcessorExecutorReplyToHandler.processReplyTo(NonBlockingProcessorExecutor.java:111) ~[mule-core-3.7.0.jar:3.7.0] at org.mule.execution.MessageProcessorNotificationExecutionInterceptor$1.processReplyTo(MessageProcessorNotificationExecutionInterceptor.java:79) ~[mule-core-3.7.0.jar:3.7.0] at org.mule.processor.AbstractNonBlockingMessageProcessor$NonBlockingCompletionHandler.onCompletion(AbstractNonBlockingMessageProcessor.java:88) ~[mule-core-3.7.0.jar:3.7.0] at org.mule.processor.AbstractNonBlockingMessageProcessor$NonBlockingCompletionHandler.onCompletion(AbstractNonBlockingMessageProcessor.java:65) ~[mule-core-3.7.0.jar:3.7.0] at org.mule.module.http.internal.request.DefaultHttpRequester$1.onCompletion(DefaultHttpRequester.java:236) ~[mule-module-http-3.7.0.jar:3.7.0] at org.mule.module.http.internal.request.DefaultHttpRequester$1.onCompletion(DefaultHttpRequester.java:205) ~[mule-module-http-3.7.0.jar:3.7.0] at org.mule.module.http.internal.request.grizzly.GrizzlyHttpClient$WorkManagerSourceAsyncCompletionHandler.onCompleted(GrizzlyHttpClient.java:259) ~[mule-module-http-3.7.0.jar:3.7.0] at org.mule.module.http.internal.request.grizzly.GrizzlyHttpClient$WorkManagerSourceAsyncCompletionHandler.onCompleted(GrizzlyHttpClient.java:243) ~[mule-module-http-3.7.0.jar:3.7.0] at com.ning.http.client.AsyncCompletionHandler.onCompleted(AsyncCompletionHandler.java:55) ~[async-http-client-1.9.21.jar:?] at com.ning.http.client.providers.grizzly.AhcEventFilter.onHttpPacketParsed(AhcEventFilter.java:416) ~[async-http-client-1.9.21.jar:?] at org.glassfish.grizzly.http.HttpCodecFilter.decodeWithTransferEncoding(HttpCodecFilter.java:1274) ~[grizzly-http-2.3.21.jar:2.3.21] at org.glassfish.grizzly.http.HttpCodecFilter.handleRead(HttpCodecFilter.java:594) ~[grizzly-http-2.3.21.jar:2.3.21] at org.glassfish.grizzly.http.HttpClientFilter.handleRead(HttpClientFilter.java:175) ~[grizzly-http-2.3.21.jar:2.3.21] at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119) ~[grizzly-framework-2.3.21.jar:2.3.21] at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:283) ~[grizzly-framework-2.3.21.jar:2.3.21] at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:200) ~[grizzly-framework-2.3.21.jar:2.3.21] at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:132) ~[grizzly-framework-2.3.21.jar:2.3.21] at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:111) ~[grizzly-framework-2.3.21.jar:2.3.21] at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77) ~[grizzly-framework-2.3.21.jar:2.3.21] at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:536) ~[grizzly-framework-2.3.21.jar:2.3.21] at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:112) ~[grizzly-framework-2.3.21.jar:2.3.21] at org.mule.module.http.internal.request.grizzly.FlowWorkManagerIOStrategy.run0(FlowWorkManagerIOStrategy.java:134) ~[mule-module-http-3.7.0.jar:3.7.0] at org.mule.module.http.internal.request.grizzly.FlowWorkManagerIOStrategy.access$100(FlowWorkManagerIOStrategy.java:31) ~[mule-module-http-3.7.0.jar:3.7.0] at org.mule.module.http.internal.request.grizzly.FlowWorkManagerIOStrategy$WorkerThreadRunnable.run(FlowWorkManagerIOStrategy.java:157) ~[mule-module-http-3.7.0.jar:3.7.0] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_11] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_11] at java.lang.Thread.run(Thread.java:745) [?:1.8.0_11] Caused by: java.lang.IllegalStateException: Only owner thread can write to message: Thread[[enricher-issue].HTTP_Listener_Configuration.worker.01,5,main]/Thread[[enricher-issue].enricher-issue.01,5,main] at org.mule.DefaultMuleMessage.newException(DefaultMuleMessage.java:1784) ~[mule-core-3.7.0.jar:3.7.0] at org.mule.DefaultMuleMessage.checkMutable(DefaultMuleMessage.java:1770) ~[mule-core-3.7.0.jar:3.7.0] at org.mule.DefaultMuleMessage.assertAccess(DefaultMuleMessage.java:1699) ~[mule-core-3.7.0.jar:3.7.0] at org.mule.DefaultMuleMessage.setProperty(DefaultMuleMessage.java:535) ~[mule-core-3.7.0.jar:3.7.0] at org.mule.DefaultMuleMessage.setProperty(DefaultMuleMessage.java:529) ~[mule-core-3.7.0.jar:3.7.0] at org.mule.el.context.MessagePropertyMapContext.put(MessagePropertyMapContext.java:49) ~[mule-core-3.7.0.jar:3.7.0] at org.mule.el.context.MessagePropertyMapContext.put(MessagePropertyMapContext.java:17) ~[mule-core-3.7.0.jar:3.7.0] at org.mule.mvel2.optimizers.impl.refl.nodes.MapAccessorNest.setValue(MapAccessorNest.java:67) ~[mule-mvel2-2.1.9-MULE-006.jar:?] at org.mule.mvel2.optimizers.impl.refl.nodes.VariableAccessor.setValue(VariableAccessor.java:46) ~[mule-mvel2-2.1.9-MULE-006.jar:?] at org.mule.mvel2.compiler.CompiledAccExpression.setValue(CompiledAccExpression.java:59) ~[mule-mvel2-2.1.9-MULE-006.jar:?] at org.mule.mvel2.ast.AssignmentNode.getReducedValueAccelerated(AssignmentNode.java:111) ~[mule-mvel2-2.1.9-MULE-006.jar:?] at org.mule.mvel2.MVELRuntime.execute(MVELRuntime.java:86) ~[mule-mvel2-2.1.9-MULE-006.jar:?] at org.mule.mvel2.compiler.CompiledExpression.getDirectValue(CompiledExpression.java:123) ~[mule-mvel2-2.1.9-MULE-006.jar:?] at org.mule.mvel2.compiler.CompiledExpression.getValue(CompiledExpression.java:119) ~[mule-mvel2-2.1.9-MULE-006.jar:?] at org.mule.mvel2.MVEL.executeExpression(MVEL.java:943) ~[mule-mvel2-2.1.9-MULE-006.jar:?] at org.mule.el.mvel.MVELExpressionExecutor.execute(MVELExpressionExecutor.java:72) ~[mule-core-3.7.0.jar:3.7.0] at org.mule.el.mvel.MVELExpressionLanguage.evaluateInternal(MVELExpressionLanguage.java:228) ~[mule-core-3.7.0.jar:3.7.0] ... 39 more

    MuleSoft JIRA | 1 year ago | Jesica Fera
    org.mule.api.expression.ExpressionRuntimeException: Execution of the expression "flowVars['match']=__object_for_enrichment" failed.
  3. 0

    If the flow is configured with non-blocking processing strategy, when making a request inside an enricher an access violation Exception is thrown when the enricher tries to write the result in the target . {panel} ERROR 2015-09-24 14:07:10,765 [[enricher-issue-bug].enricher-issue.01] org.mule.exception.DefaultMessagingExceptionStrategy: ******************************************************************************** Message : Execution of the expression "flowVars['response']=__object_for_enrichment" failed. (org.mule.api.expression.ExpressionRuntimeException). Message payload is of type: BufferInputStream Code : MULE_ERROR--2 -------------------------------------------------------------------------------- Exception stack is: 1. Only owner thread can write to message: Thread[[enricher-issue-bug].HTTP_Listener_Configuration.worker.01,5,main]/Thread[[enricher-issue-bug].enricher-issue.01,5,main] (java.lang.IllegalStateException) org.mule.DefaultMuleMessage:1781 (null) 2. Execution of the expression "flowVars['response']=__object_for_enrichment" failed. (org.mule.api.expression.ExpressionRuntimeException) org.mule.el.mvel.MVELExpressionLanguage:232 (http://www.mulesoft.org/docs/site/current3/apidocs/org/mule/api/expression/ExpressionRuntimeException.html) 3. Execution of the expression "flowVars['response']=__object_for_enrichment" failed. (org.mule.api.expression.ExpressionRuntimeException). Message payload is of type: BufferInputStream (org.mule.api.MessagingException) org.mule.processor.NonBlockingProcessorExecutor$NonBlockingProcessorExecutorReplyToHandler:122 (http://www.mulesoft.org/docs/site/current3/apidocs/org/mule/api/MessagingException.html) -------------------------------------------------------------------------------- Root Exception stack trace: java.lang.IllegalStateException: Only owner thread can write to message: Thread[[enricher-issue-bug].HTTP_Listener_Configuration.worker.01,5,main]/Thread[[enricher-issue-bug].enricher-issue.01,5,main] at org.mule.DefaultMuleMessage.newException(DefaultMuleMessage.java:1781) at org.mule.DefaultMuleMessage.checkMutable(DefaultMuleMessage.java:1767) at org.mule.DefaultMuleMessage.assertAccess(DefaultMuleMessage.java:1696) + 3 more (set debug level logging or '-Dmule.verbose.exceptions=true' for everything) ******************************************************************************** {panel} Attaching app to reproduce and logs

    MuleSoft JIRA | 1 year ago | Evangelina Martinez Ruiz Moreno
    java.lang.IllegalStateException: Only owner thread can write to message: Thread[[enricher-issue-bug].HTTP_Listener_Configuration.worker.01,5,main]/Thread[[enricher-issue-bug].enricher-issue.01,5,main]
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    If the flow is configured with non-blocking processing strategy, when making a request inside an enricher an access violation Exception is thrown when the enricher tries to write the result in the target . {panel} ERROR 2015-09-24 14:07:10,765 [[enricher-issue-bug].enricher-issue.01] org.mule.exception.DefaultMessagingExceptionStrategy: ******************************************************************************** Message : Execution of the expression "flowVars['response']=__object_for_enrichment" failed. (org.mule.api.expression.ExpressionRuntimeException). Message payload is of type: BufferInputStream Code : MULE_ERROR--2 -------------------------------------------------------------------------------- Exception stack is: 1. Only owner thread can write to message: Thread[[enricher-issue-bug].HTTP_Listener_Configuration.worker.01,5,main]/Thread[[enricher-issue-bug].enricher-issue.01,5,main] (java.lang.IllegalStateException) org.mule.DefaultMuleMessage:1781 (null) 2. Execution of the expression "flowVars['response']=__object_for_enrichment" failed. (org.mule.api.expression.ExpressionRuntimeException) org.mule.el.mvel.MVELExpressionLanguage:232 (http://www.mulesoft.org/docs/site/current3/apidocs/org/mule/api/expression/ExpressionRuntimeException.html) 3. Execution of the expression "flowVars['response']=__object_for_enrichment" failed. (org.mule.api.expression.ExpressionRuntimeException). Message payload is of type: BufferInputStream (org.mule.api.MessagingException) org.mule.processor.NonBlockingProcessorExecutor$NonBlockingProcessorExecutorReplyToHandler:122 (http://www.mulesoft.org/docs/site/current3/apidocs/org/mule/api/MessagingException.html) -------------------------------------------------------------------------------- Root Exception stack trace: java.lang.IllegalStateException: Only owner thread can write to message: Thread[[enricher-issue-bug].HTTP_Listener_Configuration.worker.01,5,main]/Thread[[enricher-issue-bug].enricher-issue.01,5,main] at org.mule.DefaultMuleMessage.newException(DefaultMuleMessage.java:1781) at org.mule.DefaultMuleMessage.checkMutable(DefaultMuleMessage.java:1767) at org.mule.DefaultMuleMessage.assertAccess(DefaultMuleMessage.java:1696) + 3 more (set debug level logging or '-Dmule.verbose.exceptions=true' for everything) ******************************************************************************** {panel} Attaching app to reproduce and logs

    MuleSoft JIRA | 1 year ago | Evangelina Martinez Ruiz Moreno
    java.lang.IllegalStateException: Only owner thread can write to message: Thread[[enricher-issue-bug].HTTP_Listener_Configuration.worker.01,5,main]/Thread[[enricher-issue-bug].enricher-issue.01,5,main]

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

      Only owner thread can write to message: Thread[[enricher-issue].HTTP_Listener_Configuration.worker.01,5,main]/Thread[[enricher-issue].enricher-issue.01,5,main]

      at org.mule.DefaultMuleMessage.newException()
    2. Mule Core
      MessagePropertyMapContext.put
      1. org.mule.DefaultMuleMessage.newException(DefaultMuleMessage.java:1784)[mule-core-3.7.0.jar:3.7.0]
      2. org.mule.DefaultMuleMessage.checkMutable(DefaultMuleMessage.java:1770)[mule-core-3.7.0.jar:3.7.0]
      3. org.mule.DefaultMuleMessage.assertAccess(DefaultMuleMessage.java:1699)[mule-core-3.7.0.jar:3.7.0]
      4. org.mule.DefaultMuleMessage.setProperty(DefaultMuleMessage.java:535)[mule-core-3.7.0.jar:3.7.0]
      5. org.mule.DefaultMuleMessage.setProperty(DefaultMuleMessage.java:529)[mule-core-3.7.0.jar:3.7.0]
      6. org.mule.el.context.MessagePropertyMapContext.put(MessagePropertyMapContext.java:49)[mule-core-3.7.0.jar:3.7.0]
      7. org.mule.el.context.MessagePropertyMapContext.put(MessagePropertyMapContext.java:17)[mule-core-3.7.0.jar:3.7.0]
      7 frames
    3. mvel
      MVEL.executeExpression
      1. org.mule.mvel2.optimizers.impl.refl.nodes.MapAccessorNest.setValue(MapAccessorNest.java:67)[mule-mvel2-2.1.9-MULE-006.jar:?]
      2. org.mule.mvel2.optimizers.impl.refl.nodes.VariableAccessor.setValue(VariableAccessor.java:46)[mule-mvel2-2.1.9-MULE-006.jar:?]
      3. org.mule.mvel2.compiler.CompiledAccExpression.setValue(CompiledAccExpression.java:59)[mule-mvel2-2.1.9-MULE-006.jar:?]
      4. org.mule.mvel2.ast.AssignmentNode.getReducedValueAccelerated(AssignmentNode.java:111)[mule-mvel2-2.1.9-MULE-006.jar:?]
      5. org.mule.mvel2.MVELRuntime.execute(MVELRuntime.java:86)[mule-mvel2-2.1.9-MULE-006.jar:?]
      6. org.mule.mvel2.compiler.CompiledExpression.getDirectValue(CompiledExpression.java:123)[mule-mvel2-2.1.9-MULE-006.jar:?]
      7. org.mule.mvel2.compiler.CompiledExpression.getValue(CompiledExpression.java:119)[mule-mvel2-2.1.9-MULE-006.jar:?]
      8. org.mule.mvel2.MVEL.executeExpression(MVEL.java:943)[mule-mvel2-2.1.9-MULE-006.jar:?]
      8 frames
    4. Mule Core
      AbstractNonBlockingMessageProcessor$NonBlockingCompletionHandler.onCompletion
      1. org.mule.el.mvel.MVELExpressionExecutor.execute(MVELExpressionExecutor.java:72)[mule-core-3.7.0.jar:3.7.0]
      2. org.mule.el.mvel.MVELExpressionLanguage.evaluateInternal(MVELExpressionLanguage.java:228)[mule-core-3.7.0.jar:3.7.0]
      3. org.mule.el.mvel.MVELExpressionLanguage.evaluate(MVELExpressionLanguage.java:192)[mule-core-3.7.0.jar:3.7.0]
      4. org.mule.el.mvel.MVELExpressionLanguage.enrich(MVELExpressionLanguage.java:198)[mule-core-3.7.0.jar:3.7.0]
      5. org.mule.expression.DefaultExpressionManager.enrichTyped(DefaultExpressionManager.java:262)[mule-core-3.7.0.jar:3.7.0]
      6. org.mule.enricher.MessageEnricher.enrich(MessageEnricher.java:93)[mule-core-3.7.0.jar:3.7.0]
      7. org.mule.enricher.MessageEnricher$EnricherProcessor.processResponse(MessageEnricher.java:225)[mule-core-3.7.0.jar:3.7.0]
      8. org.mule.processor.AbstractRequestResponseMessageProcessor$1.processReplyTo(AbstractRequestResponseMessageProcessor.java:104)[mule-core-3.7.0.jar:3.7.0]
      9. org.mule.execution.MessageProcessorNotificationExecutionInterceptor$1.processReplyTo(MessageProcessorNotificationExecutionInterceptor.java:79)[mule-core-3.7.0.jar:3.7.0]
      10. org.mule.processor.NonBlockingProcessorExecutor.resume(NonBlockingProcessorExecutor.java:91)[mule-core-3.7.0.jar:3.7.0]
      11. org.mule.processor.NonBlockingProcessorExecutor.access$100(NonBlockingProcessorExecutor.java:37)[mule-core-3.7.0.jar:3.7.0]
      12. org.mule.processor.NonBlockingProcessorExecutor$NonBlockingProcessorExecutorReplyToHandler.processReplyTo(NonBlockingProcessorExecutor.java:111)[mule-core-3.7.0.jar:3.7.0]
      13. org.mule.processor.NonBlockingProcessorExecutor.resume(NonBlockingProcessorExecutor.java:91)[mule-core-3.7.0.jar:3.7.0]
      14. org.mule.processor.NonBlockingProcessorExecutor.access$100(NonBlockingProcessorExecutor.java:37)[mule-core-3.7.0.jar:3.7.0]
      15. org.mule.processor.NonBlockingProcessorExecutor$NonBlockingProcessorExecutorReplyToHandler.processReplyTo(NonBlockingProcessorExecutor.java:111)[mule-core-3.7.0.jar:3.7.0]
      16. org.mule.execution.MessageProcessorNotificationExecutionInterceptor$1.processReplyTo(MessageProcessorNotificationExecutionInterceptor.java:79)[mule-core-3.7.0.jar:3.7.0]
      17. org.mule.processor.AbstractNonBlockingMessageProcessor$NonBlockingCompletionHandler.onCompletion(AbstractNonBlockingMessageProcessor.java:88)[mule-core-3.7.0.jar:3.7.0]
      18. org.mule.processor.AbstractNonBlockingMessageProcessor$NonBlockingCompletionHandler.onCompletion(AbstractNonBlockingMessageProcessor.java:65)[mule-core-3.7.0.jar:3.7.0]
      18 frames
    5. Mule HTTP Connector
      GrizzlyHttpClient$WorkManagerSourceAsyncCompletionHandler.onCompleted
      1. org.mule.module.http.internal.request.DefaultHttpRequester$1.onCompletion(DefaultHttpRequester.java:236)[mule-module-http-3.7.0.jar:3.7.0]
      2. org.mule.module.http.internal.request.DefaultHttpRequester$1.onCompletion(DefaultHttpRequester.java:205)[mule-module-http-3.7.0.jar:3.7.0]
      3. org.mule.module.http.internal.request.grizzly.GrizzlyHttpClient$WorkManagerSourceAsyncCompletionHandler.onCompleted(GrizzlyHttpClient.java:259)[mule-module-http-3.7.0.jar:3.7.0]
      4. org.mule.module.http.internal.request.grizzly.GrizzlyHttpClient$WorkManagerSourceAsyncCompletionHandler.onCompleted(GrizzlyHttpClient.java:243)[mule-module-http-3.7.0.jar:3.7.0]
      4 frames
    6. Asynchronous Http Client
      AhcEventFilter.onHttpPacketParsed
      1. com.ning.http.client.AsyncCompletionHandler.onCompleted(AsyncCompletionHandler.java:55)[async-http-client-1.9.21.jar:?]
      2. com.ning.http.client.providers.grizzly.AhcEventFilter.onHttpPacketParsed(AhcEventFilter.java:416)[async-http-client-1.9.21.jar:?]
      2 frames
    7. grizzly-http
      HttpClientFilter.handleRead
      1. org.glassfish.grizzly.http.HttpCodecFilter.decodeWithTransferEncoding(HttpCodecFilter.java:1274)[grizzly-http-2.3.21.jar:2.3.21]
      2. org.glassfish.grizzly.http.HttpCodecFilter.handleRead(HttpCodecFilter.java:594)[grizzly-http-2.3.21.jar:2.3.21]
      3. org.glassfish.grizzly.http.HttpClientFilter.handleRead(HttpClientFilter.java:175)[grizzly-http-2.3.21.jar:2.3.21]
      3 frames
    8. Grizzly
      AbstractIOStrategy.fireIOEvent
      1. org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119)[grizzly-framework-2.3.21.jar:2.3.21]
      2. org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:283)[grizzly-framework-2.3.21.jar:2.3.21]
      3. org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:200)[grizzly-framework-2.3.21.jar:2.3.21]
      4. org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:132)[grizzly-framework-2.3.21.jar:2.3.21]
      5. org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:111)[grizzly-framework-2.3.21.jar:2.3.21]
      6. org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77)[grizzly-framework-2.3.21.jar:2.3.21]
      7. org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:536)[grizzly-framework-2.3.21.jar:2.3.21]
      8. org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:112)[grizzly-framework-2.3.21.jar:2.3.21]
      8 frames
    9. Mule HTTP Connector
      FlowWorkManagerIOStrategy$WorkerThreadRunnable.run
      1. org.mule.module.http.internal.request.grizzly.FlowWorkManagerIOStrategy.run0(FlowWorkManagerIOStrategy.java:134)[mule-module-http-3.7.0.jar:3.7.0]
      2. org.mule.module.http.internal.request.grizzly.FlowWorkManagerIOStrategy.access$100(FlowWorkManagerIOStrategy.java:31)[mule-module-http-3.7.0.jar:3.7.0]
      3. org.mule.module.http.internal.request.grizzly.FlowWorkManagerIOStrategy$WorkerThreadRunnable.run(FlowWorkManagerIOStrategy.java:157)[mule-module-http-3.7.0.jar:3.7.0]
      3 frames
    10. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[?:1.8.0_11]
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[?:1.8.0_11]
      3. java.lang.Thread.run(Thread.java:745)[?:1.8.0_11]
      3 frames