0 Replies Latest reply on Nov 17, 2005 1:38 AM by Joane silviya

    handling AssignmentHandler in jBPM

    Joane silviya Newbie

      Hai there

      I have created a task node with an Assignement handler Class.
      My ProcessDefinition.xml file looks like this :

      <process-definition
      xmlns="http://jbpm.org/3/jpdl" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://jbpm.org/3/jpdl http://jbpm.org/xsd/jpdl-3.0.xsd"
      name="jBayAuctionProcess">

      <start-state name="start">

      </start-state>
      <task-node name="task">




      </task-node>





      <end-state name="end"></end-state>
      </process-definition>


      if i execute this the error is :
      java.lang.NullPointerException
      at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:261)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
      at org.jbpm.instantiation.ClassLoaderUtil.loadClass(ClassLoaderUtil.java:16)
      at org.jbpm.taskmgmt.exe.TaskMgmtInstance.getTaskInstanceClass(TaskMgmtInstance.java:41)
      at org.jbpm.taskmgmt.exe.TaskMgmtInstance.instantiateNewTaskInstance(TaskMgmtInstance.java:174)
      at org.jbpm.taskmgmt.exe.TaskMgmtInstance.createTaskInstance(TaskMgmtInstance.java:74)
      at org.jbpm.graph.node.TaskNode.execute(TaskNode.java:136)
      at org.jbpm.graph.def.Node.enter(Node.java:284)
      at org.jbpm.graph.def.Transition.take(Transition.java:92)
      at org.jbpm.graph.def.Node.leave(Node.java:349)
      at org.jbpm.graph.node.StartState.leave(StartState.java:73)
      at org.jbpm.graph.exe.Token.signal(Token.java:127)
      at org.jbpm.graph.exe.Token.signal(Token.java:92)
      at org.jbpm.graph.exe.ProcessInstance.signal(ProcessInstance.java:201)
      at com.jBayTest.jBayTest.testjBayTest(jBayTest.java:17)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at junit.framework.TestCase.runTest(TestCase.java:154)
      at junit.framework.TestCase.runBare(TestCase.java:127)
      at junit.framework.TestResult$1.protect(TestResult.java:106)
      at junit.framework.TestResult.runProtected(TestResult.java:124)
      at junit.framework.TestResult.run(TestResult.java:109)
      at junit.framework.TestCase.run(TestCase.java:118)
      at junit.framework.TestSuite.runTest(TestSuite.java:208)
      at junit.framework.TestSuite.run(TestSuite.java:203)
      at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:478)
      at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:344)
      at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
      kindly suggest me how to overcome this error

      thanks in advance