ODE
  1. ODE
  2. ODE-890

NumberFormatException when deploying multiple versions of a process with long version

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.3.4
    • Fix Version/s: 1.4
    • Component/s: BPEL Runtime
    • Labels:
      None

      Description

      When two versions of the same process are deployed, where the version numbers are yyyymmddhhmmss (long), ODE throws a number format exception:

      Error while activating process: pid=

      {http://www.jboss.org/examples/creditAgency}

      PurchaseGoodsProcess_CreditAgency-20100922165011 package=PurchaseGoodsProcess-CreditAgency-20100922165011
      java.lang.NumberFormatException: For input string: "20100922165011"
      at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
      at java.lang.Integer.parseInt(Integer.java:484)
      at java.lang.Integer.parseInt(Integer.java:514)
      at org.apache.ode.bpel.engine.BpelProcess.getVersion(BpelProcess.java:1156)
      at org.apache.ode.bpel.engine.BpelEngineImpl.registerProcess(BpelEngineImpl.java:335)
      at org.apache.ode.bpel.engine.BpelServerImpl.register(BpelServerImpl.java:321)

      The process definition stores the version as a long, but two classes in the bpel-runtime module (org.apache.ode.bpel.engine.BpelProcess and BpelEngineImpl) treat the version as an int.

        Activity

        Hide
        Gary Brown added a comment -

        Patch to change int to long.

        Show
        Gary Brown added a comment - Patch to change int to long.
        Hide
        Jeff Yu added a comment -

        Patch has been applied, thanks Gary.

        Show
        Jeff Yu added a comment - Patch has been applied, thanks Gary.
        Hide
        Hudson added a comment -

        Integrated in ODE-trunk #376 (See https://hudson.apache.org/hudson/job/ODE-trunk/376/)

        • ODE-890, apply Gary's fix, thanks Gary.
        Show
        Hudson added a comment - Integrated in ODE-trunk #376 (See https://hudson.apache.org/hudson/job/ODE-trunk/376/ ) ODE-890 , apply Gary's fix, thanks Gary.
        Hide
        Hudson added a comment -

        Integrated in ODE-trunk-jdk6 #371 (See https://hudson.apache.org/hudson/job/ODE-trunk-jdk6/371/)

        • ODE-890, apply Gary's fix, thanks Gary.
        Show
        Hudson added a comment - Integrated in ODE-trunk-jdk6 #371 (See https://hudson.apache.org/hudson/job/ODE-trunk-jdk6/371/ ) ODE-890 , apply Gary's fix, thanks Gary.

          People

          • Assignee:
            Jeff Yu
            Reporter:
            Gary Brown
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development