[jbosstools-issues] [JBoss JIRA] (JBIDE-11826) JMX error while starting remote AS7.0.2

Martin Malina (JIRA) jira-events at lists.jboss.org
Thu May 24 08:13:17 EDT 2012


     [ https://issues.jboss.org/browse/JBIDE-11826?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Malina closed JBIDE-11826.
---------------------------------



This was an error specific to AS7.0.2. It's no longer happening. Verified in JBT 3.3 nightly 2012-05-24.
                
> JMX error while starting remote AS7.0.2
> ---------------------------------------
>
>                 Key: JBIDE-11826
>                 URL: https://issues.jboss.org/browse/JBIDE-11826
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: JBossAS/Servers
>    Affects Versions: 3.3.0.Beta3
>         Environment: JBT 3.3.0.Beta3 H152
>            Reporter: Martin Malina
>            Assignee: Rob Stryker
>             Fix For: 3.3.0.CR1
>
>
> When you set up a remote AS7.0.2 server and start it (you may need to work around JBIDE-11824) you will see this in the workspace log:
> {code}
> !ENTRY org.jboss.ide.eclipse.as.core 4 0 2012-05-10 14:03:17.125
> !MESSAGE Error connecting to this server's JMX service: jboss-as-7.0.2.Final Runtime Server
> !STACK 0
> java.io.IOException: Failed to retrieve RMIServer stub: javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: MARVIN.BRQ.REDHAT.COM; nested exception is: 
> 	java.net.ConnectException: Connection refused]
> 	at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:338)
> 	at javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:248)
> 	at org.jboss.tools.jmx.core.providers.DefaultConnectionWrapper.connect(DefaultConnectionWrapper.java:77)
> 	at org.jboss.ide.eclipse.as.jmx.integration.JBoss70ConnectionProvider$ExtendedDefaultConnectionWrapper.serverChanged(JBoss70ConnectionProvider.java:97)
> 	at org.eclipse.wst.server.core.internal.ServerNotificationManager.broadcastChange(ServerNotificationManager.java:125)
> 	at org.eclipse.wst.server.core.internal.Server.fireServerStateChangeEvent(Server.java:735)
> 	at org.eclipse.wst.server.core.internal.Server.setServerState(Server.java:643)
> 	at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.setServerState(ServerBehaviourDelegate.java:143)
> 	at org.jboss.ide.eclipse.as.core.server.internal.DeployableServerBehavior.setServerStarted(DeployableServerBehavior.java:203)
> 	at org.jboss.ide.eclipse.as.core.server.internal.DelegatingServerBehavior.setServerStarted(DelegatingServerBehavior.java:96)
> 	at org.jboss.ide.eclipse.as.rse.core.AbstractRSELaunchDelegate.launchPingThread(AbstractRSELaunchDelegate.java:68)
> 	at org.jboss.ide.eclipse.as.rse.core.RSEJBoss7StartLaunchDelegate.actualLaunch(RSEJBoss7StartLaunchDelegate.java:40)
> 	at org.jboss.ide.eclipse.as.core.server.internal.launch.DelegatingStartLaunchConfiguration.actualLaunch(DelegatingStartLaunchConfiguration.java:58)
> 	at org.jboss.ide.eclipse.as.core.server.internal.launch.AbstractJBossStartLaunchConfiguration.launch(AbstractJBossStartLaunchConfiguration.java:139)
> 	at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:854)
> 	at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:703)
> 	at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:696)
> 	at org.eclipse.wst.server.core.internal.Server.startImpl2(Server.java:3462)
> 	at org.eclipse.wst.server.core.internal.Server.startImpl(Server.java:3400)
> 	at org.eclipse.wst.server.core.internal.Server$StartJob.run(Server.java:367)
> 	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
> Caused by: javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: MARVIN.BRQ.REDHAT.COM; nested exception is: 
> 	java.net.ConnectException: Connection refused]
> 	at com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:101)
> 	at com.sun.jndi.toolkit.url.GenericURLContext.lookup(GenericURLContext.java:185)
> 	at javax.naming.InitialContext.lookup(InitialContext.java:392)
> 	at javax.management.remote.rmi.RMIConnector.findRMIServerJNDI(RMIConnector.java:1886)
> 	at javax.management.remote.rmi.RMIConnector.findRMIServer(RMIConnector.java:1856)
> 	at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:255)
> 	... 20 more
> Caused by: java.rmi.ConnectException: Connection refused to host: MARVIN.BRQ.REDHAT.COM; nested exception is: 
> 	java.net.ConnectException: Connection refused
> 	at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:601)
> 	at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:198)
> 	at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:184)
> 	at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:322)
> 	at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
> 	at com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:97)
> 	... 25 more
> Caused by: java.net.ConnectException: Connection refused
> 	at java.net.PlainSocketImpl.socketConnect(Native Method)
> 	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
> 	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
> 	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
> 	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:432)
> 	at java.net.Socket.connect(Socket.java:529)
> 	at java.net.Socket.connect(Socket.java:478)
> 	at java.net.Socket.<init>(Socket.java:375)
> 	at java.net.Socket.<init>(Socket.java:189)
> 	at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:22)
> 	at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFactory.java:128)
> 	at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:595)
> 	... 30 more
> !ENTRY org.jboss.ide.eclipse.as.core 4 0 2012-05-10 14:03:17.129
> !MESSAGE Error connecting to this server's JMX service: jboss-as-7.0.2.Final Runtime Server
> !STACK 0
> java.io.IOException: Failed to retrieve RMIServer stub: javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: MARVIN.BRQ.REDHAT.COM; nested exception is: 
> 	java.net.ConnectException: Connection refused]
> 	at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:338)
> 	at javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:248)
> 	at org.jboss.tools.jmx.core.providers.DefaultConnectionWrapper.connect(DefaultConnectionWrapper.java:77)
> 	at org.jboss.ide.eclipse.as.jmx.integration.JBoss70ConnectionProvider$ExtendedDefaultConnectionWrapper.serverChanged(JBoss70ConnectionProvider.java:97)
> 	at org.eclipse.wst.server.core.internal.ServerNotificationManager.broadcastChange(ServerNotificationManager.java:125)
> 	at org.eclipse.wst.server.core.internal.Server.fireServerStateChangeEvent(Server.java:735)
> 	at org.eclipse.wst.server.core.internal.Server.setServerState(Server.java:643)
> 	at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.setServerState(ServerBehaviourDelegate.java:143)
> 	at org.jboss.ide.eclipse.as.core.server.internal.DeployableServerBehavior.setServerStarted(DeployableServerBehavior.java:203)
> 	at org.jboss.ide.eclipse.as.core.server.internal.DelegatingServerBehavior.setServerStarted(DelegatingServerBehavior.java:96)
> 	at org.jboss.ide.eclipse.as.rse.core.AbstractRSELaunchDelegate.launchPingThread(AbstractRSELaunchDelegate.java:68)
> 	at org.jboss.ide.eclipse.as.rse.core.RSEJBoss7StartLaunchDelegate.actualLaunch(RSEJBoss7StartLaunchDelegate.java:40)
> 	at org.jboss.ide.eclipse.as.core.server.internal.launch.DelegatingStartLaunchConfiguration.actualLaunch(DelegatingStartLaunchConfiguration.java:58)
> 	at org.jboss.ide.eclipse.as.core.server.internal.launch.AbstractJBossStartLaunchConfiguration.launch(AbstractJBossStartLaunchConfiguration.java:139)
> 	at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:854)
> 	at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:703)
> 	at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:696)
> 	at org.eclipse.wst.server.core.internal.Server.startImpl2(Server.java:3462)
> 	at org.eclipse.wst.server.core.internal.Server.startImpl(Server.java:3400)
> 	at org.eclipse.wst.server.core.internal.Server$StartJob.run(Server.java:367)
> 	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
> Caused by: javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: MARVIN.BRQ.REDHAT.COM; nested exception is: 
> 	java.net.ConnectException: Connection refused]
> 	at com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:101)
> 	at com.sun.jndi.toolkit.url.GenericURLContext.lookup(GenericURLContext.java:185)
> 	at javax.naming.InitialContext.lookup(InitialContext.java:392)
> 	at javax.management.remote.rmi.RMIConnector.findRMIServerJNDI(RMIConnector.java:1886)
> 	at javax.management.remote.rmi.RMIConnector.findRMIServer(RMIConnector.java:1856)
> 	at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:255)
> 	... 20 more
> Caused by: java.rmi.ConnectException: Connection refused to host: MARVIN.BRQ.REDHAT.COM; nested exception is: 
> 	java.net.ConnectException: Connection refused
> 	at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:601)
> 	at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:198)
> 	at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:184)
> 	at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:322)
> 	at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
> 	at com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:97)
> 	... 25 more
> Caused by: java.net.ConnectException: Connection refused
> 	at java.net.PlainSocketImpl.socketConnect(Native Method)
> 	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
> 	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
> 	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
> 	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:432)
> 	at java.net.Socket.connect(Socket.java:529)
> 	at java.net.Socket.connect(Socket.java:478)
> 	at java.net.Socket.<init>(Socket.java:375)
> 	at java.net.Socket.<init>(Socket.java:189)
> 	at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:22)
> 	at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFactory.java:128)
> 	at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:595)
> 	... 30 more
> {code}
> It says it cannot connect to the host, but the server starts anyway. And this is only reproducible with AS7.0.2. If you set up AS7.1.1 on the same server, you don't get this error.

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

        


More information about the jbosstools-issues mailing list