[JBoss-dev] [JBoss JIRA] Created: (JBPM-115) The attached process definition fails to deploy due to Hibernate errors
The attached process definition fails to deploy due to Hibernate errors --- Key: JBPM-115 URL: http://jira.jboss.com/jira/browse/JBPM-115 Project: JBoss jBPM Type: Bug Components: Core Engine Versions: jBPM 3.0 alpha 3 Environment: Win XP, JDK 1.5.02, Eclipse 3.1M6, Ant 1.6.2 Reporter: David Good Assigned to: Tom Baeyens Attempting to deploy the following processdefinition.xml: ?xml version=1.0 encoding=UTF-8? process-definition name=threetest swimlane name=test assignment class=com.axxia.workflow.afcl.service.ExplicitAssignmentHandler config-type=bean/ assignmentsw/assignment /swimlane start-state name=start transition to=one name=one/ /start-state task-node name=one swimlane=test transition to=end name=end/ task name=test1 swimlane=test/ /task-node end-state name=end/ /process-definition results in this stack trace: [deploypar] 10:20:57,137 ERROR JbpmSession : org.hibernate.TransientObjectException: object references an unsaved transient instance - save the transient instance before flushing: org.jbpm.util.instantiation.Delegation [deploypar] java.lang.RuntimeException: couldn't commit transaction [deploypar] at org.jbpm.db.JbpmSession.commitTransaction(JbpmSession.java:89) [deploypar] at org.jbpm.jpdl.par.ProcessArchiveDeployer.deployProcessArchive(ProcessArchiveDeployer.java:58) [deploypar] at org.jbpm.jpdl.par.ProcessArchiveDeployer.deployProcessArchive(ProcessArchiveDeployer.java:27) [deploypar] at org.jbpm.jpdl.par.ProcessArchiveDeployerTask.execute(ProcessArchiveDeployerTask.java:72) [deploypar] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275) [deploypar] at org.apache.tools.ant.Task.perform(Task.java:364) [deploypar] at org.apache.tools.ant.Target.execute(Target.java:341) [deploypar] at org.apache.tools.ant.Target.performTasks(Target.java:369) [deploypar] at org.apache.tools.ant.Project.executeTarget(Project.java:1214) [deploypar] at org.apache.tools.ant.Project.executeTargets(Project.java:1062) [deploypar] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:414) [deploypar] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:139) [deploypar] Caused by: org.hibernate.TransientObjectException: object references an unsaved transient instance - save the transient instance before flushing: org.jbpm.util.instantiation.Delegation [deploypar] at org.hibernate.engine.ForeignKeys.getEntityIdentifierIfNotUnsaved(ForeignKeys.java:210) [deploypar] at org.hibernate.type.EntityType.getIdentifier(EntityType.java:88) [deploypar] at org.hibernate.type.EntityType.isDirty(EntityType.java:204) [deploypar] at org.hibernate.type.TypeFactory.findDirty(TypeFactory.java:378) [deploypar] at org.hibernate.persister.entity.BasicEntityPersister.findDirty(BasicEntityPersister.java:2561) [deploypar] at org.hibernate.event.def.DefaultFlushEntityEventListener.dirtyCheck(DefaultFlushEntityEventListener.java:343) [deploypar] at org.hibernate.event.def.DefaultFlushEntityEventListener.onFlushEntity(DefaultFlushEntityEventListener.java:108) [deploypar] at org.hibernate.event.def.AbstractFlushingEventListener.flushEntities(AbstractFlushingEventListener.java:190) [deploypar] at org.hibernate.event.def.AbstractFlushingEventListener.flushEverythingToExecutions(AbstractFlushingEventListener.java:70) [deploypar] at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:26) [deploypar] at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:675) [deploypar] at org.jbpm.db.JbpmSession.commitTransaction(JbpmSession.java:85) [deploypar] ... 11 more *** The issue is caused by the lack of cascade between Swimlane and Delegation, and is resolved by the following patch: *** Index: Swimlane.hbm.xml === RCS file: /cvsroot/jbpm/jbpm.3/src/jbpm/org/jbpm/taskmgmt/def/Swimlane.hbm.xml,v retrieving revision 1.1 diff -u -r1.1 Swimlane.hbm.xml --- Swimlane.hbm.xml31 Mar 2005 15:53:09 - 1.1 +++ Swimlane.hbm.xml8 Apr 2005 09:44:03 - @@ -13,7 +13,8 @@ property name=namecolumn=NAME_ / many-to-one name=assignmentDelegation column=ASSIGNMENTDELEGATION_ - foreign-key=FK_SWIMLANE_ASSIGNMENTDELEGATION/ + foreign-key=FK_SWIMLANE_ASSIGNMENTDELEGATION + cascade=all/ many-to-one name=taskMgmtDefinition
[JBoss-dev] [JBoss JIRA] Created: (JBPM-116) Process Archives which include nested folders fail to deploy
Process Archives which include nested folders fail to deploy Key: JBPM-116 URL: http://jira.jboss.com/jira/browse/JBPM-116 Project: JBoss jBPM Type: Patch Components: Core Engine Versions: jBPM 3.0 alpha 3 Environment: Win XP, JDK 1.5.02 Eclipse 3.1M6, Ant 1.6.2 Reporter: David Good Assigned to: Tom Baeyens Process archives which include nested folders fail to deploy, giving a null pointer exception. This occurs because FileArchiveParser::readFromArchive() attempts to add the folders to the FileDefinition instance. The attached patch resolves this issue. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa - If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira --- SF email is sponsored by - The IT Product Guide Read honest candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click ___ JBoss-Development mailing list JBoss-Development@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] [JBoss JIRA] Updated: (JBPM-116) Process Archives which include nested folders fail to deploy
[ http://jira.jboss.com/jira/browse/JBPM-116?page=history ] David Good updated JBPM-116: Attachment: patch.txt Patch for org.jbpm.jpdl.par.FileArchiveParser Process Archives which include nested folders fail to deploy Key: JBPM-116 URL: http://jira.jboss.com/jira/browse/JBPM-116 Project: JBoss jBPM Type: Patch Components: Core Engine Versions: jBPM 3.0 alpha 3 Environment: Win XP, JDK 1.5.02 Eclipse 3.1M6, Ant 1.6.2 Reporter: David Good Assignee: Tom Baeyens Attachments: patch.txt Process archives which include nested folders fail to deploy, giving a null pointer exception. This occurs because FileArchiveParser::readFromArchive() attempts to add the folders to the FileDefinition instance. The attached patch resolves this issue. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa - If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira --- SF email is sponsored by - The IT Product Guide Read honest candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click ___ JBoss-Development mailing list JBoss-Development@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] [JBoss JIRA] Updated: (JBPM-116) Process Archives which include nested folders fail to deploy
[ http://jira.jboss.com/jira/browse/JBPM-116?page=history ] David Good updated JBPM-116: Attachment: threetest.par ProcessArchive including nested folder which can be used to test this issue. Process Archives which include nested folders fail to deploy Key: JBPM-116 URL: http://jira.jboss.com/jira/browse/JBPM-116 Project: JBoss jBPM Type: Patch Components: Core Engine Versions: jBPM 3.0 alpha 3 Environment: Win XP, JDK 1.5.02 Eclipse 3.1M6, Ant 1.6.2 Reporter: David Good Assignee: Tom Baeyens Attachments: patch.txt, threetest.par Process archives which include nested folders fail to deploy, giving a null pointer exception. This occurs because FileArchiveParser::readFromArchive() attempts to add the folders to the FileDefinition instance. The attached patch resolves this issue. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa - If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira --- SF email is sponsored by - The IT Product Guide Read honest candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click ___ JBoss-Development mailing list JBoss-Development@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-development