[JBoss jBPM] - Error Creating Timer on Task Instance Create
by johnhurtchan
Please help. I added a Timer for my Task. But during execution, when the task instance gets created, then it tries to create the Timer, I get this exception...
DEBUG GraphElement : event 'timer-create' on 'Task(MyTask)' for 'Token(/)'
| DEBUG JobSession : cascading timer save to timer action
| ERROR GraphElement : action threw exception: uninitialized proxy passed to save()
| org.hibernate.PersistentObjectException: uninitialized proxy passed to save()
| at org.hibernate.event.def.DefaultSaveEventListener.reassociateIfUninitializedProxy(DefaultSaveEventListener.java:49)
| at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:59)
| at org.hibernate.impl.SessionImpl.fireSave(SessionImpl.java:535)
| at org.hibernate.impl.SessionImpl.save(SessionImpl.java:523)
| at org.hibernate.impl.SessionImpl.save(SessionImpl.java:519)
| at org.jbpm.db.JobSession.saveJob(JobSession.java:99)
| at org.jbpm.scheduler.db.DbSchedulerService.createTimer(DbSchedulerService.java:43)
|
My processdefinition looks like this...
<task name="MyTask">
| <assignment class="MyAssignmentHandler"></assignment>
| <timer duedate="1 day"><action class="MyActionClass"/></timer>
| </task>
Its not executing my Action class yet because it can't even get pass creating the Timer. Anyway my Action class looks like this...
public class TaskReminderEmailNotificationAction implements ActionHandler
| {
| private static final long serialVersionUID = 1L;
| public void execute(ExecutionContext ctx) throws Exception
| {
| TaskInstance taskInstance = ctx.getTaskInstance();
| taskInstance.getActorId();
| EmailNotification.notify(taskInstance);
| }
| }
And that EmailNotification.notify(TaskInstance) method looks like this...
public static void notify(TaskInstance taskInstance) throws Exception
| {
| String taskName = taskInstance.getName();
| Object p = ((Object)taskInstance.getContextInstance().getVariable("object"));
| Message msg = new MimeMessage(session);
| Transport.send(msg);
| }
Any ideas why it can't even create the Timer?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4191585#4191585
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4191585
17 years, 6 months
[EJB 3.0] - Re:
by cwalters
The class in question is contained within the GGGoMobilePrototype.war file that is within the following EAR file:
META-INF/
| META-INF/MANIFEST.MF
| GGGoMobilePrototype.war
| META-INF/application.xml
| META-INF/hibernate-service.xml
| META-INF/jboss-app.xml
| antlr.jar
| commons-beanutils.jar
| commons-digester.jar
| commons-fileupload-1.0.jar
| commons-logging.jar
| commons-validator.jar
| jakarta-oro.jar
The class in question (GMStore.class) is located at the following location within the GGGoMobilePrototype.war file:
GGGoMobilePrototype.war\WEB-INF\classes\com\clarksonville\gm\data\GMStore.class
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4191578#4191578
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4191578
17 years, 6 months
[JBoss Messaging] - Re: JBM deadlock cause by socket write
by lanceliao1
1 The MessageingPostOffice need a readwritelock to handle msg,such as route,binding,removeBinding.
2 Once find a route,get readwritelock,it is using MessagingQueue to handle the msg(Delivery handle(DeliveryObserver observer, MessageReference reference, Transaction tx)).
3 while handdling msg,the Correspond MessagingQueue require a lock to deliver msg.
4 Then using RoundRobin policy choose one ServerSessionEndpoint to deliver msg by Remoting's bisocket.The serverSeeionEndpoint synchronize the method of handleDelivery.
The question is that,one thread hung at step 4 due to no tcp buffer(4557 port recv window is zero) to write bytes.The other thead need a lock to process bytes on port 4557.It is the reason of deadlock,if not using bisocket may resolve the problem?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4191577#4191577
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4191577
17 years, 6 months