<!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;">
"Large Objects may not be used in auto-commit mode" when using Postresql DB
</h3>
<span style="margin-bottom: 10px;">
created by <a href="https://community.jboss.org/people/drupalspring">wqe wqe</a> in <i>jBPM</i> - <a href="https://community.jboss.org/message/755019#755019">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">
<div class="jive-rendered-content"><p>I just follow the instruction in the <a class="jive-link-external-small" href="http://docs.jboss.org/jbpm/v5.3/userguide/ch.console.html">official documtation  </a>of using gwt-console :</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>1. Login as krisv and create an evaluation instance</p><p>2. Click the task section --> Personal Tasks to check if the process instance created in the previous step can be  assigned to krisv (current account ) . However ,  "<strong> Large Objects may not be used in auto-commit mode</strong>"  exception occurs . Belows show the details information of this errors: </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><blockquote class="jive-quote"><p>15:03:00,963 INFO  [stdout] (Thread-68) Hibernate: select task0_.id as col_0_0_, task0_.processInstanceId as col_1_0_, names4_.text as col_2_0_, subjects2_.text as col_3_0_, descriptio3_.text as col_4_0_, task0_.status as col_5_0_, task0_.priority as col_6_0_, task0_.skipable as col_7_0_, task0_.actualOwner_id as col_8_0_, user1_.id as col_9_0_, task0_.createdOn as col_10_0_, task0_.activationTime as col_11_0_, task0_.expirationTime as col_12_0_, task0_.processId as col_13_0_, task0_.processSessionId as col_14_0_ from Task task0_ left outer join OrganizationalEntity user1_ on task0_.createdBy_id=user1_.id left outer join I18NText subjects2_ on task0_.id=subjects2_.Task_Subjects_Id left outer join I18NText descriptio3_ on task0_.id=descriptio3_.Task_Descriptions_Id left outer join I18NText names4_ on task0_.id=names4_.Task_Names_Id inner join OrganizationalEntity user5_ on task0_.actualOwner_id=user5_.id where task0_.actualOwner_id=? and (task0_.status in (?)) and (names4_.language=? or (select count(names6_.Task_Names_Id) from I18NText names6_ where task0_.id=names6_.Task_Names_Id)=0) and (subjects2_.language=? or (select count(subjects7_.Task_Subjects_Id) from I18NText subjects7_ where task0_.id=subjects7_.Task_Subjects_Id)=0) and (descriptio3_.language=? or (select count(descriptio8_.Task_Descriptions_Id) from I18NText descriptio8_ where task0_.id=descriptio8_.Task_Descriptions_Id)=0) and (task0_.expirationTime is null)</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>[11:17:04,031 ERROR [org.jbpm.task.service.TaskServerHandler] (Thread-70) org.hibernate.exception.GenericJDBCException<strong>: Large Objects may not be used in auto-commit mode.</strong>: javax.persistence.PersistenceException: org.hibernate.exception.GenericJDBCException: Large Objects may not be used in auto-commit mode.</p><p>]</p><p>11:17:04,015 ERROR [stderr] (Thread-70)     at org.jbpm.task.service.persistence.<strong>TaskPersistenceManager.queryTasksWithUserIdStatusAndLanguage</strong>(TaskPersistenceManager.java:225)</p><p>11:17:04,015 ERROR [stderr] (Thread-70)     at org.jbpm.task.service<strong>.TaskServiceSession.getTasksOwned</strong>(TaskServiceSession.java:653)</p><p>11:17:04,015 ERROR [stderr] (Thread-70)     at org.jbpm.task.service.TaskServerHandler.messageReceived(TaskServerHandler.java:289)</p></blockquote><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Google and found that handling the "large object" in postresql is required to be enclosed with a transaction block. As my transaction is managed by the AS ,  I want to ask how to force the AS to disable the  auto-commit transaction ? Do jbpm 5.3.0 Final really works with Postresql 9.1 ? Anyone who have successfully config  jbpm 5.3.0 Final  with Postresql 9.1 using AS 7.1.X please share the idea .</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Here is my configuration : </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>persistence.xml of the jbpm-human-task-war.war :</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><persistence-unit name="org.jbpm.task" transaction-type="JTA"> </p><p>    <provider>org.hibernate.ejb.HibernatePersistence</provider></p><p>    <jta-data-source>java:jboss/datasources/task</jta-data-source>       </p><p>    <mapping-file>META-INF/Taskorm.xml</mapping-file></p><p>    <properties></p><p>      <property name="hibernate.dialect" value="org.hibernate.dialect.PostgreSQLDialect"/>          </p><p>      <property name="hibernate.max_fetch_depth" value="3"/></p><p>      <property name="hibernate.hbm2ddl.auto" value="update" /></p><table height="20" width="487"><tbody><tr><td style=";"></td><td style=";">    <property name="hibernate.connection.autocommit" value="false" /></td><td style=";">  </td></tr></tbody></table><p>      <property name="hibernate.show_sql" value="true" />  </p><p>      <class>XXXXXXXX</class></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>    <property name="hibernate.connection.autocommit" value="false" />      </p><p>        <property name="hibernate.transaction.jta.platform" value="org.hibernate.service.jta.platform.internal.JBossAppServerJtaPlatform" /> </p><p>    </properties></p><p>  </persistence-unit></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>  datasource setting in the standalone.xml:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>     <subsystem xmlns="urn:jboss:domain:datasources:1.0"></p><p>            <datasources></p><p>                <datasource jta="true" jndi-name="java:jboss/datasources/jbpm5" pool-name="jbpmDS" enabled="true" use-java-context="true"></p><p>                    <connection-url>jdbc:postgresql://127.0.0.1:5433/jbpm5</connection-url></p><p>                    <driver>postgresql-9.1</driver></p><p>                    <security></p><p>                        <user-name>jbpm5</user-name></p><p>                        <password>jbpm5</password></p><p>                    </security></p><p>                </datasource></p><p>                <datasource jta="true" jndi-name="java:jboss/datasources/task" pool-name="taskDS" enabled="true" use-java-context="true"></p><p>                    <connection-url>jdbc:postgresql://127.0.0.1:5433/task</connection-url></p><p>                    <driver>postgresql-9.1</driver></p><p>                    <security></p><p>                        <user-name>jbpm5</user-name></p><p>                        <password>jbpm5</password></p><p>                    </security></p><p>                </datasource></p><p>                <drivers></p><p>                    <driver name="postgresql-9.1" module="org.postgresql"></p><p>                        <xa-datasource-class>org.postgresql.xa.PGXADataSource</xa-datasource-class></p><p>                    </driver></p><p>                </drivers></p><p>            </datasources></p><p>        </subsystem></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/755019#755019">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>