<!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="https://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;">
    Question of local human task
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="https://community.jboss.org/people/jimmy.dongjia">Jimmy dong</a> in <i>jBPM</i> - <a href="https://community.jboss.org/message/738266#738266">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p>when human task start, the tables of jbpm will be created automatic, but after I start local human task, there is no table created.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>and show error:</p><p>javax.persistence.PersistenceException: org.hibernate.exception.SQLGrammarException: could not execute query</p><p> at org.hibernate.ejb.AbstractEntityManagerImpl.throwPersistenceException(AbstractEntityManagerImpl.java:614)</p><p> at org.hibernate.ejb.QueryImpl.getResultList(QueryImpl.java:76)</p><p> at org.jbpm.task.service.TaskService.&lt;init&gt;(TaskService.java:109)</p><p> at org.jbpm.task.service.TaskService.&lt;init&gt;(TaskService.java:92)</p><p> at com.sample.JbpmAPIUtil.getService(JbpmAPIUtil.java:162)</p><p> at com.sample.JbpmAPIUtil.getTaskService(JbpmAPIUtil.java:84)</p><p> at com.sample.ProcessLocalTaskTaskAPITest.main(ProcessLocalTaskTaskAPITest.java:65)</p><p>Caused by: org.hibernate.exception.SQLGrammarException: could not execute query</p><p> at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:90)</p><p> at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:66)</p><p> at org.hibernate.loader.Loader.doList(Loader.java:2231)</p><p> at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2125)</p><p> at org.hibernate.loader.Loader.list(Loader.java:2120)</p><p> at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:401)</p><p> at org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:361)</p><p> at org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:196)</p><p> at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1148)</p><p> at org.hibernate.impl.QueryImpl.list(QueryImpl.java:102)</p><p> at org.hibernate.ejb.QueryImpl.getResultList(QueryImpl.java:67)</p><p> ... 5 more</p><p>Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'jbpm.Task' doesn't exist</p><p> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)</p><p> at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)</p><p> at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)</p><p> at java.lang.reflect.Constructor.newInstance(Constructor.java:513)</p><p> at com.mysql.jdbc.Util.handleNewInstance(Util.java:411)</p><p> at com.mysql.jdbc.Util.getInstance(Util.java:386)</p><p> at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1052)</p><p> at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3609)</p><p> at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3541)</p><p> at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2002)</p><p> at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2163)</p><p> at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2624)</p><p> at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:2127)</p><p> at com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:2293)</p><p> at com.mysql.jdbc.jdbc2.optional.PreparedStatementWrapper.executeQuery(PreparedStatementWrapper.java:846)</p><p> at org.hibernate.jdbc.AbstractBatcher.getResultSet(AbstractBatcher.java:208)</p><p> at org.hibernate.loader.Loader.getResultSet(Loader.java:1808)</p><p> at org.hibernate.loader.Loader.doQuery(Loader.java:697)</p><p> at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:259)</p><p> at org.hibernate.loader.Loader.doList(Loader.java:2228)</p><p> ... 13 more</p></div>

<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
    <p style="margin: 0;">Reply to this message by <a href="https://community.jboss.org/message/738266#738266">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in jBPM at <a href="https://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>