You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Holger Eichelberger (Jira)" <ji...@apache.org> on 2022/05/06 15:31:00 UTC

[jira] [Created] (QPID-8588) NullPointerException in AbstractVirtualHost.autoCreateNode

Holger Eichelberger created QPID-8588:
-----------------------------------------

             Summary: NullPointerException in AbstractVirtualHost.autoCreateNode
                 Key: QPID-8588
                 URL: https://issues.apache.org/jira/browse/QPID-8588
             Project: Qpid
          Issue Type: Bug
          Components: Broker-J
    Affects Versions: qpid-java-broker-8.0.6, qpid-java-broker-8.0.2
            Reporter: Holger Eichelberger


When creating a Tomcat servlet in the same JVM as Broker-J (tested with 8.0.2 and  8.0.6 on JDK8 due to external limitations), exceptions like attached occur. Tried to change the broker configuration in virtualhostnodes.virtualHostInitialConfiguration (taken from an example)

"virtualHostInitialConfiguration" : "\{\"type\":\"BDB\",\"nodeAutoCreationPolicies\":[{\"pattern\":\".*\",\"createdOnPublish\":\"true\",\"createdOnConsume\":\"true\",\"nodeType\":\"queue\"}]}"

so that nodeAutoCreationPolicies contains something like \"attributes\":{} but this does not change the behavior. Unfortunately, the documentation does not give much explanation about automatic creation of virtual host nodes, the format, the pattern, etc.

 

Exception in thread "IO-/127.0.0.1:55347" java.lang.NullPointerException
    at java.util.HashMap.putMapEntries(HashMap.java:500)
    at java.util.HashMap.<init>(HashMap.java:489)
    at org.apache.qpid.server.virtualhost.AbstractVirtualHost.autoCreateNode(AbstractVirtualHost.java:1331)
    at org.apache.qpid.server.virtualhost.AbstractVirtualHost.getAttainedMessageDestination(AbstractVirtualHost.java:1406)
    at org.apache.qpid.server.model.DestinationAddress.<init>(DestinationAddress.java:45)
    at org.apache.qpid.server.exchange.DefaultDestination.route(DefaultDestination.java:102)
    at org.apache.qpid.server.protocol.v0_8.AMQChannel.deliverCurrentMessageIfComplete(AMQChannel.java:411)
    at org.apache.qpid.server.protocol.v0_8.AMQChannel.publishContentBody(AMQChannel.java:545)
    at org.apache.qpid.server.protocol.v0_8.AMQChannel.receiveMessageContent(AMQChannel.java:2195)
    at org.apache.qpid.server.protocol.v0_8.transport.ContentBody.process(ContentBody.java:104)
    at org.apache.qpid.server.protocol.v0_8.AMQDecoder.processFrame(AMQDecoder.java:209)
    at org.apache.qpid.server.protocol.v0_8.BrokerDecoder.doProcessFrame(BrokerDecoder.java:141)
    at org.apache.qpid.server.protocol.v0_8.BrokerDecoder.processFrame(BrokerDecoder.java:65)
    at org.apache.qpid.server.protocol.v0_8.AMQDecoder.processInput(AMQDecoder.java:185)
    at org.apache.qpid.server.protocol.v0_8.BrokerDecoder$1.run(BrokerDecoder.java:104)
    at org.apache.qpid.server.protocol.v0_8.BrokerDecoder$1.run(BrokerDecoder.java:97)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.apache.qpid.server.protocol.v0_8.BrokerDecoder.processAMQPFrames(BrokerDecoder.java:96)
    at org.apache.qpid.server.protocol.v0_8.AMQDecoder.decode(AMQDecoder.java:118)
    at org.apache.qpid.server.protocol.v0_8.ServerDecoder.decodeBuffer(ServerDecoder.java:44)
    at org.apache.qpid.server.protocol.v0_8.AMQPConnection_0_8Impl.onReceive(AMQPConnection_0_8Impl.java:250)
    at org.apache.qpid.server.transport.AbstractAMQPConnection.lambda$received$2(AbstractAMQPConnection.java:576)
    at org.apache.qpid.server.transport.AbstractAMQPConnection$$Lambda$50/19211574.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.apache.qpid.server.transport.AbstractAMQPConnection.received(AbstractAMQPConnection.java:571)
    at org.apache.qpid.server.transport.MultiVersionProtocolEngine.received(MultiVersionProtocolEngine.java:135)
    at org.apache.qpid.server.transport.NonBlockingConnection.processAmqpData(NonBlockingConnection.java:611)
    at org.apache.qpid.server.transport.NonBlockingConnectionPlainDelegate.processData(NonBlockingConnectionPlainDelegate.java:58)
    at org.apache.qpid.server.transport.NonBlockingConnection.doRead(NonBlockingConnection.java:496)
    at org.apache.qpid.server.transport.NonBlockingConnection.doWork(NonBlockingConnection.java:270)
    at org.apache.qpid.server.transport.NetworkConnectionScheduler.processConnection(NetworkConnectionScheduler.java:134)
    at org.apache.qpid.server.transport.SelectorThread$ConnectionProcessor.processConnection(SelectorThread.java:575)
    at org.apache.qpid.server.transport.SelectorThread$SelectionTask.performSelect(SelectorThread.java:366)
    at org.apache.qpid.server.transport.SelectorThread$SelectionTask.run(SelectorThread.java:97)
    at org.apache.qpid.server.transport.SelectorThread.run(SelectorThread.java:533)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at org.apache.qpid.server.bytebuffer.QpidByteBufferFactory.lambda$null$0(QpidByteBufferFactory.java:464)
    at org.apache.qpid.server.bytebuffer.QpidByteBufferFactory$$Lambda$10/31759200.run(Unknown Source)



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org