Uploaded image for project: 'Jira Software Data Center'
  1. Jira Software Data Center
  2. JSWSERVER-14694

Upgrading JIRA 7.2RC02 to 72.RC03 fails due to NumberFormatException

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Low
    • None
    • 7.2.0-RC03
    • None

    Description

      Summary

      When upgrading JIRA 7.2RC02 to 7.2RC03 it fails with a NumberFormatException as the VersionStringComponentComparator can't parse the version String of RC02.

      Steps to Reproduce

      1. Install 7.2RC02.
      2. Upgrade with the bin installer to 7.2.RC03.

      Expected Results

      The upgrade proceeds as expected.

      Actual Results

      The below exception is thrown by the installer:

      [ERROR] com.install4j.runtime.beans.screens.FormScreen [ID 66884]: java.lang.NumberFormatException: For input string: "20160713062024"
      In screen "Configurable form", property "Validation expression":
      java.lang.NumberFormatException: For input string: "20160713062024"
      	at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
      	at java.lang.Integer.parseInt(Integer.java:583)
      	at java.lang.Integer.parseInt(Integer.java:615)
      	at com.atlassian.inception.VersionStringComparator$VersionStringComponentComparator.compare(VersionStringComparator.java:100)
      	at com.atlassian.inception.VersionStringComparator$VersionStringComponentComparator.compare(VersionStringComparator.java:85)
      	at com.atlassian.inception.VersionStringComparator.compare(VersionStringComparator.java:76)
      	at I4jScript_Internal_288.eval(I4jScript_Internal_288.java:89)
      	at I4jScript_Internal_288.evaluate(I4jScript_Internal_288.java:144)
      	at com.install4j.runtime.installer.helper.Script.evaluate(Unknown Source)
      	at com.install4j.runtime.installer.ContextImpl.runScript(Unknown Source)
      	at com.install4j.runtime.installer.ContextImpl.runScript(Unknown Source)
      	at com.install4j.runtime.installer.ContextImpl.runBooleanScript(Unknown Source)
      	at com.install4j.runtime.installer.ContextImpl.runBooleanScript(Unknown Source)
      	at com.install4j.runtime.installer.frontend.headless.ConsoleScreenExecutor.handleScreen(Unknown Source)
      	at com.install4j.runtime.installer.frontend.headless.AbstractHeadlessScreenExecutor.execute(Unknown Source)
      	at com.install4j.runtime.installer.controller.Controller$1.run(Unknown Source)
      	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
      	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
      	at java.awt.EventQueue.access$500(EventQueue.java:97)
      	at java.awt.EventQueue$3.run(EventQueue.java:709)
      	at java.awt.EventQueue$3.run(EventQueue.java:703)
      	at java.security.AccessController.doPrivileged(Native Method)
      	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
      	at java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
      	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
      	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
      	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
      	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
      	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
      	at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
      [INFO] com.install4j.runtime.beans.screens.FormScreen [ID 66884]: cleaning up
             Finished
      

      Notes

      This is failing as the version String is not parseable by Integer.parseInt(), which is kind of expected as the String is not a proper version number.

      Workaround

      Installing RC03 as a fresh install and import the XML backup from RC02.

      RC is not supported for production. If you are on a RC for Production, please move back to using a supported platform (ie 7.1.9) as soon as humanly possible.

      Attachments

        Activity

          People

            Unassigned Unassigned
            dcurrie@atlassian.com Dave C
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: