Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
3111 connectés 

  FORUM HardWare.fr
  Programmation
  Java

  [rmi] Connection refused to host

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

[rmi] Connection refused to host

n°1319110
Chronoklaz​m
Posté le 05-03-2006 à 20:27:16  profilanswer
 

Salut,
 
    J'ai un probleme avec le lancement de mon server :  
 
- Je compile sans souci avec rmic.
- Je lance le rmiregistry sur le port 3000 (sous windows => start rmiregistry 3000)
- Je precise bien l'option -Djava.security.policy=java.policy  
- Il trouve bien le stub du server
 
Mais je me prends :
 

Citation :


ServerImpl err: Connection refused to host: 192.168.0.2; nested exception is:
        java.net.ConnectException: Connection refused: connect
java.rmi.ConnectException: Connection refused to host: 192.168.0.2; nested excep
tion 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.rebind(Unknown Source)
        at java.rmi.Naming.rebind(Unknown Source)
        at chat.server.RemoteServerImpl.main(RemoteServerImpl.java:40)
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.<init>(Unknown Source)
        at java.net.Socket.<init>(Unknown Source)
        at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(Unknown S
ource)
        at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(Unknown S
ource)
        ... 7 more


 
 
Une idée ?
 
PS : C'est ptet mon modem router qui fout le caca


Message édité par Chronoklazm le 05-03-2006 à 20:56:50

---------------
Scheme is a programmable programming language ! I heard it through the grapevine !
mood
Publicité
Posté le 05-03-2006 à 20:27:16  profilanswer
 

n°1319126
Chronoklaz​m
Posté le 05-03-2006 à 21:09:29  profilanswer
 

Et bein non, cété ce ptain classpath !
 
Est-ce possible de régler cette histoire proprement avec Ant ?
 
Genre ça mais en mieux :
 
<exec executable="rmiregistry" dir="./build/classes/"/>
 
Car ça marche pas.


---------------
Scheme is a programmable programming language ! I heard it through the grapevine !

Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Programmation
  Java

  [rmi] Connection refused to host

 

Sujets relatifs
Ouvrir la boite de dialogue "Wireless Network Connection properties"connection a la database
problème connection VB6 vers MSSQL par ODBC W2003 SERVEURproblème connection VB6 vers MSSQL par ODBC W2003 SERVEUR
script pour lancer une connection internet sous xp[resolu]Debutant en php - derniere connection
[ASP.NET] Problème avec une connection à la base de donnéestomcat jsp et connection oracle
[PHP] Problème de connection à la base de données[Java][RMI] Connection refused to host
Plus de sujets relatifs à : [rmi] Connection refused to host


Copyright © 1997-2025 Groupe LDLC (Signaler un contenu illicite / Données personnelles)