<!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;">
    Drools 5.x + jBPM 5.x + Hibernate 3.6.x + Postgres 9.x
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="http://community.jboss.org/people/kresimir_popovic">Krešimir Popović</a> in <i>jBPM</i> - <a href="http://community.jboss.org/message/600522#600522">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p>Hello,</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>has anyone knows if jBPM was tested with Hibernate 3.6.x (part of JBoss 6.x) ?</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"><span class="jive-content-block-pm"> </span>&#160;</p><p>I just want to know if JBPM 5.x tested with hibernate 3.6.x ? Hibernate team has done some changes since hibernate 3.5.x regarding bytea / oid data type handling.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-;"><a class="jive-link-external-small" href="http://programmingbulls.com/postgresql-bytea-vs-oid-large-object">http://programmingbulls.com/postgresql-bytea-vs-oid-large-object</a></p><p><a class="jive-link-external-small" href="http://stackoverflow.com/questions/3677380/proper-hibernate-annotation-for-byte">http://stackoverflow.com/questions/3677380/proper-hibernate-annotation-for-byte</a></p><p><a class="jive-link-external-small" href="http://opensource.atlassian.com/projects/hibernate/browse/HHH-4876">http://opensource.atlassian.com/projects/hibernate/browse/HHH-4876</a></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><span style="text-decoration: underline;">This is the error I get when I execute Mina task client method: getTasksAssignedAsPotentialOwner</span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>15:16:19,690 INFO&#160; [hr.bpmsolutions.printinghouse.services.actions.humantask.HumanTaskAction] tmp:0</p><p>15:16:19,690 INFO&#160; [hr.bpmsolutions.printinghouse.services.actions.humantask.HumanTaskAction] tasksAssignedAsPotentialOw</p><p>ner - END</p><p>15:16:19,694 INFO&#160; [STDOUT] Hibernate:</p><p>15:16:19,695 INFO&#160; [STDOUT]&#160;&#160;&#160;&#160; insert</p><p>15:16:19,695 INFO&#160; [STDOUT]&#160;&#160;&#160;&#160; into</p><p>15:16:19,695 INFO&#160; [STDOUT]&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; SessionInfo</p><p>15:16:19,695 INFO&#160; [STDOUT]&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; (lastModificationDate, rulesByteArray, startDate, OPTLOCK, id)</p><p>15:16:19,696 INFO&#160; [STDOUT]&#160;&#160;&#160;&#160; values</p><p>15:16:19,696 INFO&#160; [STDOUT]&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; (?, ?, ?, ?, ?)</p><p>15:16:19,708 WARN&#160; [org.hibernate.util.JDBCExceptionReporter] SQL Error: 0, SQLState: 42804</p><p><strong>15:16:19,709 ERROR [org.hibernate.util.JDBCExceptionReporter] ERROR: column "rulesbytearray" is of type oid but expressi</strong></p><p><strong>on is of type bytea</strong></p><p><strong>&#160; Hint: You will need to rewrite or cast the expression.</strong></p><p>&#160; Position: 100</p><p>15:16:19,711 ERROR [org.hibernate.event.def.AbstractFlushingEventListener] Could not synchronize database state with ses</p><p>sion: org.hibernate.exception.SQLGrammarException: could not insert: [org.drools.persistence.info.SessionInfo]</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:92) [:3.6.0.Final]</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-;">I get also the same thing for processinstanceinfo --&gt;&#160; COLUMN processinstancebytearray</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-;"><span style="text-decoration: underline;">Problematic Enttity classes:</span></p><p style="min-;">org.drools.persistence.processinstance.<a class="jive-link-anchor-small" name="ProcessInstanceInfo">ProcessInstanceInfo</a></p><p>org.drools.persistence.processinstance.SessionInfo</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Maybe what is needed to do is to use annotation @Type(type="org.hibernate.type.PrimitiveByteArrayBlobType") for <span class="jive-content-block-pm"><strong>processinstancebytearray </strong>and </span><span class="jive-content-block-pm"><strong>rulesbytearray entity fields?</strong></span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Best Regards,</p><p>Kre&scaron;imir</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/600522#600522">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>