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

Put in a null check to UpgradeTask608BuildLogStorageUpdate, to ensure the buildresultxml file being parsed is not null!

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • High
    • 2.0 beta 1, 2.0
    • None
    • Upgrading
    • None

    Description

      As above, sometimes the buildresultxml files are null so we need to put in a check to see whether this the case, if so delete the corresponding build result or at the very least not try to parse the null file.

      org.dom4j.DocumentException: Error on line -1 of document  : Premature end of file. Nested exception: Premature end of file.
      	at org.dom4j.io.SAXReader.read(SAXReader.java:355)
      	at org.dom4j.io.SAXReader.read(SAXReader.java:219)
      	at com.atlassian.bamboo.upgrade.tasks.UpgradeTask608BuildLogStorageUpdate.doUpgrade(UpgradeTask608BuildLogStorageUpdate.java:48)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      	at java.lang.reflect.Method.invoke(Method.java:585)
      	at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:304)
      	at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
      	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
      	at org.springframework.orm.hibernate.HibernateInterceptor.invoke(HibernateInterceptor.java:117)
      	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
      	at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
      	at $Proxy34.doUpgrade(Unknown Source)
      	at com.atlassian.bamboo.upgrade.UpgradeManagerImpl.runUpgradeTask(UpgradeManagerImpl.java:128)
      	at com.atlassian.bamboo.upgrade.UpgradeManagerImpl.doUpgrade(UpgradeManagerImpl.java:89)
      	at com.atlassian.bamboo.upgrade.UpgradeLauncher.upgradeAndStartBamboo(UpgradeLauncher.java:104)
      	at com.atlassian.bamboo.upgrade.UpgradeLauncher.contextInitialized(UpgradeLauncher.java:37)
      	at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:530)
      	at org.mortbay.jetty.servlet.Context.startContext(Context.java:135)
      	at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1218)
      	at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:500)
      	at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:448)
      	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
      	at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:117)
      	at org.mortbay.jetty.Server.doStart(Server.java:217)
      	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
      	at com.atlassian.bamboo.server.Server.main(Server.java:60)
      Nested exception: 
      org.xml.sax.SAXParseException: Premature end of file.
      	at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
      	at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source)
      	at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
      	at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
      

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: