Archived
This forum has been archived. Please start a new discussion on GitHub.
(java)server cannot be connected after shuting down a client
in Help Center
we have a java server program running well on windows xp
but after moving it to solaris10, this problem comes out
first open the server and use a client to connect to the server,
then shutdown the client, an exception was printed out
and the server cannot be connected again
maybe this is related to the OS solaris, i have no idea
any suggestions?
thanks:)
but after moving it to solaris10, this problem comes out
first open the server and use a client to connect to the server,
then shutdown the client, an exception was printed out
and the server cannot be connected again
error: exception in `Ice.ThreadPool.Server' thread Ice.ThreadPool.Server-0:
Ice.SocketException
error = 0
at IceInternal.TcpTransceiver.shutdownWrite(TcpTransceiver.java:75)
at Ice.ConnectionI.setState(ConnectionI.java:1580)
at Ice.ConnectionI.setState(ConnectionI.java:1438)
at Ice.ConnectionI.exception(ConnectionI.java:1221)
at IceInternal.ThreadPool.run(ThreadPool.java:717)
at IceInternal.ThreadPool.access$100(ThreadPool.java:12)
at IceInternal.ThreadPool$EventHandlerThread.run(ThreadPool.java:1194)
Caused by: java.net.SocketException: ???????δ±?????
at sun.nio.ch.SocketChannelImpl.shutdown(Native Method)
at sun.nio.ch.SocketChannelImpl.shutdownOutput(SocketChannelImpl.java:592)
at sun.nio.ch.SocketAdaptor.shutdownOutput(SocketAdaptor.java:368)
at IceInternal.TcpTransceiver.shutdownWrite(TcpTransceiver.java:63)
... 6 more
maybe this is related to the OS solaris, i have no idea
any suggestions?
thanks:)
0
Comments
-
Which Java version are you using?0
-
java version is 1.5.0.06 on windows, 1.5.0.07 on solaris, this is quite new i guess
ice version is 3.0.1
we also set "Ice.ThreadPool.Server.SizeMax=10" to the server
thanks:)0 -
here is the more detailed trace
thanks![ 02/05/07 10:28:01:233 Protocol: sending reply
message type = 2 (reply)
compression status = 0 (not compressed; do not compress response, if any)
message size = 26
request id = 4
reply status = 0 (ok) ]
[ 02/05/07 10:28:01:234 Protocol: received close connection
message type = 4 (close connection)
compression status = 1 (not compressed; compress response, if any)
message size = 14 ]
[ 02/05/07 10:28:01:235 Network: shutting down tcp connection for writing
local address = 192.168.101.85:36208
remote address = 192.168.101.86:10010 ]
[ 02/05/07 10:28:01:235 Network: closing tcp connection
local address = 192.168.101.85:36208
remote address = 192.168.101.86:10010 ]
02/05/07 10:28:01:354 warning: connection exception:
Ice.SocketException
error = 0
at IceInternal.TcpTransceiver.read(TcpTransceiver.java:307)
at Ice.ConnectionI.read(ConnectionI.java:1070)
at IceInternal.ThreadPool.read(ThreadPool.java:898)
at IceInternal.ThreadPool.run(ThreadPool.java:698)
at IceInternal.ThreadPool.access$100(ThreadPool.java:12)
at IceInternal.ThreadPool$EventHandlerThread.run(ThreadPool.java:1194)
Caused by: java.io.IOException: 同级重置连接
at sun.nio.ch.FileDispatcher.read0(Native Method)
at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:21)
at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:233)
at sun.nio.ch.IOUtil.read(IOUtil.java:206)
at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:207)
at IceInternal.TcpTransceiver.read(TcpTransceiver.java:236)
... 5 more
local address = 192.168.101.85:11111
remote address = 192.168.101.86:1801
[ 02/05/07 10:28:01:354 Network: shutting down tcp connection for writing
local address = 192.168.101.85:11111
remote address = 192.168.101.86:1801 ]
02/05/07 10:28:01:355 error: exception in `Ice.ThreadPool.Server' thread Ice.ThreadPool.Server-1:
Ice.SocketException
error = 0
at IceInternal.TcpTransceiver.shutdownWrite(TcpTransceiver.java:75)
at Ice.ConnectionI.setState(ConnectionI.java:1580)
at Ice.ConnectionI.setState(ConnectionI.java:1438)
at Ice.ConnectionI.exception(ConnectionI.java:1221)
at IceInternal.ThreadPool.run(ThreadPool.java:717)
at IceInternal.ThreadPool.access$100(ThreadPool.java:12)
at IceInternal.ThreadPool$EventHandlerThread.run(ThreadPool.java:1194)
Caused by: java.net.SocketException: ???????δ±?????
at sun.nio.ch.SocketChannelImpl.shutdown(Native Method)
at sun.nio.ch.SocketChannelImpl.shutdownOutput(SocketChannelImpl.java:592)
at sun.nio.ch.SocketAdaptor.shutdownOutput(SocketAdaptor.java:358)
at IceInternal.TcpTransceiver.shutdownWrite(TcpTransceiver.java:63)
... 6 more0 -
Hi,
If possible, I would recommend to upgrade to the latest Ice for Java version (3.1.1).
Also, from the message of the java.io.IOException, it looks like you're using an regional version of the JVM. Could you try with the english version to see if you still get this problem?
Thanks,
Benoit.0 -
i'll try and see what happens..
thanks benoit~0