Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

netty4-http producer fails with RejectedExecutionException #132

Closed
hholtzhausen opened this issue Aug 13, 2019 · 11 comments
Closed

netty4-http producer fails with RejectedExecutionException #132

hholtzhausen opened this issue Aug 13, 2019 · 11 comments

Comments

@hholtzhausen
Copy link

hholtzhausen commented Aug 13, 2019

A netty4-http producer is started and stopped immediately during application init. The route
then fails with a java.util.concurrent.RejectedExecutionException when executed.

Producer debug logs during startup:

2019-08-13 15:51:38,827 DEBUG [org.apa.cam.com.net.htt.NettyHttpProducer] (main) Starting producer: Producer[http://localhost:8080/greeter/hello]
2019-08-13 15:51:38,869 DEBUG [org.apa.cam.com.net.htt.NettyHttpProducer] (main) Created NettyProducer pool[maxActive=-1, minIdle=0, maxIdle=100, minEvictableIdleTimeMillis=300000] -> org.apache.commons.pool.impl.GenericObjectPool@1e3e1014
2019-08-13 15:51:38,870 DEBUG [org.apa.cam.com.net.htt.NettyHttpProducer] (main) Stopping producer at address: localhost:8080
2019-08-13 15:51:38,885 DEBUG [org.apa.cam.com.net.htt.NettyHttpProducer] (main) Stopping producer with channel pool[active=0, idle=0]
2019-08-13 15:51:38,887 DEBUG [org.apa.cam.com.net.htt.NettyHttpProducer] (main) Stopping producer: Producer[http://localhost:8080/greeter/hello]

The exception can be reproduced using:
https://github.com/hholtzhausen/examples/tree/master/camel-quarkus-netty4-http-producer

@lburgazzoli
Copy link
Contributor

Can you remove @ApplicationScoped from the route ?

@hholtzhausen
Copy link
Author

Same behaviour and exception without @ApplicationScoped annotation.
hholtzhausen/examples@58e123d

@lburgazzoli
Copy link
Contributor

last thing the I'll test, can you change quarkus.camel.defer-init-phase from false to true ?

@hholtzhausen
Copy link
Author

Tried that to :)
hholtzhausen/examples@2816c9e

@lburgazzoli
Copy link
Contributor

@hholtzhausen this looks like an issue on our side, as confirmation: does it fails in both jvm and native mode ?

@ppalaga
Copy link
Contributor

ppalaga commented Aug 13, 2019

I can see it failing in JVM mode.

@lburgazzoli
Copy link
Contributor

Seems related to different behaviour of default LRU cache vs LRU cache based on caffeine

@jamesnetherton
Copy link
Contributor

Since you mentioned the LRU cache. I wonder if it's similar to what I observed in CAMEL-13504.

@lburgazzoli
Copy link
Contributor

Yes it is

@hholtzhausen
Copy link
Author

@hholtzhausen this looks like an issue on our side, as confirmation: does it fails in both jvm and native mode ?

I was able to reproduce this in native mode a week or so ago using camel-quarkus 0.0.3-SNAPSHOT and quarkus 999-SNAPSHOT. I used those versions to get around #80 and a java.lang.NoClassDefFoundError: org/conscrypt/BufferAllocator during native compile.

With the current camel-quarkus 0.1.1-SNAPSHOT version I am getting the java.lang.NoClassDefFoundError: org/conscrypt/BufferAllocator exception again during native compile. I suspect the NoClassDefFoundError is a problem in quarkus 0.20.0.

@lburgazzoli
Copy link
Contributor

should be fixed now in master

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants