You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Alexey Markevich (Created) (JIRA)" <ji...@apache.org> on 2011/12/13 12:57:30 UTC

[jira] [Created] (AMQ-3633) [OSGi] activemq-web-console: exception after restart container

[OSGi] activemq-web-console: exception after restart container
--------------------------------------------------------------

                 Key: AMQ-3633
                 URL: https://issues.apache.org/jira/browse/AMQ-3633
             Project: ActiveMQ
          Issue Type: Bug
    Affects Versions: 5.5.0
         Environment: karaf 2.2.4
            Reporter: Alexey Markevich
            Priority: Minor


I installed activemq-web-console feature as described in [1].
Afer restart container there is exception in console:

2011-12-13 14:51:32,906 [.ops4j.pax.web)] INFO  XBeanXmlBeanDefinitionReader   - Loading XML bean definitions from ServletContext resource [/WEB-INF/activemq.xml]
Exception in thread "JMX Connector Thread [service:jmx:rmi://localhost:44444/jndi/rmi://localhost:1099/karaf-root]" java.lang.RuntimeException: Could not start JMX connector server
        at org.apache.karaf.management.ConnectorServerFactory$1.run(ConnectorServerFactory.java:234)
Caused by: java.io.IOException: Cannot bind to URL [rmi://localhost:1099/karaf-root]: javax.naming.CommunicationException [Root exception is java.rmi.ServerException: RemoteException occurred in serve
r thread; nested exception is:
        java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
        java.lang.ClassNotFoundException: javax.management.remote.rmi.RMIServerImpl_Stub not found by org.apache.activemq.activemq-web-console [78] (no security manager: RMI class loader disabled)]
        at javax.management.remote.rmi.RMIConnectorServer.newIOException(RMIConnectorServer.java:804)
        at javax.management.remote.rmi.RMIConnectorServer.start(RMIConnectorServer.java:417)
        at org.apache.karaf.management.ConnectorServerFactory$1.run(ConnectorServerFactory.java:232)
Caused by: javax.naming.CommunicationException [Root exception is java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
        java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
        java.lang.ClassNotFoundException: javax.management.remote.rmi.RMIServerImpl_Stub not found by org.apache.activemq.activemq-web-console [78] (no security manager: RMI class loader disabled)]
        at com.sun.jndi.rmi.registry.RegistryContext.bind(RegistryContext.java:126)
        at com.sun.jndi.toolkit.url.GenericURLContext.bind(GenericURLContext.java:208)
        at javax.naming.InitialContext.bind(InitialContext.java:400)
        at javax.management.remote.rmi.RMIConnectorServer.bind(RMIConnectorServer.java:625)
        at javax.management.remote.rmi.RMIConnectorServer.start(RMIConnectorServer.java:412)
        ... 1 more
Caused by: java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
        java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
        java.lang.ClassNotFoundException: javax.management.remote.rmi.RMIServerImpl_Stub not found by org.apache.activemq.activemq-web-console [78] (no security manager: RMI class loader disabled)
        at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:400)
        at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:248)
        at sun.rmi.transport.Transport$1.run(Transport.java:159)
        at java.security.AccessController.doPrivileged(Native Method)
        at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
        at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)
        at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
        at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
        at java.lang.Thread.run(Thread.java:662)
        at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:255)
        at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:233)
        at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:359)
        at sun.rmi.registry.RegistryImpl_Stub.bind(Unknown Source)
        at com.sun.jndi.rmi.registry.RegistryContext.bind(RegistryContext.java:120)
        ... 5 more
Caused by: java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
        java.lang.ClassNotFoundException: javax.management.remote.rmi.RMIServerImpl_Stub not found by org.apache.activemq.activemq-web-console [78] (no security manager: RMI class loader disabled)
        at sun.rmi.registry.RegistryImpl_Skel.dispatch(Unknown Source)
        at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:390)
        at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:248)
        at sun.rmi.transport.Transport$1.run(Transport.java:159)
        at java.security.AccessController.doPrivileged(Native Method)
        at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
        at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)
        at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
        at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
        at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.ClassNotFoundException: javax.management.remote.rmi.RMIServerImpl_Stub not found by org.apache.activemq.activemq-web-console [78] (no security manager: RMI class loader disabled)
        at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:373)
        at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:163)
        at java.rmi.server.RMIClassLoader$2.loadClass(RMIClassLoader.java:620)
        at java.rmi.server.RMIClassLoader.loadClass(RMIClassLoader.java:247)
        at sun.rmi.server.MarshalInputStream.resolveClass(MarshalInputStream.java:197)
        at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1574)
        at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1495)
        at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1731)
        at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328)
        at java.io.ObjectInputStream.readObject(ObjectInputStream.java:350)
        ... 12 more

1. http://activemq.apache.org/osgi-integration.html

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (AMQ-3633) [OSGi] activemq-web-console: exception after restart container

Posted by "Gareth Collins (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AMQ-3633?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13482888#comment-13482888 ] 

Gareth Collins commented on AMQ-3633:
-------------------------------------

Are we sure this is fixed? I just reproduced on activemq 5.7.0 with karaf 2.3.0:



java.io.IOException: java.lang.RuntimeException: java.io.IOException: Failed to retrieve RMIServer stub: javax.naming.CommunicationException [Root exception is java.rmi.UnmarshalException: error unmarshalling return; nested exception is: 
	java.lang.ClassNotFoundException: javax.management.remote.rmi.RMIServerImpl_Stub (no security manager: RMI class loader disabled)]
	at org.apache.activemq.web.filter.ApplicationContextFilter.doFilter(ApplicationContextFilter.java:92)[117:org.apache.activemq.activemq-web-console:5.7.0]
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1300)[78:org.eclipse.jetty.servlet:7.6.7.v20120910]
	at com.opensymphony.sitemesh.webapp.SiteMeshFilter.obtainContent(SiteMeshFilter.java:129)[117:org.apache.activemq.activemq-web-console:5.7.0]
	at com.opensymphony.sitemesh.webapp.SiteMeshFilter.doFilter(SiteMeshFilter.java:77)[117:org.apache.activemq.activemq-web-console:5.7.0]
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1300)[78:org.eclipse.jetty.servlet:7.6.7.v20120910]
	at org.ops4j.pax.web.service.internal.WelcomeFilesFilter.doFilter(WelcomeFilesFilter.java:193)[87:org.ops4j.pax.web.pax-web-runtime:1.1.3]
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1300)[78:org.eclipse.jetty.servlet:7.6.7.v20120910]
	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:445)[78:org.eclipse.jetty.servlet:7.6.7.v20120910]
	at org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.doHandle(HttpServiceServletHandler.java:70)[88:org.ops4j.pax.web.pax-web-jetty:1.1.3]
	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)[76:org.eclipse.jetty.server:7.6.7.v20120910]
	at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:559)[77:org.eclipse.jetty.security:7.6.7.v20120910]
	at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:227)[76:org.eclipse.jetty.server:7.6.7.v20120910]
	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1038)[76:org.eclipse.jetty.server:7.6.7.v20120910]
	at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doHandle(HttpServiceContext.java:117)[88:org.ops4j.pax.web.pax-web-jetty:1.1.3]
	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:374)[78:org.eclipse.jetty.servlet:7.6.7.v20120910]
	at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:189)[76:org.eclipse.jetty.server:7.6.7.v20120910]
	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:972)[76:org.eclipse.jetty.server:7.6.7.v20120910]
	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)[76:org.eclipse.jetty.server:7.6.7.v20120910]
	at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:74)[88:org.ops4j.pax.web.pax-web-jetty:1.1.3]
	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)[76:org.eclipse.jetty.server:7.6.7.v20120910]
	at org.eclipse.jetty.server.Server.handle(Server.java:359)[76:org.eclipse.jetty.server:7.6.7.v20120910]
	at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:483)[76:org.eclipse.jetty.server:7.6.7.v20120910]
	at org.eclipse.jetty.server.BlockingHttpConnection.handleRequest(BlockingHttpConnection.java:53)[76:org.eclipse.jetty.server:7.6.7.v20120910]
	at org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:920)[76:org.eclipse.jetty.server:7.6.7.v20120910]
	at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:982)[76:org.eclipse.jetty.server:7.6.7.v20120910]
	at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:635)[72:org.eclipse.jetty.http:7.6.7.v20120910]
	at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)[72:org.eclipse.jetty.http:7.6.7.v20120910]
	at org.eclipse.jetty.server.BlockingHttpConnection.handle(BlockingHttpConnection.java:72)[76:org.eclipse.jetty.server:7.6.7.v20120910]
	at org.eclipse.jetty.server.nio.BlockingChannelConnector$BlockingChannelEndPoint.run(BlockingChannelConnector.java:298)[76:org.eclipse.jetty.server:7.6.7.v20120910]
	at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)[70:org.eclipse.jetty.util:7.6.7.v20120910]
	at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)[70:org.eclipse.jetty.util:7.6.7.v20120910]
	at java.lang.Thread.run(Unknown Source)[:1.7.0_05]
Caused by: java.lang.RuntimeException: java.io.IOException: Failed to retrieve RMIServer stub: javax.naming.CommunicationException [Root exception is java.rmi.UnmarshalException: error unmarshalling return; nested exception is: 
	java.lang.ClassNotFoundException: javax.management.remote.rmi.RMIServerImpl_Stub (no security manager: RMI class loader disabled)]
	at org.apache.activemq.web.RemoteJMXBrokerFacade.createConnection(RemoteJMXBrokerFacade.java:165)[117:org.apache.activemq.activemq-web-console:5.7.0]
	at org.apache.activemq.web.RemoteJMXBrokerFacade.getMBeanServerConnection(RemoteJMXBrokerFacade.java:114)[117:org.apache.activemq.activemq-web-console:5.7.0]
	at org.apache.activemq.web.RemoteJMXBrokerFacade.getBrokerAdmin(RemoteJMXBrokerFacade.java:88)[117:org.apache.activemq.activemq-web-console:5.7.0]
	at org.apache.activemq.web.BrokerFacadeSupport.isSlave(BrokerFacadeSupport.java:231)[117:org.apache.activemq.activemq-web-console:5.7.0]
	at org.apache.activemq.web.filter.ApplicationContextFilter.doFilter(ApplicationContextFilter.java:86)[117:org.apache.activemq.activemq-web-console:5.7.0]
	... 31 more
Caused by: java.io.IOException: Failed to retrieve RMIServer stub: javax.naming.CommunicationException [Root exception is java.rmi.UnmarshalException: error unmarshalling return; nested exception is: 
	java.lang.ClassNotFoundException: javax.management.remote.rmi.RMIServerImpl_Stub (no security manager: RMI class loader disabled)]
	at javax.management.remote.rmi.RMIConnector.connect(Unknown Source)[:1.7.0_05]
	at javax.management.remote.JMXConnectorFactory.connect(Unknown Source)[:1.7.0_05]
	at org.apache.activemq.web.RemoteJMXBrokerFacade.createConnection(RemoteJMXBrokerFacade.java:146)[117:org.apache.activemq.activemq-web-console:5.7.0]
	... 35 more
Caused by: javax.naming.CommunicationException [Root exception is java.rmi.UnmarshalException: error unmarshalling return; nested exception is: 
	java.lang.ClassNotFoundException: javax.management.remote.rmi.RMIServerImpl_Stub (no security manager: RMI class loader disabled)]
	at com.sun.jndi.rmi.registry.RegistryContext.lookup(Unknown Source)[:1.7.0_05]
	at com.sun.jndi.toolkit.url.GenericURLContext.lookup(Unknown Source)[:1.7.0_05]
	at javax.naming.InitialContext.lookup(Unknown Source)[:1.7.0_05]
	at javax.management.remote.rmi.RMIConnector.findRMIServerJNDI(Unknown Source)[:1.7.0_05]
	at javax.management.remote.rmi.RMIConnector.findRMIServer(Unknown Source)[:1.7.0_05]
	... 38 more
Caused by: java.rmi.UnmarshalException: error unmarshalling return; nested exception is: 
	java.lang.ClassNotFoundException: javax.management.remote.rmi.RMIServerImpl_Stub (no security manager: RMI class loader disabled)
	at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)[:1.7.0_05]
	... 43 more
Caused by: java.lang.ClassNotFoundException: javax.management.remote.rmi.RMIServerImpl_Stub (no security manager: RMI class loader disabled)
	at sun.rmi.server.LoaderHandler.loadClass(Unknown Source)[:1.7.0_05]
	at sun.rmi.server.LoaderHandler.loadClass(Unknown Source)[:1.7.0_05]
	at java.rmi.server.RMIClassLoader$2.loadClass(Unknown Source)[:1.7.0_05]
	at java.rmi.server.RMIClassLoader.loadClass(Unknown Source)[:1.7.0_05]
	at sun.rmi.server.MarshalInputStream.resolveClass(Unknown Source)[:1.7.0_05]
	at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source)[:1.7.0_05]
	at java.io.ObjectInputStream.readClassDesc(Unknown Source)[:1.7.0_05]
	at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)[:1.7.0_05]
	at java.io.ObjectInputStream.readObject0(Unknown Source)[:1.7.0_05]
	at java.io.ObjectInputStream.readObject(Unknown Source)[:1.7.0_05]
	... 44 more

                
> [OSGi] activemq-web-console: exception after restart container
> --------------------------------------------------------------
>
>                 Key: AMQ-3633
>                 URL: https://issues.apache.org/jira/browse/AMQ-3633
>             Project: ActiveMQ
>          Issue Type: Bug
>    Affects Versions: 5.5.0
>         Environment: karaf 2.2.4
>            Reporter: Alexey Markevich
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 5.7.0
>
>
> I installed activemq-web-console feature as described in [1].
> Afer restart container there is exception in console:
> 2011-12-13 14:51:32,906 [.ops4j.pax.web)] INFO  XBeanXmlBeanDefinitionReader   - Loading XML bean definitions from ServletContext resource [/WEB-INF/activemq.xml]
> Exception in thread "JMX Connector Thread [service:jmx:rmi://localhost:44444/jndi/rmi://localhost:1099/karaf-root]" java.lang.RuntimeException: Could not start JMX connector server
>         at org.apache.karaf.management.ConnectorServerFactory$1.run(ConnectorServerFactory.java:234)
> Caused by: java.io.IOException: Cannot bind to URL [rmi://localhost:1099/karaf-root]: javax.naming.CommunicationException [Root exception is java.rmi.ServerException: RemoteException occurred in serve
> r thread; nested exception is:
>         java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
>         java.lang.ClassNotFoundException: javax.management.remote.rmi.RMIServerImpl_Stub not found by org.apache.activemq.activemq-web-console [78] (no security manager: RMI class loader disabled)]
>         at javax.management.remote.rmi.RMIConnectorServer.newIOException(RMIConnectorServer.java:804)
>         at javax.management.remote.rmi.RMIConnectorServer.start(RMIConnectorServer.java:417)
>         at org.apache.karaf.management.ConnectorServerFactory$1.run(ConnectorServerFactory.java:232)
> Caused by: javax.naming.CommunicationException [Root exception is java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
>         java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
>         java.lang.ClassNotFoundException: javax.management.remote.rmi.RMIServerImpl_Stub not found by org.apache.activemq.activemq-web-console [78] (no security manager: RMI class loader disabled)]
>         at com.sun.jndi.rmi.registry.RegistryContext.bind(RegistryContext.java:126)
>         at com.sun.jndi.toolkit.url.GenericURLContext.bind(GenericURLContext.java:208)
>         at javax.naming.InitialContext.bind(InitialContext.java:400)
>         at javax.management.remote.rmi.RMIConnectorServer.bind(RMIConnectorServer.java:625)
>         at javax.management.remote.rmi.RMIConnectorServer.start(RMIConnectorServer.java:412)
>         ... 1 more
> Caused by: java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
>         java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
>         java.lang.ClassNotFoundException: javax.management.remote.rmi.RMIServerImpl_Stub not found by org.apache.activemq.activemq-web-console [78] (no security manager: RMI class loader disabled)
>         at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:400)
>         at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:248)
>         at sun.rmi.transport.Transport$1.run(Transport.java:159)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
>         at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)
>         at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
>         at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>         at java.lang.Thread.run(Thread.java:662)
>         at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:255)
>         at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:233)
>         at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:359)
>         at sun.rmi.registry.RegistryImpl_Stub.bind(Unknown Source)
>         at com.sun.jndi.rmi.registry.RegistryContext.bind(RegistryContext.java:120)
>         ... 5 more
> Caused by: java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
>         java.lang.ClassNotFoundException: javax.management.remote.rmi.RMIServerImpl_Stub not found by org.apache.activemq.activemq-web-console [78] (no security manager: RMI class loader disabled)
>         at sun.rmi.registry.RegistryImpl_Skel.dispatch(Unknown Source)
>         at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:390)
>         at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:248)
>         at sun.rmi.transport.Transport$1.run(Transport.java:159)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
>         at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)
>         at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
>         at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>         at java.lang.Thread.run(Thread.java:662)
> Caused by: java.lang.ClassNotFoundException: javax.management.remote.rmi.RMIServerImpl_Stub not found by org.apache.activemq.activemq-web-console [78] (no security manager: RMI class loader disabled)
>         at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:373)
>         at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:163)
>         at java.rmi.server.RMIClassLoader$2.loadClass(RMIClassLoader.java:620)
>         at java.rmi.server.RMIClassLoader.loadClass(RMIClassLoader.java:247)
>         at sun.rmi.server.MarshalInputStream.resolveClass(MarshalInputStream.java:197)
>         at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1574)
>         at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1495)
>         at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1731)
>         at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328)
>         at java.io.ObjectInputStream.readObject(ObjectInputStream.java:350)
>         ... 12 more
> 1. http://activemq.apache.org/osgi-integration.html

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (AMQ-3633) [OSGi] activemq-web-console: exception after restart container

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AMQ-3633?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13458668#comment-13458668 ] 

Claus Ibsen commented on AMQ-3633:
----------------------------------

I think the JMX has been fixed on trunk. Can you try with 5.7 when its released. Or the 5.7-SNAPSHOT.

                
> [OSGi] activemq-web-console: exception after restart container
> --------------------------------------------------------------
>
>                 Key: AMQ-3633
>                 URL: https://issues.apache.org/jira/browse/AMQ-3633
>             Project: ActiveMQ
>          Issue Type: Bug
>    Affects Versions: 5.5.0
>         Environment: karaf 2.2.4
>            Reporter: Alexey Markevich
>            Priority: Minor
>             Fix For: 5.7.0
>
>
> I installed activemq-web-console feature as described in [1].
> Afer restart container there is exception in console:
> 2011-12-13 14:51:32,906 [.ops4j.pax.web)] INFO  XBeanXmlBeanDefinitionReader   - Loading XML bean definitions from ServletContext resource [/WEB-INF/activemq.xml]
> Exception in thread "JMX Connector Thread [service:jmx:rmi://localhost:44444/jndi/rmi://localhost:1099/karaf-root]" java.lang.RuntimeException: Could not start JMX connector server
>         at org.apache.karaf.management.ConnectorServerFactory$1.run(ConnectorServerFactory.java:234)
> Caused by: java.io.IOException: Cannot bind to URL [rmi://localhost:1099/karaf-root]: javax.naming.CommunicationException [Root exception is java.rmi.ServerException: RemoteException occurred in serve
> r thread; nested exception is:
>         java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
>         java.lang.ClassNotFoundException: javax.management.remote.rmi.RMIServerImpl_Stub not found by org.apache.activemq.activemq-web-console [78] (no security manager: RMI class loader disabled)]
>         at javax.management.remote.rmi.RMIConnectorServer.newIOException(RMIConnectorServer.java:804)
>         at javax.management.remote.rmi.RMIConnectorServer.start(RMIConnectorServer.java:417)
>         at org.apache.karaf.management.ConnectorServerFactory$1.run(ConnectorServerFactory.java:232)
> Caused by: javax.naming.CommunicationException [Root exception is java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
>         java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
>         java.lang.ClassNotFoundException: javax.management.remote.rmi.RMIServerImpl_Stub not found by org.apache.activemq.activemq-web-console [78] (no security manager: RMI class loader disabled)]
>         at com.sun.jndi.rmi.registry.RegistryContext.bind(RegistryContext.java:126)
>         at com.sun.jndi.toolkit.url.GenericURLContext.bind(GenericURLContext.java:208)
>         at javax.naming.InitialContext.bind(InitialContext.java:400)
>         at javax.management.remote.rmi.RMIConnectorServer.bind(RMIConnectorServer.java:625)
>         at javax.management.remote.rmi.RMIConnectorServer.start(RMIConnectorServer.java:412)
>         ... 1 more
> Caused by: java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
>         java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
>         java.lang.ClassNotFoundException: javax.management.remote.rmi.RMIServerImpl_Stub not found by org.apache.activemq.activemq-web-console [78] (no security manager: RMI class loader disabled)
>         at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:400)
>         at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:248)
>         at sun.rmi.transport.Transport$1.run(Transport.java:159)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
>         at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)
>         at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
>         at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>         at java.lang.Thread.run(Thread.java:662)
>         at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:255)
>         at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:233)
>         at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:359)
>         at sun.rmi.registry.RegistryImpl_Stub.bind(Unknown Source)
>         at com.sun.jndi.rmi.registry.RegistryContext.bind(RegistryContext.java:120)
>         ... 5 more
> Caused by: java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
>         java.lang.ClassNotFoundException: javax.management.remote.rmi.RMIServerImpl_Stub not found by org.apache.activemq.activemq-web-console [78] (no security manager: RMI class loader disabled)
>         at sun.rmi.registry.RegistryImpl_Skel.dispatch(Unknown Source)
>         at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:390)
>         at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:248)
>         at sun.rmi.transport.Transport$1.run(Transport.java:159)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
>         at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)
>         at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
>         at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>         at java.lang.Thread.run(Thread.java:662)
> Caused by: java.lang.ClassNotFoundException: javax.management.remote.rmi.RMIServerImpl_Stub not found by org.apache.activemq.activemq-web-console [78] (no security manager: RMI class loader disabled)
>         at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:373)
>         at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:163)
>         at java.rmi.server.RMIClassLoader$2.loadClass(RMIClassLoader.java:620)
>         at java.rmi.server.RMIClassLoader.loadClass(RMIClassLoader.java:247)
>         at sun.rmi.server.MarshalInputStream.resolveClass(MarshalInputStream.java:197)
>         at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1574)
>         at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1495)
>         at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1731)
>         at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328)
>         at java.io.ObjectInputStream.readObject(ObjectInputStream.java:350)
>         ... 12 more
> 1. http://activemq.apache.org/osgi-integration.html

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Resolved] (AMQ-3633) [OSGi] activemq-web-console: exception after restart container

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AMQ-3633?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen resolved AMQ-3633.
------------------------------

       Resolution: Fixed
    Fix Version/s: 5.7.0
         Assignee: Claus Ibsen
    
> [OSGi] activemq-web-console: exception after restart container
> --------------------------------------------------------------
>
>                 Key: AMQ-3633
>                 URL: https://issues.apache.org/jira/browse/AMQ-3633
>             Project: ActiveMQ
>          Issue Type: Bug
>    Affects Versions: 5.5.0
>         Environment: karaf 2.2.4
>            Reporter: Alexey Markevich
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 5.7.0
>
>
> I installed activemq-web-console feature as described in [1].
> Afer restart container there is exception in console:
> 2011-12-13 14:51:32,906 [.ops4j.pax.web)] INFO  XBeanXmlBeanDefinitionReader   - Loading XML bean definitions from ServletContext resource [/WEB-INF/activemq.xml]
> Exception in thread "JMX Connector Thread [service:jmx:rmi://localhost:44444/jndi/rmi://localhost:1099/karaf-root]" java.lang.RuntimeException: Could not start JMX connector server
>         at org.apache.karaf.management.ConnectorServerFactory$1.run(ConnectorServerFactory.java:234)
> Caused by: java.io.IOException: Cannot bind to URL [rmi://localhost:1099/karaf-root]: javax.naming.CommunicationException [Root exception is java.rmi.ServerException: RemoteException occurred in serve
> r thread; nested exception is:
>         java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
>         java.lang.ClassNotFoundException: javax.management.remote.rmi.RMIServerImpl_Stub not found by org.apache.activemq.activemq-web-console [78] (no security manager: RMI class loader disabled)]
>         at javax.management.remote.rmi.RMIConnectorServer.newIOException(RMIConnectorServer.java:804)
>         at javax.management.remote.rmi.RMIConnectorServer.start(RMIConnectorServer.java:417)
>         at org.apache.karaf.management.ConnectorServerFactory$1.run(ConnectorServerFactory.java:232)
> Caused by: javax.naming.CommunicationException [Root exception is java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
>         java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
>         java.lang.ClassNotFoundException: javax.management.remote.rmi.RMIServerImpl_Stub not found by org.apache.activemq.activemq-web-console [78] (no security manager: RMI class loader disabled)]
>         at com.sun.jndi.rmi.registry.RegistryContext.bind(RegistryContext.java:126)
>         at com.sun.jndi.toolkit.url.GenericURLContext.bind(GenericURLContext.java:208)
>         at javax.naming.InitialContext.bind(InitialContext.java:400)
>         at javax.management.remote.rmi.RMIConnectorServer.bind(RMIConnectorServer.java:625)
>         at javax.management.remote.rmi.RMIConnectorServer.start(RMIConnectorServer.java:412)
>         ... 1 more
> Caused by: java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
>         java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
>         java.lang.ClassNotFoundException: javax.management.remote.rmi.RMIServerImpl_Stub not found by org.apache.activemq.activemq-web-console [78] (no security manager: RMI class loader disabled)
>         at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:400)
>         at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:248)
>         at sun.rmi.transport.Transport$1.run(Transport.java:159)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
>         at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)
>         at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
>         at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>         at java.lang.Thread.run(Thread.java:662)
>         at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:255)
>         at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:233)
>         at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:359)
>         at sun.rmi.registry.RegistryImpl_Stub.bind(Unknown Source)
>         at com.sun.jndi.rmi.registry.RegistryContext.bind(RegistryContext.java:120)
>         ... 5 more
> Caused by: java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
>         java.lang.ClassNotFoundException: javax.management.remote.rmi.RMIServerImpl_Stub not found by org.apache.activemq.activemq-web-console [78] (no security manager: RMI class loader disabled)
>         at sun.rmi.registry.RegistryImpl_Skel.dispatch(Unknown Source)
>         at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:390)
>         at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:248)
>         at sun.rmi.transport.Transport$1.run(Transport.java:159)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
>         at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)
>         at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
>         at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>         at java.lang.Thread.run(Thread.java:662)
> Caused by: java.lang.ClassNotFoundException: javax.management.remote.rmi.RMIServerImpl_Stub not found by org.apache.activemq.activemq-web-console [78] (no security manager: RMI class loader disabled)
>         at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:373)
>         at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:163)
>         at java.rmi.server.RMIClassLoader$2.loadClass(RMIClassLoader.java:620)
>         at java.rmi.server.RMIClassLoader.loadClass(RMIClassLoader.java:247)
>         at sun.rmi.server.MarshalInputStream.resolveClass(MarshalInputStream.java:197)
>         at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1574)
>         at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1495)
>         at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1731)
>         at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328)
>         at java.io.ObjectInputStream.readObject(ObjectInputStream.java:350)
>         ... 12 more
> 1. http://activemq.apache.org/osgi-integration.html

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (AMQ-3633) [OSGi] activemq-web-console: exception after restart container

Posted by "Gareth Collins (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AMQ-3633?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13503361#comment-13503361 ] 

Gareth Collins commented on AMQ-3633:
-------------------------------------

One additional thing to note - it works fine with equinox 3.6 but fails with equinox 3.8.
                
> [OSGi] activemq-web-console: exception after restart container
> --------------------------------------------------------------
>
>                 Key: AMQ-3633
>                 URL: https://issues.apache.org/jira/browse/AMQ-3633
>             Project: ActiveMQ
>          Issue Type: Bug
>    Affects Versions: 5.5.0
>         Environment: karaf 2.2.4
>            Reporter: Alexey Markevich
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 5.7.0
>
>
> I installed activemq-web-console feature as described in [1].
> Afer restart container there is exception in console:
> 2011-12-13 14:51:32,906 [.ops4j.pax.web)] INFO  XBeanXmlBeanDefinitionReader   - Loading XML bean definitions from ServletContext resource [/WEB-INF/activemq.xml]
> Exception in thread "JMX Connector Thread [service:jmx:rmi://localhost:44444/jndi/rmi://localhost:1099/karaf-root]" java.lang.RuntimeException: Could not start JMX connector server
>         at org.apache.karaf.management.ConnectorServerFactory$1.run(ConnectorServerFactory.java:234)
> Caused by: java.io.IOException: Cannot bind to URL [rmi://localhost:1099/karaf-root]: javax.naming.CommunicationException [Root exception is java.rmi.ServerException: RemoteException occurred in serve
> r thread; nested exception is:
>         java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
>         java.lang.ClassNotFoundException: javax.management.remote.rmi.RMIServerImpl_Stub not found by org.apache.activemq.activemq-web-console [78] (no security manager: RMI class loader disabled)]
>         at javax.management.remote.rmi.RMIConnectorServer.newIOException(RMIConnectorServer.java:804)
>         at javax.management.remote.rmi.RMIConnectorServer.start(RMIConnectorServer.java:417)
>         at org.apache.karaf.management.ConnectorServerFactory$1.run(ConnectorServerFactory.java:232)
> Caused by: javax.naming.CommunicationException [Root exception is java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
>         java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
>         java.lang.ClassNotFoundException: javax.management.remote.rmi.RMIServerImpl_Stub not found by org.apache.activemq.activemq-web-console [78] (no security manager: RMI class loader disabled)]
>         at com.sun.jndi.rmi.registry.RegistryContext.bind(RegistryContext.java:126)
>         at com.sun.jndi.toolkit.url.GenericURLContext.bind(GenericURLContext.java:208)
>         at javax.naming.InitialContext.bind(InitialContext.java:400)
>         at javax.management.remote.rmi.RMIConnectorServer.bind(RMIConnectorServer.java:625)
>         at javax.management.remote.rmi.RMIConnectorServer.start(RMIConnectorServer.java:412)
>         ... 1 more
> Caused by: java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
>         java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
>         java.lang.ClassNotFoundException: javax.management.remote.rmi.RMIServerImpl_Stub not found by org.apache.activemq.activemq-web-console [78] (no security manager: RMI class loader disabled)
>         at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:400)
>         at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:248)
>         at sun.rmi.transport.Transport$1.run(Transport.java:159)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
>         at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)
>         at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
>         at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>         at java.lang.Thread.run(Thread.java:662)
>         at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:255)
>         at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:233)
>         at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:359)
>         at sun.rmi.registry.RegistryImpl_Stub.bind(Unknown Source)
>         at com.sun.jndi.rmi.registry.RegistryContext.bind(RegistryContext.java:120)
>         ... 5 more
> Caused by: java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
>         java.lang.ClassNotFoundException: javax.management.remote.rmi.RMIServerImpl_Stub not found by org.apache.activemq.activemq-web-console [78] (no security manager: RMI class loader disabled)
>         at sun.rmi.registry.RegistryImpl_Skel.dispatch(Unknown Source)
>         at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:390)
>         at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:248)
>         at sun.rmi.transport.Transport$1.run(Transport.java:159)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
>         at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)
>         at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
>         at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>         at java.lang.Thread.run(Thread.java:662)
> Caused by: java.lang.ClassNotFoundException: javax.management.remote.rmi.RMIServerImpl_Stub not found by org.apache.activemq.activemq-web-console [78] (no security manager: RMI class loader disabled)
>         at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:373)
>         at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:163)
>         at java.rmi.server.RMIClassLoader$2.loadClass(RMIClassLoader.java:620)
>         at java.rmi.server.RMIClassLoader.loadClass(RMIClassLoader.java:247)
>         at sun.rmi.server.MarshalInputStream.resolveClass(MarshalInputStream.java:197)
>         at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1574)
>         at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1495)
>         at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1731)
>         at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328)
>         at java.io.ObjectInputStream.readObject(ObjectInputStream.java:350)
>         ... 12 more
> 1. http://activemq.apache.org/osgi-integration.html

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Closed] (AMQ-3633) [OSGi] activemq-web-console: exception after restart container

Posted by "Alexey Markevich (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AMQ-3633?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alexey Markevich closed AMQ-3633.
---------------------------------

    
> [OSGi] activemq-web-console: exception after restart container
> --------------------------------------------------------------
>
>                 Key: AMQ-3633
>                 URL: https://issues.apache.org/jira/browse/AMQ-3633
>             Project: ActiveMQ
>          Issue Type: Bug
>    Affects Versions: 5.5.0
>         Environment: karaf 2.2.4
>            Reporter: Alexey Markevich
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 5.7.0
>
>
> I installed activemq-web-console feature as described in [1].
> Afer restart container there is exception in console:
> 2011-12-13 14:51:32,906 [.ops4j.pax.web)] INFO  XBeanXmlBeanDefinitionReader   - Loading XML bean definitions from ServletContext resource [/WEB-INF/activemq.xml]
> Exception in thread "JMX Connector Thread [service:jmx:rmi://localhost:44444/jndi/rmi://localhost:1099/karaf-root]" java.lang.RuntimeException: Could not start JMX connector server
>         at org.apache.karaf.management.ConnectorServerFactory$1.run(ConnectorServerFactory.java:234)
> Caused by: java.io.IOException: Cannot bind to URL [rmi://localhost:1099/karaf-root]: javax.naming.CommunicationException [Root exception is java.rmi.ServerException: RemoteException occurred in serve
> r thread; nested exception is:
>         java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
>         java.lang.ClassNotFoundException: javax.management.remote.rmi.RMIServerImpl_Stub not found by org.apache.activemq.activemq-web-console [78] (no security manager: RMI class loader disabled)]
>         at javax.management.remote.rmi.RMIConnectorServer.newIOException(RMIConnectorServer.java:804)
>         at javax.management.remote.rmi.RMIConnectorServer.start(RMIConnectorServer.java:417)
>         at org.apache.karaf.management.ConnectorServerFactory$1.run(ConnectorServerFactory.java:232)
> Caused by: javax.naming.CommunicationException [Root exception is java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
>         java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
>         java.lang.ClassNotFoundException: javax.management.remote.rmi.RMIServerImpl_Stub not found by org.apache.activemq.activemq-web-console [78] (no security manager: RMI class loader disabled)]
>         at com.sun.jndi.rmi.registry.RegistryContext.bind(RegistryContext.java:126)
>         at com.sun.jndi.toolkit.url.GenericURLContext.bind(GenericURLContext.java:208)
>         at javax.naming.InitialContext.bind(InitialContext.java:400)
>         at javax.management.remote.rmi.RMIConnectorServer.bind(RMIConnectorServer.java:625)
>         at javax.management.remote.rmi.RMIConnectorServer.start(RMIConnectorServer.java:412)
>         ... 1 more
> Caused by: java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
>         java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
>         java.lang.ClassNotFoundException: javax.management.remote.rmi.RMIServerImpl_Stub not found by org.apache.activemq.activemq-web-console [78] (no security manager: RMI class loader disabled)
>         at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:400)
>         at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:248)
>         at sun.rmi.transport.Transport$1.run(Transport.java:159)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
>         at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)
>         at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
>         at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>         at java.lang.Thread.run(Thread.java:662)
>         at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:255)
>         at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:233)
>         at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:359)
>         at sun.rmi.registry.RegistryImpl_Stub.bind(Unknown Source)
>         at com.sun.jndi.rmi.registry.RegistryContext.bind(RegistryContext.java:120)
>         ... 5 more
> Caused by: java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
>         java.lang.ClassNotFoundException: javax.management.remote.rmi.RMIServerImpl_Stub not found by org.apache.activemq.activemq-web-console [78] (no security manager: RMI class loader disabled)
>         at sun.rmi.registry.RegistryImpl_Skel.dispatch(Unknown Source)
>         at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:390)
>         at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:248)
>         at sun.rmi.transport.Transport$1.run(Transport.java:159)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
>         at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)
>         at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
>         at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>         at java.lang.Thread.run(Thread.java:662)
> Caused by: java.lang.ClassNotFoundException: javax.management.remote.rmi.RMIServerImpl_Stub not found by org.apache.activemq.activemq-web-console [78] (no security manager: RMI class loader disabled)
>         at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:373)
>         at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:163)
>         at java.rmi.server.RMIClassLoader$2.loadClass(RMIClassLoader.java:620)
>         at java.rmi.server.RMIClassLoader.loadClass(RMIClassLoader.java:247)
>         at sun.rmi.server.MarshalInputStream.resolveClass(MarshalInputStream.java:197)
>         at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1574)
>         at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1495)
>         at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1731)
>         at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328)
>         at java.io.ObjectInputStream.readObject(ObjectInputStream.java:350)
>         ... 12 more
> 1. http://activemq.apache.org/osgi-integration.html

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira