[ 
https://issues.apache.org/jira/browse/AXIOM-531?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18132995#comment-18132995
 ] 

Andreas Martens commented on AXIOM-531:
---------------------------------------

oh yes, and we only hit it because in this instance CCSID 437 was in use, which 
doesn't follow any of the other paths :)

> BufferOverflowException on strings > 4096 bytes
> -----------------------------------------------
>
>                 Key: AXIOM-531
>                 URL: https://issues.apache.org/jira/browse/AXIOM-531
>             Project: Axiom
>          Issue Type: Bug
>            Reporter: Andreas Martens
>            Priority: Major
>
> When serializing large messages, we get:
> {{java.nio.BufferOverflowException at 
> java.base/java.nio.HeapCharBuffer.put(HeapCharBuffer.java:231) at 
> org.apache.axiom.core.stream.serializer.writer.OutputStreamXmlWriter.write(OutputStreamXmlWriter.java:144)
>  at 
> org.apache.axiom.core.stream.serializer.Serializer.characters(Serializer.java:445)
>  at 
> org.apache.axiom.core.stream.serializer.Serializer.characters(Serializer.java:478)
>  at 
> org.apache.axiom.core.stream.serializer.Serializer.characters(Serializer.java:471)
>  at 
> org.apache.axiom.core.stream.serializer.Serializer.processCharacterData(Serializer.java:509)
>  at 
> org.apache.axiom.core.stream.XmlHandlerWrapper.processCharacterData(XmlHandlerWrapper.java:93)
>  at 
> org.apache.axiom.core.stream.XmlHandlerWrapper.processCharacterData(XmlHandlerWrapper.java:93)
>  at 
> org.apache.axiom.om.impl.llom.AxiomCharacterDataNodeImpl.internalSerialize(Unknown
>  Source) at 
> org.apache.axiom.core.impl.TreeWalkerImpl.proceed(TreeWalkerImpl.java:248) at 
> org.apache.axiom.om.impl.llom.CoreParentNodeImpl.internalSerialize(Unknown 
> Source) at org.apache.axiom.om.impl.llom.AxiomContainerImpl.serialize(Unknown 
> Source) at 
> org.apache.axiom.om.impl.llom.AxiomContainerImpl.serializeAndSurfaceIOException(Unknown
>  Source) at 
> org.apache.axiom.om.impl.llom.AxiomContainerImpl.serialize(Unknown Source) 
> at}} 
> the function in question computes how much it can write to the buffer, but 
> ignores it and writes the full length anyway.
> Just going through a `mvn clean package` and will submit a PR
>  



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to