java.lang.IllegalStateException: Only owner thread can write to message: Thread[[axcess-document-platform-PRD-v3.2.1.RELEASE].HTTP_Listener_Config.worker.130,5,main]/Thread[[axcess-document-platform-PRD-v3.2.1.RELEASE].http.listener(9) SelectorRunner,5,main]

Stack Overflow | dmotta | 1 year 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

    Until Successful and Exception strategy in mule

    codegur.us | 6 months ago
    java.lang.IllegalStateException: Only owner thread can write to message: Thread[[axcess-document-platform-PRD-v3.2.1.RELEASE].HTTP_Listener_Config.worker.130,5,main]/Thread[[axcess-document-platform-PRD-v3.2.1.RELEASE].http.listener(9) SelectorRunner,5,main]
  2. 0

    Mule Error, Only owner thread can write to message still occures with http module

    Stack Overflow | 1 year ago | dmotta
    java.lang.IllegalStateException: Only owner thread can write to message: Thread[[axcess-document-platform-PRD-v3.2.1.RELEASE].HTTP_Listener_Config.worker.130,5,main]/Thread[[axcess-document-platform-PRD-v3.2.1.RELEASE].http.listener(9) SelectorRunner,5,main]
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 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]

    1 unregistered visitors
    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[[axcess-document-platform-PRD-v3.2.1.RELEASE].HTTP_Listener_Config.worker.130,5,main]/Thread[[axcess-document-platform-PRD-v3.2.1.RELEASE].http.listener(9) SelectorRunner,5,main]

      at org.mule.DefaultMuleMessage.newException()
    2. Mule Core
      AsyncResponseFlowProcessingPhase$3.responseSentWithFailure
      1. org.mule.DefaultMuleMessage.newException(DefaultMuleMessage.java:1665)[?:?]
      2. org.mule.DefaultMuleMessage.checkMutable(DefaultMuleMessage.java:1651)[?:?]
      3. org.mule.DefaultMuleMessage.assertAccess(DefaultMuleMessage.java:1580)[?:?]
      4. org.mule.DefaultMuleMessage.setExceptionPayload(DefaultMuleMessage.java:1003)[?:?]
      5. org.mule.exception.TemplateMessagingExceptionStrategy.handleException(TemplateMessagingExceptionStrategy.java:79)[?:?]
      6. org.mule.execution.AsyncResponseFlowProcessingPhase$3$1.execute(AsyncResponseFlowProcessingPhase.java:105)[?:?]
      7. org.mule.execution.AsyncResponseFlowProcessingPhase.executeCallback(AsyncResponseFlowProcessingPhase.java:117)[?:?]
      8. org.mule.execution.AsyncResponseFlowProcessingPhase.access$000(AsyncResponseFlowProcessingPhase.java:23)[?:?]
      9. org.mule.execution.AsyncResponseFlowProcessingPhase$3.responseSentWithFailure(AsyncResponseFlowProcessingPhase.java:100)[?:?]
      9 frames
    3. Mule HTTP Connector
      ResponseCompletionHandler.failed
      1. org.mule.module.http.internal.listener.HttpMessageProcessorTemplate$1.responseSendFailure(HttpMessageProcessorTemplate.java:114)[?:?]
      2. org.mule.module.http.internal.listener.grizzly.ResponseCompletionHandler.failed(ResponseCompletionHandler.java:153)[?:?]
      2 frames
    4. Grizzly
      AbstractIOStrategy.fireIOEvent
      1. org.glassfish.grizzly.asyncqueue.AsyncQueueRecord.notifyFailure(AsyncQueueRecord.java:110)[?:?]
      2. org.glassfish.grizzly.nio.AbstractNIOAsyncQueueWriter.onWriteFailure(AbstractNIOAsyncQueueWriter.java:489)[?:?]
      3. org.glassfish.grizzly.nio.AbstractNIOAsyncQueueWriter.processAsync(AbstractNIOAsyncQueueWriter.java:400)[?:?]
      4. org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:108)[?:?]
      5. org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77)[?:?]
      6. org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:561)[?:?]
      7. org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:112)[?:?]
      7 frames
    5. Mule HTTP Connector
      ExecutorPerServerAddressIOStrategy.executeIoEvent
      1. org.mule.module.http.internal.listener.grizzly.ExecutorPerServerAddressIOStrategy.run0(ExecutorPerServerAddressIOStrategy.java:102)[?:?]
      2. org.mule.module.http.internal.listener.grizzly.ExecutorPerServerAddressIOStrategy.executeIoEvent(ExecutorPerServerAddressIOStrategy.java:75)[?:?]
      2 frames
    6. Grizzly
      AbstractThreadPool$Worker.run
      1. org.glassfish.grizzly.strategies.AbstractIOStrategy.executeIoEvent(AbstractIOStrategy.java:89)[?:?]
      2. org.glassfish.grizzly.nio.SelectorRunner.iterateKeyEvents(SelectorRunner.java:414)[?:?]
      3. org.glassfish.grizzly.nio.SelectorRunner.iterateKeys(SelectorRunner.java:383)[?:?]
      4. org.glassfish.grizzly.nio.SelectorRunner.doSelect(SelectorRunner.java:347)[?:?]
      5. org.glassfish.grizzly.nio.SelectorRunner.run(SelectorRunner.java:278)[?:?]
      6. org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:565)[?:?]
      7. org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:545)[?:?]
      7 frames
    7. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:745)[?:1.7.0_80]
      1 frame