cancel
Showing results for 
Search instead for 
Did you mean: 

Activity on spring, in table ACT_RU_JOB, EXCEPTION_MSG_ couldn't instantiate class ...

francescoaliber
Champ in-the-making
Champ in-the-making
Hi,
I use activity in a spring project by including dependencies in pom.xml.
It works perfectly with all tags b ut I have a problem with the boundaryEvent.

I have this situation:

———————————————————————————————————————
<receiveTask id="timer" name="timer"></receiveTask>
<boundaryEvent id="inizioSessioneTestTimer" attachedToRef="timer" cancelActivity="true">
   <timerEventDefinition>
      <timeDate>${testStartDate}</timeDate>
   </timerEventDefinition>
</boundaryEvent>
<serviceTask id="timer2Class" name="attendi" activiti:class="com.prova.activititest.activiti.AttendiClassDelegate"></serviceTask>

…….
…….

<sequenceFlow id="flow14" sourceRef="inizioSessioneTestTimer" targetRef="timer2Class"></sequenceFlow>
<sequenceFlow id="flow15" sourceRef="timer2Class" targetRef="timer2"></sequenceFlow>
———————————————————————————————————————

I set correctly the ${testStartDate} variable but when the task "timer2Class" is ready to start (flow15) i read in table ACT_RU_JOB in column  EXCEPTION_MSG_ this message: "couldn't instantiate class com.prova.activititest.activiti.AttendiClassDelegate".
The strange thing is that sometimes it works.
Can someone help me?

Thank you!

dr. Francesco Oreste Aliberti
1 REPLY 1

francescoaliber
Champ in-the-making
Champ in-the-making
Sorry, but the code in my post are disappeared…
I'm new in this forum.
I attach it here.