[
https://issues.apache.org/jira/browse/ARTEMIS-2967?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17222849#comment-17222849
]
Robbie Gemmell commented on ARTEMIS-2967:
-----------------------------------------
The test itself doesnt really seem to test much beyond the broker actually
starting up, as it doesnt use the server-connection (which may have failed to
establish in this case?).
Since the subequent tests do use the connection, I think this one could perhaps
just be deleted after figuring out the NPE:
{code}
@Test
public void testsSimpleConnect() throws Exception {
server.start();
server_2 = createServer(AMQP_PORT_2, false);
AMQPBrokerConnectConfiguration amqpConnection = new
AMQPBrokerConnectConfiguration("test", "tcp://localhost:" + AMQP_PORT);
server_2.getConfiguration().addAMQPConnection(amqpConnection);
server_2.start();
}
{code}
> NPE stack warn logged in AMQPBridgeTest #test testsSimpleConnect()
> ------------------------------------------------------------------
>
> Key: ARTEMIS-2967
> URL: https://issues.apache.org/jira/browse/ARTEMIS-2967
> Project: ActiveMQ Artemis
> Issue Type: Bug
> Components: AMQP
> Affects Versions: 2.16.0
> Reporter: Robbie Gemmell
> Assignee: Clebert Suconic
> Priority: Major
>
> org.apache.activemq.artemis.tests.integration.amqp.connect.AMQPBridgeTest
> #testsSimpleConnect() logs an a NPE warning stacktrace:
> {quote}
> [main] 10:56:27,020 WARN
> [org.apache.activemq.artemis.protocol.amqp.connect.AMQPBrokerConnection]
> null: java.lang.NullPointerException
> at
> org.apache.activemq.artemis.protocol.amqp.connect.AMQPBrokerConnection.start(AMQPBrokerConnection.java:157)
> [artemis-amqp-protocol-2.16.0-SNAPSHOT.jar:2.16.0-SNAPSHOT]
> at
> org.apache.activemq.artemis.protocol.amqp.connect.AMQPBrokerConnectionManager.start(AMQPBrokerConnectionManager.java:84)
> [artemis-amqp-protocol-2.16.0-SNAPSHOT.jar:2.16.0-SNAPSHOT]
> at
> org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.startProtocolServices(ActiveMQServerImpl.java:3245)
> [artemis-server-2.16.0-SNAPSHOT.jar:2.16.0-SNAPSHOT]
> at
> org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.initialisePart2(ActiveMQServerImpl.java:3215)
> [artemis-server-2.16.0-SNAPSHOT.jar:2.16.0-SNAPSHOT]
> at
> org.apache.activemq.artemis.core.server.impl.LiveOnlyActivation.run(LiveOnlyActivation.java:76)
> [artemis-server-2.16.0-SNAPSHOT.jar:2.16.0-SNAPSHOT]
> at
> org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.internalStart(ActiveMQServerImpl.java:634)
> [artemis-server-2.16.0-SNAPSHOT.jar:2.16.0-SNAPSHOT]
> at
> org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.start(ActiveMQServerImpl.java:558)
> [artemis-server-2.16.0-SNAPSHOT.jar:2.16.0-SNAPSHOT]
> at
> org.apache.activemq.artemis.tests.integration.amqp.connect.AMQPBridgeTest.testsSimpleConnect(AMQPBridgeTest.java:65)
> [:]
> {quote}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)