Home Help Center

Hello Demo with WIN 2000 and FC3 didn't work?

surfersurfer Member ✭✭
Hello,
I've a problem with the communication WIN 2000 (192.168.5.1)<-> FC3 (192.168.5.2):
I've configured the hello demo so that it is possible to start the client at the FC3 side and the server at WIN2000 side.
That works.
Then I tried the same in the other way the server at FC3 side and the client at the WIN 2000 side.
But then it comes to this error:
Microsoft Windows 2000 [Version 5.00.2195]
(C) Copyright 1985-2000 Microsoft Corp.

c:\Ice-2.1.2\demoj\Ice\hello>ant
Buildfile: build.xml

properties-cvs:

properties-opt:

properties-src:

properties-rpm:

config-init:

init:

generate:
    [mkdir] Created dir: C:\Ice-2.1.2\demoj\Ice\hello\generated
[slice2java] slice2java  --output-dir C:\Ice-2.1.2\demoj\Ice\hello\generated C:\
Ice-2.1.2\demoj\Ice\hello\Hello.ice

compile:
    [mkdir] Created dir: C:\Ice-2.1.2\demoj\Ice\hello\classes
    [javac] Compiling 11 source files to C:\Ice-2.1.2\demoj\Ice\hello\classes
    [javac] Compiling 3 source files to C:\Ice-2.1.2\demoj\Ice\hello\classes

all:

BUILD SUCCESSFUL
Total time: 5 seconds
c:\Ice-2.1.2\demoj\Ice\hello>java Client
Ice.ConnectionRefusedException
    error = 0
        at IceSSL.SslConnector.connect(SslConnector.java:231)
        at IceInternal.OutgoingConnectionFactory.create(OutgoingConnectionFactor
y.java:308)
        at IceInternal.DirectReference.getConnection(DirectReference.java:162)
        at Ice._ObjectDelM.setup(_ObjectDelM.java:199)
        at Ice.ObjectPrxHelperBase.__getDelegate(ObjectPrxHelperBase.java:648)
        at Ice.ObjectPrxHelperBase.ice_isA(ObjectPrxHelperBase.java:41)
        at Ice.ObjectPrxHelperBase.ice_isA(ObjectPrxHelperBase.java:29)
        at Demo.HelloPrxHelper.checkedCast(HelloPrxHelper.java:118)
        at Client.run(Client.java:45)
        at Client.main(Client.java:202)
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 com.sun.net.ssl.internal.ssl.SSLSocketImpl.connect(Unknown Source)
        at com.sun.net.ssl.internal.ssl.SSLSocketImpl.<init>(Unknown Source)
        at com.sun.net.ssl.internal.ssl.SSLSocketFactoryImpl.createSocket(Unknow
n Source)
        at IceSSL.SslConnector.connect(SslConnector.java:181)
        ... 9 more

c:\Ice-2.1.2\demoj\Ice\hello>

I've looked at the ssl config and tried some direct and indirect paths but without success !!

Has somebody an idea?

Here is my code:


Thank a lot surfer

Comments

  • marcmarc FloridaAdministrators, ZeroC Staff Marc LaukienOrganization: ZeroC, Inc.Project: The Internet Communications Engine ZeroC Staff
    Please don't post the same question twice. See my response here:

    http://www.zeroc.com/vbulletin/showthread.php?p=7502#post7502
  • surfersurfer Member ✭✭
    sorry

    It was my false !!
    But do you have any solution ?
    surfer
  • marcmarc FloridaAdministrators, ZeroC Staff Marc LaukienOrganization: ZeroC, Inc.Project: The Internet Communications Engine ZeroC Staff
    Well, did you investigate the problem as described in the FAQ? What is trace output of the client and the server?
  • surfersurfer Member ✭✭
    My false !?

    Hello,
    I've looked in the FAQ !!

    I've changed the configuration at the FC3 side to:
    #
    # The server creates one single object adapter with the name
    # "helloadapater". The following line sets the endpoints for this
    # adapter
    #
    # From:
    # Hello.Endpoints=tcp -p 10000:udp -p 10000:ssl -p 10001
    # To:
    Hello.Endpoints=tcp -h 192.168.5.2 -p 10000:udp -h 192.168.5.2 -p 10000:ssl -h 192.168.5.2 -p 10001
    

    After that it works !!

    But I don't need it at the WIN 2000 side. There the server listens automatically to the IP 192.168.5.1. Linux works different!!

    Thanks a lot
    surfer
  • marcmarc FloridaAdministrators, ZeroC Staff Marc LaukienOrganization: ZeroC, Inc.Project: The Internet Communications Engine ZeroC Staff
    This means that there is a DNS configuration problem. Try "hostname" to find out what your hostname is. Then use "nslookup <name>" on the result. If this does not point to 192.168.5.2, then your system is not set up correctly. (Please do not ask questions about how to properly configure Linux systems here, this belongs into a Linux support forum.)
  • surfersurfer Member ✭✭
    Trace output

    Hello,
    yes I've looked at the FAQ:

    FC3 Server before the config modification:
    Hello.Endpoints=tcp -p 10000:udp -p 10000:ssl -p 10001
    hello# java Server --Ice.Trace.Network=2
    Network: attempting to bind to tcp socket 127.0.0.1:10000 
     Network: accepting tcp connections at 127.0.0.1:10000 
     Network: attempting to bind to udp socket 127.0.0.1:10000 
     Network: starting to receive udp packets
      local address = 127.0.0.1:10000
      remote address = <not connected> 
     Network: attempting to bind to ssl socket 127.0.0.1:10001 
     Network: accepting ssl connections at 127.0.0.1:10001 
    


    FC3 Server after modifcation of the config file:
    Hello.Endpoints=tcp -h 192.168.5.2 -p 10000:udp -h 192.168.5.2 -p 10000:ssl -h 192.168.5.2 -p 10001
    hello# java Server --Ice.Trace.Network=2
     Network: attempting to bind to tcp socket 192.168.5.2:10000 
     Network: accepting tcp connections at 192.168.5.2:10000 
     Network: attempting to bind to udp socket 192.168.5.2:10000 
     Network: starting to receive udp packets
      local address = 192.168.5.2:10000
      remote address = <not connected> 
     Network: attempting to bind to ssl socket 192.168.5.2:10001 
     Network: accepting ssl connections at 192.168.5.2:10001 
    

    WIN 2000 Client
    c:\Ice-2.1.2\demoj\Ice\hello>java Client --Ice.Trace.Network=2
     Network: trying to establish tcp connection to 192.168.5.2:10000 
     Network: tcp connection established
      local address = 192.168.5.1:2055
      remote address = 192.168.5.2:10000 
    usage:
    t: send greeting as twoway
    o: send greeting as oneway
    O: send greeting as batch oneway
    d: send greeting as datagram
    D: send greeting as batch datagram
    f: flush all batch requests
    T: set a timeout
    S: switch secure mode on/off
    s: shutdown server
    x: exit
    ?: help
    

    Thanks a lot !!!!!!
    surfer
Sign In or Register to comment.