You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Justin Bertram (Jira)" <ji...@apache.org> on 2022/01/31 16:50:00 UTC

[jira] [Comment Edited] (ARTEMIS-3663) Client connection with "useEpoll=false" fails with "incompatible event loop type"

    [ https://issues.apache.org/jira/browse/ARTEMIS-3663?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17484784#comment-17484784 ] 

Justin Bertram edited comment on ARTEMIS-3663 at 1/31/22, 4:49 PM:
-------------------------------------------------------------------

I reproduced this on 2.19.0, but I cannot reproduce it on 2.20.0. I recommend you upgrade to resolve the issue.


was (Author: jbertram):
I recreated this on 2.19.0, but I cannot reproduce it on 2.20.0. I recommend you upgrade to resolve the issue.

> Client connection with "useEpoll=false" fails with "incompatible event loop type"
> ---------------------------------------------------------------------------------
>
>                 Key: ARTEMIS-3663
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-3663
>             Project: ActiveMQ Artemis
>          Issue Type: Bug
>          Components: API
>    Affects Versions: 2.19.0
>         Environment: Reproducer:
>  * use "examples/features/standard/queue" present in broker distribution
>  * modify "src/main/resources/jndi.properties" adding "useEpoll=false" to connection factory
>  ** connectionFactory.ConnectionFactory=tcp://localhost:61616?useEpoll=false
>  * invoke "mvn verify"
>  
>            Reporter: Apache Dev
>            Priority: Major
>
> Configuring a client connection with "useEpoll=false" parameter causes the following deterministic failure during connection bootstrap:
>  
> {code:java}
> ERROR: AMQ214016: Failed to create netty connection
> java.lang.IllegalStateException: incompatible event loop type: io.netty.channel.epoll.EpollEventLoop
>         at io.netty.channel.AbstractChannel$AbstractUnsafe.register(AbstractChannel.java:473)
>         at io.netty.channel.SingleThreadEventLoop.register(SingleThreadEventLoop.java:87)
>         at io.netty.channel.SingleThreadEventLoop.register(SingleThreadEventLoop.java:81)
>         at io.netty.channel.MultithreadEventLoopGroup.register(MultithreadEventLoopGroup.java:86)
>         at org.apache.activemq.artemis.core.remoting.impl.netty.DelegatingEventLoopGroup.register(DelegatingEventLoopGroup.java:52)
>         at io.netty.bootstrap.AbstractBootstrap.initAndRegister(AbstractBootstrap.java:323)
>         at io.netty.bootstrap.Bootstrap.doResolveAndConnect(Bootstrap.java:155)
>         at io.netty.bootstrap.Bootstrap.connect(Bootstrap.java:139)
>         at org.apache.activemq.artemis.core.remoting.impl.netty.NettyConnector.createConnection(NettyConnector.java:854)
>         at org.apache.activemq.artemis.core.remoting.impl.netty.NettyConnector.createConnection(NettyConnector.java:830)
>         at org.apache.activemq.artemis.core.remoting.impl.netty.NettyConnector.createConnection(NettyConnector.java:812)
>         at org.apache.activemq.artemis.core.client.impl.ClientSessionFactoryImpl.openTransportConnection(ClientSessionFactoryImpl.java:1129)
>         at org.apache.activemq.artemis.core.client.impl.ClientSessionFactoryImpl.createTransportConnection(ClientSessionFactoryImpl.java:1239)
>         at org.apache.activemq.artemis.core.client.impl.ClientSessionFactoryImpl.createTransportConnection(ClientSessionFactoryImpl.java:1172)
>         at org.apache.activemq.artemis.core.client.impl.ClientSessionFactoryImpl.establishNewConnection(ClientSessionFactoryImpl.java:1404)
>         at org.apache.activemq.artemis.core.client.impl.ClientSessionFactoryImpl.getConnection(ClientSessionFactoryImpl.java:980)
>         at org.apache.activemq.artemis.core.client.impl.ClientSessionFactoryImpl.getConnectionWithRetry(ClientSessionFactoryImpl.java:869)
>         at org.apache.activemq.artemis.core.client.impl.ClientSessionFactoryImpl.connect(ClientSessionFactoryImpl.java:257)
>         at org.apache.activemq.artemis.core.client.impl.ClientSessionFactoryImpl.connect(ClientSessionFactoryImpl.java:273)
>         at org.apache.activemq.artemis.core.client.impl.ServerLocatorImpl.createSessionFactory(ServerLocatorImpl.java:688)
>         at org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory.createConnectionInternal(ActiveMQConnectionFactory.java:884)
>         at org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory.createConnection(ActiveMQConnectionFactory.java:299)
>         at org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory.createConnection(ActiveMQConnectionFactory.java:294)
> {code}



--
This message was sent by Atlassian Jira
(v8.20.1#820001)