Menu

#114 IOExpection

MC4J 1.2b8
open
nobody
None
5
2005-03-15
2005-03-15
spaz_swa
No

Attempting to connect to a work server from across
a firewall using a vpn connection. I can successfully
ping xspsvc01.swacorp.com from my client machine. jre
1.4.2_06 in use on the client. Using JSR160. Server URL:

service:jmx:rmi:///jndi/rmi://xspsvc01.swacorp.com:9085/jmxconnector

Here is the stack trace

java.io.IOException: Failed to retrieve RMIServer stub:
javax.naming.ServiceUnavailableException [Root
exception is java.rmi.ConnectException: Connection
refused to host: xspsvc01.swacorp.com; nested exception
is:
java.net.ConnectException: connect: Address is invalid
on local machine, or port is not valid on remote machine]
at
javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:317)
at
javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:247)
at
org.mc4j.console.connection.JSR160ConnectionNode.connect(JSR160ConnectionNode.java:132)
at
org.mc4j.console.connection.ConnectionNodeChildren.exposeDomains(ConnectionNodeChildren.java:56)
at
org.mc4j.console.connection.ConnectionNodeChildren$1.run(ConnectionNodeChildren.java:44)
at java.lang.Thread.run(Unknown Source)
Caused by: javax.naming.ServiceUnavailableException
[Root exception is java.rmi.ConnectException:
Connection refused to host: xspsvc01.swacorp.com;
nested exception is:
java.net.ConnectException: connect: Address is invalid
on local machine, or port is not valid on remote machine]
at
com.sun.jndi.rmi.registry.RegistryContext.lookup(Unknown
Source)
at
com.sun.jndi.toolkit.url.GenericURLContext.lookup(Unknown
Source)
at javax.naming.InitialContext.lookup(Unknown Source)
at
javax.management.remote.rmi.RMIConnector.findRMIServerJNDI(RMIConnector.java:1785)
at
javax.management.remote.rmi.RMIConnector.findRMIServer(RMIConnector.java:1751)
at
javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:259)
... 5 more
Caused by: java.rmi.ConnectException: Connection
refused to host: xspsvc01.swacorp.com; nested exception
is:
java.net.ConnectException: connect: Address is invalid
on local machine, or port is not valid on remote machine
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(Unknown
Source)
at
sun.rmi.transport.tcp.TCPChannel.createConnection(Unknown
Source)
at
sun.rmi.transport.tcp.TCPChannel.newConnection(Unknown
Source)
at sun.rmi.server.UnicastRef.newCall(Unknown Source)
at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown
Source)
... 11 more
Caused by: java.net.ConnectException: connect: Address
is invalid on local machine, or port is not valid on
remote machine
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(Unknown Source)
at java.net.PlainSocketImpl.connectToAddress(Unknown
Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.<init>(Unknown Source)
at java.net.Socket.<init>(Unknown Source)
at
sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(Unknown
Source)
at
sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(Unknown
Source)
[catch] ... 16 more

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.