You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Dejan Bosanac (JIRA)" <ji...@apache.org> on 2014/01/29 16:10:09 UTC

[jira] [Commented] (AMQ-5000) New Web Admin- jolokia error: Cannot connect to Jolokia to access this Java process with -- ACTIVEMQ_OPTS="-Dorg.apache.activemq.UseDedicatedTaskRunner=false"

    [ https://issues.apache.org/jira/browse/AMQ-5000?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13885411#comment-13885411 ] 

Dejan Bosanac commented on AMQ-5000:
------------------------------------

Hi Guilhem, can you give us some more details how do to reproduce this? Adding -Dorg.apache.activemq.UseDedicatedTaskRunner=false in ACTIVEMQ_OPTS in bin/activemq works fine. I suspect you set this as an environment variable? In that case you should also include variables necessary for jolokia/hawtio work properly in 5.9.0. Something like

ACTIVEMQ_OPTS="-Dorg.apache.activemq.UseDedicatedTaskRunner=false -Djava.util.logging.config.file=logging.properties -Dhawtio.realm=activemq -Dhawtio.role=admins -Dhawtio.rolePrincipalClasses=org.apache.activemq.jaas.GroupPrincipal -Djava.security.auth.login.config=$ACTIVEMQ_CONF/login.config"

> New Web Admin-  jolokia error: Cannot connect to Jolokia to access this Java process with  -- ACTIVEMQ_OPTS="-Dorg.apache.activemq.UseDedicatedTaskRunner=false" 
> -----------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: AMQ-5000
>                 URL: https://issues.apache.org/jira/browse/AMQ-5000
>             Project: ActiveMQ
>          Issue Type: Bug
>    Affects Versions: 5.9.0
>            Reporter: Guilhem RAMBAL
>            Assignee: Dejan Bosanac
>
> java.lang.SecurityException: Impossible de trouver une configuration de connexion
> 	at com.sun.security.auth.login.ConfigFile.<init>(ConfigFile.java:93)
> 	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
> 	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
> 	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
> 	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
> 	at java.lang.Class.newInstance0(Class.java:357)
> 	at java.lang.Class.newInstance(Class.java:310)
> 	at javax.security.auth.login.Configuration$3.run(Configuration.java:247)
> 	at java.security.AccessController.doPrivileged(Native Method)
> 	at javax.security.auth.login.Configuration.getConfiguration(Configuration.java:242)
> 	at javax.security.auth.login.LoginContext$1.run(LoginContext.java:237)
> 	at java.security.AccessController.doPrivileged(Native Method)
> 	at javax.security.auth.login.LoginContext.init(LoginContext.java:234)
> 	at javax.security.auth.login.LoginContext.<init>(LoginContext.java:367)
> 	at javax.security.auth.login.LoginContext.<init>(LoginContext.java:444)
> 	at io.hawt.system.Authenticator.doAuthenticate(Authenticator.java:99)
> 	at io.hawt.system.Authenticator.authenticate(Authenticator.java:76)
> 	at io.hawt.web.AuthenticationFilter.doFilter(AuthenticationFilter.java:84)
> 	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1291)
> 	at io.hawt.web.CORSFilter.doFilter(CORSFilter.java:42)
> 	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1291)
> 	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:443)
> 	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)
> 	at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:532)
> 	at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:227)
> 	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1044)
> 	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:372)
> 	at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:189)
> 	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:978)
> 	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
> 	at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:154)
> 	at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:532)
> 	at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:154)
> 	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
> 	at org.eclipse.jetty.server.Server.handle(Server.java:367)
> 	at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:486)
> 	at org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:937)
> 	at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:998)
> 	at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:861)
> 	at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:240)
> 	at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)
> 	at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:628)
> 	at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52)
> 	at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)
> 	at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)
> 	at java.lang.Thread.run(Thread.java:662)
> Caused by: java.io.IOException: Impossible de trouver une configuration de connexion
> 	at com.sun.security.auth.login.ConfigFile.init(ConfigFile.java:250)
> 	at com.sun.security.auth.login.ConfigFile.<init>(ConfigFile.java:91)
> 	... 45 more
> Caused by:
> java.io.IOException: Impossible de trouver une configuration de connexion
> 	at com.sun.security.auth.login.ConfigFile.init(ConfigFile.java:250)
> 	at com.sun.security.auth.login.ConfigFile.<init>(ConfigFile.java:91)
> 	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
> 	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
> 	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
> 	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
> 	at java.lang.Class.newInstance0(Class.java:357)
> 	at java.lang.Class.newInstance(Class.java:310)
> 	at javax.security.auth.login.Configuration$3.run(Configuration.java:247)
> 	at java.security.AccessController.doPrivileged(Native Method)
> 	at javax.security.auth.login.Configuration.getConfiguration(Configuration.java:242)
> 	at javax.security.auth.login.LoginContext$1.run(LoginContext.java:237)
> 	at java.security.AccessController.doPrivileged(Native Method)
> 	at javax.security.auth.login.LoginContext.init(LoginContext.java:234)
> 	at javax.security.auth.login.LoginContext.<init>(LoginContext.java:367)
> 	at javax.security.auth.login.LoginContext.<init>(LoginContext.java:444)
> 	at io.hawt.system.Authenticator.doAuthenticate(Authenticator.java:99)
> 	at io.hawt.system.Authenticator.authenticate(Authenticator.java:76)
> 	at io.hawt.web.AuthenticationFilter.doFilter(AuthenticationFilter.java:84)
> 	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1291)
> 	at io.hawt.web.CORSFilter.doFilter(CORSFilter.java:42)
> 	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1291)
> 	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:443)
> 	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)
> 	at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:532)
> 	at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:227)
> 	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1044)
> 	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:372)
> 	at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:189)
> 	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:978)
> 	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
> 	at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:154)
> 	at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:532)
> 	at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:154)
> 	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
> 	at org.eclipse.jetty.server.Server.handle(Server.java:367)
> 	at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:486)
> 	at org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:937)
> 	at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:998)
> 	at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:861)
> 	at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:240)
> 	at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)
> 	at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:628)
> 	at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52)
> 	at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)
> 	at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)
> 	at java.lang.Thread.run(Thread.java:662)
> Powered by Jetty://



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)