5 Replies Latest reply on Jan 6, 2010 11:37 AM by aapthorp

    jBPM 3.2.6 SP1 configuration / inititialisation problem

    aapthorp

      I'm belatedly migrating to jBPM 3.2.6 SP1 from 3.3.0 and get a "getNamedQuery is not valid without active transaction" hibernate error when try to access jBPM from a servlet.

       

      13:16:47,828 ERROR [TaskMgmtSession] org.hibernate.HibernateException: getNamedQuery is not valid without active transaction
      13:16:47,828 INFO  [CalDavServlet] REPORT: help org.jbpm.JbpmException: couldn't get task instances list for actor 'manager'
      13:16:47,828 ERROR [STDERR] org.jbpm.JbpmException: couldn't get task instances list for actor 'manager'
      13:16:47,828 ERROR [STDERR]      at org.jbpm.db.TaskMgmtSession.findTaskInstances(TaskMgmtSession.java:66)
      13:16:47,828 ERROR [STDERR]      at org.jbpm.JbpmContext.getTaskList(JbpmContext.java:188)
      13:16:47,828 ERROR [STDERR]      at com.ajita.ical.ToDoList.getTaskList(ToDoList.java:79)

       

      If I load jBPM by using the jbpm console first and then invoke the servlet then the problem doesn't occur. I'm wondering if this problem pre-existed the migration but because the console loaded jBPM at jboss startup it masked the problem. As I want to make my servlet deployable without the servlet I need to figure this out.

       

      Any ideas?

       

       

      I thought this might be related to http://community.jboss.org/thread/118513 but my problem occurs in 3.2.6 SP1.