Archived
This forum has been archived. Please start a new discussion on GitHub.
Ice Exception: An existing connection was forcibly closed by the remote host.
Hi,
I use Ice to comunicate between two apllications, one written in Java, the other one in C++.
I get the following exception when running those application: "An existing connection was forcibly closed by the remote host"
What is possible mistakes that caused the exception?
Regards,
Masadjie
I use Ice to comunicate between two apllications, one written in Java, the other one in C++.
I get the following exception when running those application: "An existing connection was forcibly closed by the remote host"
What is possible mistakes that caused the exception?
Regards,
Masadjie
0
Comments
-
What operating system, compiler, JDK & version of Ice are you using? Can you also give the complete exception please? Which application is generating the exception? C++ or Java? And is the erroneous application a server or client to the other?0
-
Thank you for youe response. I used windows XP OS, Ice version is 3.2.1 and IceJ-3.2.1-java5. The application which generate exception is java application. I am curious this is because threads mechanism. one thread in C++ (server) and I have three threads of Java that send data to the server with relative high frequency.
HERE IS complete exception:
5/29/08 11:18:00:781 warning: connection exception:
local address = 127.0.0.1:2170
remote address = 127.0.0.1:10000
Ice.ConnectionLostException
error = 0
at IceInternal.TcpTransceiver.read(TcpTransceiver.java:331)
at Ice.ConnectionI.read(ConnectionI.java:1307)
at IceInternal.ThreadPool.read(ThreadPool.java:929)
at IceInternal.ThreadPool.run(ThreadPool.java:723)
at IceInternal.ThreadPool.access$100(ThreadPool.java:12)
at IceInternal.ThreadPool$EventHandlerThread.run(ThreadPool.java:1242)
Caused by: java.io.IOException: An existing connection was forcibly closed by th
e remote host
at sun.nio.ch.SocketDispatcher.read0(Native Method)
at sun.nio.ch.SocketDispatcher.read(Unknown Source)
at sun.nio.ch.IOUtil.readIntoNativeBuffer(Unknown Source)
at sun.nio.ch.IOUtil.read(Unknown Source)
at sun.nio.ch.SocketChannelImpl.read(Unknown Source)
at IceInternal.TcpTransceiver.read(TcpTransceiver.java:265)
... 5 more
Exception in thread "Thread-4" Ice.ConnectionLostException
error = 0
at IceInternal.Outgoing.invoke(Outgoing.java:148)
at ie.cit.UbiOne.Particle._ParticleTrackingDelM.sendMeasurement(_Particl
eTrackingDelM.java:397)
at ie.cit.UbiOne.Particle.ParticleTrackingPrxHelper.sendMeasurement(Part
icleTrackingPrxHelper.java:381)
at ie.cit.UbiOne.Particle.ParticleTrackingPrxHelper.sendMeasurement(Part
icleTrackingPrxHelper.java:355)
at ie.cit.app.ReadingAgent.run(ReadingAgent.java:207)
Caused by: java.io.IOException: An existing connection was forcibly closed by th
e remote host
at sun.nio.ch.SocketDispatcher.read0(Native Method)
at sun.nio.ch.SocketDispatcher.read(Unknown Source)
at sun.nio.ch.IOUtil.readIntoNativeBuffer(Unknown Source)
at sun.nio.ch.IOUtil.read(Unknown Source)
at sun.nio.ch.SocketChannelImpl.read(Unknown Source)
at IceInternal.TcpTransceiver.read(TcpTransceiver.java:265)
at Ice.ConnectionI.read(ConnectionI.java:1307)
at IceInternal.ThreadPool.read(ThreadPool.java:929)
at IceInternal.ThreadPool.run(ThreadPool.java:723)
at IceInternal.ThreadPool.access$100(ThreadPool.java:12)
at IceInternal.ThreadPool$EventHandlerThread.run(ThreadPool.java:1242)
Exception in thread "Thread-5" Ice.ConnectionRefusedException
error = 0
at IceInternal.Network.doConnect(Network.java:320)
at IceInternal.TcpConnector.connect(TcpConnector.java:26)
at IceInternal.OutgoingConnectionFactory.create(OutgoingConnectionFactor
y.java:323)
at IceInternal.RoutableReference.createConnection(RoutableReference.java
:433)
at IceInternal.DirectReference.getConnection(DirectReference.java:199)
at Ice._ObjectDelM.setup(_ObjectDelM.java:258)
at Ice.ObjectPrxHelperBase.__getDelegate(ObjectPrxHelperBase.java:1055)
at ie.cit.UbiOne.Particle.ParticleTrackingPrxHelper.sendMeasurement(Part
icleTrackingPrxHelper.java:379)
at ie.cit.UbiOne.Particle.ParticleTrackingPrxHelper.sendMeasurement(Part
icleTrackingPrxHelper.java:355)
at ie.cit.app.ReadingAgent.run(ReadingAgent.java:355)
Caused by: java.net.ConnectException: Connection refused: no further information
at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
at sun.nio.ch.SocketChannelImpl.finishConnect(Unknown Source)
at IceInternal.Network.doConnect(Network.java:307)
... 9 more0 -
Hi,
Could you upgrade to Ice 3.3.0 first and see if you can still reproduce? We only provide free support for the latest Ice version on the forums.
Cheers,
Benoit.0