javax.xml.stream.XMLStreamException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • 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.
    via by Ajay Sridhar [Atlassian],
  • 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.
    via by Ajay Sridhar [Atlassian],
  • Error parsing cppcheck results xml
    via GitHub by huepf
    ,
    • 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)
    No Bugmate found.