<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">

<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>

                                <td>

                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="http://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>

                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px;  -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
    Re: jBPM 4.4 - unable to run examples
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="http://community.jboss.org/people/j040p3d20">j040 p3d20</a> in <i>jBPM</i> - <a href="http://community.jboss.org/message/576609#576609">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p>Hi,</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>I'm getting the same error when running the following code</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><span style="white-space: pre;"> </span>String deploymentDbid = repositoryService.createDeployment().addResourceFromClasspath("sample-process.jpdl.xml").deploy();</p><p><span style="white-space: pre;"> </span>Map&lt;String, Object&gt; variables = new HashMap&lt;String, Object&gt;();</p><p><span style="white-space: pre;"> </span>variables.put("content", "good");</p><p><span style="white-space: pre;"> </span>ProcessInstance processInstance = executionService.startProcessInstanceByKey("DecisionExpression", variables);</p><p><span style="white-space: pre;"> </span>log.info("Process reached state " + processInstance.getState());</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><span style="white-space: pre;">/</span>*</p><p>* this line produces the error</p><p>*/</p><p><span style="white-space: pre;"> </span>executionService.signalExecutionById(processInstance.getId());</p></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>I'm using jbpm 4.3 and processInstance is a spring 2.5.6 auto-wired bean. Since I have also a JPA context for my application , aside from the hibernate context used by jbpm engine, I feared that this could somehow interfere with jbpm execution.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Can someone please provide some insight into this ?</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>...</p><p><div id="_mcePaste" style="position: absolute; left: -10000px; top: 12px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;"> </div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 12px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">Hibernate: </div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 12px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">&#160;&#160;&#160; /* delete one-to-many org.jbpm.pvm.internal.model.ExecutionImpl.variables */ update</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 12px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; JBPM4_VARIABLE </div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 12px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">&#160;&#160;&#160;&#160;&#160;&#160;&#160; set</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 12px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; EXECUTION_=null,</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 12px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; KEY_=null </div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 12px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">&#160;&#160;&#160;&#160;&#160;&#160;&#160; where</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 12px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; EXECUTION_=?</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 12px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">Hibernate: </div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 12px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">&#160;&#160;&#160; /* delete org.jbpm.pvm.internal.type.variable.StringVariable */ delete </div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 12px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">&#160;&#160;&#160;&#160;&#160;&#160;&#160; from</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 12px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; JBPM4_VARIABLE </div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 12px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">&#160;&#160;&#160;&#160;&#160;&#160;&#160; where</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 12px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; DBID_=? </div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 12px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; and DBVERSION_=?</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 12px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">Hibernate: </div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 12px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">&#160;&#160;&#160; /* delete org.jbpm.pvm.internal.model.ExecutionImpl */ delete </div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 12px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">&#160;&#160;&#160;&#160;&#160;&#160;&#160; from</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 12px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; JBPM4_EXECUTION </div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 12px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">&#160;&#160;&#160;&#160;&#160;&#160;&#160; where</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 12px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; DBID_=? </div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 12px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; and DBVERSION_=?</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 12px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">15382 [http-8080-exec-2] WARN org.hibernate.util.JDBCExceptionReporter&#160; - SQL Error: 1451, SQLState: 23000</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 12px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">15382 [http-8080-exec-2] ERROR org.hibernate.util.JDBCExceptionReporter&#160; - Cannot delete or update a parent row: a foreign key constraint fails (`jbpm`.`jbpm4_execution`, CONSTRAINT `FK_EXEC_INSTANCE` FOREIGN KEY (`INSTANCE_`) REFERENCES `jbpm4_execution` (`DBID_`))</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 12px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">15388 [http-8080-exec-2] ERROR org.hibernate.event.def.AbstractFlushingEventListener&#160; - Could not synchronize database state with session</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 12px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">org.hibernate.exception.ConstraintViolationException: could not delete: [org.jbpm.pvm.internal.model.ExecutionImpl#7]</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 12px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:94)</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 12px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:66)</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 12px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">at org.hibernate.persister.entity.AbstractEntityPersister.delete(AbstractEntityPersister.java:2569)</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 12px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">at org.hibernate.persister.entity.AbstractEntityPersister.delete(AbstractEntityPersister.java:2725)</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 12px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">at org.hibernate.action.EntityDeleteAction.execute(EntityDeleteAction.java:97)</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 12px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:279)</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 12px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:263)</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 12px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:172)</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 12px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:321)</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 12px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:50)</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 12px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1027)</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 12px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">at org.springframework.orm.hibernate3.SpringSessionSynchronization.beforeCommit(SpringSessionSynchronization.java:135)</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 12px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">at org.springframework.transaction.support.TransactionSynchronizationUtils.triggerBeforeCommit(TransactionSynchronizationUtils.java:72)</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 12px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">at org.springframework.transaction.support.AbstractPlatformTransactionManager.triggerBeforeCommit(AbstractPlatformTransactionManager.java:905)</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 12px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">at org.springframework.transaction.support.AbstractPlatformTransactionManager.processCommit(AbstractPlatformTransactionManager.java:715)</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 12px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">at org.springframework.transaction.support.AbstractPlatformTransactionManager.commit(AbstractPlatformTransactionManager.java:701)</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 12px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:140)</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 12px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">at org.jbpm.pvm.internal.tx.SpringTransactionInterceptor.execute(SpringTransactionInterceptor.java:55)</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 12px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">at org.jbpm.pvm.internal.svc.EnvironmentInterceptor.executeInNewEnvironment(EnvironmentInterceptor.java:53)</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 12px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">at org.jbpm.pvm.internal.svc.EnvironmentInterceptor.execute(EnvironmentInterceptor.java:40)</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 12px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">at org.jbpm.pvm.internal.svc.RetryInterceptor.execute(RetryInterceptor.java:55)</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 12px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">at org.jbpm.pvm.internal.svc.ExecutionServiceImpl.signalExecutionById(ExecutionServiceImpl.java:84)</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 12px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">at com.example.workflow.WorkflowApplication.execute(WorkflowApplication.java:69)</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 12px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">at com.example.workflow.WorkflowApplication.access$0(WorkflowApplication.java:53)</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 12px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">at com.example.workflow.WorkflowApplication$1.buttonClick(WorkflowApplication.java:45)</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 12px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 12px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 12px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 12px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">at java.lang.reflect.Method.invoke(Method.java:597)</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 12px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">at com.vaadin.event.ListenerMethod.receiveEvent(ListenerMethod.java:487)</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 12px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">at com.vaadin.event.EventRouter.fireEvent(EventRouter.java:161)</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 12px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">at com.vaadin.ui.AbstractComponent.fireEvent(AbstractComponent.java:1154)</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 12px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">at com.vaadin.ui.Button.fireClick(Button.java:371)</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 12px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">at com.vaadin.ui.Button.changeVariables(Button.java:193)</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 12px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">at com.vaadin.terminal.gwt.server.AbstractCommunicationManager.handleVariables(AbstractCommunicationManager.java:1094)</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 12px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">at com.vaadin.terminal.gwt.server.AbstractCommunicationManager.doHandleUidlRequest(AbstractCommunicationManager.java:590)</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 12px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">at com.vaadin.terminal.gwt.server.CommunicationManager.handleUidlRequest(CommunicationManager.java:266)</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 12px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">at com.vaadin.terminal.gwt.server.AbstractApplicationServlet.service(AbstractApplicationServlet.java:476)</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 12px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 12px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:306)</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 12px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 12px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:240)</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 12px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 12px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 12px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:108)</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 12px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:558)</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 12px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 12px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:379)</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 12px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:243)</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 12px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:259)</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 12px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:281)</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 12px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 12px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 12px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">at java.lang.Thread.run(Thread.java:619)</div><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Hibernate: </p><p>&#160;&#160;&#160; /* delete one-to-many org.jbpm.pvm.internal.model.ExecutionImpl.variables */ update</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; JBPM4_VARIABLE </p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; set</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; EXECUTION_=null,</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; KEY_=null </p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; where</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; EXECUTION_=?</p><p>Hibernate: </p><p>&#160;&#160;&#160; /* delete org.jbpm.pvm.internal.type.variable.StringVariable */ delete </p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; from</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; JBPM4_VARIABLE </p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; where</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; DBID_=? </p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; and DBVERSION_=?</p><p>Hibernate: </p><p>&#160;&#160;&#160; /* delete org.jbpm.pvm.internal.model.ExecutionImpl */ delete </p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; from</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; JBPM4_EXECUTION </p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; where</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; DBID_=? </p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; and DBVERSION_=?</p><p>15382 [http-8080-exec-2] WARN org.hibernate.util.JDBCExceptionReporter&#160; - SQL Error: 1451, SQLState: 23000</p><p>15382 [http-8080-exec-2] ERROR org.hibernate.util.JDBCExceptionReporter&#160; - Cannot delete or update a parent row: a foreign key constraint fails (`jbpm`.`jbpm4_execution`, CONSTRAINT `FK_EXEC_INSTANCE` FOREIGN KEY (`INSTANCE_`) REFERENCES `jbpm4_execution` (`DBID_`))</p><p>15388 [http-8080-exec-2] ERROR org.hibernate.event.def.AbstractFlushingEventListener&#160; - Could not synchronize database state with session</p><p>org.hibernate.exception.ConstraintViolationException: could not delete: [org.jbpm.pvm.internal.model.ExecutionImpl#7]</p><p><span style="white-space: pre;"> </span>at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:94)</p><p><span style="white-space: pre;"> </span>at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:66)</p><p><span style="white-space: pre;"> </span>at org.hibernate.persister.entity.AbstractEntityPersister.delete(AbstractEntityPersister.java:2569)</p><p><span style="white-space: pre;"> </span>at org.hibernate.persister.entity.AbstractEntityPersister.delete(AbstractEntityPersister.java:2725)</p><p><span style="white-space: pre;"> </span>at org.hibernate.action.EntityDeleteAction.execute(EntityDeleteAction.java:97)</p><p><span style="white-space: pre;"> </span>at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:279)</p><p><span style="white-space: pre;"> </span>at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:263)</p><p><span style="white-space: pre;"> </span>at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:172)</p><p><span style="white-space: pre;"> </span>at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:321)</p><p><span style="white-space: pre;"> </span>at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:50)</p><p><span style="white-space: pre;"> </span>at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1027)</p><p><span style="white-space: pre;"> </span>at org.springframework.orm.hibernate3.SpringSessionSynchronization.beforeCommit(SpringSessionSynchronization.java:135)</p><p><span style="white-space: pre;"> </span>at org.springframework.transaction.support.TransactionSynchronizationUtils.triggerBeforeCommit(TransactionSynchronizationUtils.java:72)</p><p><span style="white-space: pre;"> </span>at org.springframework.transaction.support.AbstractPlatformTransactionManager.triggerBeforeCommit(AbstractPlatformTransactionManager.java:905)</p><p><span style="white-space: pre;"> </span>at org.springframework.transaction.support.AbstractPlatformTransactionManager.processCommit(AbstractPlatformTransactionManager.java:715)</p><p><span style="white-space: pre;"> </span>at org.springframework.transaction.support.AbstractPlatformTransactionManager.commit(AbstractPlatformTransactionManager.java:701)</p><p><span style="white-space: pre;"> </span>at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:140)</p><p><span style="white-space: pre;"> </span>at org.jbpm.pvm.internal.tx.SpringTransactionInterceptor.execute(SpringTransactionInterceptor.java:55)</p><p><span style="white-space: pre;"> </span>at org.jbpm.pvm.internal.svc.EnvironmentInterceptor.executeInNewEnvironment(EnvironmentInterceptor.java:53)</p><p><span style="white-space: pre;"> </span>at org.jbpm.pvm.internal.svc.EnvironmentInterceptor.execute(EnvironmentInterceptor.java:40)</p><p><span style="white-space: pre;"> </span>at org.jbpm.pvm.internal.svc.RetryInterceptor.execute(RetryInterceptor.java:55)</p><p><span style="white-space: pre;"> </span>at org.jbpm.pvm.internal.svc.ExecutionServiceImpl.signalExecutionById(ExecutionServiceImpl.java:84)</p><p><span style="white-space: pre;"> </span>at com.example.workflow.WorkflowApplication.execute(WorkflowApplication.java:69)</p><p><span style="white-space: pre;"> </span>at com.example.workflow.WorkflowApplication.access$0(WorkflowApplication.java:53)</p><p><span style="white-space: pre;"> </span>at com.example.workflow.WorkflowApplication$1.buttonClick(WorkflowApplication.java:45)</p><p><span style="white-space: pre;"> </span>at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)</p><p><span style="white-space: pre;"> </span>at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)</p><p><span style="white-space: pre;"> </span>at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)</p><p><span style="white-space: pre;"> </span>at java.lang.reflect.Method.invoke(Method.java:597)</p><p><span style="white-space: pre;"> </span>at com.vaadin.event.ListenerMethod.receiveEvent(ListenerMethod.java:487)</p><p><span style="white-space: pre;"> </span>at com.vaadin.event.EventRouter.fireEvent(EventRouter.java:161)</p><p><span style="white-space: pre;"> </span>at com.vaadin.ui.AbstractComponent.fireEvent(AbstractComponent.java:1154)</p><p><span style="white-space: pre;"> </span>at com.vaadin.ui.Button.fireClick(Button.java:371)</p><p><span style="white-space: pre;"> </span>at com.vaadin.ui.Button.changeVariables(Button.java:193)</p><p><span style="white-space: pre;"> </span>at com.vaadin.terminal.gwt.server.AbstractCommunicationManager.handleVariables(AbstractCommunicationManager.java:1094)</p><p><span style="white-space: pre;"> </span>at com.vaadin.terminal.gwt.server.AbstractCommunicationManager.doHandleUidlRequest(AbstractCommunicationManager.java:590)</p><p><span style="white-space: pre;"> </span>at com.vaadin.terminal.gwt.server.CommunicationManager.handleUidlRequest(CommunicationManager.java:266)</p><p><span style="white-space: pre;"> </span>at com.vaadin.terminal.gwt.server.AbstractApplicationServlet.service(AbstractApplicationServlet.java:476)</p><p><span style="white-space: pre;"> </span>at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)</p><p><span style="white-space: pre;"> </span>at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:306)</p><p><span style="white-space: pre;"> </span>at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)</p><p><span style="white-space: pre;"> </span>at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:240)</p><p><span style="white-space: pre;"> </span>at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)</p><p><span style="white-space: pre;"> </span>at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)</p><p><span style="white-space: pre;"> </span>at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:108)</p><p><span style="white-space: pre;"> </span>at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:558)</p><p><span style="white-space: pre;"> </span>at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)</p><p><span style="white-space: pre;"> </span>at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:379)</p><p><span style="white-space: pre;"> </span>at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:243)</p><p><span style="white-space: pre;"> </span>at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:259)</p><p><span style="white-space: pre;"> </span>at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:281)</p><p><span style="white-space: pre;"> </span>at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)</p><p><span style="white-space: pre;"> </span>at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)</p><p><span style="white-space: pre;"> </span>at java.lang.Thread.run(Thread.java:619)</p></p></div>

<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
    <p style="margin: 0;">Reply to this message by <a href="http://community.jboss.org/message/576609#576609">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in jBPM at <a href="http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034">Community</a></p>
</div></td>
                        </tr>
                    </tbody>
                </table>


                </td>
            </tr>
        </tbody>
    </table>

</div>

</body>
</html>