<!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: Help!After replacing H2 to mysql,getting errors in the process tab!
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="http://community.jboss.org/people/jimmy.dongjia">Jimmy dong</a> in <i>jBPM</i> - <a href="http://community.jboss.org/message/642130#642130">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 Demian!</p><p>When I set hibernate.hbm2ddl.auto=create&#160; to update, after I restart&#160; HT server, the HT server can't run , error as follow:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>[javac] /usr/local/jbpm-installer/build.xml:500: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds<br/>&#160;&#160;&#160;&#160; [java] Exception in thread "main" javax.persistence.RollbackException: Error while commiting the transaction<br/>&#160;&#160;&#160;&#160; [java]&#160; at org.hibernate.ejb.TransactionImpl.commit(TransactionImpl.java:71)<br/>&#160;&#160;&#160;&#160; [java]&#160; at org.jbpm.task.service.TaskServiceSession.doOperationInTransaction(TaskServiceSession.java:820)<br/>&#160;&#160;&#160;&#160; [java]&#160; at org.jbpm.task.service.TaskServiceSession.persistInTransaction(TaskServiceSession.java:786)<br/>&#160;&#160;&#160;&#160; [java]&#160; at org.jbpm.task.service.TaskServiceSession.addUser(TaskServiceSession.java:69)<br/>&#160;&#160;&#160;&#160; [java]&#160; at org.jbpm.DemoTaskService.main(Unknown Source)<br/>&#160;&#160;&#160;&#160; [java] Caused by: org.hibernate.exception.ConstraintViolationException: Could not execute JDBC batch update<br/>&#160;&#160;&#160;&#160; [java]&#160; at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:94)<br/>&#160;&#160;&#160;&#160; [java]&#160; at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:66)<br/>&#160;&#160;&#160;&#160; [java]&#160; at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:275)<br/>&#160;&#160;&#160;&#160; [java]&#160; at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:266)<br/>&#160;&#160;&#160;&#160; [java]&#160; at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:167)<br/>&#160;&#160;&#160;&#160; [java]&#160; at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:321)<br/>&#160;&#160;&#160;&#160; [java]&#160; at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:50)<br/>&#160;&#160;&#160;&#160; [java]&#160; at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1027)<br/>&#160;&#160;&#160;&#160; [java]&#160; at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:365)<br/>&#160;&#160;&#160;&#160; [java]&#160; at org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:137)<br/>&#160;&#160;&#160;&#160; [java]&#160; at org.hibernate.ejb.TransactionImpl.commit(TransactionImpl.java:54)<br/>&#160;&#160;&#160;&#160; [java]&#160; ... 4 more<br/>&#160;&#160;&#160;&#160; [java] Caused by: java.sql.BatchUpdateException: Duplicate entry 'Jane Austin' for key 'PRIMARY'<br/>&#160;&#160;&#160;&#160; [java]&#160; at com.mysql.jdbc.PreparedStatement.executeBatchSerially(PreparedStatement.java:2028)<br/>&#160;&#160;&#160;&#160; [java]&#160; at com.mysql.jdbc.PreparedStatement.executeBatch(PreparedStatement.java:1451)<br/>&#160;&#160;&#160;&#160; [java]&#160; at org.hibernate.jdbc.BatchingBatcher.doExecuteBatch(BatchingBatcher.java:70)<br/>&#160;&#160;&#160;&#160; [java]&#160; at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:268)<br/>&#160;&#160;&#160;&#160; [java]&#160; ... 12 more<br/>&#160;&#160;&#160;&#160; [java] Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Duplicate entry 'Jane Austin' for key 'PRIMARY'<br/>&#160;&#160;&#160;&#160; [java]&#160; at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)<br/>&#160;&#160;&#160;&#160; [java]&#160; at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)<br/>&#160;&#160;&#160;&#160; [java]&#160; at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)<br/>&#160;&#160;&#160;&#160; [java]&#160; at java.lang.reflect.Constructor.newInstance(Constructor.java:513)<br/>&#160;&#160;&#160;&#160; [java]&#160; at com.mysql.jdbc.Util.handleNewInstance(Util.java:411)<br/>&#160;&#160;&#160;&#160; [java]&#160; at com.mysql.jdbc.Util.getInstance(Util.java:386)<br/>&#160;&#160;&#160;&#160; [java]&#160; at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1039)<br/>&#160;&#160;&#160;&#160; [java]&#160; at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3609)<br/>&#160;&#160;&#160;&#160; [java]&#160; at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3541)<br/>&#160;&#160;&#160;&#160; [java]&#160; at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2002)<br/>&#160;&#160;&#160;&#160; [java]&#160; at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2163)<br/>&#160;&#160;&#160;&#160; [java]&#160; at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2624)<br/>&#160;&#160;&#160;&#160; [java]&#160; at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:2127)<br/>&#160;&#160;&#160;&#160; [java]&#160; at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2427)<br/>&#160;&#160;&#160;&#160; [java]&#160; at com.mysql.jdbc.PreparedStatement.executeBatchSerially(PreparedStatement.java:1980)<br/>&#160;&#160;&#160;&#160; [java]&#160; ... 15 more<br/>&#160;&#160;&#160;&#160; [java] Java Result: 1</p><p>BUILD SUCCESSFUL<br/>Total time: 30 seconds<br/>[root@localhost jbpm-installer]# </p><div class="mcePaste" id="_mcePaste" style="position: absolute; top: 0px; left: 0px;"></div></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/642130#642130">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>