1 Reply Latest reply on May 8, 2007 5:24 AM by Rishi Sharma

    JBpm 3.2 : Version column

    Vinicius Carvalho Apprentice

      Hello there! Well, never surrender...

      I'm still trying to get jbpm 3.2 and seam 1.2.1, so what I've done is create an MBean (since it seems that the jndi jbpmconfiguration is not present on the 3.2) and registred my jbpmconfiguration inside jndi. Working fine.

      inside my action I have:

      JbpmContext ctx = null;
       try {
       InitialContext initialContext = new InitialContext();
      
       jbpmConfig = (JbpmConfiguration)initialContext.lookup("java:/jbpm/JbpmConfiguration");
       } catch (NamingException e) {
       e.printStackTrace();
       }
       ctx = jbpmConfig.createJbpmContext();
       ProcessInstance instance = ctx.newProcessInstance("myProcess");
       ctx.save(instance);
       ctx.close();
      


      Problem is I'm getting an error complaining that the VERSION_ column of table JBPM_MODULEINSTANCE can not be null.
      I've double checked my jars, and I'm using the 3.2 jars, the ContextInstance.hbm.xml is extending ModuleInstance which have a tag set.
      Why is still complaining?

      Regards