javax.xml.stream.XMLStreamException: ParseError at [row,col]:[189309,10] Message: Can not call 'getElemStringValue(): cursor does not point to a valid node (curr event [null]; cursor state CLOSED)

Atlassian JIRA | Ajay Sridhar [Atlassian] | 6 years ago
  1. 0

    In older Bamboo versions we didn't write ServerID in the Bamboo export, however in Bamboo 2.6 we expect ServerID to be present. When Bamboo can't find the serverID it dies with: {code} 2010-07-13 16:17:05,079 ERROR [543021934@qtp-380183900-0] [SchemaExport] Specified key was too long; max key length is 1000 bytes 2010-07-13 16:17:09,291 INFO [543021934@qtp-380183900-0] [XmlMigrator] Reading file: /Users/asridhar/Downloads/export/Archive.zip/configuration/administrationConfiguration.xml 2010-07-13 16:17:09,295 INFO [543021934@qtp-380183900-0] [XmlMigrator] Reading file: /Users/asridhar/Downloads/export/Archive.zip/configuration/administrationConfiguration.xml 2010-07-13 16:17:09,580 ERROR [543021934@qtp-380183900-0] [ImportExportManagerImpl] Exception occurred during import javax.xml.stream.XMLStreamException: ParseError at [row,col]:[189309,10] Message: Can not call 'getElemStringValue(): cursor does not point to a valid node (curr event [null]; cursor state CLOSED) at org.codehaus.staxmate.in.SMInputCursor.constructStreamException(SMInputCursor.java:1855) at org.codehaus.staxmate.in.CursorBase._notAccessible(CursorBase.java:296) at org.codehaus.staxmate.in.SMInputCursor._verifyElemAccess(SMInputCursor.java:1537) at org.codehaus.staxmate.in.SMInputCursor.getElemStringValue(SMInputCursor.java:1323) at com.atlassian.bamboo.migration.stream.ServerIDMapper.createItemInstance(ServerIDMapper.java:41) at com.atlassian.bamboo.migration.stream.ServerIDMapper.createItemInstance(ServerIDMapper.java:15) at com.atlassian.bamboo.migration.BambooStAXMappingHelperAbstractImpl.importXml(BambooStAXMappingHelperAbstractImpl.java:145) at com.atlassian.bamboo.migration.BambooStAXMappingHelperAbstractImpl.importXml(BambooStAXMappingHelperAbstractImpl.java:128) at com.atlassian.bamboo.migration.stream.ServerIDMapper.importData(ServerIDMapper.java:60) at com.atlassian.bamboo.migration.XmlMigrator.importData(XmlMigrator.java:308) at com.atlassian.bamboo.migration.XmlMigrator.importFile(XmlMigrator.java:280) at com.atlassian.bamboo.migration.XmlMigrator.loadXmlData(XmlMigrator.java:226) at com.atlassian.bamboo.migration.XmlMigrator.importXml(XmlMigrator.java:137) at com.atlassian.bamboo.migration.XmlMigrator$$FastClassByCGLIB$$b6578fc7.invoke(<generated>) at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149) .... .... Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[189309,10] Message: Can not call 'getElemStringValue(): cursor does not point to a valid node (curr event [null]; cursor state CLOSED) at org.codehaus.staxmate.in.SMInputCursor.constructStreamException(SMInputCursor.java:1855) at org.codehaus.staxmate.in.CursorBase._notAccessible(CursorBase.java:296) {code} h3. Workaround # unzip the Bamboo export and edit the ../configuration/administrationConfiguration.xml # find the following section: {code:xml} <?xml version="1.0" encoding="utf-8"?> <bamboo> <date>Fri Jul 09 16:04:22 CEST 2010</date> <version>1.2.4</version> <build>503</build> <buildDate>17-okt-2007</buildDate> <users> {code} # add the following line so that the file looks like this: {code} <?xml version="1.0" encoding="utf-8"?> <bamboo> <date>Fri Jul 09 16:04:22 CEST 2010</date> <version>1.2.4</version> <build>503</build> <buildDate>17-okt-2007</buildDate> <serverID>BMBM-MUAD-R33M-USLY</serverID> <users> {code} # recompress the archive and import into Bamboo.

    Atlassian JIRA | 6 years ago | Ajay Sridhar [Atlassian]
    javax.xml.stream.XMLStreamException: ParseError at [row,col]:[189309,10] Message: Can not call 'getElemStringValue(): cursor does not point to a valid node (curr event [null]; cursor state CLOSED)
  2. 0

    In older Bamboo versions we didn't write ServerID in the Bamboo export, however in Bamboo 2.6 we expect ServerID to be present. When Bamboo can't find the serverID it dies with: {code} 2010-07-13 16:17:05,079 ERROR [543021934@qtp-380183900-0] [SchemaExport] Specified key was too long; max key length is 1000 bytes 2010-07-13 16:17:09,291 INFO [543021934@qtp-380183900-0] [XmlMigrator] Reading file: /Users/asridhar/Downloads/export/Archive.zip/configuration/administrationConfiguration.xml 2010-07-13 16:17:09,295 INFO [543021934@qtp-380183900-0] [XmlMigrator] Reading file: /Users/asridhar/Downloads/export/Archive.zip/configuration/administrationConfiguration.xml 2010-07-13 16:17:09,580 ERROR [543021934@qtp-380183900-0] [ImportExportManagerImpl] Exception occurred during import javax.xml.stream.XMLStreamException: ParseError at [row,col]:[189309,10] Message: Can not call 'getElemStringValue(): cursor does not point to a valid node (curr event [null]; cursor state CLOSED) at org.codehaus.staxmate.in.SMInputCursor.constructStreamException(SMInputCursor.java:1855) at org.codehaus.staxmate.in.CursorBase._notAccessible(CursorBase.java:296) at org.codehaus.staxmate.in.SMInputCursor._verifyElemAccess(SMInputCursor.java:1537) at org.codehaus.staxmate.in.SMInputCursor.getElemStringValue(SMInputCursor.java:1323) at com.atlassian.bamboo.migration.stream.ServerIDMapper.createItemInstance(ServerIDMapper.java:41) at com.atlassian.bamboo.migration.stream.ServerIDMapper.createItemInstance(ServerIDMapper.java:15) at com.atlassian.bamboo.migration.BambooStAXMappingHelperAbstractImpl.importXml(BambooStAXMappingHelperAbstractImpl.java:145) at com.atlassian.bamboo.migration.BambooStAXMappingHelperAbstractImpl.importXml(BambooStAXMappingHelperAbstractImpl.java:128) at com.atlassian.bamboo.migration.stream.ServerIDMapper.importData(ServerIDMapper.java:60) at com.atlassian.bamboo.migration.XmlMigrator.importData(XmlMigrator.java:308) at com.atlassian.bamboo.migration.XmlMigrator.importFile(XmlMigrator.java:280) at com.atlassian.bamboo.migration.XmlMigrator.loadXmlData(XmlMigrator.java:226) at com.atlassian.bamboo.migration.XmlMigrator.importXml(XmlMigrator.java:137) at com.atlassian.bamboo.migration.XmlMigrator$$FastClassByCGLIB$$b6578fc7.invoke(<generated>) at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149) .... .... Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[189309,10] Message: Can not call 'getElemStringValue(): cursor does not point to a valid node (curr event [null]; cursor state CLOSED) at org.codehaus.staxmate.in.SMInputCursor.constructStreamException(SMInputCursor.java:1855) at org.codehaus.staxmate.in.CursorBase._notAccessible(CursorBase.java:296) {code} h3. Workaround # unzip the Bamboo export and edit the ../configuration/administrationConfiguration.xml # find the following section: {code:xml} <?xml version="1.0" encoding="utf-8"?> <bamboo> <date>Fri Jul 09 16:04:22 CEST 2010</date> <version>1.2.4</version> <build>503</build> <buildDate>17-okt-2007</buildDate> <users> {code} # add the following line so that the file looks like this: {code} <?xml version="1.0" encoding="utf-8"?> <bamboo> <date>Fri Jul 09 16:04:22 CEST 2010</date> <version>1.2.4</version> <build>503</build> <buildDate>17-okt-2007</buildDate> <serverID>BMBM-MUAD-R33M-USLY</serverID> <users> {code} # recompress the archive and import into Bamboo.

    Atlassian JIRA | 6 years ago | Ajay Sridhar [Atlassian]
    javax.xml.stream.XMLStreamException: ParseError at [row,col]:[189309,10] Message: Can not call 'getElemStringValue(): cursor does not point to a valid node (curr event [null]; cursor state CLOSED)
  3. 0

    Error parsing cppcheck results xml

    GitHub | 3 years ago | huepf
    org.sonar.runner.impl.RunnerException: Unable to execute Sonar
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Error parsing cppcheck results xml

    GitHub | 3 years ago | huepf
    org.sonar.runner.impl.RunnerException: Unable to execute Sonar
  6. 0

    StAX parser does not handle UTF-8 byte order mark

    Oracle Community | 1 decade ago | 666705
    javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,7] Message: processing instruction can not have PITarget with reserveld xml name

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. javax.xml.stream.XMLStreamException

      ParseError at [row,col]:[189309,10] Message: Can not call 'getElemStringValue(): cursor does not point to a valid node (curr event [null]; cursor state CLOSED)

      at org.codehaus.staxmate.in.SMInputCursor.constructStreamException()
    2. StaxMate
      SMInputCursor.getElemStringValue
      1. org.codehaus.staxmate.in.SMInputCursor.constructStreamException(SMInputCursor.java:1855)
      2. org.codehaus.staxmate.in.CursorBase._notAccessible(CursorBase.java:296)
      3. org.codehaus.staxmate.in.SMInputCursor._verifyElemAccess(SMInputCursor.java:1537)
      4. org.codehaus.staxmate.in.SMInputCursor.getElemStringValue(SMInputCursor.java:1323)
      4 frames
    3. com.atlassian.bamboo
      XmlMigrator$$FastClassByCGLIB$$b6578fc7.invoke
      1. com.atlassian.bamboo.migration.stream.ServerIDMapper.createItemInstance(ServerIDMapper.java:41)
      2. com.atlassian.bamboo.migration.stream.ServerIDMapper.createItemInstance(ServerIDMapper.java:15)
      3. com.atlassian.bamboo.migration.BambooStAXMappingHelperAbstractImpl.importXml(BambooStAXMappingHelperAbstractImpl.java:145)
      4. com.atlassian.bamboo.migration.BambooStAXMappingHelperAbstractImpl.importXml(BambooStAXMappingHelperAbstractImpl.java:128)
      5. com.atlassian.bamboo.migration.stream.ServerIDMapper.importData(ServerIDMapper.java:60)
      6. com.atlassian.bamboo.migration.XmlMigrator.importData(XmlMigrator.java:308)
      7. com.atlassian.bamboo.migration.XmlMigrator.importFile(XmlMigrator.java:280)
      8. com.atlassian.bamboo.migration.XmlMigrator.loadXmlData(XmlMigrator.java:226)
      9. com.atlassian.bamboo.migration.XmlMigrator.importXml(XmlMigrator.java:137)
      10. com.atlassian.bamboo.migration.XmlMigrator$$FastClassByCGLIB$$b6578fc7.invoke(<generated>)
      10 frames
    4. IDEA
      MethodProxy.invoke
      1. net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
      1 frame