Go Back   ZeroC Forums > Help Center

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 02-04-2007
leya leya is offline
Registered User
 
Name: Leya Wang
Organization: Wuhan Univ.
Project: Scalable Communication
 
Join Date: Mar 2006
Posts: 40
(java)server cannot be connected after shuting down a client

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

Quote:
error: exception in `Ice.ThreadPool.Server' thread Ice.ThreadPool.Server-0:
Ice.SocketException
error = 0
at IceInternal.TcpTransceiver.shutdownWrite(TcpTransc eiver.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(Thre adPool.java:1194)
Caused by: java.net.SocketException: ???????δ±?????
at sun.nio.ch.SocketChannelImpl.shutdown(Native Method)
at sun.nio.ch.SocketChannelImpl.shutdownOutput(Socket ChannelImpl.java:592)
at sun.nio.ch.SocketAdaptor.shutdownOutput(SocketAdap tor.java:368)
at IceInternal.TcpTransceiver.shutdownWrite(TcpTransc eiver.java:63)
... 6 more
maybe this is related to the OS solaris, i have no idea
any suggestions?

thanks
Reply With Quote
  #2 (permalink)  
Old 02-04-2007
marc's Avatar
marc marc is offline
ZeroC Staff
 
Name: Marc Laukien
Organization: ZeroC, Inc.
Project: The Internet Communications Engine
 
Join Date: Feb 2003
Location: Florida
Posts: 1,781
Which Java version are you using?
Reply With Quote
  #3 (permalink)  
Old 02-04-2007
leya leya is offline
Registered User
 
Name: Leya Wang
Organization: Wuhan Univ.
Project: Scalable Communication
 
Join Date: Mar 2006
Posts: 40
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
Reply With Quote
  #4 (permalink)  
Old 02-04-2007
leya leya is offline
Registered User
 
Name: Leya Wang
Organization: Wuhan Univ.
Project: Scalable Communication
 
Join Date: Mar 2006
Posts: 40
here is the more detailed trace

thanks!

Quote:
[ 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.jav a: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(Thre adPool.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(SocketChannelImp l.java:207)
at IceInternal.TcpTransceiver.read(TcpTransceiver.jav a: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(TcpTransc eiver.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(Thre adPool.java:1194)
Caused by: java.net.SocketException: ???????δ±?????
at sun.nio.ch.SocketChannelImpl.shutdown(Native Method)
at sun.nio.ch.SocketChannelImpl.shutdownOutput(Socket ChannelImpl.java:592)
at sun.nio.ch.SocketAdaptor.shutdownOutput(SocketAdap tor.java:358)
at IceInternal.TcpTransceiver.shutdownWrite(TcpTransc eiver.java:63)
... 6 more
Reply With Quote
  #5 (permalink)  
Old 02-05-2007
benoit's Avatar
benoit benoit is online now
ZeroC Staff
 
Name: Benoit Foucher
Organization: ZeroC, Inc.
Project: Ice
 
Join Date: Feb 2003
Location: Rennes, France
Posts: 1,543
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.
Reply With Quote
  #6 (permalink)  
Old 02-05-2007
leya leya is offline
Registered User
 
Name: Leya Wang
Organization: Wuhan Univ.
Project: Scalable Communication
 
Join Date: Mar 2006
Posts: 40
i'll try and see what happens..
thanks benoit~
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
when shuting down one node in icegrid,the client wait a long time to reconnect leya Help Center 8 06-08-2006 09:59 PM
Pb between C++ client and Java Server arnaud Help Center 17 04-10-2006 05:10 AM
java client with VC6.0 server: unknown c++ exception? claykunz Help Center 15 07-29-2005 11:18 PM
How to generate certificate for java client and c++ server? timeguest Help Center 1 05-09-2005 09:04 PM


All times are GMT -4. The time now is 11:37 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0
(c) 2008 ZeroC, Inc.