Help with this error at starting processes

Hi everybody,

I don’t understand this error I’m getting when launching any of the 2 processes defined in the xml. Anyone has a clue of what is the null pointer pointing at? Do I need to configure something extra to use timers?

Thanks in advance,
Gonzalo

Jul 11, 2016 2:52:45 PM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet [default] in context with path [/camunda-engine-rest] threw exception
org.jboss.resteasy.spi.UnhandledException: java.lang.NullPointerException
at org.jboss.resteasy.core.SynchronousDispatcher.handleApplicationException(SynchronousDispatcher.java:365)
at org.jboss.resteasy.core.SynchronousDispatcher.handleException(SynchronousDispatcher.java:233)
at org.jboss.resteasy.core.SynchronousDispatcher.handleInvokerException(SynchronousDispatcher.java:209)
at org.jboss.resteasy.core.SynchronousDispatcher.getResponse(SynchronousDispatcher.java:557)
at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:524)
at org.jboss.resteasy.core.SynchronousDispatcher.invokePropagateNotFound(SynchronousDispatcher.java:169)
at org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:212)
at org.jboss.resteasy.plugins.server.servlet.FilterDispatcher.doFilter(FilterDispatcher.java:59)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.camunda.bpm.engine.rest.filter.CacheControlFilter.doFilter(CacheControlFilter.java:41)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
at org.kie.integration.tomcat.JACCValve.invoke(JACCValve.java:101)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1041)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:313)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.NullPointerException
at org.camunda.bpm.engine.rest.sub.repository.impl.ProcessDefinitionResourceImpl.startProcessInstance(ProcessDefinitionResourceImpl.java:95)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:167)
at org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:257)
at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:222)
at org.jboss.resteasy.core.ResourceLocator.invokeOnTargetObject(ResourceLocator.java:159)
at org.jboss.resteasy.core.ResourceLocator.invoke(ResourceLocator.java:107)
at org.jboss.resteasy.core.ResourceLocator.invokeOnTargetObject(ResourceLocator.java:154)
at org.jboss.resteasy.core.ResourceLocator.invoke(ResourceLocator.java:92)
at org.jboss.resteasy.core.SynchronousDispatcher.getResponse(SynchronousDispatcher.java:542)
… 24 more
`

<?xml version="1.0" encoding="UTF-8"?>

<bpmn:definitions xmlns:bpmn=“http://www.omg.org/spec/BPMN/20100524/MODEL” xmlns:bpmndi=“http://www.omg.org/spec/BPMN/20100524/DI” xmlns:di=“http://www.omg.org/spec/DD/20100524/DI” xmlns:dc=“http://www.omg.org/spec/DD/20100524/DC” xmlns:xsi=“http://www.w3.org/2001/XMLSchema-instance” id=“Definitions_1” targetNamespace=“http://bpmn.io/schema/bpmn” exporter=“Camunda Modeler” exporterVersion=“1.2.0”>
<bpmn:collaboration id=“Collaboration_0oifkga”>
<bpmn:participant id=“Participant_1fv1sz7” processRef=“Lane1” />
<bpmn:participant id=“Participant_04u9v82” processRef=“Lane2” />
</bpmn:collaboration>
<bpmn:process id=“Lane1” name=“Lane1” isExecutable=“true”>
<bpmn:startEvent id=“StartEvent_1”>
bpmn:outgoingSequenceFlow_07l3vay</bpmn:outgoing>
</bpmn:startEvent>
<bpmn:endEvent id=“EndEvent_0eenaw4”>
bpmn:incomingSequenceFlow_1ai6vvv</bpmn:incoming>
</bpmn:endEvent>
<bpmn:sequenceFlow id=“SequenceFlow_07l3vay” sourceRef=“StartEvent_1” targetRef=“IntermediateThrowEvent_133rbgo” />
<bpmn:sequenceFlow id=“SequenceFlow_1ai6vvv” sourceRef=“IntermediateThrowEvent_133rbgo” targetRef=“EndEvent_0eenaw4” />
<bpmn:intermediateCatchEvent id=“IntermediateThrowEvent_133rbgo”>
bpmn:incomingSequenceFlow_07l3vay</bpmn:incoming>
bpmn:outgoingSequenceFlow_1ai6vvv</bpmn:outgoing>
bpmn:timerEventDefinition
<bpmn:timeDuration xsi:type=“bpmn:tFormalExpression”>${P1M}</bpmn:timeDuration>
</bpmn:timerEventDefinition>
</bpmn:intermediateCatchEvent>
</bpmn:process>
<bpmn:process id=“Lane2” name=“Lane2” isExecutable=“true”>
<bpmn:startEvent id=“StartEvent_0x0l83c”>
bpmn:outgoingSequenceFlow_0qpnm90</bpmn:outgoing>
</bpmn:startEvent>
<bpmn:endEvent id=“EndEvent_1a0qst6”>
bpmn:incomingSequenceFlow_1bgayk0</bpmn:incoming>
</bpmn:endEvent>
<bpmn:sequenceFlow id=“SequenceFlow_0qpnm90” sourceRef=“StartEvent_0x0l83c” targetRef=“IntermediateThrowEvent_1kxtlig” />
<bpmn:sequenceFlow id=“SequenceFlow_1bgayk0” sourceRef=“IntermediateThrowEvent_1kxtlig” targetRef=“EndEvent_1a0qst6” />
<bpmn:intermediateCatchEvent id=“IntermediateThrowEvent_1kxtlig”>
bpmn:incomingSequenceFlow_0qpnm90</bpmn:incoming>
bpmn:outgoingSequenceFlow_1bgayk0</bpmn:outgoing>
bpmn:timerEventDefinition
<bpmn:timeDuration xsi:type=“bpmn:tFormalExpression”>${P2M}</bpmn:timeDuration>
</bpmn:timerEventDefinition>
</bpmn:intermediateCatchEvent>
</bpmn:process>
<bpmndi:BPMNDiagram id=“BPMNDiagram_1”>
<bpmndi:BPMNPlane id=“BPMNPlane_1” bpmnElement=“Collaboration_0oifkga”>
<bpmndi:BPMNShape id=“Participant_1fv1sz7_di” bpmnElement=“Participant_1fv1sz7”>
<dc:Bounds x=“123” y=“82” width=“600” height=“250” />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement=“StartEvent_1”>
<dc:Bounds x=“173” y=“102” width=“36” height=“36” />
bpmndi:BPMNLabel
<dc:Bounds x=“146” y=“138” width=“90” height=“20” />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id=“Participant_04u9v82_di” bpmnElement=“Participant_04u9v82”>
<dc:Bounds x=“142” y=“419” width=“600” height=“250” />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id=“EndEvent_0eenaw4_di” bpmnElement=“EndEvent_0eenaw4”>
<dc:Bounds x=“601” y=“191” width=“36” height=“36” />
bpmndi:BPMNLabel
<dc:Bounds x=“574” y=“227” width=“90” height=“20” />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id=“StartEvent_0x0l83c_di” bpmnElement=“StartEvent_0x0l83c”>
<dc:Bounds x=“196” y=“489” width=“36” height=“36” />
bpmndi:BPMNLabel
<dc:Bounds x=“169” y=“525” width=“90” height=“20” />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id=“EndEvent_1a0qst6_di” bpmnElement=“EndEvent_1a0qst6”>
<dc:Bounds x=“636” y=“559” width=“36” height=“36” />
bpmndi:BPMNLabel
<dc:Bounds x=“609” y=“595” width=“90” height=“20” />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id=“SequenceFlow_07l3vay_di” bpmnElement=“SequenceFlow_07l3vay”>
<di:waypoint xsi:type=“dc:Point” x=“209” y=“120” />
<di:waypoint xsi:type=“dc:Point” x=“279” y=“120” />
<di:waypoint xsi:type=“dc:Point” x=“279” y=“191” />
<di:waypoint xsi:type=“dc:Point” x=“349” y=“191” />
bpmndi:BPMNLabel
<dc:Bounds x=“249” y=“145.5” width=“90” height=“20” />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id=“SequenceFlow_1ai6vvv_di” bpmnElement=“SequenceFlow_1ai6vvv”>
<di:waypoint xsi:type=“dc:Point” x=“385” y=“191” />
<di:waypoint xsi:type=“dc:Point” x=“493” y=“191” />
<di:waypoint xsi:type=“dc:Point” x=“493” y=“206” />
<di:waypoint xsi:type=“dc:Point” x=“602” y=“206” />
bpmndi:BPMNLabel
<dc:Bounds x=“463” y=“188.5” width=“90” height=“20” />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNShape id=“IntermediateCatchEvent_0ngibkt_di” bpmnElement=“IntermediateThrowEvent_133rbgo”>
<dc:Bounds x=“349” y=“173” width=“36” height=“36” />
bpmndi:BPMNLabel
<dc:Bounds x=“322” y=“209” width=“90” height=“20” />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id=“SequenceFlow_0qpnm90_di” bpmnElement=“SequenceFlow_0qpnm90”>
<di:waypoint xsi:type=“dc:Point” x=“232” y=“507” />
<di:waypoint xsi:type=“dc:Point” x=“329” y=“507” />
<di:waypoint xsi:type=“dc:Point” x=“329” y=“563” />
<di:waypoint xsi:type=“dc:Point” x=“427” y=“563” />
bpmndi:BPMNLabel
<dc:Bounds x=“299” y=“525” width=“90” height=“20” />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id=“SequenceFlow_1bgayk0_di” bpmnElement=“SequenceFlow_1bgayk0”>
<di:waypoint xsi:type=“dc:Point” x=“461” y=“556” />
<di:waypoint xsi:type=“dc:Point” x=“549” y=“556” />
<di:waypoint xsi:type=“dc:Point” x=“549” y=“587” />
<di:waypoint xsi:type=“dc:Point” x=“639” y=“587” />
bpmndi:BPMNLabel
<dc:Bounds x=“519” y=“561.5” width=“90” height=“20” />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNShape id=“IntermediateCatchEvent_0iyuyai_di” bpmnElement=“IntermediateThrowEvent_1kxtlig”>
<dc:Bounds x=“425” y=“538” width=“36” height=“36” />
bpmndi:BPMNLabel
<dc:Bounds x=“398” y=“574” width=“90” height=“20” />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</bpmn:definitions>
`

Hi gcalvo,

Did you send an empty json body with your POST request?

Cheers,
Christian

I’m such an idiot… Yeah, it was that.

Thanks a lot Christian.