I'm marshalling a simple document with a large block of Base64 encoded
text (potentially 100k) in a single element. Im getting the following error:

java.lang.ArrayIndexOutOfBoundsException: 4096
   at
org.jibx.runtime.impl.UTF8StreamWriter.writeTextContent(UTF8StreamWriter.java:277)
   at
org.jibx.runtime.impl.MarshallingContext.element(MarshallingContext.java:638)
   at
ky.mindshare.net.group.services.ftp.FileTransferDescriptor.JiBX_File_Transfer_Protocol_marshal_1_0(FileTransferDescriptor.java)
   at
ky.mindshare.net.group.services.ftp.JiBX_File_Transfer_ProtocolFileTransferDescriptor_access.marshal()
   at
ky.mindshare.net.group.services.ftp.FileTransferDescriptor.marshal(FileTransferDescriptor.java)
   at
org.jibx.runtime.impl.MarshallingContext.marshalRoot(MarshallingContext.java:907)
   at
org.jibx.runtime.impl.MarshallingContext.marshalDocument(MarshallingContext.java:955)

here is my binding if it helps:

<binding>
   <mapping name="file-info"
class="ky.mindshare.net.group.services.ftp.FileTransferDescriptor">
       <value name="name" field="name"/>
       <value name="length" field="length"/>
       <value name="segment-size" field="segmentSize"/>
       <value name="hashes" field="segmentHashes"/>
       <value name="info-hash" field="infoHash"/>
   </mapping>
</binding>

Its the hashes element that's the big one. Im not quite sure how I could
go about debugging this.

--
Gareth Farrington



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
jibx-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jibx-users

Reply via email to