cancel
Showing results for 
Search instead for 
Did you mean: 

Making a deployment REST request fails with Error 500

alex_foxtel
Champ in-the-making
Champ in-the-making
Hi,

When I try to upload a bpmn20.xml file via REST Api I get such an error:

{
    "status" :
  {
    "code" : 500,
    "name" : "Internal Error",
    "description" : "An error inside the HTTP server which prevented it from fulfilling the request."
  }, 
 
  "message" : "03050005 ", 
  "exception" : "org.springframework.extensions.webscripts.WebScriptException - 03050005 ",
 
  "callstack" :
  [
       ""      ,"java.lang.NullPointerException"
      ,"org.activiti.rest.api.repository.DeploymentPost.executeWebScript(DeploymentPost.java:35)"
      ,"org.activiti.rest.util.ActivitiWebScript.executeImpl(ActivitiWebScript.java:68)"
      ,"org.springframework.extensions.webscripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:64)"
      ,"org.springframework.extensions.webscripts.PresentationContainer.executeScript(PresentationContainer.java:69)"
      ,"org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:333)"
      ,"org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:189)"
      ,"org.springframework.extensions.webscripts.servlet.WebScriptServlet.service(WebScriptServlet.java:118)"
      ,"javax.servlet.http.HttpServlet.service(HttpServlet.java:717)"
      ,"org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)"
      ,"org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)"
      ,"org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)"
      ,"org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)"
      ,"org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)"
      ,"org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)"
      ,"org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)"
      ,"org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)"
      ,"org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)"
      ,"org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)"
      ,"org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)"
      ,"java.lang.Thread.run(Thread.java:662)"
      ,"org.springframework.extensions.webscripts.WebScriptException: 03050005 "
      ,"org.activiti.rest.api.repository.DeploymentPost.executeWebScript(DeploymentPost.java:60)"

  ],
 
  "server" : "Spring WebScripts - v1.0.0 (Release Candidate 2 660) schema 1 000",
  "time" : "05.04.2013 18:20:34"
}

Here's my curl command:

curl -F filedata=@dev.bpmn20.xml –basic –user kermit:kermit http://myactivitiserver.domain:8080/activiti-rest/service/deployment

The error, however, still exists when I use other tools, such as python requests. I am able to perform other Api queries as described in User Guide (can get kermit's task list, f.e.) - only deployment query fails. I also believe my file is valid - it's a copy of the financial report from 10min tutorial.

Thanks.
3 REPLIES 3

frederikherema1
Star Contributor
Star Contributor
"org.activiti.rest.api.repository.DeploymentPost.executeWebScript(DeploymentPost.java:35)"
      ,"org.activiti.rest.util.ActivitiWebScript.executeImpl(ActivitiWebScript.java:68)"
      ,"org.springframework.extensions.webscripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:64)"

That's really an old version of the rest-api. What version are you running?

alex_foxtel
Champ in-the-making
Champ in-the-making
"org.activiti.rest.api.repository.DeploymentPost.executeWebScript(DeploymentPost.java:35)"
      ,"org.activiti.rest.util.ActivitiWebScript.executeImpl(ActivitiWebScript.java:68)"
      ,"org.springframework.extensions.webscripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:64)"

That's really an old version of the rest-api. What version are you running?

Activiti 5.12

trademak
Star Contributor
Star Contributor
That's not possible with that stacktrace. That stacktrace is referring to webscripts, and we don't use them anymore for over a year.

Best regards,