<!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;">
    problems in jbpm5 with db2 integration
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="https://community.jboss.org/people/deepak.singhvi">Deepak Singhvi</a> in <i>jBPM</i> - <a href="https://community.jboss.org/message/756887#756887">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p style="background-color: #ffffff; font-size: 12px; color: #555555; font-family: 'Lucida Sans', 'Lucida Sans Unicode', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif;"><span style="color: #0000ff;"><strong> What i am doing:</strong></span></p><p style="background-color: #ffffff; font-size: 12px; color: #555555; font-family: 'Lucida Sans', 'Lucida Sans Unicode', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; Trying to use DB2 with jbpm5 (5.3)</p><p style="background-color: #ffffff; font-size: 12px; color: #555555; font-family: 'Lucida Sans', 'Lucida Sans Unicode', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif;">&#160;&#160; <span style="color: #0000ff;"><strong>Problems:</strong></span></p><p style="background-color: #ffffff; font-size: 12px; color: #555555; font-family: 'Lucida Sans', 'Lucida Sans Unicode', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif;">&#160;&#160;&#160;&#160; a. Some tables are not created ---&gt; (mentioned below).</p><p style="background-color: #ffffff; font-size: 12px; color: #555555; font-family: 'Lucida Sans', 'Lucida Sans Unicode', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif;">&#160;&#160;&#160;&#160; b. Exception when running the sample program (sample.bpmn from evaluation project)---&gt;(mentioned below)</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="background-color: #ffffff; font-size: 12px; color: #555555; font-family: 'Lucida Sans', 'Lucida Sans Unicode', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif;">&#160;&#160; My war got deployed ( jbpm-gwt-console-server.war including other wars like designer.war, drools-guvnor.war,jbpm-form-builder.war, jbpm-gwt-console.war,jbpm-human-task-war.war) but i do not see</p><p style="background-color: #ffffff; font-size: 12px; color: #555555; font-family: 'Lucida Sans', 'Lucida Sans Unicode', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif;">&#160;&#160; ProcessInstanceInfo, WorkItemInfo, SessionInfo, etc tables in db.</p><p style="background-color: #ffffff; font-size: 12px; color: #555555; font-family: 'Lucida Sans', 'Lucida Sans Unicode', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif;">&#160;&#160; Following are the tables which are present in jbpm5 database</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="background-color: #ffffff; font-size: 12px; color: #555555; font-family: 'Lucida Sans', 'Lucida Sans Unicode', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif;">&#160; ATTACHMENT,BOOLEANEXPRESSION,DEADLINE,DELEGATION_DELEGATES,EMAIL_HEADER,ESCALATION,I18NTEXT,NOTIFICATION,</p><p style="background-color: #ffffff; font-size: 12px; color: #555555; font-family: 'Lucida Sans', 'Lucida Sans Unicode', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif;">NOTIFICATION_BAS,NOTIFICATION_EMAIL_HEADER, NOTIFICATION_RECIPIENTS,ORGANIZATIONALENTITY,PEOPLEASSIGNMENTS_BAS,</p><p style="background-color: #ffffff; font-size: 12px; color: #555555; font-family: 'Lucida Sans', 'Lucida Sans Unicode', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif;">PEOPLEASSIGNMENTS_EXCLOWNERS,PEOPLEASSIGNMENTS_POTOWNERS,PEOPLEASSIGNMENTS_RECIPIENTS,PEOPLEASSIGNMENTS_STAKEHOLDERS,</p><p style="background-color: #ffffff; font-size: 12px; color: #555555; font-family: 'Lucida Sans', 'Lucida Sans Unicode', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif;">REASSIGNMENT,REASSIGNMENT_POTENTIALOWNERS,SUBTASKSSTRATEGY,TASK,TASK_COMMENT</p><p style="background-color: #ffffff; font-size: 12px; color: #555555; font-family: 'Lucida Sans', 'Lucida Sans Unicode', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif;">&#160; </p><p style="background-color: #ffffff; font-size: 12px; color: #555555; font-family: 'Lucida Sans', 'Lucida Sans Unicode', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif;">&#160; These are the table which are available in</p><p style="background-color: #ffffff; font-size: 12px; color: #555555; font-family: 'Lucida Sans', 'Lucida Sans Unicode', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif;">&#160; Q.1 When does processInstaceInfo, etc table gets created?</p><p style="background-color: #ffffff; font-size: 12px; color: #555555; font-family: 'Lucida Sans', 'Lucida Sans Unicode', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif;">&#160;&#160; Q.2 I get the error when i start sample program.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="background-color: #ffffff; font-size: 12px; color: #555555; font-family: 'Lucida Sans', 'Lucida Sans Unicode', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif;">&#160;&#160; <span style="color: #ff0000;"> <strong>Error on console ( ProcessTest.java)</strong></span></p><p style="background-color: #ffffff; font-size: 12px; color: #555555; font-family: 'Lucida Sans', 'Lucida Sans Unicode', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif;">0&#160;&#160;&#160; 30/08 09:30:02,395[main] ERROR workitem.wsht.GenericHTWorkItemHandler.executeWorkItem&#160; - Thu Aug 30 09:30:02 GMT+05:30 2012: Error when creating task on task server for work item id 1. Error reported by task server: Command AddTaskRequest faild due to Operation failed. Please contact task server administrator.</p><p style="background-color: #ffffff; font-size: 12px; color: #555555; font-family: 'Lucida Sans', 'Lucida Sans Unicode', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif;">java.lang.RuntimeException: <span style="text-decoration: underline;"><em>Command AddTaskRequest faild due to Operation failed. Please contact task server administrator.</em></span></p><p style="background-color: #ffffff; font-size: 12px; color: #555555; font-family: 'Lucida Sans', 'Lucida Sans Unicode', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jbpm.task.service.TaskServerHandler.messageReceived(TaskServerHandler.java:662)</p><p style="background-color: #ffffff; font-size: 12px; color: #555555; font-family: 'Lucida Sans', 'Lucida Sans Unicode', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jbpm.task.service.hornetq.HornetQTaskServerHandler.messageReceived(HornetQTaskServerHandler.java:44)</p><p style="background-color: #ffffff; font-size: 12px; color: #555555; font-family: 'Lucida Sans', 'Lucida Sans Unicode', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jbpm.task.service.hornetq.BaseHornetQTaskServer.run(BaseHornetQTaskServer.java:85)</p><p style="background-color: #ffffff; font-size: 12px; color: #555555; font-family: 'Lucida Sans', 'Lucida Sans Unicode', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; at java.lang.Thread.run(Thread.java:619)</p><p style="background-color: #ffffff; font-size: 12px; color: #555555; font-family: 'Lucida Sans', 'Lucida Sans Unicode', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif;">Process started ...</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="background-color: #ffffff; font-size: 12px; color: #555555; font-family: 'Lucida Sans', 'Lucida Sans Unicode', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif;"> <span style="color: #ff0000;"> <strong>Error in server.log of jboss7</strong></span></p><p style="background-color: #ffffff; font-size: 12px; color: #555555; font-family: 'Lucida Sans', 'Lucida Sans Unicode', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif;">&#160; 09:30:02,379 ERROR [stderr] (Thread-16) java.lang.RuntimeException: Operation failed</p><p style="background-color: #ffffff; font-size: 12px; color: #555555; font-family: 'Lucida Sans', 'Lucida Sans Unicode', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif;">&#160; 09:30:02,379 ERROR [stderr] (Thread-16)&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jbpm.task.service.TaskServiceSession.doOperationInTransaction(TaskServiceSession.java:994)</p><p style="background-color: #ffffff; font-size: 12px; color: #555555; font-family: 'Lucida Sans', 'Lucida Sans Unicode', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif;">&#160; 09:30:02,379 ERROR [stderr] (Thread-16)&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jbpm.task.service.TaskServiceSession.addTask(TaskServiceSession.java:186)</p><p style="background-color: #ffffff; font-size: 12px; color: #555555; font-family: 'Lucida Sans', 'Lucida Sans Unicode', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif;">&#160; 09:30:02,379 ERROR [stderr] (Thread-16)&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jbpm.task.service.TaskServerHandler.messageReceived(TaskServerHandler.java:144)</p><p style="background-color: #ffffff; font-size: 12px; color: #555555; font-family: 'Lucida Sans', 'Lucida Sans Unicode', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif;">&#160; 09:30:02,379 ERROR [stderr] (Thread-16)&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jbpm.task.service.hornetq.HornetQTaskServerHandler.messageReceived(HornetQTaskServerHandler.java:44)</p><p style="background-color: #ffffff; font-size: 12px; color: #555555; font-family: 'Lucida Sans', 'Lucida Sans Unicode', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif;">&#160; 09:30:02,379 ERROR [stderr] (Thread-16)&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jbpm.task.service.hornetq.BaseHornetQTaskServer.run(BaseHornetQTaskServer.java:85)</p><p style="background-color: #ffffff; font-size: 12px; color: #555555; font-family: 'Lucida Sans', 'Lucida Sans Unicode', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif;">&#160; 09:30:02,379 ERROR [stderr] (Thread-16)&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; at java.lang.Thread.run(Thread.java:619)</p><p style="background-color: #ffffff; font-size: 12px; color: #555555; font-family: 'Lucida Sans', 'Lucida Sans Unicode', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif;">&#160; 09:30:02,379 ERROR [stderr] (Thread-16) Caused by: javax.persistence.PersistenceException: org.hibernate.HibernateException: The database returned no natively generated identity value</p><p style="background-color: #ffffff; font-size: 12px; color: #555555; font-family: 'Lucida Sans', 'Lucida Sans Unicode', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif;">&#160; 09:30:02,379 ERROR [stderr] (Thread-16)&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.hibernate.ejb.AbstractEntityManagerImpl.throwPersistenceException(AbstractEntityManagerImpl.java:614)</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Deepak</p><p><span> :) </span></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/756887#756887">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>