Lost Password?


Go Back   CodeCall Programming Forum > Software Development > Java Help

Java Help Java Help forum discussing all Java platforms - J2ME, J2SE and J2EE - as well as relevant standards, APIs and frameworks such as Swing, Servlets, JSPs, Applets, Struts, Spring, Hibernate, ANT, EJB, and other Java-related topics.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-05-2007, 03:02 PM
reachpradeep's Avatar   
reachpradeep reachpradeep is offline
Learning Programmer
 
Join Date: Mar 2007
Location: India
Posts: 41
Rep Power: 7
reachpradeep is on a distinguished road
Send a message via MSN to reachpradeep
Default Object IO Stream Data Loss Possible? Any solution, pls?

I've created a client and server program. The server sends a queue object containing some objects through the connection. And the client receives it and processes it.

On the first sending of queue object, the client receives the queue object with the elements in it ok. However, in the succeeding sends and receives by the server and client, respectively, the client receives the queue, but with empty size or no elements at all. I've already checked the server by printing the size of the queue object about to be sent and I'm sure the queue is not empty.

So I've proceeded to debug the client. When printing the size of the queue after immediately receiving it, as mentioned above, the first receive has the elements, but the succeeding has 0 elements.

I've also checked by just sending String objects, and the weird thing is that everything works fine with the Strings all through out the run time.

I'm stumped for days with this problem. Can anybody suggest a way to debug this? Or has anybody encountered the same problem? Or should I just start overhauling things and pass Strings or some sort of packet instead?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Java:Tutorial - Data Types John Java Tutorials 6 07-02-2007 10:16 PM
Fetching Data from a Form Generated Website pclark2 General Programming 5 05-11-2007 07:24 AM


All times are GMT -5. The time now is 11:16 PM.

Contest Stats

WingedPanther ........ 2753.6
Xav ........ 2704
Brandon W ........ 1702.32
John ........ 1207.73
marwex89 ........ 1175.24
morefood2001 ........ 966.05
dcs ........ 655.75
Steve.L ........ 475.59
orjan ........ 418.58
Aereshaa ........ 383.54

Contest Rules

CodeCall Goal

Goal: 100,000 Posts
Complete: 100%


Complete - Celebrate!

Ads