<!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;">
    jBPM 4.4 - unable to run examples
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="http://community.jboss.org/people/parul_vipparthi">Parul Vipparthi</a> in <i>jBPM</i> - <a href="http://community.jboss.org/message/568238#568238">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p>Hello</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>I am trying to run examples from jBPM 4.4 on winxp, mysql5.1 but i get this exception for all examples</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">9:31:48,106 SEV | [JDBCExceptionReporter] Cannot delete or update a parent row: a foreign key constraint fails (`jbpmdb`.`jbpm4_execution`, CONSTRAINT `FK_EXEC_INSTANCE` FOREIGN KEY (`INSTANCE_`) REFERENCES `jbpm4_execution` (`DBID_`))</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">### EXCEPTION ###########################################</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">19:31:48,106 SEV | [AbstractFlushingEventListener] Could not synchronize database state with session</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; 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: 0px; 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: 0px; 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: 0px; 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: 0px; 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: 0px; 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: 0px; 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: 0px; 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: 0px; 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: 0px; 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: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">at org.hibernate.event.def.DefaultAutoFlushEventListener.onAutoFlush(DefaultAutoFlushEventListener.java:64)</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">at org.hibernate.impl.SessionImpl.autoFlushIfRequired(SessionImpl.java:996)</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1589)</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">at org.hibernate.impl.CriteriaImpl.list(CriteriaImpl.java:306)</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">at org.jbpm.pvm.internal.hibernate.DbSessionImpl.deleteProcessDefinitionHistory(DbSessionImpl.java:113)</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">at org.jbpm.pvm.internal.cmd.DeleteDeploymentCmd.execute(DeleteDeploymentCmd.java:76)</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">at org.jbpm.pvm.internal.svc.DefaultCommandService.execute(DefaultCommandService.java:42)</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">at org.jbpm.pvm.internal.tx.StandardTransactionInterceptor.execute(StandardTransactionInterceptor.java:50)</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; 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: 0px; 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: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">at org.jbpm.pvm.internal.svc.RetryInterceptor.execute(RetryInterceptor.java:56)</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">at org.jbpm.pvm.internal.svc.SkipInterceptor.execute(SkipInterceptor.java:43)</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">at org.jbpm.pvm.internal.repository.RepositoryServiceImpl.deleteDeploymentCascade(RepositoryServiceImpl.java:71)</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">at org.jbpm.examples.PrintHelloWorldTest.tearDown(PrintHelloWorldTest.java:23)</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">at junit.framework.TestCase.runBare(TestCase.java:136)</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">at junit.framework.TestResult$1.protect(TestResult.java:106)</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">at junit.framework.TestResult.runProtected(TestResult.java:124)</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">at junit.framework.TestResult.run(TestResult.java:109)</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">at junit.framework.TestCase.run(TestCase.java:120)</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">at junit.framework.TestSuite.runTest(TestSuite.java:230)</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">at junit.framework.TestSuite.run(TestSuite.java:225)</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130)</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">Caused by: com.mysql.jdbc.exceptions.MySQLIntegrityConstraintViolationException: Cannot delete or update a parent row: a foreign key constraint fails (`jbpmdb`.`jbpm4_execution`, CONSTRAINT `FK_EXEC_INSTANCE` FOREIGN KEY (`INSTANCE_`) REFERENCES `jbpm4_execution` (`DBID_`))</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:931)</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2985)</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1631)</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1723)</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">at com.mysql.jdbc.Connection.execSQL(Connection.java:3283)</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1332)</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1604)</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1519)</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1504)</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">at org.hibernate.persister.entity.AbstractEntityPersister.delete(AbstractEntityPersister.java:2551)</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">... 33 more</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">### EXCEPTION ###########################################</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">### EXCEPTION ###########################################</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">19:31:48,122 INF | [DefaultCommandService] exception while executing command org.jbpm.pvm.internal.cmd.DeleteDeploymentCmd@198c6f3</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; 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: 0px; 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: 0px; 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: 0px; 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: 0px; 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: 0px; 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: 0px; 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: 0px; 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: 0px; 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: 0px; 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: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">at org.hibernate.event.def.DefaultAutoFlushEventListener.onAutoFlush(DefaultAutoFlushEventListener.java:64)</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">at org.hibernate.impl.SessionImpl.autoFlushIfRequired(SessionImpl.java:996)</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1589)</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">at org.hibernate.impl.CriteriaImpl.list(CriteriaImpl.java:306)</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">at org.jbpm.pvm.internal.hibernate.DbSessionImpl.deleteProcessDefinitionHistory(DbSessionImpl.java:113)</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">at org.jbpm.pvm.internal.cmd.DeleteDeploymentCmd.execute(DeleteDeploymentCmd.java:76)</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">at org.jbpm.pvm.internal.svc.DefaultCommandService.execute(DefaultCommandService.java:42)</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">at org.jbpm.pvm.internal.tx.StandardTransactionInterceptor.execute(StandardTransactionInterceptor.java:50)</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; 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: 0px; 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: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">at org.jbpm.pvm.internal.svc.RetryInterceptor.execute(RetryInterceptor.java:56)</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">at org.jbpm.pvm.internal.svc.SkipInterceptor.execute(SkipInterceptor.java:43)</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">at org.jbpm.pvm.internal.repository.RepositoryServiceImpl.deleteDeploymentCascade(RepositoryServiceImpl.java:71)</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">at org.jbpm.examples.PrintHelloWorldTest.tearDown(PrintHelloWorldTest.java:23)</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">at junit.framework.TestCase.runBare(TestCase.java:136)</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">at junit.framework.TestResult$1.protect(TestResult.java:106)</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">at junit.framework.TestResult.runProtected(TestResult.java:124)</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">at junit.framework.TestResult.run(TestResult.java:109)</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">at junit.framework.TestCase.run(TestCase.java:120)</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">at junit.framework.TestSuite.runTest(TestSuite.java:230)</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">at junit.framework.TestSuite.run(TestSuite.java:225)</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130)</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">Caused by: com.mysql.jdbc.exceptions.MySQLIntegrityConstraintViolationException: Cannot delete or update a parent row: a foreign key constraint fails (`jbpmdb`.`jbpm4_execution`, CONSTRAINT `FK_EXEC_INSTANCE` FOREIGN KEY (`INSTANCE_`) REFERENCES `jbpm4_execution` (`DBID_`))</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:931)</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2985)</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1631)</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1723)</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">at com.mysql.jdbc.Connection.execSQL(Connection.java:3283)</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1332)</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1604)</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1519)</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1504)</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">at org.hibernate.persister.entity.AbstractEntityPersister.delete(AbstractEntityPersister.java:2551)</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">... 33 more</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">### EXCEPTION ###########################################</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">19:31:48,216 FIN | [HibernateSessionResource] ----- rolling back hibernate tx 19762893 -----------------------------------------------------</div><div> </div></p><p><p>9:31:48,106 SEV | [JDBCExceptionReporter] Cannot delete or update a parent row: a foreign key constraint fails (`jbpmdb`.`jbpm4_execution`, CONSTRAINT `FK_EXEC_INSTANCE` FOREIGN KEY (`INSTANCE_`) REFERENCES `jbpm4_execution` (`DBID_`))</p><p>### EXCEPTION ###########################################</p><p>19:31:48,106 SEV | [AbstractFlushingEventListener] 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.DefaultAutoFlushEventListener.onAutoFlush(DefaultAutoFlushEventListener.java:64)</p><p><span style="white-space: pre;"> </span>at org.hibernate.impl.SessionImpl.autoFlushIfRequired(SessionImpl.java:996)</p><p><span style="white-space: pre;"> </span>at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1589)</p><p><span style="white-space: pre;"> </span>at org.hibernate.impl.CriteriaImpl.list(CriteriaImpl.java:306)</p><p><span style="white-space: pre;"> </span>at org.jbpm.pvm.internal.hibernate.DbSessionImpl.deleteProcessDefinitionHistory(DbSessionImpl.java:113)</p><p><span style="white-space: pre;"> </span>at org.jbpm.pvm.internal.cmd.DeleteDeploymentCmd.execute(DeleteDeploymentCmd.java:76)</p><p><span style="white-space: pre;"> </span>at org.jbpm.pvm.internal.svc.DefaultCommandService.execute(DefaultCommandService.java:42)</p><p><span style="white-space: pre;"> </span>at org.jbpm.pvm.internal.tx.StandardTransactionInterceptor.execute(StandardTransactionInterceptor.java:50)</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:56)</p><p><span style="white-space: pre;"> </span>at org.jbpm.pvm.internal.svc.SkipInterceptor.execute(SkipInterceptor.java:43)</p><p><span style="white-space: pre;"> </span>at org.jbpm.pvm.internal.repository.RepositoryServiceImpl.deleteDeploymentCascade(RepositoryServiceImpl.java:71)</p><p><span style="white-space: pre;"> </span>at org.jbpm.examples.PrintHelloWorldTest.tearDown(PrintHelloWorldTest.java:23)</p><p><span style="white-space: pre;"> </span>at junit.framework.TestCase.runBare(TestCase.java:136)</p><p><span style="white-space: pre;"> </span>at junit.framework.TestResult$1.protect(TestResult.java:106)</p><p><span style="white-space: pre;"> </span>at junit.framework.TestResult.runProtected(TestResult.java:124)</p><p><span style="white-space: pre;"> </span>at junit.framework.TestResult.run(TestResult.java:109)</p><p><span style="white-space: pre;"> </span>at junit.framework.TestCase.run(TestCase.java:120)</p><p><span style="white-space: pre;"> </span>at junit.framework.TestSuite.runTest(TestSuite.java:230)</p><p><span style="white-space: pre;"> </span>at junit.framework.TestSuite.run(TestSuite.java:225)</p><p><span style="white-space: pre;"> </span>at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130)</p><p><span style="white-space: pre;"> </span>at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)</p><p><span style="white-space: pre;"> </span>at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)</p><p><span style="white-space: pre;"> </span>at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)</p><p><span style="white-space: pre;"> </span>at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)</p><p><span style="white-space: pre;"> </span>at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)</p><p>Caused by: com.mysql.jdbc.exceptions.MySQLIntegrityConstraintViolationException: Cannot delete or update a parent row: a foreign key constraint fails (`jbpmdb`.`jbpm4_execution`, CONSTRAINT `FK_EXEC_INSTANCE` FOREIGN KEY (`INSTANCE_`) REFERENCES `jbpm4_execution` (`DBID_`))</p><p><span style="white-space: pre;"> </span>at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:931)</p><p><span style="white-space: pre;"> </span>at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2985)</p><p><span style="white-space: pre;"> </span>at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1631)</p><p><span style="white-space: pre;"> </span>at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1723)</p><p><span style="white-space: pre;"> </span>at com.mysql.jdbc.Connection.execSQL(Connection.java:3283)</p><p><span style="white-space: pre;"> </span>at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1332)</p><p><span style="white-space: pre;"> </span>at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1604)</p><p><span style="white-space: pre;"> </span>at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1519)</p><p><span style="white-space: pre;"> </span>at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1504)</p><p><span style="white-space: pre;"> </span>at org.hibernate.persister.entity.AbstractEntityPersister.delete(AbstractEntityPersister.java:2551)</p><p><span style="white-space: pre;"> </span>... 33 more</p><p>### EXCEPTION ###########################################</p><p>### EXCEPTION ###########################################</p><p>19:31:48,122 INF | [DefaultCommandService] exception while executing command org.jbpm.pvm.internal.cmd.DeleteDeploymentCmd@198c6f3</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.DefaultAutoFlushEventListener.onAutoFlush(DefaultAutoFlushEventListener.java:64)</p><p><span style="white-space: pre;"> </span>at org.hibernate.impl.SessionImpl.autoFlushIfRequired(SessionImpl.java:996)</p><p><span style="white-space: pre;"> </span>at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1589)</p><p><span style="white-space: pre;"> </span>at org.hibernate.impl.CriteriaImpl.list(CriteriaImpl.java:306)</p><p><span style="white-space: pre;"> </span>at org.jbpm.pvm.internal.hibernate.DbSessionImpl.deleteProcessDefinitionHistory(DbSessionImpl.java:113)</p><p><span style="white-space: pre;"> </span>at org.jbpm.pvm.internal.cmd.DeleteDeploymentCmd.execute(DeleteDeploymentCmd.java:76)</p><p><span style="white-space: pre;"> </span>at org.jbpm.pvm.internal.svc.DefaultCommandService.execute(DefaultCommandService.java:42)</p><p><span style="white-space: pre;"> </span>at org.jbpm.pvm.internal.tx.StandardTransactionInterceptor.execute(StandardTransactionInterceptor.java:50)</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:56)</p><p><span style="white-space: pre;"> </span>at org.jbpm.pvm.internal.svc.SkipInterceptor.execute(SkipInterceptor.java:43)</p><p><span style="white-space: pre;"> </span>at org.jbpm.pvm.internal.repository.RepositoryServiceImpl.deleteDeploymentCascade(RepositoryServiceImpl.java:71)</p><p><span style="white-space: pre;"> </span>at org.jbpm.examples.PrintHelloWorldTest.tearDown(PrintHelloWorldTest.java:23)</p><p><span style="white-space: pre;"> </span>at junit.framework.TestCase.runBare(TestCase.java:136)</p><p><span style="white-space: pre;"> </span>at junit.framework.TestResult$1.protect(TestResult.java:106)</p><p><span style="white-space: pre;"> </span>at junit.framework.TestResult.runProtected(TestResult.java:124)</p><p><span style="white-space: pre;"> </span>at junit.framework.TestResult.run(TestResult.java:109)</p><p><span style="white-space: pre;"> </span>at junit.framework.TestCase.run(TestCase.java:120)</p><p><span style="white-space: pre;"> </span>at junit.framework.TestSuite.runTest(TestSuite.java:230)</p><p><span style="white-space: pre;"> </span>at junit.framework.TestSuite.run(TestSuite.java:225)</p><p><span style="white-space: pre;"> </span>at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130)</p><p><span style="white-space: pre;"> </span>at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)</p><p><span style="white-space: pre;"> </span>at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)</p><p><span style="white-space: pre;"> </span>at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)</p><p><span style="white-space: pre;"> </span>at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)</p><p><span style="white-space: pre;"> </span>at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)</p><p>Caused by: com.mysql.jdbc.exceptions.MySQLIntegrityConstraintViolationException: Cannot delete or update a parent row: a foreign key constraint fails (`jbpmdb`.`jbpm4_execution`, CONSTRAINT `FK_EXEC_INSTANCE` FOREIGN KEY (`INSTANCE_`) REFERENCES `jbpm4_execution` (`DBID_`))</p><p><span style="white-space: pre;"> </span>at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:931)</p><p><span style="white-space: pre;"> </span>at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2985)</p><p><span style="white-space: pre;"> </span>at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1631)</p><p><span style="white-space: pre;"> </span>at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1723)</p><p><span style="white-space: pre;"> </span>at com.mysql.jdbc.Connection.execSQL(Connection.java:3283)</p><p><span style="white-space: pre;"> </span>at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1332)</p><p><span style="white-space: pre;"> </span>at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1604)</p><p><span style="white-space: pre;"> </span>at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1519)</p><p><span style="white-space: pre;"> </span>at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1504)</p><p><span style="white-space: pre;"> </span>at org.hibernate.persister.entity.AbstractEntityPersister.delete(AbstractEntityPersister.java:2551)</p><p><span style="white-space: pre;"> </span>... 33 more</p><p>### EXCEPTION ###########################################</p><p>19:31:48,216 FIN | [HibernateSessionResource] ----- rolling back hibernate tx 19762893 -----------------------------------------------------</p><div> </div><div>Any help will be appreciated.</div><div>Thank you</div></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/568238#568238">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>