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? http://www.nabble.com/file/p23008087/JiBx_Difference.pdf
JiBx_Difference.pdf
--
View this message in context:
http://www.nabble.com/JiBx-MarshallingContext-problem-tp23008087p23008087.html
Sent from the jibx-users mailing list archive 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