6 Replies Latest reply on May 30, 2006 6:09 AM by Patrick van Amstel

    couldn't commit hibernate session (java.lang.OutOfMemoryErro

    Patrick van Amstel Newbie

      I'm tring to commit the JbpmContext at the end with context1.close();

      It seems to be a problem of having to many variables in my
      workflow.

      Question:
      Is there a way of flushing or nulling variables in the workflow.

      I've tried to delete the variables or null them but that did not seem to work.
      If i use less variables i do not get the out of memory.

      Question:
      Can there be an intermediate HibernateUpdate?

      Any hints are welcome


      JbpmContext context1 = null;
      try
      {
      ProcessDefinition pd = ProcessDefinition.parseXmlResource("FileSplitter.par/processdefinition.xml");
      context1 = this.jbpmConfiguration.createJbpmContext();
      ProcessInstance instance = new ProcessInstance(pd);
      context1.deployProcessDefinition(pd);
      instance.signal();
      context1.save(instance);
      } catch (Exception e)
      {

      e.printStackTrace();
      }finally {
      context1.close();
      }