users@jaxb.java.net

Unmarshalling via InputStream

From: Malachi de Aelfweald <malachid_at_temporal-wave.com>
Date: Thu, 21 Aug 2003 13:14:42 -0700

I am trying to send data through a socket, using a marshaller at one end
and an unmarshaller at the other. To ensure that the problem was not on
the marshaller side (perhaps, flushing, etc), I put a filter stream on
the unmarshaller side and saw that all the data was in fact being sent
(including an extra blank line at the end).

 

The unmarshaller never returns from the unmarshall call, even though all
the data is there. If I hard-close the stream on the sending side, then
it returns with the content just fine, but then the socket is hosed for
further communication.

 

Any thoughts?

 

Malachi