Skip to main content

alphaWorks  >  Forums  >  TSpaces  >  developerWorks

TupleSpaceCommunicationException: Socket closed    Point your RSS reader here for a feed of the latest messages in this thread


     

 
 

My developerWorks
 Welcome, Guest
Sign in or register
Permlink Replies: 0 - Pages: 1 Threads: [ Previous | Next ]
Vaibhav818

Posts: 3
Registered: Jun 30, 2008 06:47:24 AM
TupleSpaceCommunicationException: Socket closed
Posted: Aug 05, 2009 03:20:48 AM
Click to report abuse...   Click to reply to this thread Reply
I am using TS Server Version 2.1.2.
And I am using java client to connect to Tspace Server.
Java client continuously runs and checks if the Tspace Server is running or not
(along with some other work like reading/consuming tuples and processing ).
Client application is connecting to TSpace Server using the following (First Time):
TupleSpace controlTsp= new TupleSpace("controlTsp","localhost");
Once it is connected to Tspace Server , I stop the Tspace server.
and try to connect to the same tuple space again (Second time)using my java client application:
TupleSpace controlTsp= new TupleSpace("controlTsp","localhost");
when I try to connect to the TupleSpace this time (second time) I got the following messages :

main: Socket closed
com.ibm.tspaces.TupleSpaceCommunicationException: Socket closed
at com.ibm.tspaces.TSCmdSocketImpl.talkToAServer(TSCmdSocketImpl.java:1132)
at com.ibm.tspaces.TSCmdSocketImpl.command(TSCmdSocketImpl.java:506)
at com.ibm.tspaces.TSCmdSocketImpl.command(TSCmdSocketImpl.java:419)
at com.ibm.tspaces.TupleSpace.<init>(TupleSpace.java:645)
at com.ibm.tspaces.TupleSpace.<init>(TupleSpace.java:820)
at com.ibm.vep.em.utility.MonitorUtility.main(MonitorUtility.java:968)

Question :a) Can I connect to TupleSpace again in the same client after I restart the Tspace Server?
b) The TS Server version 2.1.2 is not having any thing like disconnect from Tspace server.
Is there any way we can disconnect from TS Server and connect to it again in version 2.1.2?
It is like the Client is continuously running , I am stopping the server and then restart the server again and try to get the connection in the same client

Point your RSS reader here for a feed of the latest messages in all forums