[jboss-user] [JBoss jBPM] - Re: deploy a procesee to jboss server suing java code
Grid.Qian
do-not-reply at jboss.com
Mon Nov 10 21:46:20 EST 2008
You means jbpm-jpdl.jar? I had added it to the dependencies. But I still get the error:
Exception in thread "main" couldn't deploy process archives : null
| at org.jbpm.ant.DeployProcessToServerTask.execute(DeployProcessToServerTask.java:179)
| at org.jboss.soa.esb.samples.quickstarts.bpm_orchestration1.test.SendTestMessage.deployProcessToServer(SendTestMessage.java:65)
| at org.jboss.soa.esb.samples.quickstarts.bpm_orchestration1.test.SendTestMessage.sendMessage(SendTestMessage.java:41)
| at org.jboss.soa.esb.samples.quickstarts.bpm_orchestration1.test.SendTestMessage.main(SendTestMessage.java:72)
| Caused by: java.lang.NullPointerException
| at org.jbpm.ant.DeployProcessToServerTask.tryFormBasedAuthentication(DeployProcessToServerTask.java:276)
| at org.jbpm.ant.DeployProcessToServerTask.deployProcess(DeployProcessToServerTask.java:196)
| at org.jbpm.ant.DeployProcessToServerTask.deployProcessWithServlet(DeployProcessToServerTask.java:188)
| at org.jbpm.ant.DeployProcessToServerTask.execute(DeployProcessToServerTask.java:142)
| ... 3 more
| --- Nested Exception ---
| java.lang.NullPointerException
| at org.jbpm.ant.DeployProcessToServerTask.tryFormBasedAuthentication(DeployProcessToServerTask.java:276)
| at org.jbpm.ant.DeployProcessToServerTask.deployProcess(DeployProcessToServerTask.java:196)
| at org.jbpm.ant.DeployProcessToServerTask.deployProcessWithServlet(DeployProcessToServerTask.java:188)
| at org.jbpm.ant.DeployProcessToServerTask.execute(DeployProcessToServerTask.java:142)
| at org.jboss.soa.esb.samples.quickstarts.bpm_orchestration1.test.SendTestMessage.deployProcessToServer(SendTestMessage.java:65)
| at org.jboss.soa.esb.samples.quickstarts.bpm_orchestration1.test.SendTestMessage.sendMessage(SendTestMessage.java:41)
| at org.jboss.soa.esb.samples.quickstarts.bpm_orchestration1.test.SendTestMessage.main(SendTestMessage.java:72)
I debug into the codes and found if we use '/jbpm-console/upload', in the tryFormBasedAuthentication() of DeployProcessToServerTask class,
Header location = loginFormPost.getResponseHeader("Location");
the location == null, so we get the NullPointerException.
if we use '/jbpm-console/app/upload',
the location is not null, but we will get
java.io.FileNotFoundException: http://localhost:8080/jbpm-console/app/upload error.
"salaboy21" wrote : If you add the jbpm-jpdl-xxx.jar to the dependencies I think you can compile this code.
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4188326#4188326
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4188326
More information about the jboss-user
mailing list