dcsimg
Pb - Java RMI - Connection refused
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   seb_ashley
Posted On:   Saturday, December 2, 2006 10:35 AM

hi, i'm working on a java rmi application. It's a client-server application. My server compilation is ok but when I run my client I get these errors under Eclipse : Connection refused to host: 192.168.1.135; nested exception is: java.net.ConnectException: Connection refused: connect java.rmi.ConnectException: Connection refused to host: 192.168.1.135; nested exception is: java.net.ConnectException: Connection refused: connect 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.   More>>

hi,

i'm working on a java rmi application.

It's a client-server application.

My server compilation is ok but when I run my client I get these errors under Eclipse :




			
Connection refused to host: 192.168.1.135; nested exception is:
java.net.ConnectException: Connection refused: connect
java.rmi.ConnectException: Connection refused to host: 192.168.1.135; nested exception is:
java.net.ConnectException: Connection refused: connect
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)
at com.pizza.client.PizzaServiceClient.main(PizzaServiceClient.java:16)
Caused by: java.net.ConnectException: Connection refused: connect
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.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket. (Unknown Source)
at java.net.Socket. (Unknown Source)
at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(Unknown Source)
at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(Unknown Source)
... 6 more





what can I do to solve this pb ?

thanks a lot !!

PS : i use j2sdk1.4.2_12 !    <<Less
About | Sitemap | Contact