[jboss-user] [JBoss jBPM] - Re: deploy a procesee to jboss server using java code

Grid.Qian do-not-reply at jboss.com
Wed Nov 5 04:23:19 EST 2008


Thanks. I know I should used /jbpm-console/upload, but if use /jbpm-console/upload, I got another 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)


"salaboy21" wrote : My first impresion is that your code have a wrong path to the upload server.. I do not know the SOA platform but i think the correct path is 
  | 
  | 
  | 
  |   | /jbpm-console/upload
  |   | 
  | 
  | so try to change this line in your code:
  | 
  | 
  |   | deployTask.setServerDeployer("/jbpm-console/app/upload");
  |   | 
  | to 
  | 
  |   | deployTask.setServerDeployer("/jbpm-console/upload");
  |   | 
  | 
  | if this is not the problem please let me know and we try to solve it together.
  | Greetings!

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4186925#4186925

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4186925



More information about the jboss-user mailing list