[ 
https://issues.apache.org/jira/browse/ARTEMIS-4173?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Justin Bertram closed ARTEMIS-4173.
-----------------------------------
    Resolution: Invalid

> stacktrace for cluster connection
> ---------------------------------
>
>                 Key: ARTEMIS-4173
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-4173
>             Project: ActiveMQ Artemis
>          Issue Type: Bug
>          Components: Broker
>    Affects Versions: 2.28.0
>            Reporter: Erwin Dondorp
>            Priority: Minor
>
> setup is a first attempt to use JGROUPS with FILE_PING.
> jgroups config file was copied from 
> {{examples/features/clustered/clustered-jgroups/src/main/resources/activemq/server0/test-jgroups-file_ping.xml}}
>  with only an adjustment of the filename.
> the following stack trace was visible, after JGroups gave up and Artemis 
> continued as singleton.
> the second part of the trace says that this should not happen, but it did...
> note the reference to port number -1
> {panel:title=stack trace}
> {noformat}
> org.apache.activemq.artemis.api.core.ActiveMQIllegalStateException: 
> AMQ219024: Could not select a TransportConfiguration to create SessionFactory
>       at 
> org.apache.activemq.artemis.core.client.impl.ServerLocatorImpl.createSessionFactory(ServerLocatorImpl.java:675)
>  ~[artemis-core-client-2.28.0.jar:2.28.0]
>       at 
> org.apache.activemq.artemis.core.client.impl.ServerLocatorImpl.connect(ServerLocatorImpl.java:547)
>  ~[artemis-core-client-2.28.0.jar:2.28.0]
>       at 
> org.apache.activemq.artemis.core.client.impl.ServerLocatorImpl.connect(ServerLocatorImpl.java:526)
>  ~[artemis-core-client-2.28.0.jar:2.28.0]
>       at 
> org.apache.activemq.artemis.core.client.impl.ServerLocatorImpl$4.run(ServerLocatorImpl.java:489)
>  ~[artemis-core-client-2.28.0.jar:2.28.0]
>       at 
> org.apache.activemq.artemis.utils.actors.OrderedExecutor.doTask(OrderedExecutor.java:57)
>  ~[artemis-commons-2.28.0.jar:?]
>       at 
> org.apache.activemq.artemis.utils.actors.OrderedExecutor.doTask(OrderedExecutor.java:32)
>  ~[artemis-commons-2.28.0.jar:?]
>       at 
> org.apache.activemq.artemis.utils.actors.ProcessorBase.executePendingTasks(ProcessorBase.java:68)
>  ~[artemis-commons-2.28.0.jar:?]
>       at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
>  ~[?:?]
>       at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
>  ~[?:?]
>       at 
> org.apache.activemq.artemis.utils.ActiveMQThreadFactory$1.run(ActiveMQThreadFactory.java:118)
>  ~[artemis-commons-2.28.0.jar:?]
> 2023-02-17 01:32:46,279 WARN  [org.apache.activemq.artemis.core.client] 
> AMQ212007: connector.create or connectorFactory.createConnector should never 
> throw an exception, implementation is badly behaved, but we will deal with it 
> anyway.
> java.lang.IllegalArgumentException: port out of range:-1
>       at java.net.InetSocketAddress.checkPort(InetSocketAddress.java:143) 
> ~[?:?]
>       at java.net.InetSocketAddress.<init>(InetSocketAddress.java:224) ~[?:?]
>       at 
> org.apache.activemq.artemis.core.remoting.impl.netty.NettyConnector.createConnection(NettyConnector.java:874)
>  ~[artemis-core-client-2.28.0.jar:2.28.0]
>       at 
> org.apache.activemq.artemis.core.remoting.impl.netty.NettyConnector.createConnection(NettyConnector.java:866)
>  ~[artemis-core-client-2.28.0.jar:2.28.0]
>       at 
> org.apache.activemq.artemis.core.remoting.impl.netty.NettyConnector.createConnection(NettyConnector.java:848)
>  ~[artemis-core-client-2.28.0.jar:2.28.0]
>       at 
> org.apache.activemq.artemis.core.client.impl.ClientSessionFactoryImpl.openTransportConnection(ClientSessionFactoryImpl.java:1105)
>  ~[artemis-core-client-2.28.0.jar:2.28.0]
>       at 
> org.apache.activemq.artemis.core.client.impl.ClientSessionFactoryImpl.createTransportConnection(ClientSessionFactoryImpl.java:1212)
>  ~[artemis-core-client-2.28.0.jar:2.28.0]
>       at 
> org.apache.activemq.artemis.core.client.impl.ClientSessionFactoryImpl.createTransportConnection(ClientSessionFactoryImpl.java:1146)
>  ~[artemis-core-client-2.28.0.jar:2.28.0]
>       at 
> org.apache.activemq.artemis.core.client.impl.ClientSessionFactoryImpl.establishNewConnection(ClientSessionFactoryImpl.java:1375)
>  ~[artemis-core-client-2.28.0.jar:2.28.0]
>       at 
> org.apache.activemq.artemis.core.client.impl.ClientSessionFactoryImpl.getConnection(ClientSessionFactoryImpl.java:967)
>  ~[artemis-core-client-2.28.0.jar:2.28.0]
>       at 
> org.apache.activemq.artemis.core.client.impl.ClientSessionFactoryImpl.getConnectionWithRetry(ClientSessionFactoryImpl.java:858)
>  ~[artemis-core-client-2.28.0.jar:2.28.0]
>       at 
> org.apache.activemq.artemis.core.client.impl.ClientSessionFactoryImpl.connect(ClientSessionFactoryImpl.java:252)
>  ~[artemis-core-client-2.28.0.jar:2.28.0]
>       at 
> org.apache.activemq.artemis.core.client.impl.ServerLocatorImpl.createSessionFactory(ServerLocatorImpl.java:610)
>  ~[artemis-core-client-2.28.0.jar:2.28.0]
>       at 
> org.apache.activemq.artemis.core.client.impl.ServerLocatorImpl.createSessionFactory(ServerLocatorImpl.java:595)
>  ~[artemis-core-client-2.28.0.jar:2.28.0]
>       at 
> org.apache.activemq.artemis.core.client.impl.ServerLocatorImpl.createSessionFactory(ServerLocatorImpl.java:579)
>  ~[artemis-core-client-2.28.0.jar:2.28.0]
>       at 
> org.apache.activemq.artemis.core.server.cluster.impl.ClusterConnectionBridge.createSessionFactory(ClusterConnectionBridge.java:168)
>  ~[artemis-server-2.28.0.jar:2.28.0]
>       at 
> org.apache.activemq.artemis.core.server.cluster.impl.BridgeImpl.connect(BridgeImpl.java:923)
>  ~[artemis-server-2.28.0.jar:2.28.0]
>       at 
> org.apache.activemq.artemis.core.server.cluster.impl.BridgeImpl$ConnectRunnable.run(BridgeImpl.java:1126)
>  ~[artemis-server-2.28.0.jar:2.28.0]
>       at 
> org.apache.activemq.artemis.utils.actors.OrderedExecutor.doTask(OrderedExecutor.java:57)
>  ~[artemis-commons-2.28.0.jar:?]
>       at 
> org.apache.activemq.artemis.utils.actors.OrderedExecutor.doTask(OrderedExecutor.java:32)
>  ~[artemis-commons-2.28.0.jar:?]
>       at 
> org.apache.activemq.artemis.utils.actors.ProcessorBase.executePendingTasks(ProcessorBase.java:68)
>  ~[artemis-commons-2.28.0.jar:?]
>       at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
>  ~[?:?]
>       at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
>  ~[?:?]
>       at 
> org.apache.activemq.artemis.utils.ActiveMQThreadFactory$1.run(ActiveMQThreadFactory.java:118)
>  ~[artemis-commons-2.28.0.jar:?]
> {noformat}
> {panel}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information, visit: https://activemq.apache.org/contact


Reply via email to