3 Replies Latest reply on Mar 9, 2006 1:51 PM by Tom Baeyens

    TaskNode ClassCastException

    Thibault Cuvillier Newbie


      I run a trivial example.

      The token is located on a TaskNode. I checked.

      1 Token token = processInstance.getRootToken();
      2 Node node = token.getNode();
      3 TaskNode taskNode = (TaskNode)node;

      The node is not a TaskNode, but an hibernate proxy, and I get the following exception on line 3:
      java.lang.ClassCastException: org.jbpm.graph.def.Node$$EnhancerByCGLIB$$cdd399be

      J2SE 5 application
      jBpm 3.1

      Any idea ?