[ https://issues.apache.org/jira/browse/JOHNZON-158?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16369416#comment-16369416 ]
Matthias Hanisch commented on JOHNZON-158: ------------------------------------------ If you don't use the JsonbConfig which influences the size of the JSON structure then it works. > ArrayIndexOutOfBoundsException in JsonStreamParserImpl.copyCurrentValue every > second time > ----------------------------------------------------------------------------------------- > > Key: JOHNZON-158 > URL: https://issues.apache.org/jira/browse/JOHNZON-158 > Project: Johnzon > Issue Type: Bug > Components: JSON-B > Affects Versions: 1.1.5, 1.1.6 > Reporter: Matthias Hanisch > Priority: Major > Attachments: JOHNZON158.java > > > The following exception happens at every second unmarshalling of a class > containing a big byte array. > {noformat} > java.lang.ArrayIndexOutOfBoundsException > at java.lang.System.arraycopy(Native Method) > at > org.apache.johnzon.core.JsonStreamParserImpl.copyCurrentValue(JsonStreamParserImpl.java:176) > at > org.apache.johnzon.core.JsonStreamParserImpl.readNextChar(JsonStreamParserImpl.java:281) > at > org.apache.johnzon.core.JsonStreamParserImpl.readString(JsonStreamParserImpl.java:594) > at > org.apache.johnzon.core.JsonStreamParserImpl.handleQuote(JsonStreamParserImpl.java:684) > at > org.apache.johnzon.core.JsonStreamParserImpl.next(JsonStreamParserImpl.java:429) > at > org.apache.johnzon.core.JsonStreamParserImpl.next(JsonStreamParserImpl.java:389) > at > org.apache.johnzon.core.JsonReaderImpl.parseObject(JsonReaderImpl.java:182) > at > org.apache.johnzon.core.JsonReaderImpl.readValue(JsonReaderImpl.java:83) > at > org.apache.johnzon.mapper.MappingParserImpl.readObject(MappingParserImpl.java:125) > at org.apache.johnzon.mapper.Mapper.mapObject(Mapper.java:261) > at org.apache.johnzon.mapper.Mapper.readObject(Mapper.java:208) > at org.apache.johnzon.mapper.Mapper.readObject(Mapper.java:204) > at > org.apache.johnzon.jsonb.JohnzonJsonb.fromJson(JohnzonJsonb.java:58){noformat} > Must be some state issue. I try to create a simple test case tonight. -- This message was sent by Atlassian JIRA (v7.6.3#76005)