ODE
  1. ODE
  2. ODE-176

r565968 surfaced issue with latch release count

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.1
    • Fix Version/s: 1.1
    • Component/s: BPEL Runtime
    • Labels:
      None
    • Environment:
      tip (r566042)

      Description

      Looks like the change in r565968 surfaced some issues with the NStateLatch:

      ERROR - GeronimoLog.error(108) | Exception occured while invoking ODE
      java.lang.IllegalStateException: Too many release() calls.
      at org.apache.ode.bpel.engine.NStateLatch.release(NStateLatch.java:112)

      To reproduce:

      1) Deploy the AXIS2 WAR in Jetty (or Tomcat).
      2) Unpack the deployment bundle in counter.tbz2.
      3) Hit http://localhost:8080/ode/processes/counter/initialize?counterName=foo

      1. counter.tbz2
        7 kB
        Paul R. Brown

        Activity

        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Resolved Resolved
        7h 58m 1 Matthieu Riou 15/Aug/07 16:24
        Matthieu Riou made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Assignee Matthieu Riou [ mriou ]
        Resolution Fixed [ 1 ]
        Hide
        Matthieu Riou added a comment -

        Yep, I made a small error when fixing the latch yesterday. I'll have to get used to trying tests regularly now that we have working test cases Should be fixed now.

        Show
        Matthieu Riou added a comment - Yep, I made a small error when fixing the latch yesterday. I'll have to get used to trying tests regularly now that we have working test cases Should be fixed now.
        Hide
        Nicolas Modrzyk added a comment -

        the error can be reproduced by making a clean build. One example of the error would be:

        [junit] Testcase: testListProcessCustom took 0.463 sec
        [junit] Caused an ERROR
        [junit] Too many release() calls.
        [junit] java.lang.IllegalStateException: Too many release() calls.
        [junit] at org.apache.ode.bpel.engine.NStateLatch.release(NStateLatch.java:112)
        [junit] at org.apache.ode.bpel.engine.BpelProcess.getEndpointToMyRoleMap(BpelProcess.java:568)
        [junit] at org.apache.ode.bpel.engine.BpelProcess.initMyRoleMex(BpelProcess.java:191)
        [junit] at org.apache.ode.bpel.engine.BpelEngineImpl.createMessageExchange(BpelEngineImpl.java:128)
        [junit] at org.apache.ode.bpel.engine.BpelEngineImpl.createMessageExchange(BpelEngineImpl.java:135)
        [junit] at org.apache.ode.bpel.runtime.MockBpelServer.invoke(MockBpelServer.java:118)
        [junit] at org.apache.ode.bpel.runtime.ProcessManagementTest.execute(ProcessManagementTest.java:117)
        [junit] at org.apache.ode.bpel.runtime.ProcessManagementTest.setUp(ProcessManagementTest.java:99)
        [junit]
        [junit] TEST org.apache.ode.bpel.runtime.ProcessManagementTest FAILED

        Show
        Nicolas Modrzyk added a comment - the error can be reproduced by making a clean build. One example of the error would be: [junit] Testcase: testListProcessCustom took 0.463 sec [junit] Caused an ERROR [junit] Too many release() calls. [junit] java.lang.IllegalStateException: Too many release() calls. [junit] at org.apache.ode.bpel.engine.NStateLatch.release(NStateLatch.java:112) [junit] at org.apache.ode.bpel.engine.BpelProcess.getEndpointToMyRoleMap(BpelProcess.java:568) [junit] at org.apache.ode.bpel.engine.BpelProcess.initMyRoleMex(BpelProcess.java:191) [junit] at org.apache.ode.bpel.engine.BpelEngineImpl.createMessageExchange(BpelEngineImpl.java:128) [junit] at org.apache.ode.bpel.engine.BpelEngineImpl.createMessageExchange(BpelEngineImpl.java:135) [junit] at org.apache.ode.bpel.runtime.MockBpelServer.invoke(MockBpelServer.java:118) [junit] at org.apache.ode.bpel.runtime.ProcessManagementTest.execute(ProcessManagementTest.java:117) [junit] at org.apache.ode.bpel.runtime.ProcessManagementTest.setUp(ProcessManagementTest.java:99) [junit] [junit] TEST org.apache.ode.bpel.runtime.ProcessManagementTest FAILED
        Paul R. Brown made changes -
        Field Original Value New Value
        Attachment counter.tbz2 [ 12363825 ]
        Hide
        Paul R. Brown added a comment -

        Bundle to reproduce the error.

        Show
        Paul R. Brown added a comment - Bundle to reproduce the error.
        Paul R. Brown created issue -

          People

          • Assignee:
            Matthieu Riou
            Reporter:
            Paul R. Brown
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development