Details
-
Bug
-
Resolution: Obsolete
-
Low
-
None
-
2.6, 2.6.1
-
None
Description
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:
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)
Workaround
- unzip the Bamboo export and edit the ../configuration/administrationConfiguration.xml
- find the following section:
<?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>
- add the following line so that the file looks like this:
<?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>
- recompress the archive and import into Bamboo.
Attachments
Issue Links
- is related to
-
BAM-8885 Create upgrade task to add serverID to bamboo.cfg.xml file
- Closed