• Post Reply Bookmark Topic Watch Topic
  • New Topic

How can i use ObjectInputStream.GetFeild received the Object's data from the server?

 
zhang feng
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello , i think to receive the Object's data from the server,eg:


up the "ss" is a InputStream of the Sock stream,"MyObject" is my owner class. the "name" is my class's int field.so i through the one way can read
the right data to "name" from the server.now i think that read the object's data in the server ,that passed the ObjectInputStream.GetFields object "osg" in the two way ,if this has or not the cemment //1 ,it always throws the NotActiveException :not in call to readObject() at //2.sever use the same compute.
now how can i do?
thank you help!
 
Joe Ess
Bartender
Posts: 9361
11
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't know why you are doing this:
Originally posted by zhang feng:

After you call this line, mb should have all its fields set:


 
zhang feng
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
perhaps i have a little error,but the ObjectInputStream.GetField used to where?
[ November 12, 2003: Message edited by: zhang feng ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!