1 Reply Latest reply on Feb 3, 2007 4:21 PM by Alejandro Guizar

    Error on deploying business process

    Till Schenk Newbie

      Hello all together,

      i changed the sample process from the starter kit in that way, that i added an node with an actionhandler and removed the task-node. My process is described as the above xml-statement:

      <?xml version="1.0" encoding="UTF-8"?>
      
      <process-definition
       xmlns="urn:jbpm.org:jpdl-3.1"
       name="simple">
       <start-state name="start">
       <transition name="Step1" to="node1">
       </transition>
       </start-state>
       <end-state name="end"></end-state>
       <node name="node1">
       <transition name="Step2" to="end"></transition>
      
       <action class="com.sample.action.MessageActionHandler">
       <message>Test</message>
       </action>
       </node>
      </process-definition>


      The deployment of the above process ends with the following error:
      java.io.IOException: Server returned HTTP response code: 500 for URL: http://localhost:8080/jbpm/upload
       at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
       at org.jbpm.ui.util.ProcessDeployer.deployProcessWithServlet(Unknown Source)
       at org.jbpm.ui.util.ProcessDeployer.access$3(Unknown Source)
       at org.jbpm.ui.util.ProcessDeployer$1.run(Unknown Source)
       at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:346)
       at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:291)
       at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:447)
       at org.jbpm.ui.util.ProcessDeployer.showProgressMonitorDialog(Unknown Source)
       at org.jbpm.ui.util.ProcessDeployer.deploy(Unknown Source)
       at org.jbpm.ui.editor.form.deployment.DeploymentForm$1.widgetSelected(Unknown Source)
       at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:90)
       at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
       at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:843)
       at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3125)
       at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2758)
       at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1699)
       at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1663)
       at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:367)
       at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:143)
       at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:103)
       at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:226)
       at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:376)
       at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:163)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
       at java.lang.reflect.Method.invoke(Unknown Source)
       at org.eclipse.core.launcher.Main.invokeFramework(Main.java:334)
       at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
       at org.eclipse.core.launcher.Main.run(Main.java:973)
       at org.eclipse.core.launcher.Main.main(Main.java:948)
      


      When i changed the process in a way, that the transition performs my action and not the node i can deploy the process without any problem. The process that can be deployed is the following:

      <?xml version="1.0" encoding="UTF-8"?>
      
      <process-definition
       xmlns="urn:jbpm.org:jpdl-3.1"
       name="simple">
       <start-state name="start">
       <transition name="Step1" to="node1">
       <action name="action1" class="com.sample.action.MessageActionHandler">
       <message>Test</message>
       </action>
       </transition>
       </start-state>
       <end-state name="end"></end-state>
       <node name="node1">
       <transition name="Step2" to="end"></transition>
      
       </node>
      </process-definition>


      Can someone find out why i cann't deploy the process with the node actionhandler ???

      Greetings from germany,
      Till Schenk