This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Distributed Java and the fly likes ConnectException in Webstart clients  Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "ConnectException in Webstart clients  " Watch "ConnectException in Webstart clients  " New topic
Author

ConnectException in Webstart clients

Nick De Graeve
Greenhorn

Joined: Aug 31, 2006
Posts: 4
We have a client-server application with JBoss as AS and the clients are Swing downloaded via Webstart. Communication between C & S is RMI and JMS.

On some locations the clients can't connect to the server: a java.rmi.Connectexception is thrown because of a connection timeout.

What could be wrong? We have no idea why it only works on some locations.

Details:
--------
JBoss is behind a router and following ports are forwarded: 1098, 1099, 4444, 8080 and 8093. It is started with following switches: -Djava.rmi.server.hostname=mail.fpc.be and -Djava.rmi.server.useLocalHostname=false

The client is started with <property name="java.naming.provider.url" value="jnp://mail.fpc.be:1099"/>,
<property name="java.naming.factory.initial" value="org.jnp.interfaces.NamingContextFactory"/> and
<property name="java.naming.factory.url.pkgs" value="org.jboss.naming rg.jnp.interfaces"/>
The stacktrace is:

[ August 31, 2006: Message edited by: Nick De Graeve ]
Nathan Pruett
Bartender

Joined: Oct 18, 2000
Posts: 4121

Is "mail.fps.be" a public server? When I try to ping it I get connection refused, and if I try to open it in a web browser I get redirected to "www.fps.be".


-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: ConnectException in Webstart clients
 
Similar Threads
Problem with Testing my RMI BusinessLogic with more than 200 Threads
java.net.ConnectException with RMI
javax.naming.CommunicationException
rmi connection refused if not 1099
Cannot Start RMI Server