You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Martin Ritchie (JIRA)" <qp...@incubator.apache.org> on 2008/01/21 12:23:34 UTC

[jira] Created: (QPID-753) Broker NPEs when a 'null' virtualhost is sent in the ConnectionOpenBody.

Broker NPEs when a 'null' virtualhost is sent in the ConnectionOpenBody.
------------------------------------------------------------------------

                 Key: QPID-753
                 URL: https://issues.apache.org/jira/browse/QPID-753
             Project: Qpid
          Issue Type: Bug
          Components: Java Broker
    Affects Versions: M2, M2.1
            Reporter: Martin Ritchie


If a virtualhost is not provided to in the ConnectionOpenBody then the resulting 'null' lookup will cause an NPE on the Java Broker. 


2008-01-08 18:28:01,426 DEBUG [pool-1-thread-1] protocol.AMQMinaProtocolSession (AMQMinaProtocolSession.java:207) - Frame Received: Frame channelId: 0, bodyg.apache.qpid.framing.ConnectionOpenBody[ Class: 10 Method: 40]  virtualHost: null  capabilities: null  insist: true
2008-01-08 18:28:01,427 ERROR [pool-1-thread-1] state.AMQStateManager (AMQStateManager.java:208) - State manager received error notification[Current State:C_NOT_OPENED]: java.lang.NullPointerException
java.lang.NullPointerException
        at java.util.concurrent.ConcurrentHashMap.get(ConcurrentHashMap.java:765)
        at org.apache.qpid.server.virtualhost.VirtualHostRegistry.getVirtualHost(VirtualHostRegistry.java:52)
        at org.apache.qpid.server.handler.ConnectionOpenMethodHandler.methodReceived(ConnectionOpenMethodHandler.java:75)
        at org.apache.qpid.server.state.AMQStateManager.methodReceived(AMQStateManager.java:223)
        at org.apache.qpid.server.protocol.AMQMinaProtocolSession.methodFrameReceived(AMQMinaProtocolSession.java:303)
        at org.apache.qpid.server.protocol.AMQMinaProtocolSession.frameReceived(AMQMinaProtocolSession.java:212)
        at org.apache.qpid.server.protocol.AMQMinaProtocolSession.dataBlockReceived(AMQMinaProtocolSession.java:191)
        at org.apache.qpid.server.protocol.AMQPFastProtocolHandler.messageReceived(AMQPFastProtocolHandler.java:206)
        at org.apache.mina.common.support.AbstractIoFilterChain$2.messageReceived(AbstractIoFilterChain.java:189)
        at org.apache.mina.common.support.AbstractIoFilterChain.callNextMessageReceived(AbstractIoFilterChain.java:502)
        at org.apache.mina.common.support.AbstractIoFilterChain.access$1000(AbstractIoFilterChain.java:52)
        at org.apache.mina.common.support.AbstractIoFilterChain$EntryImpl$1.messageReceived(AbstractIoFilterChain.java:777)
        at org.apache.qpid.pool.PoolingFilter.messageReceived(PoolingFilter.java:317)
        at org.apache.mina.filter.ReferenceCountingIoFilter.messageReceived(ReferenceCountingIoFilter.java:96)
        at org.apache.mina.common.support.AbstractIoFilterChain.callNextMessageReceived(AbstractIoFilterChain.java:502)
        at org.apache.mina.common.support.AbstractIoFilterChain.access$1000(AbstractIoFilterChain.java:52)
        at org.apache.mina.common.support.AbstractIoFilterChain$EntryImpl$1.messageReceived(AbstractIoFilterChain.java:777)
        at org.apache.mina.filter.codec.support.SimpleProtocolDecoderOutput.flush(SimpleProtocolDecoderOutput.java:60)
        at org.apache.mina.filter.codec.ProtocolCodecFilter.messageReceived(ProtocolCodecFilter.java:185)
        at org.apache.mina.common.support.AbstractIoFilterChain.callNextMessageReceived(AbstractIoFilterChain.java:502)
        at org.apache.mina.common.support.AbstractIoFilterChain.access$1000(AbstractIoFilterChain.java:52)
        at org.apache.mina.common.support.AbstractIoFilterChain$EntryImpl$1.messageReceived(AbstractIoFilterChain.java:777)
        at org.apache.qpid.pool.Event$ReceivedEvent.process(Event.java:86)
        at org.apache.qpid.pool.Job.processAll(Job.java:109)
        at org.apache.qpid.pool.Job.run(Job.java:147)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
        at java.lang.Thread.run(Thread.java:619)
2008-01-08 18:28:01,430 INFO  [pool-1-thread-1] protocol.AMQPFastProtocolHandler (AMQPFastProtocolHandler.java:135) - Protocol Session closed for:/127.0.0.1

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (QPID-753) Broker NPEs when a 'null' virtualhost is sent in the ConnectionOpenBody.

Posted by "Aidan Skinner (JIRA)" <qp...@incubator.apache.org>.
     [ https://issues.apache.org/jira/browse/QPID-753?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Aidan Skinner updated QPID-753:
-------------------------------

    Fix Version/s: M3
         Assignee: Martin Ritchie

> Broker NPEs when a 'null' virtualhost is sent in the ConnectionOpenBody.
> ------------------------------------------------------------------------
>
>                 Key: QPID-753
>                 URL: https://issues.apache.org/jira/browse/QPID-753
>             Project: Qpid
>          Issue Type: Bug
>          Components: Java Broker
>    Affects Versions: M2, M2.1
>            Reporter: Martin Ritchie
>            Assignee: Martin Ritchie
>             Fix For: M3
>
>
> If a virtualhost is not provided to in the ConnectionOpenBody then the resulting 'null' lookup will cause an NPE on the Java Broker. 
> 2008-01-08 18:28:01,426 DEBUG [pool-1-thread-1] protocol.AMQMinaProtocolSession (AMQMinaProtocolSession.java:207) - Frame Received: Frame channelId: 0, bodyg.apache.qpid.framing.ConnectionOpenBody[ Class: 10 Method: 40]  virtualHost: null  capabilities: null  insist: true
> 2008-01-08 18:28:01,427 ERROR [pool-1-thread-1] state.AMQStateManager (AMQStateManager.java:208) - State manager received error notification[Current State:C_NOT_OPENED]: java.lang.NullPointerException
> java.lang.NullPointerException
>         at java.util.concurrent.ConcurrentHashMap.get(ConcurrentHashMap.java:765)
>         at org.apache.qpid.server.virtualhost.VirtualHostRegistry.getVirtualHost(VirtualHostRegistry.java:52)
>         at org.apache.qpid.server.handler.ConnectionOpenMethodHandler.methodReceived(ConnectionOpenMethodHandler.java:75)
>         at org.apache.qpid.server.state.AMQStateManager.methodReceived(AMQStateManager.java:223)
>         at org.apache.qpid.server.protocol.AMQMinaProtocolSession.methodFrameReceived(AMQMinaProtocolSession.java:303)
>         at org.apache.qpid.server.protocol.AMQMinaProtocolSession.frameReceived(AMQMinaProtocolSession.java:212)
>         at org.apache.qpid.server.protocol.AMQMinaProtocolSession.dataBlockReceived(AMQMinaProtocolSession.java:191)
>         at org.apache.qpid.server.protocol.AMQPFastProtocolHandler.messageReceived(AMQPFastProtocolHandler.java:206)
>         at org.apache.mina.common.support.AbstractIoFilterChain$2.messageReceived(AbstractIoFilterChain.java:189)
>         at org.apache.mina.common.support.AbstractIoFilterChain.callNextMessageReceived(AbstractIoFilterChain.java:502)
>         at org.apache.mina.common.support.AbstractIoFilterChain.access$1000(AbstractIoFilterChain.java:52)
>         at org.apache.mina.common.support.AbstractIoFilterChain$EntryImpl$1.messageReceived(AbstractIoFilterChain.java:777)
>         at org.apache.qpid.pool.PoolingFilter.messageReceived(PoolingFilter.java:317)
>         at org.apache.mina.filter.ReferenceCountingIoFilter.messageReceived(ReferenceCountingIoFilter.java:96)
>         at org.apache.mina.common.support.AbstractIoFilterChain.callNextMessageReceived(AbstractIoFilterChain.java:502)
>         at org.apache.mina.common.support.AbstractIoFilterChain.access$1000(AbstractIoFilterChain.java:52)
>         at org.apache.mina.common.support.AbstractIoFilterChain$EntryImpl$1.messageReceived(AbstractIoFilterChain.java:777)
>         at org.apache.mina.filter.codec.support.SimpleProtocolDecoderOutput.flush(SimpleProtocolDecoderOutput.java:60)
>         at org.apache.mina.filter.codec.ProtocolCodecFilter.messageReceived(ProtocolCodecFilter.java:185)
>         at org.apache.mina.common.support.AbstractIoFilterChain.callNextMessageReceived(AbstractIoFilterChain.java:502)
>         at org.apache.mina.common.support.AbstractIoFilterChain.access$1000(AbstractIoFilterChain.java:52)
>         at org.apache.mina.common.support.AbstractIoFilterChain$EntryImpl$1.messageReceived(AbstractIoFilterChain.java:777)
>         at org.apache.qpid.pool.Event$ReceivedEvent.process(Event.java:86)
>         at org.apache.qpid.pool.Job.processAll(Job.java:109)
>         at org.apache.qpid.pool.Job.run(Job.java:147)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
>         at java.lang.Thread.run(Thread.java:619)
> 2008-01-08 18:28:01,430 INFO  [pool-1-thread-1] protocol.AMQPFastProtocolHandler (AMQPFastProtocolHandler.java:135) - Protocol Session closed for:/127.0.0.1

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (QPID-753) Broker NPEs when a 'null' virtualhost is sent in the ConnectionOpenBody.

Posted by "Marnie McCormack (JIRA)" <qp...@incubator.apache.org>.
     [ https://issues.apache.org/jira/browse/QPID-753?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Marnie McCormack updated QPID-753:
----------------------------------

    Fix Version/s:     (was: M4)

Moving items not being worked on afaik out of M4 Fix Version

> Broker NPEs when a 'null' virtualhost is sent in the ConnectionOpenBody.
> ------------------------------------------------------------------------
>
>                 Key: QPID-753
>                 URL: https://issues.apache.org/jira/browse/QPID-753
>             Project: Qpid
>          Issue Type: Bug
>          Components: Java Broker, Starter
>    Affects Versions: M2, M2.1
>            Reporter: Martin Ritchie
>            Priority: Minor
>
> If a virtualhost is not provided to in the ConnectionOpenBody then the resulting 'null' lookup will cause an NPE on the Java Broker. 
> 2008-01-08 18:28:01,426 DEBUG [pool-1-thread-1] protocol.AMQMinaProtocolSession (AMQMinaProtocolSession.java:207) - Frame Received: Frame channelId: 0, bodyg.apache.qpid.framing.ConnectionOpenBody[ Class: 10 Method: 40]  virtualHost: null  capabilities: null  insist: true
> 2008-01-08 18:28:01,427 ERROR [pool-1-thread-1] state.AMQStateManager (AMQStateManager.java:208) - State manager received error notification[Current State:C_NOT_OPENED]: java.lang.NullPointerException
> java.lang.NullPointerException
>         at java.util.concurrent.ConcurrentHashMap.get(ConcurrentHashMap.java:765)
>         at org.apache.qpid.server.virtualhost.VirtualHostRegistry.getVirtualHost(VirtualHostRegistry.java:52)
>         at org.apache.qpid.server.handler.ConnectionOpenMethodHandler.methodReceived(ConnectionOpenMethodHandler.java:75)
>         at org.apache.qpid.server.state.AMQStateManager.methodReceived(AMQStateManager.java:223)
>         at org.apache.qpid.server.protocol.AMQMinaProtocolSession.methodFrameReceived(AMQMinaProtocolSession.java:303)
>         at org.apache.qpid.server.protocol.AMQMinaProtocolSession.frameReceived(AMQMinaProtocolSession.java:212)
>         at org.apache.qpid.server.protocol.AMQMinaProtocolSession.dataBlockReceived(AMQMinaProtocolSession.java:191)
>         at org.apache.qpid.server.protocol.AMQPFastProtocolHandler.messageReceived(AMQPFastProtocolHandler.java:206)
>         at org.apache.mina.common.support.AbstractIoFilterChain$2.messageReceived(AbstractIoFilterChain.java:189)
>         at org.apache.mina.common.support.AbstractIoFilterChain.callNextMessageReceived(AbstractIoFilterChain.java:502)
>         at org.apache.mina.common.support.AbstractIoFilterChain.access$1000(AbstractIoFilterChain.java:52)
>         at org.apache.mina.common.support.AbstractIoFilterChain$EntryImpl$1.messageReceived(AbstractIoFilterChain.java:777)
>         at org.apache.qpid.pool.PoolingFilter.messageReceived(PoolingFilter.java:317)
>         at org.apache.mina.filter.ReferenceCountingIoFilter.messageReceived(ReferenceCountingIoFilter.java:96)
>         at org.apache.mina.common.support.AbstractIoFilterChain.callNextMessageReceived(AbstractIoFilterChain.java:502)
>         at org.apache.mina.common.support.AbstractIoFilterChain.access$1000(AbstractIoFilterChain.java:52)
>         at org.apache.mina.common.support.AbstractIoFilterChain$EntryImpl$1.messageReceived(AbstractIoFilterChain.java:777)
>         at org.apache.mina.filter.codec.support.SimpleProtocolDecoderOutput.flush(SimpleProtocolDecoderOutput.java:60)
>         at org.apache.mina.filter.codec.ProtocolCodecFilter.messageReceived(ProtocolCodecFilter.java:185)
>         at org.apache.mina.common.support.AbstractIoFilterChain.callNextMessageReceived(AbstractIoFilterChain.java:502)
>         at org.apache.mina.common.support.AbstractIoFilterChain.access$1000(AbstractIoFilterChain.java:52)
>         at org.apache.mina.common.support.AbstractIoFilterChain$EntryImpl$1.messageReceived(AbstractIoFilterChain.java:777)
>         at org.apache.qpid.pool.Event$ReceivedEvent.process(Event.java:86)
>         at org.apache.qpid.pool.Job.processAll(Job.java:109)
>         at org.apache.qpid.pool.Job.run(Job.java:147)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
>         at java.lang.Thread.run(Thread.java:619)
> 2008-01-08 18:28:01,430 INFO  [pool-1-thread-1] protocol.AMQPFastProtocolHandler (AMQPFastProtocolHandler.java:135) - Protocol Session closed for:/127.0.0.1

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (QPID-753) Broker NPEs when a 'null' virtualhost is sent in the ConnectionOpenBody.

Posted by "Marnie McCormack (JIRA)" <qp...@incubator.apache.org>.
     [ https://issues.apache.org/jira/browse/QPID-753?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Marnie McCormack updated QPID-753:
----------------------------------

    Component/s: Starter
       Priority: Minor  (was: Major)

> Broker NPEs when a 'null' virtualhost is sent in the ConnectionOpenBody.
> ------------------------------------------------------------------------
>
>                 Key: QPID-753
>                 URL: https://issues.apache.org/jira/browse/QPID-753
>             Project: Qpid
>          Issue Type: Bug
>          Components: Java Broker, Starter
>    Affects Versions: M2, M2.1
>            Reporter: Martin Ritchie
>            Priority: Minor
>             Fix For: M4
>
>
> If a virtualhost is not provided to in the ConnectionOpenBody then the resulting 'null' lookup will cause an NPE on the Java Broker. 
> 2008-01-08 18:28:01,426 DEBUG [pool-1-thread-1] protocol.AMQMinaProtocolSession (AMQMinaProtocolSession.java:207) - Frame Received: Frame channelId: 0, bodyg.apache.qpid.framing.ConnectionOpenBody[ Class: 10 Method: 40]  virtualHost: null  capabilities: null  insist: true
> 2008-01-08 18:28:01,427 ERROR [pool-1-thread-1] state.AMQStateManager (AMQStateManager.java:208) - State manager received error notification[Current State:C_NOT_OPENED]: java.lang.NullPointerException
> java.lang.NullPointerException
>         at java.util.concurrent.ConcurrentHashMap.get(ConcurrentHashMap.java:765)
>         at org.apache.qpid.server.virtualhost.VirtualHostRegistry.getVirtualHost(VirtualHostRegistry.java:52)
>         at org.apache.qpid.server.handler.ConnectionOpenMethodHandler.methodReceived(ConnectionOpenMethodHandler.java:75)
>         at org.apache.qpid.server.state.AMQStateManager.methodReceived(AMQStateManager.java:223)
>         at org.apache.qpid.server.protocol.AMQMinaProtocolSession.methodFrameReceived(AMQMinaProtocolSession.java:303)
>         at org.apache.qpid.server.protocol.AMQMinaProtocolSession.frameReceived(AMQMinaProtocolSession.java:212)
>         at org.apache.qpid.server.protocol.AMQMinaProtocolSession.dataBlockReceived(AMQMinaProtocolSession.java:191)
>         at org.apache.qpid.server.protocol.AMQPFastProtocolHandler.messageReceived(AMQPFastProtocolHandler.java:206)
>         at org.apache.mina.common.support.AbstractIoFilterChain$2.messageReceived(AbstractIoFilterChain.java:189)
>         at org.apache.mina.common.support.AbstractIoFilterChain.callNextMessageReceived(AbstractIoFilterChain.java:502)
>         at org.apache.mina.common.support.AbstractIoFilterChain.access$1000(AbstractIoFilterChain.java:52)
>         at org.apache.mina.common.support.AbstractIoFilterChain$EntryImpl$1.messageReceived(AbstractIoFilterChain.java:777)
>         at org.apache.qpid.pool.PoolingFilter.messageReceived(PoolingFilter.java:317)
>         at org.apache.mina.filter.ReferenceCountingIoFilter.messageReceived(ReferenceCountingIoFilter.java:96)
>         at org.apache.mina.common.support.AbstractIoFilterChain.callNextMessageReceived(AbstractIoFilterChain.java:502)
>         at org.apache.mina.common.support.AbstractIoFilterChain.access$1000(AbstractIoFilterChain.java:52)
>         at org.apache.mina.common.support.AbstractIoFilterChain$EntryImpl$1.messageReceived(AbstractIoFilterChain.java:777)
>         at org.apache.mina.filter.codec.support.SimpleProtocolDecoderOutput.flush(SimpleProtocolDecoderOutput.java:60)
>         at org.apache.mina.filter.codec.ProtocolCodecFilter.messageReceived(ProtocolCodecFilter.java:185)
>         at org.apache.mina.common.support.AbstractIoFilterChain.callNextMessageReceived(AbstractIoFilterChain.java:502)
>         at org.apache.mina.common.support.AbstractIoFilterChain.access$1000(AbstractIoFilterChain.java:52)
>         at org.apache.mina.common.support.AbstractIoFilterChain$EntryImpl$1.messageReceived(AbstractIoFilterChain.java:777)
>         at org.apache.qpid.pool.Event$ReceivedEvent.process(Event.java:86)
>         at org.apache.qpid.pool.Job.processAll(Job.java:109)
>         at org.apache.qpid.pool.Job.run(Job.java:147)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
>         at java.lang.Thread.run(Thread.java:619)
> 2008-01-08 18:28:01,430 INFO  [pool-1-thread-1] protocol.AMQPFastProtocolHandler (AMQPFastProtocolHandler.java:135) - Protocol Session closed for:/127.0.0.1

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (QPID-753) Broker NPEs when a 'null' virtualhost is sent in the ConnectionOpenBody.

Posted by "Martin Ritchie (JIRA)" <qp...@incubator.apache.org>.
     [ https://issues.apache.org/jira/browse/QPID-753?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Ritchie reassigned QPID-753:
-----------------------------------

    Assignee:     (was: Martin Ritchie)

> Broker NPEs when a 'null' virtualhost is sent in the ConnectionOpenBody.
> ------------------------------------------------------------------------
>
>                 Key: QPID-753
>                 URL: https://issues.apache.org/jira/browse/QPID-753
>             Project: Qpid
>          Issue Type: Bug
>          Components: Java Broker
>    Affects Versions: M2, M2.1
>            Reporter: Martin Ritchie
>             Fix For: M4
>
>
> If a virtualhost is not provided to in the ConnectionOpenBody then the resulting 'null' lookup will cause an NPE on the Java Broker. 
> 2008-01-08 18:28:01,426 DEBUG [pool-1-thread-1] protocol.AMQMinaProtocolSession (AMQMinaProtocolSession.java:207) - Frame Received: Frame channelId: 0, bodyg.apache.qpid.framing.ConnectionOpenBody[ Class: 10 Method: 40]  virtualHost: null  capabilities: null  insist: true
> 2008-01-08 18:28:01,427 ERROR [pool-1-thread-1] state.AMQStateManager (AMQStateManager.java:208) - State manager received error notification[Current State:C_NOT_OPENED]: java.lang.NullPointerException
> java.lang.NullPointerException
>         at java.util.concurrent.ConcurrentHashMap.get(ConcurrentHashMap.java:765)
>         at org.apache.qpid.server.virtualhost.VirtualHostRegistry.getVirtualHost(VirtualHostRegistry.java:52)
>         at org.apache.qpid.server.handler.ConnectionOpenMethodHandler.methodReceived(ConnectionOpenMethodHandler.java:75)
>         at org.apache.qpid.server.state.AMQStateManager.methodReceived(AMQStateManager.java:223)
>         at org.apache.qpid.server.protocol.AMQMinaProtocolSession.methodFrameReceived(AMQMinaProtocolSession.java:303)
>         at org.apache.qpid.server.protocol.AMQMinaProtocolSession.frameReceived(AMQMinaProtocolSession.java:212)
>         at org.apache.qpid.server.protocol.AMQMinaProtocolSession.dataBlockReceived(AMQMinaProtocolSession.java:191)
>         at org.apache.qpid.server.protocol.AMQPFastProtocolHandler.messageReceived(AMQPFastProtocolHandler.java:206)
>         at org.apache.mina.common.support.AbstractIoFilterChain$2.messageReceived(AbstractIoFilterChain.java:189)
>         at org.apache.mina.common.support.AbstractIoFilterChain.callNextMessageReceived(AbstractIoFilterChain.java:502)
>         at org.apache.mina.common.support.AbstractIoFilterChain.access$1000(AbstractIoFilterChain.java:52)
>         at org.apache.mina.common.support.AbstractIoFilterChain$EntryImpl$1.messageReceived(AbstractIoFilterChain.java:777)
>         at org.apache.qpid.pool.PoolingFilter.messageReceived(PoolingFilter.java:317)
>         at org.apache.mina.filter.ReferenceCountingIoFilter.messageReceived(ReferenceCountingIoFilter.java:96)
>         at org.apache.mina.common.support.AbstractIoFilterChain.callNextMessageReceived(AbstractIoFilterChain.java:502)
>         at org.apache.mina.common.support.AbstractIoFilterChain.access$1000(AbstractIoFilterChain.java:52)
>         at org.apache.mina.common.support.AbstractIoFilterChain$EntryImpl$1.messageReceived(AbstractIoFilterChain.java:777)
>         at org.apache.mina.filter.codec.support.SimpleProtocolDecoderOutput.flush(SimpleProtocolDecoderOutput.java:60)
>         at org.apache.mina.filter.codec.ProtocolCodecFilter.messageReceived(ProtocolCodecFilter.java:185)
>         at org.apache.mina.common.support.AbstractIoFilterChain.callNextMessageReceived(AbstractIoFilterChain.java:502)
>         at org.apache.mina.common.support.AbstractIoFilterChain.access$1000(AbstractIoFilterChain.java:52)
>         at org.apache.mina.common.support.AbstractIoFilterChain$EntryImpl$1.messageReceived(AbstractIoFilterChain.java:777)
>         at org.apache.qpid.pool.Event$ReceivedEvent.process(Event.java:86)
>         at org.apache.qpid.pool.Job.processAll(Job.java:109)
>         at org.apache.qpid.pool.Job.run(Job.java:147)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
>         at java.lang.Thread.run(Thread.java:619)
> 2008-01-08 18:28:01,430 INFO  [pool-1-thread-1] protocol.AMQPFastProtocolHandler (AMQPFastProtocolHandler.java:135) - Protocol Session closed for:/127.0.0.1

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (QPID-753) Broker NPEs when a 'null' virtualhost is sent in the ConnectionOpenBody.

Posted by "Martin Ritchie (JIRA)" <qp...@incubator.apache.org>.
    [ https://issues.apache.org/jira/browse/QPID-753?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12628373#action_12628373 ] 

Martin Ritchie commented on QPID-753:
-------------------------------------

This is caused when the defaultVirtualHost has not be specified in the XML file.
<default>test</default>

We should classify this as a configuration error and throw an exception as such.

VirtualHostConfiguration.performBindings()
@L248:
        if(defaultVirtualHostName != null)
        {
            ApplicationRegistry.getInstance().getVirtualHostRegistry().setDefaultVirtualHostName(defaultVirtualHostName);            
        }

should be else .. throw exception.



> Broker NPEs when a 'null' virtualhost is sent in the ConnectionOpenBody.
> ------------------------------------------------------------------------
>
>                 Key: QPID-753
>                 URL: https://issues.apache.org/jira/browse/QPID-753
>             Project: Qpid
>          Issue Type: Bug
>          Components: Java Broker
>    Affects Versions: M2, M2.1
>            Reporter: Martin Ritchie
>            Assignee: Martin Ritchie
>             Fix For: M4
>
>
> If a virtualhost is not provided to in the ConnectionOpenBody then the resulting 'null' lookup will cause an NPE on the Java Broker. 
> 2008-01-08 18:28:01,426 DEBUG [pool-1-thread-1] protocol.AMQMinaProtocolSession (AMQMinaProtocolSession.java:207) - Frame Received: Frame channelId: 0, bodyg.apache.qpid.framing.ConnectionOpenBody[ Class: 10 Method: 40]  virtualHost: null  capabilities: null  insist: true
> 2008-01-08 18:28:01,427 ERROR [pool-1-thread-1] state.AMQStateManager (AMQStateManager.java:208) - State manager received error notification[Current State:C_NOT_OPENED]: java.lang.NullPointerException
> java.lang.NullPointerException
>         at java.util.concurrent.ConcurrentHashMap.get(ConcurrentHashMap.java:765)
>         at org.apache.qpid.server.virtualhost.VirtualHostRegistry.getVirtualHost(VirtualHostRegistry.java:52)
>         at org.apache.qpid.server.handler.ConnectionOpenMethodHandler.methodReceived(ConnectionOpenMethodHandler.java:75)
>         at org.apache.qpid.server.state.AMQStateManager.methodReceived(AMQStateManager.java:223)
>         at org.apache.qpid.server.protocol.AMQMinaProtocolSession.methodFrameReceived(AMQMinaProtocolSession.java:303)
>         at org.apache.qpid.server.protocol.AMQMinaProtocolSession.frameReceived(AMQMinaProtocolSession.java:212)
>         at org.apache.qpid.server.protocol.AMQMinaProtocolSession.dataBlockReceived(AMQMinaProtocolSession.java:191)
>         at org.apache.qpid.server.protocol.AMQPFastProtocolHandler.messageReceived(AMQPFastProtocolHandler.java:206)
>         at org.apache.mina.common.support.AbstractIoFilterChain$2.messageReceived(AbstractIoFilterChain.java:189)
>         at org.apache.mina.common.support.AbstractIoFilterChain.callNextMessageReceived(AbstractIoFilterChain.java:502)
>         at org.apache.mina.common.support.AbstractIoFilterChain.access$1000(AbstractIoFilterChain.java:52)
>         at org.apache.mina.common.support.AbstractIoFilterChain$EntryImpl$1.messageReceived(AbstractIoFilterChain.java:777)
>         at org.apache.qpid.pool.PoolingFilter.messageReceived(PoolingFilter.java:317)
>         at org.apache.mina.filter.ReferenceCountingIoFilter.messageReceived(ReferenceCountingIoFilter.java:96)
>         at org.apache.mina.common.support.AbstractIoFilterChain.callNextMessageReceived(AbstractIoFilterChain.java:502)
>         at org.apache.mina.common.support.AbstractIoFilterChain.access$1000(AbstractIoFilterChain.java:52)
>         at org.apache.mina.common.support.AbstractIoFilterChain$EntryImpl$1.messageReceived(AbstractIoFilterChain.java:777)
>         at org.apache.mina.filter.codec.support.SimpleProtocolDecoderOutput.flush(SimpleProtocolDecoderOutput.java:60)
>         at org.apache.mina.filter.codec.ProtocolCodecFilter.messageReceived(ProtocolCodecFilter.java:185)
>         at org.apache.mina.common.support.AbstractIoFilterChain.callNextMessageReceived(AbstractIoFilterChain.java:502)
>         at org.apache.mina.common.support.AbstractIoFilterChain.access$1000(AbstractIoFilterChain.java:52)
>         at org.apache.mina.common.support.AbstractIoFilterChain$EntryImpl$1.messageReceived(AbstractIoFilterChain.java:777)
>         at org.apache.qpid.pool.Event$ReceivedEvent.process(Event.java:86)
>         at org.apache.qpid.pool.Job.processAll(Job.java:109)
>         at org.apache.qpid.pool.Job.run(Job.java:147)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
>         at java.lang.Thread.run(Thread.java:619)
> 2008-01-08 18:28:01,430 INFO  [pool-1-thread-1] protocol.AMQPFastProtocolHandler (AMQPFastProtocolHandler.java:135) - Protocol Session closed for:/127.0.0.1

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.