[
https://issues.apache.org/jira/browse/CAMEL-5151?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13265013#comment-13265013
]
Matt Narrell edited comment on CAMEL-5151 at 4/30/12 4:32 PM:
--------------------------------------------------------------
Same exception with 2.10-SNAPSHOT:
{code}
Caused by: java.lang.IllegalStateException: await*() in I/O thread causes a
dead lock or sudden performance drop. Use addListener() instead or call
await*() from a different thread.
at
org.jboss.netty.channel.DefaultChannelFuture.checkDeadLock(DefaultChannelFuture.java:314)
~[netty-3.4.2.Final.jar:na]
at
org.jboss.netty.channel.DefaultChannelFuture.awaitUninterruptibly(DefaultChannelFuture.java:226)
~[netty-3.4.2.Final.jar:na]
at
org.apache.camel.component.netty.NettyProducer.openChannel(NettyProducer.java:314)
~[camel-netty-2.10-20120430.022021-100.jar:2.10-SNAPSHOT]
at
org.apache.camel.component.netty.NettyProducer.process(NettyProducer.java:175)
~[camel-netty-2.10-20120430.022021-100.jar:2.10-SNAPSHOT]
at
org.apache.camel.processor.UnitOfWorkProcessor.processAsync(UnitOfWorkProcessor.java:150)
[camel-core-2.10-20120430.021826-100.jar:2.10-SNAPSHOT]
at
org.apache.camel.processor.UnitOfWorkProcessor.process(UnitOfWorkProcessor.java:117)
[camel-core-2.10-20120430.021826-100.jar:2.10-SNAPSHOT]
at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:99)
[camel-core-2.10-20120430.021826-100.jar:2.10-SNAPSHOT]
at
org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:86)
[camel-core-2.10-20120430.021826-100.jar:2.10-SNAPSHOT]
at
org.apache.camel.processor.UnitOfWorkProducer.process(UnitOfWorkProducer.java:63)
~[camel-core-2.10-20120430.021826-100.jar:2.10-SNAPSHOT]
at
org.apache.camel.impl.ProducerCache$2.doInProducer(ProducerCache.java:352)
~[camel-core-2.10-20120430.021826-100.jar:2.10-SNAPSHOT]
at
org.apache.camel.impl.ProducerCache$2.doInProducer(ProducerCache.java:324)
~[camel-core-2.10-20120430.021826-100.jar:2.10-SNAPSHOT]
at
org.apache.camel.impl.ProducerCache.doInProducer(ProducerCache.java:223)
[camel-core-2.10-20120430.021826-100.jar:2.10-SNAPSHOT]
at
org.apache.camel.impl.ProducerCache.sendExchange(ProducerCache.java:324)
[camel-core-2.10-20120430.021826-100.jar:2.10-SNAPSHOT]
at org.apache.camel.impl.ProducerCache.send(ProducerCache.java:186)
[camel-core-2.10-20120430.021826-100.jar:2.10-SNAPSHOT]
at
org.apache.camel.impl.DefaultProducerTemplate.send(DefaultProducerTemplate.java:115)
~[camel-core-2.10-20120430.021826-100.jar:2.10-SNAPSHOT]
at
org.apache.camel.impl.DefaultProducerTemplate.sendBody(DefaultProducerTemplate.java:119)
~[camel-core-2.10-20120430.021826-100.jar:2.10-SNAPSHOT]
{code}
was (Author: matt.narrell):
Same exception with 2.10-SNAPSHOT:
Caused by: java.lang.IllegalStateException: await*() in I/O thread causes a
dead lock or sudden performance drop. Use addListener() instead or call
await*() from a different thread.
at
org.jboss.netty.channel.DefaultChannelFuture.checkDeadLock(DefaultChannelFuture.java:314)
~[netty-3.4.2.Final.jar:na]
at
org.jboss.netty.channel.DefaultChannelFuture.awaitUninterruptibly(DefaultChannelFuture.java:226)
~[netty-3.4.2.Final.jar:na]
at
org.apache.camel.component.netty.NettyProducer.openChannel(NettyProducer.java:314)
~[camel-netty-2.10-20120430.022021-100.jar:2.10-SNAPSHOT]
at
org.apache.camel.component.netty.NettyProducer.process(NettyProducer.java:175)
~[camel-netty-2.10-20120430.022021-100.jar:2.10-SNAPSHOT]
at
org.apache.camel.processor.UnitOfWorkProcessor.processAsync(UnitOfWorkProcessor.java:150)
[camel-core-2.10-20120430.021826-100.jar:2.10-SNAPSHOT]
at
org.apache.camel.processor.UnitOfWorkProcessor.process(UnitOfWorkProcessor.java:117)
[camel-core-2.10-20120430.021826-100.jar:2.10-SNAPSHOT]
at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:99)
[camel-core-2.10-20120430.021826-100.jar:2.10-SNAPSHOT]
at
org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:86)
[camel-core-2.10-20120430.021826-100.jar:2.10-SNAPSHOT]
at
org.apache.camel.processor.UnitOfWorkProducer.process(UnitOfWorkProducer.java:63)
~[camel-core-2.10-20120430.021826-100.jar:2.10-SNAPSHOT]
at
org.apache.camel.impl.ProducerCache$2.doInProducer(ProducerCache.java:352)
~[camel-core-2.10-20120430.021826-100.jar:2.10-SNAPSHOT]
at
org.apache.camel.impl.ProducerCache$2.doInProducer(ProducerCache.java:324)
~[camel-core-2.10-20120430.021826-100.jar:2.10-SNAPSHOT]
at
org.apache.camel.impl.ProducerCache.doInProducer(ProducerCache.java:223)
[camel-core-2.10-20120430.021826-100.jar:2.10-SNAPSHOT]
at
org.apache.camel.impl.ProducerCache.sendExchange(ProducerCache.java:324)
[camel-core-2.10-20120430.021826-100.jar:2.10-SNAPSHOT]
at org.apache.camel.impl.ProducerCache.send(ProducerCache.java:186)
[camel-core-2.10-20120430.021826-100.jar:2.10-SNAPSHOT]
at
org.apache.camel.impl.DefaultProducerTemplate.send(DefaultProducerTemplate.java:115)
~[camel-core-2.10-20120430.021826-100.jar:2.10-SNAPSHOT]
at
org.apache.camel.impl.DefaultProducerTemplate.sendBody(DefaultProducerTemplate.java:119)
~[camel-core-2.10-20120430.021826-100.jar:2.10-SNAPSHOT]
> camel-netty psuedo proxy
> ------------------------
>
> Key: CAMEL-5151
> URL: https://issues.apache.org/jira/browse/CAMEL-5151
> Project: Camel
> Issue Type: Bug
> Components: camel-netty
> Affects Versions: 2.9.1
> Reporter: Matt Narrell
>
> I have a route:
> from("netty:tcp://somewhere:1234?...")
> .to("bean:myBean?method=callOut")
> Where the callOut method does several things, followed by a producerTemplate
> call to another netty endpoint:
> producerTemplate.sendBody("netty:tcp://somewhereElse:6789...",
> ExchangePattern.InOut, body);
> I'm unable to proxy "directly" from/to the netty endpoints, and need to pass
> through this bean. However, I receive the following exception:
> Caused by: java.lang.IllegalStateException: await*() in I/O thread causes
> a dead lock or sudden performance drop. Use addListener() instead or call
> await*() from a different thread.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira