Skip to main content

The problem of using ObjectInputStream with JxtaSocket

1 reply [Last post]
Joined: 2008-05-22

Dear all:

I want to use ObjectInputStream and ObjectOutputStream based on JxtaSocket to send/receive objects.

I found a problem, may be a bug, that is, in the client side, I can't create a ObjectInputstream. The example code is like this:

JxtaSocket socket = new JxtaSocket(netPeerGroup, null, pipeAdv, 5000, true);
new ObjectInputStream(socket.getInputStream());

The process is stuck at the line of new ObjectInputStream(socket.getInputStream());

If I use other kinds of InputStream, like new DateInputStream(socket.getInputStream), It's work.

I use the jxta-2.5 lib at the download page.

Could you help me to figure this out

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Joined: 2007-01-31


What do you mean by the process is stuck? Is there an error message? An exception?