Nice! Thanks. robert -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dennis Sosnoski Sent: Monday, April 19, 2004 2:32 AM To: Gareth Cc: [EMAIL PROTECTED] Subject: Re: [jibx-users] ArrayIndexOutOfBoundsException when marshalling a larg element
Yes, the problem is a general one that would show up anytime you tried to write a single String that was more than twice the length of the current internal buffer (which starts at 2048 characters). Should be fixed in CVS now (though it takes about a day to get to the public CVS), but I'll wait for Gareth to confirm before I close the bug report. Given the seriousness of this problem I may do a new beta 3b release next weekend. - Dennis Gareth wrote: >Hmm, I dont think it would be a problem with Base64 in particular. >Base64 was designed to encode binary data >as valid text in e-mail messages, as a result it only uses XML legal >characters. Base64 text is no different than >any other type of XML legal text. It only uses the characters [A-Za-z][+/=]. > >-- >Gareth Farrington > >Robert Augustyn wrote: > > > >>Dennis, >>Is this related to Base64 encoded text or to all types >>of text? >>robert >> >>-----Original Message----- >>From: [EMAIL PROTECTED] >>[mailto:[EMAIL PROTECTED] On >>Behalf Of Dennis >>Sosnoski >>Sent: Friday, April 16, 2004 11:18 AM >>To: Gareth >>Cc: [EMAIL PROTECTED] >>Subject: Re: [jibx-users] >>ArrayIndexOutOfBoundsException when >>marshalling a larg element >> >> >>Looks like a bug in the new output code. Can you set >>up an account and >>enter this in Jira (the "Bugs" link on the top of the >>home page), >>preferable with actual code and data attachments? I'll >>make it a >>priority to look into this, since it's a blocking >>problem. >> >> - Dennis >> >>Gareth wrote: >> >> >> >> >> >>>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(UTF8StreamWri >>>te >>> >>> >>> >>> >>r.java:277) >> >> >> >> >>> at >>>org.jibx.runtime.impl.MarshallingContext.element(MarshallingContext.j >>>av >>> >>> >>> >>> >>a:638) >> >> >> >> >>> at >>>ky.mindshare.net.group.services.ftp.FileTransferDescriptor.JiBX_File_ >>>Tr >>> >>> >>> >>> >>ansfer_Protocol_marshal_1_0(FileTransferDescriptor.java) >> >> >> >> >>> at >>>ky.mindshare.net.group.services.ftp.JiBX_File_Transfer_ProtocolFileTr >>>an >>> >>> >>> >>> >>sferDescriptor_access.marshal() >> >> >> >> >>> at >>>ky.mindshare.net.group.services.ftp.FileTransferDescriptor.marshal(Fi >>>le >>> >>> >>> >>> >>TransferDescriptor.java) >> >> >> >> >>> at >>>org.jibx.runtime.impl.MarshallingContext.marshalRoot(MarshallingConte >>>xt >>> >>> >>> >>> >>..java:907) >> >> >> >> >>> at >>>org.jibx.runtime.impl.MarshallingContext.marshalDocument(MarshallingC >>>on >>>text.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 >>> >>> >>> >>> >>> >>> >>> >> >> >> >> > > > >------------------------------------------------------- >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 > > > -- Dennis M. Sosnoski Enterprise Java, XML, and Web Services Training and Consulting http://www.sosnoski.com Redmond, WA 425.885.7197 ------------------------------------------------------- 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 __________________________________ Do you Yahoo!? Yahoo! Photos: High-quality 4x6 digital prints for 25� http://photos.yahoo.com/ph/print_splash ------------------------------------------------------- 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
