Alex Rudyy created QPID-8137:
--------------------------------

             Summary: [Broker-J] NPE is reported into broker logs on broker 
shutdown/restart when AMQP port is in ERRORED state due to port being bound by 
other process
                 Key: QPID-8137
                 URL: https://issues.apache.org/jira/browse/QPID-8137
             Project: Qpid
          Issue Type: Bug
          Components: Broker-J
            Reporter: Alex Rudyy


The following NPE is reported into broker logs on broker shutdown/restart when 
AMQP port is in ERRORED state due to port being bound by other process:
{noformat}
java.lang.NullPointerException: null
        at 
org.apache.qpid.server.transport.TCPandSSLTransport.getAcceptingPort(TCPandSSLTransport.java:86)
        at 
org.apache.qpid.server.model.port.AmqpPortImpl.closeTransport(AmqpPortImpl.java:309)
        at 
org.apache.qpid.server.model.port.AmqpPortImpl.onClose(AmqpPortImpl.java:285)
        at 
org.apache.qpid.server.model.AbstractConfiguredObject$5$2.call(AbstractConfiguredObject.java:791)
        at 
org.apache.qpid.server.model.AbstractConfiguredObject$5$2.call(AbstractConfiguredObject.java:787)
        at 
org.apache.qpid.server.model.AbstractConfiguredObject$21.onSuccess(AbstractConfiguredObject.java:2745)
        at 
org.apache.qpid.server.model.AbstractConfiguredObject$24$1.run(AbstractConfiguredObject.java:2880)
        at 
org.apache.qpid.server.model.AbstractConfiguredObject$24$1.run(AbstractConfiguredObject.java:2876)
        at java.security.AccessController.doPrivileged(Native Method)
        at javax.security.auth.Subject.doAs(Subject.java:360)
        at 
org.apache.qpid.server.model.AbstractConfiguredObject$24.onSuccess(AbstractConfiguredObject.java:2875)
        at 
com.google.common.util.concurrent.Futures$CallbackListener.run(Futures.java:1237)
        at 
org.apache.qpid.server.configuration.updater.TaskExecutorImpl$ImmediateIfSameThreadExecutor.execute(TaskExecutorImpl.java:400)
        at 
org.apache.qpid.server.configuration.updater.TaskExecutorImpl.execute(TaskExecutorImpl.java:183)
        at 
com.google.common.util.concurrent.AbstractFuture.executeListener(AbstractFuture.java:911)
        at 
com.google.common.util.concurrent.AbstractFuture.addListener(AbstractFuture.java:645)
        at 
com.google.common.util.concurrent.Futures.addCallback(Futures.java:1209)
        at 
org.apache.qpid.server.model.AbstractConfiguredObject.addFutureCallback(AbstractConfiguredObject.java:2870)
        at 
org.apache.qpid.server.model.AbstractConfiguredObject.doAfter(AbstractConfiguredObject.java:2738)
        at 
org.apache.qpid.server.model.AbstractConfiguredObject$ChainedSettableFuture.then(AbstractConfiguredObject.java:2714)
        at 
org.apache.qpid.server.model.AbstractConfiguredObject$5.execute(AbstractConfiguredObject.java:786)
        at 
org.apache.qpid.server.model.AbstractConfiguredObject$5.execute(AbstractConfiguredObject.java:766)
        at 
org.apache.qpid.server.model.AbstractConfiguredObject$2.execute(AbstractConfiguredObject.java:639)
        at 
org.apache.qpid.server.model.AbstractConfiguredObject$2.execute(AbstractConfiguredObject.java:632)
        at 
org.apache.qpid.server.configuration.updater.TaskExecutorImpl$TaskLoggingWrapper.execute(TaskExecutorImpl.java:248)
        at 
org.apache.qpid.server.configuration.updater.TaskExecutorImpl.submitWrappedTask(TaskExecutorImpl.java:165)
        at 
org.apache.qpid.server.configuration.updater.TaskExecutorImpl.submit(TaskExecutorImpl.java:153)
        at 
org.apache.qpid.server.model.AbstractConfiguredObject.doOnConfigThread(AbstractConfiguredObject.java:631)
        at 
org.apache.qpid.server.model.AbstractConfiguredObject.closeAsync(AbstractConfiguredObject.java:765)
        at 
org.apache.qpid.server.model.AbstractConfiguredObject$3.performAction(AbstractConfiguredObject.java:707)
        at 
org.apache.qpid.server.model.AbstractConfiguredObject$3.performAction(AbstractConfiguredObject.java:703)
        at 
org.apache.qpid.server.model.AbstractConfiguredObject.applyToChildren(AbstractConfiguredObject.java:1313)
        at 
org.apache.qpid.server.model.AbstractConfiguredObject.closeChildren(AbstractConfiguredObject.java:702)
        at 
org.apache.qpid.server.model.AbstractConfiguredObject$5$3.call(AbstractConfiguredObject.java:784)
        at 
org.apache.qpid.server.model.AbstractConfiguredObject$5$3.call(AbstractConfiguredObject.java:780)
        at 
org.apache.qpid.server.model.AbstractConfiguredObject$21.onSuccess(AbstractConfiguredObject.java:2745)
{noformat}

Broker process hangs when a restart operation is invoked via management 
interfaces. The issue can be work around by shutting down (or killing) the 
broker and starting it again.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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

Reply via email to