qpid-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Keith Wall (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (QPID-6950) [Java Broker] Starting embedded broker with http-management plugin using Broker#startup(BrokerOptions) requires Thread.UncaughtExceptionHandler to be set
Date Thu, 14 Jan 2016 13:26:39 GMT

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

Keith Wall resolved QPID-6950.
------------------------------
    Resolution: Fixed

> [Java Broker] Starting embedded broker with http-management plugin using Broker#startup(BrokerOptions)
 requires Thread.UncaughtExceptionHandler to be set
> ----------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: QPID-6950
>                 URL: https://issues.apache.org/jira/browse/QPID-6950
>             Project: Qpid
>          Issue Type: Bug
>          Components: Java Broker
>    Affects Versions: qpid-java-6.0
>            Reporter: Alex Rudyy
>            Assignee: Lorenz Quack
>
> Starting embedded broker programmatically using
> {code}
> ...
> import org.apache.qpid.server.Broker;
> import org.apache.qpid.server.BrokerOptions;
>  
> ...
> BrokerOptions options = new BrokerOptions();
> ...
> Broker broker = new Broker();
> broker.startup(options);
> {code}
> with http-managment plugin requires setting of Thread.UncaughtExceptionHandler.
> Otherwise http management plugin throws an Exception on start-up about not set UncaughtExceptionHandler
> {noformat}
> Caused by: org.apache.qpid.server.util.ServerScopedRuntimeException: Failed to start
HTTP management on ports : [HttpPortImpl [id=eebcd33d-a536-40ed-b696-24a50d04e419, name=HTTP,
p
> ort=8080]]
>         at org.apache.qpid.server.management.plugin.HttpManagement.doStart(HttpManagement.java:155)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>         at java.lang.reflect.Method.invoke(Method.java:606)
>         at org.apache.qpid.server.model.AbstractConfiguredObject.attainState(AbstractConfiguredObject.java:951)
>         at org.apache.qpid.server.model.AbstractConfiguredObject.doAttainState(AbstractConfiguredObject.java:650)
>         at org.apache.qpid.server.model.AbstractConfiguredObject.access$400(AbstractConfiguredObject.java:83)
>         at org.apache.qpid.server.model.AbstractConfiguredObject$2.performAction(AbstractConfiguredObject.java:640)
>         at org.apache.qpid.server.model.AbstractConfiguredObject$2.performAction(AbstractConfiguredObject.java:629)
>         at org.apache.qpid.server.model.AbstractConfiguredObject.applyToChildren(AbstractConfiguredObject.java:777)
>         at org.apache.qpid.server.model.AbstractConfiguredObject.doAttainState(AbstractConfiguredObject.java:628)
>         at org.apache.qpid.server.model.AbstractConfiguredObject.open(AbstractConfiguredObject.java:464)
>         at org.apache.qpid.server.model.AbstractSystemConfig.activate(AbstractSystemConfig.java:238)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>         at java.lang.reflect.Method.invoke(Method.java:606)
>         at org.apache.qpid.server.model.AbstractConfiguredObject.attainState(AbstractConfiguredObject.java:951)
>         at org.apache.qpid.server.model.AbstractConfiguredObject.doAttainState(AbstractConfiguredObject.java:650)
>         at org.apache.qpid.server.model.AbstractConfiguredObject.open(AbstractConfiguredObject.java:464)
>         at org.apache.qpid.server.Broker.startupImpl(Broker.java:199)
>         at org.apache.qpid.server.Broker.access$000(Broker.java:57)
>         at org.apache.qpid.server.Broker$1.run(Broker.java:143)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at javax.security.auth.Subject.doAs(Subject.java:415)
>         at org.apache.qpid.server.Broker.startup(Broker.java:138)
>         at com.jpmorgan.qpid.mavenexample.BrokerAndClientRunner.main(BrokerAndClientRunner.java:95)
>         ... 6 more
> Caused by: java.lang.IllegalStateException: no uncaught exception handler set
>         at org.apache.qpid.server.management.plugin.filter.ExceptionHandlingFilter.init(ExceptionHandlingFilter.java:49)
>         at org.eclipse.jetty.servlet.FilterHolder.doStart(FilterHolder.java:118)
>         at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
>         at org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:768)
>         at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:265)
>         at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:717)
>         at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
>         at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:95)
>         at org.eclipse.jetty.server.Server.doStart(Server.java:282)
>         at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
>         at org.apache.qpid.server.management.plugin.HttpManagement.doStart(HttpManagement.java:150)
>         ... 33 more
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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


Mime
View raw message