Uploaded image for project: 'Bamboo Data Center'
  1. Bamboo Data Center
  2. BAM-6245

Can't Import Bamboo 1.x export into Bamboo 2.x due to missing ServerID mapping

    XMLWordPrintable

Details

    • Bug
    • Resolution: Obsolete
    • Low
    • None
    • 2.6, 2.6.1
    • Import / Export
    • 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

      1. unzip the Bamboo export and edit the ../configuration/administrationConfiguration.xml
      2. 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>
        
      3. 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>
        
      4. recompress the archive and import into Bamboo.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              asridhar AjayA
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: