You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-dev@xml.apache.org by "Aspin, Gordon D. (US - Chicago)" <ga...@dc.com> on 2001/04/19 15:11:20 UTC
PATCH for XMISerializer.java to prevent thread deadlock
> I have been experimenting with both the JOB and SOAP for a while and when
> using XMI encoding I found this issue with the
> org.apache.soap.util.xml.XMISerializer class.
>
> In the original implementation, the marshall method uses a
> PipedInputStream and PipedOutputStream as the in-memory stream to
> serialize to. This idiom fails when the two stream objects are used in the
> same thread (as documented in the JDK). The thread basically deadlocks
> while writing to the PipedOutputStream.
>
> I have implemented a solution that is attached, and it needs to go into
> the SOAP 2.0 and 2.1 source trees.
>
> Thanks! <<XMISerializer.java>>
>
> Gordon Aspin
> Deloitte Consulting
> eTI : eTechnology Integration
> office (312) 374 2832
> fax (312) 870 2832
> mobile (630) 336 4209
> gaspin@dc.com
>
>
>
This message (including any attachments) contains confidential information
intended for a specific individual and purpose, and is protected by law. If
you are not the intended recipient, you should delete this message and are
hereby notified that any disclosure, copying, or distribution of this
message, or the taking of any action based on it, is strictly prohibited.