<!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: SessionInfo and ProcessInstanceInfo tables are not getting updated when starting the process using JPAKnoweldgeService
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="http://community.jboss.org/people/uvijayreddy657">uvijayreddy657</a> in <i>jBPM Development</i> - <a href="http://community.jboss.org/message/628693#628693">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p>Now I am getting&#160;&#160;&#160; java.lang.IllegalStateException: A JTA EntityManager cannot use getTransaction()&#160;&#160; exception.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>This time not able to persist TASK details.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>below is the stack trace. Please suggest me where I am going wrong.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>-------------&gt; Start process------&gt;BBC</p><p>Hibernate: select task0_.id as col_0_0_, deadline1_.id as col_1_0_, deadline1_.deadline_date as col_2_0_ from Task task0_, Deadline deadline1_ where (deadline1_.id in (select startdeadl2_.id from Deadline startdeadl2_ where task0_.id=startdeadl2_.Deadlines_StartDeadLine_Id) or deadline1_.id in (select enddeadlin3_.id from Deadline enddeadlin3_ where task0_.id=enddeadlin3_.Deadlines_EndDeadLine_Id)) and deadline1_.escalated=0 order by deadline1_.deadline_date</p><p>(null: 2, 538): cvc-datatype-valid.1.2.1: '4cbb5f99-a5e5-4f49-8295-0e399379822c' is not a valid value for 'NCName'.</p><p>(null: 2, 538): cvc-attribute.3: The value '4cbb5f99-a5e5-4f49-8295-0e399379822c' of attribute 'id' on element 'bpmn2:definitions' is not valid with respect to its type, 'ID'.</p><p>creating ksession ...</p><p>SLF4J: Failed to load class "org.slf4j.impl.StaticMDCBinder".</p><p>SLF4J: Defaulting to no-operation MDCAdapter implementation.</p><p><span>SLF4J: See </span><a class="jive-link-external-small" href="http://www.slf4j.org/codes.html#no_static_mdc_binder" target="_blank">http://www.slf4j.org/codes.html#no_static_mdc_binder</a><span> for further details.</span></p><p>Hibernate: select hibernate_sequence.nextval from dual</p><p>Hibernate: insert into SessionInfo (lastModificationDate, rulesByteArray, startDate, OPTLOCK, id) values (?, ?, ?, ?, ?)</p><p>Hibernate: select hibernate_sequence.nextval from dual</p><p>Hibernate: select hibernate_sequence.nextval from dual</p><p>BEFORE RULEFLOW STARTED process:BBC[id=BBC]</p><p>Hibernate: select hibernate_sequence.nextval from dual</p><p>BEFORE PROCESS NODE TRIGGERED node:Start[id=1] process:BBC[id=BBC]</p><p>Hibernate: select hibernate_sequence.nextval from dual</p><p>BEFORE PROCESS NODE EXITED node:Start[id=1] process:BBC[id=BBC]</p><p>Hibernate: select hibernate_sequence.nextval from dual</p><p>BEFORE PROCESS NODE TRIGGERED node:Step1[id=2] process:BBC[id=BBC]</p><p>Hibernate: select hibernate_sequence.nextval from dual</p><p>AFTER PROCESS NODE TRIGGERED node:Step1[id=2] process:BBC[id=BBC]</p><p>AFTER PROCESS NODE TRIGGERED node:Start[id=1] process:BBC[id=BBC]</p><p>AFTER PROCESS NODE TRIGGERED node:Start[id=1] process:BBC[id=BBC]</p><p>AFTER RULEFLOW STARTED process:BBC[id=BBC]</p><p>java.lang.IllegalStateException: A JTA EntityManager cannot use getTransaction()</p><p>&#160;&#160;&#160; at org.hibernate.ejb.AbstractEntityManagerImpl.getTransaction(AbstractEntityManagerImpl.java:324)</p><p>&#160;&#160;&#160; at org.jbpm.task.service.TaskServiceSession.doOperationInTransaction(TaskServiceSession.java:811)</p><p>&#160;&#160;&#160; at org.jbpm.task.service.TaskServiceSession.addTask(TaskServiceSession.java:134)</p><p>&#160;&#160;&#160; at org.jbpm.task.service.TaskServerHandler.messageReceived(TaskServerHandler.java:109)</p><p>&#160;&#160;&#160; at org.jbpm.task.service.mina.MinaTaskServerHandler.messageReceived(MinaTaskServerHandler.java:41)</p><p>&#160;&#160;&#160; at org.apache.mina.core.filterchain.DefaultIoFilterChain$TailFilter.messageReceived(DefaultIoFilterChain.java:713)</p><p>&#160;&#160;&#160; at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:434)</p><p>&#160;&#160;&#160; at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilterChain.java:46)</p><p>&#160;&#160;&#160; at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:793)</p><p>&#160;&#160;&#160; at org.apache.mina.filter.codec.ProtocolCodecFilter$ProtocolDecoderOutputImpl.flush(ProtocolCodecFilter.java:375)</p><p>&#160;&#160;&#160; at org.apache.mina.filter.codec.ProtocolCodecFilter.messageReceived(ProtocolCodecFilter.java:229)</p><p>&#160;&#160;&#160; at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:434)</p><p>&#160;&#160;&#160; at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilterChain.java:46)</p><p>&#160;&#160;&#160; at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:793)</p><p>&#160;&#160;&#160; at org.apache.mina.filter.logging.LoggingFilter.messageReceived(LoggingFilter.java:176)</p><p>&#160;&#160;&#160; at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:434)</p><p>&#160;&#160;&#160; at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilterChain.java:46)</p><p>&#160;&#160;&#160; at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:793)</p><p>&#160;&#160;&#160; at org.apache.mina.core.filterchain.IoFilterAdapter.messageReceived(IoFilterAdapter.java:119)</p><p>&#160;&#160;&#160; at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:434)</p><p>&#160;&#160;&#160; at org.apache.mina.core.filterchain.DefaultIoFilterChain.fireMessageReceived(DefaultIoFilterChain.java:426)</p><p>&#160;&#160;&#160; at org.apache.mina.core.polling.AbstractPollingIoProcessor.read(AbstractPollingIoProcessor.java:638)</p><p>&#160;&#160;&#160; at org.apache.mina.core.polling.AbstractPollingIoProcessor.process(AbstractPollingIoProcessor.java:598)</p><p>&#160;&#160;&#160; at org.apache.mina.core.polling.AbstractPollingIoProcessor.process(AbstractPollingIoProcessor.java:587)</p><p>&#160;&#160;&#160; at org.apache.mina.core.polling.AbstractPollingIoProcessor.access$400(AbstractPollingIoProcessor.java:61)</p><p>&#160;&#160;&#160; at org.apache.mina.core.polling.AbstractPollingIoProcessor$Processor.run(AbstractPollingIoProcessor.java:969)</p><p>&#160;&#160;&#160; at org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:64)</p><p>&#160;&#160;&#160; at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)</p><p>&#160;&#160;&#160; at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)</p><p>&#160;&#160;&#160; at java.lang.Thread.run(Thread.java:619)</p><p>Hibernate: insert into ProcessInstanceInfo (lastModificationDate, lastReadDate, processId, processInstanceByteArray, startDate, state, OPTLOCK, InstanceId) values (?, ?, ?, ?, ?, ?, ?, ?)</p><p>Hibernate: insert into ProcessInstanceLog (end_date, processId, processInstanceId, start_date, id) values (?, ?, ?, ?, ?)</p><p>Hibernate: insert into NodeInstanceLog (log_date, nodeId, nodeInstanceId, nodeName, processId, processInstanceId, type, id) values (?, ?, ?, ?, ?, ?, ?, ?)</p><p>Hibernate: insert into NodeInstanceLog (log_date, nodeId, nodeInstanceId, nodeName, processId, processInstanceId, type, id) values (?, ?, ?, ?, ?, ?, ?, ?)</p><p>Hibernate: insert into NodeInstanceLog (log_date, nodeId, nodeInstanceId, nodeName, processId, processInstanceId, type, id) values (?, ?, ?, ?, ?, ?, ?, ?)</p><p>Hibernate: insert into WorkItemInfo (creationDate, name, processInstanceId, state, OPTLOCK, workItemByteArray, workItemId) values (?, ?, ?, ?, ?, ?, ?)</p><p>Hibernate: update ProcessInstanceInfo set lastModificationDate=?, lastReadDate=?, processId=?, processInstanceByteArray=?, startDate=?, state=?, OPTLOCK=? where InstanceId=? and OPTLOCK=?</p><p>Hibernate: update WorkItemInfo set creationDate=?, name=?, processInstanceId=?, state=?, OPTLOCK=?, workItemByteArray=? where workItemId=? and OPTLOCK=?</p><p>Hibernate: update SessionInfo set lastModificationDate=?, rulesByteArray=?, startDate=?, OPTLOCK=? where id=? and OPTLOCK=?</p><p>Hibernate: update SessionInfo set lastModificationDate=?, rulesByteArray=?, startDate=?, OPTLOCK=? where id=? and OPTLOCK=?</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/628693#628693">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in jBPM Development at <a href="http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2035">Community</a></p>
</div></td>
                        </tr>
                    </tbody>
                </table>


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

</div>

</body>
</html>