You're correct in your understanding of how this works in 1.2.1 vs. 1.1.6. This restructuring with the added OutByteBuffer layer was done to support XBIS encoding and decoding, which is implemented in 1.2.X (and used by the JiBX/WS code in development) but not yet documented.
Can you provide more details of what you're doing? There should be a way of working around the problem, but it's hard to tell how based on the limited information you provided. - Dennis Dennis M. Sosnoski SOA and Web Services in Java Training and Consulting http://www.sosnoski.com - http://www.sosnoski.co.nz Seattle, WA +1-425-939-0576 - Wellington, NZ +64-4-298-6117 Bodhayan wrote: > Hi, I used JiBx 1.1.6 previously. After upgrading to 1.2.1, I am > having some problem. In JiBx 1.1.6, it uses the OutputStream in > StreamWriterBase. In my code, when I call marshalDocument method of > MarshallingContext, it calls the marshalRoot and then endDocument. The > endDocument method closes the OutputStream and remove the reference. > But the other contexts are still holding the reference of the > OutputStream. So there was no problem for the other contexts to get > the reference of OutputStream. But in JiBx 1.2.1, it doesn't use the > reference of the OutputStream in the StreamWriterBase. Rather it uses > OutByteBuffer and OutByteBuffer holds the reference of OutputStream. > So when one context calls the endDocument method, it removes the > reference of the stream form the OutByteBuffer which is shared across > all child contexts. But as there is only one reference to the stream > from the OutByteBuffer, so, though the other contexts are holding the > references of OutByteBuffer, but the reference to the stream is gone. > Attached is a pictorial view if the differences of JiBx 1.1.6 and JiBx > 1.2.1. Attached are some pictorial view of the problem. Can you please > provide me a solution for this? Is this a known issue in JiBx > 1.2.1?JiBx_Difference.pdf > <http://www.nabble.com/file/p23008087/JiBx_Difference.pdf> > ------------------------------------------------------------------------ > View this message in context: JiBx MarshallingContext problem > <http://www.nabble.com/JiBx-MarshallingContext-problem-tp23008087p23008087.html> > Sent from the jibx-users mailing list archive > <http://www.nabble.com/jibx-users-f4287.html> at Nabble.com. > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > High Quality Requirements in a Collaborative Environment. > Download a free trial of Rational Requirements Composer Now! > http://p.sf.net/sfu/www-ibm-com > ------------------------------------------------------------------------ > > _______________________________________________ > jibx-users mailing list > jibx-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/jibx-users > ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ jibx-users mailing list jibx-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jibx-users