This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Objects to capture!! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Objects to capture!!" Watch "Objects to capture!!" New topic

Objects to capture!!

karthik ts

Joined: Feb 16, 2001
Posts: 7
here's a problem, really annoying!!
somebody tell me why is'nt the server not able to print the Objects of the Client.
The Client sets the vector object into the stream and the server is ready to capture the object. But unable to find where the hole is in printing the objects captured by the server. Have a look at this below.

(edited by Cindy to format code)

[This message has been edited by Cindy Glass (edited February 17, 2001).]

Joined: Feb 06, 2001
Posts: 6
humm i am not sure but i think you are writing down the Vector object but maby not the element in the vector try
"Object get(int index)"
hope this helps

Sun Certified Programmer for Java 2 Platform
Grant Crofton
Ranch Hand

Joined: Nov 08, 2000
Posts: 154
Yeah, you're passing the whole Vector to the stream - you either need to pass an element of the vector like Rikard said or have the Server looking for Vectors instead of Strings and processing them accordingly.
I agree. Here's the link:
subject: Objects to capture!!
Similar Threads
I Got a Problem in ObjectInputStream while iam sending Vector 2nd Time
sockets and Threads
Sockets using threads
Sockets and Threads
Sockets and Threads