AnsweredAssumed Answered

ActivitiException - couldn't find type for

Question asked by opal on Jan 11, 2011
Latest reply on Jan 12, 2011 by opal
Hi,

When starting the process using REST I send the following json string with the query:

{
   "processDefinitionId":"movieOrder:1",
   "movie":{
      "id":"7",
      "title":"A HARD DAYS NIGHT",
      "spiCode":"SPI3146",
      "movieVersions":[{
         "versionTitle":"LOL WERSJA",
         "timecode":"12:!2:12",
         "mediaId":"LOL ME",
         "distributor":"LOL DYST",
         "age":"12",
         "programType":"LOL TYP",
         "bw":"true",
         "description":"lol uw",
         "additional":"lol dod",
         "mnes":[{"id":"-1","mneFormat":"2.0 M\u0026E","broadcast":"true","description":"wefwef","tracks":[]}],
         "audios":[{"id":"-1","audioFormat":"2.0 MIX","codec":"QWD","lang":"QWD","description":"qwd","broadcast":"true","tracks":[]}],
         "videos":[{"id":"-1","broadcast":"true","fileFormat":"HD","fps":"25p","aspectRatio":"HDV 144","resolution":"HDV 144","lang":"QWD","description":"qwd","tracks":[]}]
      }]
   }
}

The server responses iwth the following message:

"status" :
  {
    "code" : 500,
    "name" : "Internal Error",
    "description" : "An error inside the HTTP server which prevented it from fulfilling the request."
  }, 
 
  "message" : "00110004 Wrapped Exception (with status template): couldn't find type for {\"spiCode\":\"SPI3146\",\"id\":\"7\",\"movieVersions\":[{\"mediaId\":\"LOL ME\",\"audios\":[{\"id\":\"-1\",\"description\":\"qwd\",\"broadcast\":\"true\",\"codec\":\"QWD\",\"tracks\":[],\"lang\":\"QWD\",\"audioFormat\":\"2.0 MIX\"}],\"additional\":\"lol dod\",\"timecode\":\"12:!2:12\",\"versionTitle\":\"LOL WERSJA\",\"mnes\":[{\"id\":\"-1\",\"mneFormat\":\"2.0 M&E\",\"description\":\"wefwef\",\"broadcast\":\"true\",\"tracks\":[]}],\"description\":\"lol uw\",\"videos\":[{\"id\":\"-1\",\"description\":\"qwd\",\"fps\":\"25p\",\"broadcast\":\"true\",\"aspectRatio\":\"HDV 144\",\"tracks\":[],\"resolution\":\"HDV 144\",\"lang\":\"QWD\",\"fileFormat\":\"HD\"}],\"age\":\"12\",\"bw\":\"true\",\"distributor\":\"LOL DYST\",\"programType\":\"LOL TYP\"}],\"title\":\"A HARD DAYS NIGHT\"}", 
  "exception" : "org.springframework.extensions.webscripts.WebScriptException - 00110004 Wrapped Exception (with status template): couldn't find type for {\"spiCode\":\"SPI3146\",\"id\":\"7\",\"movieVersions\":[{\"mediaId\":\"LOL ME\",\"audios\":[{\"id\":\"-1\",\"description\":\"qwd\",\"broadcast\":\"true\",\"codec\":\"QWD\",\"tracks\":[],\"lang\":\"QWD\",\"audioFormat\":\"2.0 MIX\"}],\"additional\":\"lol dod\",\"timecode\":\"12:!2:12\",\"versionTitle\":\"LOL WERSJA\",\"mnes\":[{\"id\":\"-1\",\"mneFormat\":\"2.0 M&E\",\"description\":\"wefwef\",\"broadcast\":\"true\",\"tracks\":[]}],\"description\":\"lol uw\",\"videos\":[{\"id\":\"-1\",\"description\":\"qwd\",\"fps\":\"25p\",\"broadcast\":\"true\",\"aspectRatio\":\"HDV 144\",\"tracks\":[],\"resolution\":\"HDV 144\",\"lang\":\"QWD\",\"fileFormat\":\"HD\"}],\"age\":\"12\",\"bw\":\"true\",\"distributor\":\"LOL DYST\",\"programType\":\"LOL TYP\"}],\"title\":\"A HARD DAYS NIGHT\"}",
 
  "callstack" :
  [
       ""      ,"org.activiti.engine.ActivitiException: couldn't find type for {\"spiCode\":\"SPI3146\",\"id\":\"7\",\"movieVersions\":[{\"mediaId\":\"LOL ME\",\"audios\":[{\"id\":\"-1\",\"description\":\"qwd\",\"broadcast\":\"true\",\"codec\":\"QWD\",\"tracks\":[],\"lang\":\"QWD\",\"audioFormat\":\"2.0 MIX\"}],\"additional\":\"lol dod\",\"timecode\":\"12:!2:12\",\"versionTitle\":\"LOL WERSJA\",\"mnes\":[{\"id\":\"-1\",\"mneFormat\":\"2.0 M&E\",\"description\":\"wefwef\",\"broadcast\":\"true\",\"tracks\":[]}],\"description\":\"lol uw\",\"videos\":[{\"id\":\"-1\",\"description\":\"qwd\",\"fps\":\"25p\",\"broadcast\":\"true\",\"aspectRatio\":\"HDV 144\",\"tracks\":[],\"resolution\":\"HDV 144\",\"lang\":\"QWD\",\"fileFormat\":\"HD\"}],\"age\":\"12\",\"bw\":\"true\",\"distributor\":\"LOL DYST\",\"programType\":\"LOL TYP\"}],\"title\":\"A HARD DAYS NIGHT\"}"
      ,"org.activiti.engine.impl.variable.DefaultVariableTypes.findVariableType(DefaultVariableTypes.java:62)"
      ,"org.activiti.engine.impl.runtime.VariableMap.put(VariableMap.java:110)"
      ,"org.activiti.engine.impl.runtime.VariableMap.put(VariableMap.java:37)"
      ,"org.activiti.engine.impl.pvm.runtime.ExecutionImpl.setVariableLocally(ExecutionImpl.java:594)"
      ,"org.activiti.engine.impl.pvm.runtime.ExecutionImpl.setVariable(ExecutionImpl.java:587)"
      ,"org.activiti.engine.impl.pvm.runtime.ExecutionImpl.setVariables(ExecutionImpl.java:573)"
      ,"org.activiti.engine.impl.cmd.StartProcessInstanceCmd.execute(StartProcessInstanceCmd.java:63)"
      ,"org.activiti.engine.impl.cmd.StartProcessInstanceCmd.execute(StartProcessInstanceCmd.java:29)"
      ,"org.activiti.engine.impl.interceptor.CommandExecutorImpl.execute(CommandExecutorImpl.java:22)"
      ,"org.activiti.engine.impl.interceptor.CommandContextInterceptor.execute(CommandContextInterceptor.java:37)"
      ,"org.activiti.engine.impl.interceptor.LogInterceptor.execute(LogInterceptor.java:33)"
      ,"org.activiti.engine.impl.RuntimeServiceImpl.startProcessInstanceById(RuntimeServiceImpl.java:64)"
      ,"org.activiti.rest.api.process.ProcessInstancePost.executeWebScript(ProcessInstancePost.java:45)"
      ,"org.activiti.rest.util.ActivitiWebScript.executeImpl(ActivitiWebScript.java:76)"
      ,"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:857)"
      ,"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:636)"
      ,"org.springframework.extensions.webscripts.WebScriptException: 00110004 Wrapped Exception (with status template): couldn't find type for {\"spiCode\":\"SPI3146\",\"id\":\"7\",\"movieVersions\":[{\"mediaId\":\"LOL ME\",\"audios\":[{\"id\":\"-1\",\"description\":\"qwd\",\"broadcast\":\"true\",\"codec\":\"QWD\",\"tracks\":[],\"lang\":\"QWD\",\"audioFormat\":\"2.0 MIX\"}],\"additional\":\"lol dod\",\"timecode\":\"12:!2:12\",\"versionTitle\":\"LOL WERSJA\",\"mnes\":[{\"id\":\"-1\",\"mneFormat\":\"2.0 M&E\",\"description\":\"wefwef\",\"broadcast\":\"true\",\"tracks\":[]}],\"description\":\"lol uw\",\"videos\":[{\"id\":\"-1\",\"description\":\"qwd\",\"fps\":\"25p\",\"broadcast\":\"true\",\"aspectRatio\":\"HDV 144\",\"tracks\":[],\"resolution\":\"HDV 144\",\"lang\":\"QWD\",\"fileFormat\":\"HD\"}],\"age\":\"12\",\"bw\":\"true\",\"distributor\":\"LOL DYST\",\"programType\":\"LOL TYP\"}],\"title\":\"A HARD DAYS NIGHT\"}"
      ,"org.springframework.extensions.webscripts.AbstractWebScript.createStatusException(AbstractWebScript.java:742)"

  ],
 
  "server" : "Spring WebScripts - v1.0.0 (Release Candidate 2 660) schema 1 000",
  "time" : "2011-01-11 15:36:04"
}

What might be the reason of this exception? I've sent only primitives in the json msg.

Outcomes