Hey guys, In the past few days I've been making the switch to TP04 in my java client, and I've run into a problem. When I try to get the object descriptions from the server, it does not want to return them for some reason. Here's what happens:
I request for object description ids --> receive object description ids --> request for object descriptions with the provided list of id's --> get a sequence frame --> listen to connection for the number of frames specified by the sequence --> ??? Server does not want to send the object descriptions ??? (that is, client listens indefinitely). The same procedure works perfectly for getting order descriptions. Furthermore, when I try to manually close the connection, while it listens to incoming frames, it tells me that there's an exception, since "Socket output is already shutdown", which I never got before. This was attempted on a local tpserver-cpp 0.5.1 and on demo2.thousandparsec.net, and the results are the same. The debug output of the local server simply says that the client has disconnected after receiving the Sequence frame, which is odd. Has anyone else encountered this? Any ideas? Here's the debug output from the local server: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ <.........> 2008-07-22 13:12:50 < Info > Accepting new a connection 2008-07-22 13:12:50 < Info > Accepted connection from localhost [::ffff:127.0.0.1], connection id 4 2008-07-22 13:12:50 < Info > Accepting new tp (tcp) connection 2008-07-22 13:12:50 < Debug > Adding a file descriptor 4 2008-07-22 13:12:50 < Debug > About to Process 2008-07-22 13:12:50 < Debug > Stage1 : pre-connect 2008-07-22 13:12:50 < Debug > ver check header not the length needed, delaying read 2008-07-22 13:12:50 < Debug > Finished Processing 2008-07-22 13:12:50 < Debug > About to Process 2008-07-22 13:12:50 < Debug > Stage1 : pre-connect 2008-07-22 13:12:50 < Debug > ver check header not the length needed, delaying read 2008-07-22 13:12:50 < Debug > Finished Processing 2008-07-22 13:12:50 < Debug > About to Process 2008-07-22 13:12:50 < Debug > Stage1 : pre-connect 2008-07-22 13:12:50 < Info > Client has version 4 of protocol 2008-07-22 13:12:50 < Debug > verCheck, did not get whole frame 2008-07-22 13:12:50 < Debug > Finished Processing 2008-07-22 13:12:50 < Debug > About to Process 2008-07-22 13:12:50 < Debug > Stage1 : pre-connect 2008-07-22 13:12:50 < Info > Client has version 4 of protocol 2008-07-22 13:12:50 < Debug > Read header not the length needed, delaying read 2008-07-22 13:12:50 < Debug > verCheck, did not get whole frame 2008-07-22 13:12:50 < Debug > Finished Processing 2008-07-22 13:12:50 < Debug > About to Process 2008-07-22 13:12:50 < Debug > Stage1 : pre-connect 2008-07-22 13:12:50 < Info > Client has version 4 of protocol 2008-07-22 13:12:50 < Debug > Read header not the length needed, delaying read 2008-07-22 13:12:50 < Debug > verCheck, did not get whole frame 2008-07-22 13:12:50 < Debug > Finished Processing 2008-07-22 13:12:50 < Debug > About to Process 2008-07-22 13:12:50 < Debug > Stage1 : pre-connect 2008-07-22 13:12:50 < Info > Client has version 4 of protocol 2008-07-22 13:12:50 < Debug > Read header not the length needed, delaying read 2008-07-22 13:12:50 < Debug > verCheck, did not get whole frame 2008-07-22 13:12:50 < Debug > Finished Processing 2008-07-22 13:12:50 < Debug > About to Process 2008-07-22 13:12:50 < Debug > Stage1 : pre-connect 2008-07-22 13:12:50 < Info > Client has version 4 of protocol 2008-07-22 13:12:50 < Debug > Read header not the length needed, delaying read 2008-07-22 13:12:50 < Debug > verCheck, did not get whole frame 2008-07-22 13:12:50 < Debug > Finished Processing 2008-07-22 13:12:50 < Debug > About to Process 2008-07-22 13:12:50 < Debug > Stage1 : pre-connect 2008-07-22 13:12:50 < Info > Client has version 4 of protocol 2008-07-22 13:12:50 < Debug > Read header not the length needed, delaying read 2008-07-22 13:12:50 < Debug > verCheck, did not get whole frame 2008-07-22 13:12:50 < Debug > Finished Processing 2008-07-22 13:12:50 < Debug > About to Process 2008-07-22 13:12:50 < Debug > Stage1 : pre-connect 2008-07-22 13:12:50 < Info > Client has version 4 of protocol 2008-07-22 13:12:50 < Debug > Read header not the length needed, delaying read 2008-07-22 13:12:50 < Debug > verCheck, did not get whole frame 2008-07-22 13:12:50 < Debug > Finished Processing 2008-07-22 13:12:50 < Debug > About to Process 2008-07-22 13:12:50 < Debug > Stage1 : pre-connect 2008-07-22 13:12:50 < Info > Client has version 4 of protocol 2008-07-22 13:12:50 < Debug > Read header not the length needed, delaying read 2008-07-22 13:12:50 < Debug > verCheck, did not get whole frame 2008-07-22 13:12:50 < Debug > Finished Processing 2008-07-22 13:12:50 < Debug > About to Process 2008-07-22 13:12:50 < Debug > Stage1 : pre-connect 2008-07-22 13:12:50 < Info > Client has version 4 of protocol 2008-07-22 13:12:50 < Debug > Read header not the length needed, delaying read 2008-07-22 13:12:50 < Debug > verCheck, did not get whole frame 2008-07-22 13:12:50 < Debug > Finished Processing 2008-07-22 13:12:50 < Debug > About to Process 2008-07-22 13:12:50 < Debug > Stage1 : pre-connect 2008-07-22 13:12:50 < Info > Client has version 4 of protocol 2008-07-22 13:12:50 < Debug > Read header not the length needed, delaying read 2008-07-22 13:12:50 < Debug > verCheck, did not get whole frame 2008-07-22 13:12:50 < Debug > Finished Processing 2008-07-22 13:12:50 < Debug > About to Process 2008-07-22 13:12:50 < Debug > Stage1 : pre-connect 2008-07-22 13:12:50 < Info > Client has version 4 of protocol 2008-07-22 13:12:50 < Debug > Read header not the length needed, delaying read 2008-07-22 13:12:50 < Debug > verCheck, did not get whole frame 2008-07-22 13:12:50 < Debug > Finished Processing 2008-07-22 13:12:50 < Debug > About to Process 2008-07-22 13:12:50 < Debug > Stage1 : pre-connect 2008-07-22 13:12:50 < Info > Client has version 4 of protocol 2008-07-22 13:12:50 < Debug > Read header not the length needed, delaying read 2008-07-22 13:12:50 < Debug > verCheck, did not get whole frame 2008-07-22 13:12:50 < Debug > Finished Processing 2008-07-22 13:12:50 < Debug > About to Process 2008-07-22 13:12:50 < Debug > Stage1 : pre-connect 2008-07-22 13:12:50 < Info > Client has version 4 of protocol 2008-07-22 13:12:50 < Debug > verCheck, did not get whole frame 2008-07-22 13:12:50 < Debug > Finished Processing 2008-07-22 13:12:50 < Debug > About to Process 2008-07-22 13:12:50 < Debug > Stage1 : pre-connect 2008-07-22 13:12:50 < Info > Client has version 4 of protocol 2008-07-22 13:12:50 < Debug > Read data not the length needed, delaying read 2008-07-22 13:12:50 < Debug > verCheck, did not get whole frame 2008-07-22 13:12:50 < Debug > Finished Processing 2008-07-22 13:12:50 < Debug > About to Process 2008-07-22 13:12:50 < Debug > Stage1 : pre-connect 2008-07-22 13:12:50 < Info > Client has version 4 of protocol 2008-07-22 13:12:50 < Debug > Read data not the length needed, delaying read 2008-07-22 13:12:50 < Debug > verCheck, did not get whole frame 2008-07-22 13:12:50 < Debug > Finished Processing 2008-07-22 13:12:50 < Debug > About to Process 2008-07-22 13:12:50 < Debug > Stage1 : pre-connect 2008-07-22 13:12:50 < Info > Client has version 4 of protocol 2008-07-22 13:12:50 < Debug > Read data not the length needed, delaying read 2008-07-22 13:12:50 < Debug > verCheck, did not get whole frame 2008-07-22 13:12:50 < Debug > Finished Processing 2008-07-22 13:12:50 < Debug > About to Process 2008-07-22 13:12:50 < Debug > Stage1 : pre-connect 2008-07-22 13:12:50 < Info > Client has version 4 of protocol 2008-07-22 13:12:50 < Debug > Read data not the length needed, delaying read 2008-07-22 13:12:50 < Debug > verCheck, did not get whole frame 2008-07-22 13:12:50 < Debug > Finished Processing 2008-07-22 13:12:50 < Debug > About to Process 2008-07-22 13:12:50 < Debug > Stage1 : pre-connect 2008-07-22 13:12:50 < Info > Client has version 4 of protocol 2008-07-22 13:12:50 < Info > Client on connection 4 is [libtpproto-java-test] 2008-07-22 13:12:50 < Debug > Finished Processing 2008-07-22 13:12:50 < Debug > About to Process 2008-07-22 13:12:50 < Debug > Stage2 : connected 2008-07-22 13:12:50 < Debug > Read header not the length needed, delaying read 2008-07-22 13:12:50 < Debug > Finished Processing 2008-07-22 13:12:50 < Debug > About to Process 2008-07-22 13:12:50 < Debug > Stage2 : connected 2008-07-22 13:12:50 < Debug > isEnoughRemaining, checking for 10, have 18 2008-07-22 13:12:50 < Debug > isEnoughRemaining, checking for 5, have 9 2008-07-22 13:12:50 < Debug > finding player 2008-07-22 13:12:50 < Info > Creating new player automatically 2008-07-22 13:12:50 < Debug > finding player 2008-07-22 13:12:50 < Debug > virtual bool RFTS_::Rfts::onAddPlayer(Player*) 2008-07-22 13:12:50 < Debug > virtual void RFTS_::Rfts::onPlayerAdded(Player*) 2008-07-22 13:12:50 < Debug > IGObject* RFTS_::Rfts::choosePlayerPlanet() const 2008-07-22 13:12:50 < Debug > Making player's fleet 2008-07-22 13:12:50 < Debug > Starting design eval 2008-07-22 13:12:50 < Debug > About to process requirement functions 2008-07-22 13:12:50 < Debug > Eval'ed design 2008-07-22 13:12:50 < Debug > Starting design eval 2008-07-22 13:12:50 < Debug > About to process requirement functions 2008-07-22 13:12:50 < Debug > Eval'ed design 2008-07-22 13:12:50 < Debug > Starting design eval 2008-07-22 13:12:50 < Debug > About to process requirement functions 2008-07-22 13:12:50 < Debug > Eval'ed design 2008-07-22 13:12:50 < Debug > done making fleet 2008-07-22 13:12:50 < Info > Login ok by guest 2008-07-22 13:12:50 < Debug > Finished Processing 2008-07-22 13:12:50 < Debug > About to Process 2008-07-22 13:12:50 < Debug > Stage3 : logged in 2008-07-22 13:12:50 < Debug > Read header not the length needed, delaying read 2008-07-22 13:12:50 < Debug > noFrame :( 2008-07-22 13:12:50 < Debug > Finished Processing 2008-07-22 13:12:50 < Debug > About to Process 2008-07-22 13:12:50 < Debug > Stage3 : logged in 2008-07-22 13:12:50 < Debug > Processing get GameInfo frame 2008-07-22 13:12:50 < Debug > Finished Processing 2008-07-22 13:12:50 < Debug > About to Process 2008-07-22 13:12:50 < Debug > Stage3 : logged in 2008-07-22 13:12:50 < Debug > Read header not the length needed, delaying read 2008-07-22 13:12:50 < Debug > noFrame :( 2008-07-22 13:12:50 < Debug > Finished Processing 2008-07-22 13:12:50 < Debug > About to Process 2008-07-22 13:12:50 < Debug > Stage3 : logged in 2008-07-22 13:12:50 < Debug > inGameFrame 2008-07-22 13:12:50 < Debug > IG Frame processor 2008-07-22 13:12:50 < Debug > Doing get OrderTypes list 2008-07-22 13:12:50 < Debug > Finished Processing 2008-07-22 13:12:50 < Debug > About to Process 2008-07-22 13:12:50 < Debug > Stage3 : logged in 2008-07-22 13:12:50 < Debug > Read header not the length needed, delaying read 2008-07-22 13:12:50 < Debug > noFrame :( 2008-07-22 13:12:50 < Debug > Finished Processing 2008-07-22 13:12:50 < Debug > About to Process 2008-07-22 13:12:50 < Debug > Stage3 : logged in 2008-07-22 13:12:50 < Debug > inGameFrame 2008-07-22 13:12:50 < Debug > IG Frame processor 2008-07-22 13:12:50 < Debug > Doing get OrderDesc 2008-07-22 13:12:50 < Debug > Got multiple ObjectDesc, returning a sequence 2008-07-22 13:12:50 < Debug > Finished Processing 2008-07-22 13:12:50 < Debug > About to Process 2008-07-22 13:12:50 < Debug > Stage3 : logged in 2008-07-22 13:12:50 < Info > Client disconnected 2008-07-22 13:12:50 < Debug > Closing connection 2008-07-22 13:12:50 < Debug > noFrame :( 2008-07-22 13:12:50 < Debug > Finished Processing 2008-07-22 13:12:50 < Info > Closed connection 4 2008-07-22 13:12:50 < Debug > Removing a file descriptor 4 2008-07-22 13:12:50 < Debug > Changing max_fd ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -- Victor. Truth is greater than ten goats (Nigerian proverb). _______________________________________________ tp-devel mailing list [email protected] http://www.thousandparsec.net/tp/mailman.php/listinfo/tp-devel
