[ 
https://issues.apache.org/jira/browse/XMLBEANS-325?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Wing Yew Poon reassigned XMLBEANS-325:
--------------------------------------

    Assignee: Cezar Andrei

Cezar, if you look at the code and cannot see anything wrong, then maybe we can 
resolve this as unreproducible since we have no further information from the 
reporter, Kirk.


> Assertion failure in Saver.java:1229
> ------------------------------------
>
>                 Key: XMLBEANS-325
>                 URL: https://issues.apache.org/jira/browse/XMLBEANS-325
>             Project: XMLBeans
>          Issue Type: Bug
>    Affects Versions: Version 2.2
>         Environment: Java 5, XMLBeans release 2.2.0
>            Reporter: Kirk Wylie
>            Assignee: Cezar Andrei
>            Priority: Minor
>
> I've started seeing assertion failures in Saver.java line 1229 as indicated 
> by the following stack trace:
> java.lang.AssertionError
>       at 
> org.apache.xmlbeans.impl.store.Saver$TextSaver.preEmit(Saver.java:1229)
>       at org.apache.xmlbeans.impl.store.Saver$TextSaver.emit(Saver.java:1147)
>       at 
> org.apache.xmlbeans.impl.store.Saver$TextSaver.emitFinish(Saver.java:946)
>       at org.apache.xmlbeans.impl.store.Saver.processFinish(Saver.java:333)
>       at org.apache.xmlbeans.impl.store.Saver.process(Saver.java:308)
>       at 
> org.apache.xmlbeans.impl.store.Saver$TextSaver.ensure(Saver.java:1547)
>       at org.apache.xmlbeans.impl.store.Saver$TextSaver.read(Saver.java:1634)
>       at org.apache.xmlbeans.impl.store.Saver$TextReader.read(Saver.java:2233)
>       at org.apache.xmlbeans.impl.store.Cursor._save(Cursor.java:613)
>       at org.apache.xmlbeans.impl.store.Cursor.save(Cursor.java:2562)
>       at 
> org.apache.xmlbeans.impl.values.XmlObjectBase.save(XmlObjectBase.java:183)
>       at 
> com.kbcfp.fotech.couteau.xml.XmlHelper.writeDocument(XmlHelper.java:43)
>       at 
> com.kbcfp.fotech.couteau.xml.V2OrganizationDataProcessor.writeToWriter(V2OrganizationDataProcessor.java:346)
> <REDACTED/>
> When debugging, the line is:
>                 assert _in == _out;
> in the context of:
>             int used = getAvailable();
>             // if we are about to emit and there is noting in the buffer, 
> reset
>             // the buffer to be at the beginning so as to not grow it anymore
>             // than needed.
>             if (used == 0)
>             {
>                 assert _in == _out;
>                 assert _free == _buf.length;
>                 _in = _out = 0;
>             }
> In the debugger, in this case _in = 16384 and _out = 0.
> This has only started happening recently.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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

Reply via email to