2 Replies Latest reply on Apr 18, 2007 1:40 AM by Yashvanth Giriyappa

    Problem with the "mail" action

    renatosteinberg Newbie

      Hi,

      I'm using Jbpm-3.2.Beta2 compiled from the CVS source on my machine.

      Everything works fine, except for the tag.

      I have this process which has an event that it supposed to send an email, so I used that tag.

      What happens is when I'm deploying it, using the designer the server throws a JbpmPersistenceException (the stack trace is below).
      It says that org.jbpm.graph.action.MailAction is not an org.jbpm.graph.def.Action.

      I debugged the jbpm source code and I have verified that MailActios extends Action, so everything should work.

      Can someone point me in the right direction?

      Thanks in advance,


      Here is the stacktrace:



      15:03:37,029 ERROR [STDERR] org.jbpm.persistence.JbpmPersistenceException: couldn't commit hibernate session
      15:03:37,029 ERROR [STDERR] at org.jbpm.persistence.db.DbPersistenceService.endTransaction(DbPersistenceService.java:244)
      15:03:37,029 ERROR [STDERR] at org.jbpm.persistence.db.DbPersistenceService.close(DbPersistenceService.java:170)
      15:03:37,029 ERROR [STDERR] at org.jbpm.svc.Services.close(Services.java:222)
      15:03:37,029 ERROR [STDERR] at org.jbpm.JbpmContext.close(JbpmContext.java:139)
      15:03:37,029 ERROR [STDERR] at org.jbpm.webapp.servlet.ProcessUploadServlet.service(ProcessUploadServlet.java:69)
      15:03:37,029 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
      15:03:37,029 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
      15:03:37,029 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      15:03:37,029 ERROR [STDERR] at org.jbpm.webapp.filter.LogFilter.doFilter(LogFilter.java:59)
      15:03:37,029 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
      15:03:37,029 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      15:03:37,029 ERROR [STDERR] at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
      15:03:37,029 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
      15:03:37,029 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      15:03:37,029 ERROR [STDERR] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
      15:03:37,029 ERROR [STDERR] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
      15:03:37,029 ERROR [STDERR] at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
      15:03:37,029 ERROR [STDERR] at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
      15:03:37,029 ERROR [STDERR] at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
      15:03:37,029 ERROR [STDERR] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
      15:03:37,029 ERROR [STDERR] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
      15:03:37,029 ERROR [STDERR] at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
      15:03:37,029 ERROR [STDERR] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
      15:03:37,029 ERROR [STDERR] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
      15:03:37,029 ERROR [STDERR] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
      15:03:37,029 ERROR [STDERR] at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
      15:03:37,029 ERROR [STDERR] at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
      15:03:37,029 ERROR [STDERR] at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
      15:03:37,029 ERROR [STDERR] at java.lang.Thread.run(Unknown Source)
      15:03:37,029 ERROR [STDERR] Caused by: org.hibernate.HibernateException: instance not of expected entity type: org.jbpm.graph.action.MailAction is not a: org.jbpm.graph.def.Action
      15:03:37,029 ERROR [STDERR] at org.hibernate.persister.entity.AbstractEntityPersister.getSubclassEntityPersister(AbstractEntityPersister.java:3568)
      15:03:37,029 ERROR [STDERR] at org.hibernate.impl.SessionImpl.getEntityPersister(SessionImpl.java:1347)
      15:03:37,029 ERROR [STDERR] at org.hibernate.engine.ForeignKeys.isTransient(ForeignKeys.java:180)
      15:03:37,029 ERROR [STDERR] at org.hibernate.event.def.AbstractSaveEventListener.getEntityState(AbstractSaveEventListener.java:487)
      15:03:37,029 ERROR [STDERR] at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.performSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:84)
      15:03:37,029 ERROR [STDERR] at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:70)
      15:03:37,029 ERROR [STDERR] at org.hibernate.impl.SessionImpl.fireSaveOrUpdate(SessionImpl.java:507)
      15:03:37,029 ERROR [STDERR] at org.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java:499)
      15:03:37,029 ERROR [STDERR] at org.hibernate.engine.CascadingAction$1.cascade(CascadingAction.java:218)
      15:03:37,029 ERROR [STDERR] at org.hibernate.engine.Cascade.cascadeToOne(Cascade.java:268)
      15:03:37,029 ERROR [STDERR] at org.hibernate.engine.Cascade.cascadeAssociation(Cascade.java:216)
      15:03:37,029 ERROR [STDERR] at org.hibernate.engine.Cascade.cascadeProperty(Cascade.java:169)
      15:03:37,029 ERROR [STDERR] at org.hibernate.engine.Cascade.cascadeCollectionElements(Cascade.java:296)
      15:03:37,029 ERROR [STDERR] at org.hibernate.engine.Cascade.cascadeCollection(Cascade.java:242)
      15:03:37,029 ERROR [STDERR] at org.hibernate.engine.Cascade.cascadeAssociation(Cascade.java:219)
      15:03:37,029 ERROR [STDERR] at org.hibernate.engine.Cascade.cascadeProperty(Cascade.java:169)
      15:03:37,029 ERROR [STDERR] at org.hibernate.engine.Cascade.cascade(Cascade.java:130)
      15:03:37,029 ERROR [STDERR] at org.hibernate.event.def.AbstractFlushingEventListener.cascadeOnFlush(AbstractFlushingEventListener.java:131)
      15:03:37,029 ERROR [STDERR] at org.hibernate.event.def.AbstractFlushingEventListener.prepareEntityFlushes(AbstractFlushingEventListener.java:122)
      15:03:37,029 ERROR [STDERR] at org.hibernate.event.def.AbstractFlushingEventListener.flushEverythingToExecutions(AbstractFlushingEventListener.java:65)
      15:03:37,029 ERROR [STDERR] at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:26)
      15:03:37,029 ERROR [STDERR] at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1000)
      15:03:37,029 ERROR [STDERR] at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:338)
      15:03:37,029 ERROR [STDERR] at org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:106)
      15:03:37,029 ERROR [STDERR] at org.jbpm.persistence.db.DbPersistenceService.endTransaction(DbPersistenceService.java:233)
      15:03:37,029 ERROR [STDERR] ... 28 more