1 2 Previous Next 20 Replies Latest reply on Aug 6, 2012 4:43 AM by Mauricio Salatino

    My jBPM5.2 doesn't work! Like this......

    c1269355458 Newbie

      hi, all.

      JPA and MinaTaskServer are working well.

       

      my action is like this:


      StatefulKnowledgeSession session = null;


      try {


      session = JbpmAPIUtil.createKnowledgeSession("bpmn/HumanTask.bpmn");


      session.getWorkItemManager().registerWorkItemHandler("Human Task", new WSHumanTaskHandler());


      } catch (Exception e) {


      e.printStackTrace();


      }


      Map<String, Object> params = new HashMap<String, Object>();


      params.put("userId", "krisv");


      params.put("description", "Need a new laptop computer");


      ProcessInstance instance = session.startProcess("com.sample.humantask", params);





      System.out.println("\n\n start " + instance);



       

      and error:

      Hibernate: insert into SessionInfo (lastModificationDate, rulesByteArray, startDate, OPTLOCK) values (?, ?, ?, ?)

      Hibernate: insert into ProcessInstanceInfo (lastModificationDate, lastReadDate, processId, processInstanceByteArray, startDate, state, OPTLOCK) values (?, ?, ?, ?, ?, ?, ?)

      Hibernate: insert into WorkItemInfo (creationDate, name, processInstanceId, state, OPTLOCK, workItemByteArray) values (?, ?, ?, ?, ?, ?)

      2012-03-22 14:54:49,546 INFO  [LoggingFilter.java:158] : CREATED

      2012-03-22 14:54:49,546 INFO  [LoggingFilter.java:158] : OPENED

      2012-03-22 14:54:49,562 INFO  [LoggingFilter.java:140] : RECEIVED: HeapBuffer[pos=0 lim=675 cap=2048: 00 00 01 4F AC ED 00 05 73 72 01 00 1D 6F 72 67...]

      2012-03-22 14:54:49,734 INFO  [LoggingFilter.java:140] : RECEIVED: HeapBuffer[pos=0 lim=1007 cap=2048: 00 00 01 4D AC ED 00 05 73 72 01 00 1D 6F 72 67...]

      2012-03-22 14:54:49,750 WARN  [JDBCExceptionReporter.java:233] : SQL Error: 1452, SQLState: 23000

      2012-03-22 14:54:49,750 ERROR [JDBCExceptionReporter.java:234] : Cannot add or update a child row: a foreign key constraint fails (`example`.`peopleassignments_potowners`, CONSTRAINT `FK1EE418D2C122ED2` FOREIGN KEY (`entity_id`) REFERENCES `organizationalentity` (`id`))

      javax.persistence.RollbackException: Error while committing the transaction

       

      ....

      Caused by: java.sql.BatchUpdateException: Cannot add or update a child row: a foreign key constraint fails (`example`.`peopleassignments_potowners`, CONSTRAINT `FK1EE418D2C122ED2` FOREIGN KEY (`entity_id`) REFERENCES `organizationalentity` (`id`))

      ....

       

      thinks.

        1 2 Previous Next