Uploaded image for project: 'JBoss Enterprise SOA Platform'
  1. JBoss Enterprise SOA Platform
  2. SOA-1596

NullPointerException in jbpm-console when viewing running process

    XMLWordPrintable

    Details

    • Affects:
      Release Notes
    • Workaround:
      Workaround Exists
    • Workaround Description:
      Hide

      Modify jbpm-console.war/app/t_tokens.xhtml

      <gd:sort source="#

      {token.availableTransitions}" target="#{transitions}" entryVar="e" argument="#{e.name}"/>

      to

      <gd:sort if="#{! empty token.availableTransitions}" source="#{token.availableTransitions}

      " target="#

      {transitions}

      " entryVar="e" argument="#

      {e.name == null ? '' : e.name}

      "/>

      Show
      Modify jbpm-console.war/app/t_tokens.xhtml <gd:sort source="# {token.availableTransitions}" target="#{transitions}" entryVar="e" argument="#{e.name}"/> to <gd:sort if="#{! empty token.availableTransitions}" source="#{token.availableTransitions} " target="# {transitions} " entryVar="e" argument="# {e.name == null ? '' : e.name} "/>

      Description

      When I access process instances through jbpm-console, ServletException is thrown.

      Stack Trace:
      14:17:38,640 ERROR [viewhandler] Error Rendering View[/app/procins.xhtml]
      java.lang.NullPointerException
      at java.lang.String.compareTo(String.java:997)
      at java.lang.String.compareTo(String.java:90)
      at org.jboss.gravel.data.action.SortActionListener$ELComparator.compare(SortActionListener.java:144)
      at java.util.Arrays.mergeSort(Arrays.java:1284)
      at java.util.Arrays.sort(Arrays.java:1223)
      at java.util.Collections.sort(Collections.java:159)
      at org.jboss.gravel.data.action.SortActionListener.processAction(SortActionListener.java:83)
      at javax.faces.event.ActionEvent.processListener(ActionEvent.java:88)
      at javax.faces.component.UIComponentBase.broadcast(UIComponentBase.java:771)
      at javax.faces.component.UICommand.broadcast(UICommand.java:372)
      at org.jboss.gravel.action.handler.ResponseActionsHandler.onComponentPopulated(ResponseActionsHandler.java:24)
      at com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:180)
      at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
      ...

      processdefinition.xml:
      <process-definition xmlns="urn:jbpm.org:jpdl-3.2" name="sample1">
      <start-state name="start-state1">
      <transition to="fork1"></transition>
      </start-state>
      <fork name="fork1">
      <transition to="state1"></transition>
      <transition to="state2" name="to state2"></transition>
      </fork>
      <state name="state1">
      <transition to="join1"></transition>
      </state>
      <state name="state2">
      <transition to="join1"></transition>
      </state>
      <join name="join1">
      <transition to="end-state1"></transition>
      </join>
      <end-state name="end-state1"></end-state>
      </process-definition>

      I see the same Exception with process definitions which have <fork> with <state> , <task> or <node async="true">.

      Procedure to reproduce:

      • login to jbpm-console
      • click [Examine] of the process definition
      • click [Start] in the left pane
      • click [Tokens] in the left pane
      • click [Signal] of the token

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  aguizar Alejandro Guizar
                  Reporter:
                  tkobayashi Toshiya Kobayashi
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Due:
                    Created:
                    Updated:
                    Resolved: