Unexpected EOF; was expecting a close tag for element <attribute>

Discussão em 'StackOverflow' iniciado por Stack, Dezembro 30, 2020.

  1. Stack

    Stack Membro Participativo

    I am parsing through a xml file using stax and writing the extracted data to the database. It works for small files, but when I parse a large file, its throwing this exception. Looking at the xml file, it is gud according to the row and column given. Could any one please let me know, why is this happening?

    com.ctc.wstx.exc.WstxEOFException: Unexpected EOF; was expecting a close tag for element <attribute>
    at [row,col {unknown-source}]: [787,1401]
    at com.ctc.wstx.sr.StreamScanner.throwUnexpectedEOF(StreamScanner.java:686)
    at com.ctc.wstx.sr.BasicStreamReader.nextFromTree(BasicStreamReader.java:2730)
    at com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1019)
    at com.ctc.wstx.evt.WstxEventReader.nextEvent(WstxEventReader.java:196)

    sun.reflect.GeneratedMethodAccessor3625.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.jboss.aop.joinpoint.MethodInvocation.invokeTarget(MethodInvocation.java:122)
    at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:111)

    Continue reading...

Compartilhe esta Página