<!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;">
Re: Cannot insert null into table error while starting a process
</h3>
<span style="margin-bottom: 10px;">
created by <a href="https://community.jboss.org/people/singhjess">jess singh</a> in <i>jBPM</i> - <a href="https://community.jboss.org/message/746404#746404">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">
<div class="jive-rendered-content"><p align="left"><span style="color: #2a00ff; font-size: 10pt;"><p align="left" style="min-height: 8pt; height: 8pt; padding: 0px;"> </p></span></p><p align="left"><span style="color: #2a00ff; font-size: 10pt;"><p align="left" style="min-height: 8pt; height: 8pt; padding: 0px;"> </p></span></p><p align="left"><span style="color: #2a00ff; font-size: 10pt;"><p align="left" style="min-height: 8pt; height: 8pt; padding: 0px;"> </p></span></p><p align="left" style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p align="left" style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p align="left" style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p align="left" style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p align="left" style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p align="left" style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p align="left" style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p align="left" style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p align="left" style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p align="left" style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p align="left" style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p align="left" style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p align="left" style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p align="left" style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p align="left" style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p align="left"><span style="color: #2a00ff; font-size: 10pt;"><p align="left" style="min-height: 8pt; height: 8pt; padding: 0px;"> </p></span></p><p align="left" style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p align="left" style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p align="left" style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p align="left" style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><p><span style="color: #008080; font-size: 10pt;"><p align="left">Sorry, the persitence.xml did not paste properly in the previous post</p><p align="left" style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><span style="color: #008080; font-size: 2;"><p align="left"><</p></span></span><p align="left" style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><span style="color: #3f7f7f; font-size: 10pt;">persistence</span><span style="color: #000000; font-size: 10pt;"> </span><span style="color: #7f007f; font-size: 10pt;">xmlns</span><span style="color: #000000; font-size: 10pt;">=</span><p align="left"><em style="color: #2a00ff; font-size: 10pt;"><p align="left"><em style="color: #2a00ff; font-size: 10pt;"><span>"</span><a class="jive-link-external-small" href="http://java.sun.com/xml/ns/persistence" target="_blank">http://java.sun.com/xml/ns/persistence</a><span>"</span></em></p></em><span style=": ; font-size: 2;"><p align="left" style="min-height: 8pt; height: 8pt; padding: 0px;"> </p></span><span style="color: #7f007f; font-size: 10pt;">xmlns:xsi</span><span style="font-size: 10pt;">=</span><p align="left"><em style="color: #2a00ff; font-size: 10pt;"><p align="left"><em style="color: #2a00ff; font-size: 10pt;"><span>"</span><a class="jive-link-external-small" href="http://www.w3.org/2001/XMLSchema-instance" target="_blank">http://www.w3.org/2001/XMLSchema-instance</a><span>"</span></em></p></em><span style=": ; font-size: 2;"><p align="left" style="min-height: 8pt; height: 8pt; padding: 0px;"> </p></span><span style="color: #7f007f; font-size: 10pt;">xsi:schemaLocation</span><span style="font-size: 10pt;">=</span><p align="left"><em style="color: #2a00ff; font-size: 10pt;"><p align="left"><em style="color: #2a00ff; font-size: 10pt;"><span>"</span><a class="jive-link-external-small" href="http://java.sun.com/xml/ns/persistence" target="_blank">http://java.sun.com/xml/ns/persistence</a><span> </span><a class="jive-link-external-small" href="http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd" target="_blank">http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd</a><span>"</span></em></p></em><span style=": ; font-size: 2;"><p align="left" style="min-height: 8pt; height: 8pt; padding: 0px;"> </p></span><span style="color: #7f007f; font-size: 10pt;">version</span><span style="font-size: 10pt;">=</span><em style="color: #2a00ff; font-size: 10pt;"><em style="color: #2a00ff; font-size: 10pt;">"2.0"</em></em><p align="left"><span style="color: #008080; font-size: 10pt;"><p align="left"><span style="color: #008080; font-size: 10pt;">></span></p></span></p><span style=": ; font-size: 2;"><p align="left" style="min-height: 8pt; height: 8pt; padding: 0px;"> </p></span><span style="color: #008080; font-size: 10pt;"><</span><span style="color: #3f7f7f; font-size: 10pt;">persistence-unit</span><span style="font-size: 10pt;"> </span><span style="color: #7f007f; font-size: 10pt;">name</span><span style="font-size: 10pt;">=</span><em style="color: #2a00ff; font-size: 10pt;"><em style="color: #2a00ff; font-size: 10pt;">"main"</em></em><span style="font-size: 10pt;"> </span><span style="color: #7f007f; font-size: 10pt;">transaction-type</span><span style="font-size: 10pt;">=</span><em style="color: #2a00ff; font-size: 10pt;"><em style="color: #2a00ff; font-size: 10pt;">"JTA"</em></em><p align="left"><span style="color: #008080; font-size: 10pt;"><p align="left"><span style="color: #008080; font-size: 10pt;">></span></p></span></p><span style=": ; font-size: 2;"><p align="left" style="min-height: 8pt; height: 8pt; padding: 0px;"> </p></span><span style="color: #008080; font-size: 10pt;"><</span><span style="color: #3f7f7f; font-size: 10pt;">description</span><span style="color: #008080; font-size: 10pt;">></span><span style="font-size: 10pt;">Forge Persistence Unit</span><span style="color: #008080; font-size: 10pt;"></</span><span style="color: #3f7f7f; font-size: 10pt;">description</span><p align="left"><span style="color: #008080; font-size: 10pt;"><p align="left"><span style="color: #008080; font-size: 10pt;">></span></p></span></p><span style=": ; font-size: 2;"><p align="left" style="min-height: 8pt; height: 8pt; padding: 0px;"> </p></span><span style="color: #008080; font-size: 10pt;"><</span><span style="color: #3f7f7f; font-size: 10pt;">provider</span><span style="color: #008080; font-size: 10pt;">></span><span style="font-size: 10pt;">org.hibernate.ejb.HibernatePersistence</span><span style="color: #008080; font-size: 10pt;"></</span><span style="color: #3f7f7f; font-size: 10pt;">provider</span><p align="left"><span style="color: #008080; font-size: 10pt;"><p align="left"><span style="color: #008080; font-size: 10pt;">></span></p></span></p><span style=": ; font-size: 2;"><p align="left" style="min-height: 8pt; height: 8pt; padding: 0px;"> </p></span><span style="color: #008080; font-size: 10pt;"><</span><span style="color: #3f7f7f; font-size: 10pt;">jta-data-source</span><span style="color: #008080; font-size: 10pt;">></span><span style="font-size: 10pt;">java:jboss/<span style="text-decoration: underline;">datasources</span>/ExampleDS</span><span style="color: #008080; font-size: 10pt;"></</span><span style="color: #3f7f7f; font-size: 10pt;">jta-data-source</span><p align="left"><span style="color: #008080; font-size: 10pt;"><p align="left"><span style="color: #008080; font-size: 10pt;">></span></p></span></p><span style=": ; font-size: 2;"><p align="left" style="min-height: 8pt; height: 8pt; padding: 0px;"> </p></span><span style="color: #008080; font-size: 10pt;"><</span><span style="color: #3f7f7f; font-size: 10pt;">mapping-file</span><span style="color: #008080; font-size: 10pt;">></span><span style="font-size: 10pt;">META-INF/JBPMOrm-JPA2.<span style="text-decoration: underline;">xml</span></span><span style="color: #008080; font-size: 10pt;"></</span><span style="color: #3f7f7f; font-size: 10pt;">mapping-file</span><p align="left"><span style="color: #008080; font-size: 10pt;"><p align="left"><span style="color: #008080; font-size: 10pt;">></span></p></span></p><span style=": ; font-size: 2;"><p align="left" style="min-height: 8pt; height: 8pt; padding: 0px;"> </p></span><span style="color: #008080; font-size: 10pt;"><</span><span style="color: #3f7f7f; font-size: 10pt;">class</span><span style="color: #008080; font-size: 10pt;">></span><span style="font-size: 10pt;">org.jbpm.persistence.processinstance.ProcessInstanceInfo</span><span style="color: #008080; font-size: 10pt;"></</span><span style="color: #3f7f7f; font-size: 10pt;">class</span><p align="left"><span style="color: #008080; font-size: 10pt;"><p align="left"><span style="color: #008080; font-size: 10pt;">></span></p></span></p><span style=": ; font-size: 2;"><p align="left" style="min-height: 8pt; height: 8pt; padding: 0px;"> </p></span><span style="color: #008080; font-size: 10pt;"><</span><span style="color: #3f7f7f; font-size: 10pt;">class</span><span style="color: #008080; font-size: 10pt;">></span><span style="font-size: 10pt;">org.drools.persistence.info.SessionInfo</span><span style="color: #008080; font-size: 10pt;"></</span><span style="color: #3f7f7f; font-size: 10pt;">class</span><p align="left"><span style="color: #008080; font-size: 10pt;"><p align="left"><span style="color: #008080; font-size: 10pt;">></span></p></span></p><span style=": ; font-size: 2;"><p align="left" style="min-height: 8pt; height: 8pt; padding: 0px;"> </p></span><span style="color: #008080; font-size: 10pt;"><</span><span style="color: #3f7f7f; font-size: 10pt;">class</span><span style="color: #008080; font-size: 10pt;">></span><span style="font-size: 10pt;">org.drools.persistence.info.WorkItemInfo</span><span style="color: #008080; font-size: 10pt;"></</span><span style="color: #3f7f7f; font-size: 10pt;">class</span><p align="left"><span style="color: #008080; font-size: 10pt;"><p align="left"><span style="color: #008080; font-size: 10pt;">></span></p></span></p><span style=": ; font-size: 2;"><p align="left" style="min-height: 8pt; height: 8pt; padding: 0px;"> </p></span><span style="color: #008080; font-size: 10pt;"><</span><span style="color: #3f7f7f; font-size: 10pt;">exclude-unlisted-classes</span><span style="color: #008080; font-size: 10pt;">></span><span style="font-size: 10pt;">false</span><span style="color: #008080; font-size: 10pt;"></</span><span style="color: #3f7f7f; font-size: 10pt;">exclude-unlisted-classes</span><p align="left"><span style="color: #008080; font-size: 10pt;"><p align="left"><span style="color: #008080; font-size: 10pt;">></span></p></span></p><span style="font-size: 10pt;"><p align="left" style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><span style="font-size: 2;"><p align="left" style="min-height: 8pt; height: 8pt; padding: 0px;"> </p></span></span><p align="left"><span style="color: #3f5fbf; font-size: 10pt;"><p align="left"><span style="color: #3f5fbf; font-size: 10pt;"><!--<p align="left"><class>org.jbpm.process.audit.ProcessInstanceLog</class></p><p align="left"><class>org.jbpm.process.audit.NodeInstanceLog</class></p><p align="left"><class>org.jbpm.process.audit.VariableInstanceLog</class></p><p align="left">--></p></span></p></span></p><span style=": ; font-size: 2;"><p align="left" style="min-height: 8pt; height: 8pt; padding: 0px;"> </p></span><span style="color: #008080; font-size: 10pt;"><</span><span style="color: #3f7f7f; font-size: 10pt;">properties</span><p align="left"><span style="color: #008080; font-size: 10pt;"><p align="left"><span style="color: #008080; font-size: 10pt;">></span></p></span></p><span style=": ; font-size: 2;"><p align="left" style="min-height: 8pt; height: 8pt; padding: 0px;"> </p></span><span style="color: #008080; font-size: 10pt;"><</span><span style="color: #3f7f7f; font-size: 10pt;">property</span><span style="font-size: 10pt;"> </span><span style="color: #7f007f; font-size: 10pt;">name</span><span style="font-size: 10pt;">=</span><em style="color: #2a00ff; font-size: 10pt;"><em style="color: #2a00ff; font-size: 10pt;">"hibernate.hbm2ddl.auto"</em></em><span style="font-size: 10pt;"> </span><span style="color: #7f007f; font-size: 10pt;">value</span><span style="font-size: 10pt;">=</span><em style="color: #2a00ff; font-size: 10pt;"><em style="color: #2a00ff; font-size: 10pt;">"create-drop"</em></em><span style="font-size: 10pt;"> </span><p align="left"><span style="color: #008080; font-size: 10pt;"><p align="left"><span style="color: #008080; font-size: 10pt;">/></span></p></span></p><span style=": ; font-size: 2;"><p align="left" style="min-height: 8pt; height: 8pt; padding: 0px;"> </p></span><span style="color: #008080; font-size: 10pt;"><</span><span style="color: #3f7f7f; font-size: 10pt;">property</span><span style="font-size: 10pt;"> </span><span style="color: #7f007f; font-size: 10pt;">name</span><span style="font-size: 10pt;">=</span><em style="color: #2a00ff; font-size: 10pt;"><em style="color: #2a00ff; font-size: 10pt;">"hibernate.show_sql"</em></em><span style="font-size: 10pt;"> </span><span style="color: #7f007f; font-size: 10pt;">value</span><span style="font-size: 10pt;">=</span><em style="color: #2a00ff; font-size: 10pt;"><em style="color: #2a00ff; font-size: 10pt;">"true"</em></em><span style="font-size: 10pt;"> </span><p align="left"><span style="color: #008080; font-size: 10pt;"><p align="left"><span style="color: #008080; font-size: 10pt;">/></span></p></span></p><span style=": ; font-size: 2;"><p align="left" style="min-height: 8pt; height: 8pt; padding: 0px;"> </p></span><span style="color: #008080; font-size: 10pt;"><</span><span style="color: #3f7f7f; font-size: 10pt;">property</span><span style="font-size: 10pt;"> </span><span style="color: #7f007f; font-size: 10pt;">name</span><span style="font-size: 10pt;">=</span><em style="color: #2a00ff; font-size: 10pt;"><em style="color: #2a00ff; font-size: 10pt;">"hibernate.format_sql"</em></em><span style="font-size: 10pt;"> </span><span style="color: #7f007f; font-size: 10pt;">value</span><span style="font-size: 10pt;">=</span><em style="color: #2a00ff; font-size: 10pt;"><em style="color: #2a00ff; font-size: 10pt;">"true"</em></em><span style="font-size: 10pt;"> </span><p align="left"><span style="color: #008080; font-size: 10pt;"><p align="left"><span style="color: #008080; font-size: 10pt;">/></span></p></span></p><span style=": ; font-size: 2;"><p align="left" style="min-height: 8pt; height: 8pt; padding: 0px;"> </p></span><span style="color: #008080; font-size: 10pt;"><</span><span style="color: #3f7f7f; font-size: 10pt;">property</span><span style="font-size: 10pt;"> </span><span style="color: #7f007f; font-size: 10pt;">name</span><span style="font-size: 10pt;">=</span><p align="left"><em style="color: #2a00ff; font-size: 10pt;"><p align="left"><em style="color: #2a00ff; font-size: 10pt;">"hibernate.transaction.flush_before_completion"</em></p></em><span style=": ; font-size: 2;"><p align="left" style="min-height: 8pt; height: 8pt; padding: 0px;"> </p></span><span style="color: #7f007f; font-size: 10pt;">value</span><span style="font-size: 10pt;">=</span><em style="color: #2a00ff; font-size: 10pt;"><em style="color: #2a00ff; font-size: 10pt;">"true"</em></em><span style="font-size: 10pt;"> </span><p align="left"><span style="color: #008080; font-size: 10pt;"><p align="left"><span style="color: #008080; font-size: 10pt;">/></span></p></span></p><span style=": ; font-size: 2;"><p align="left" style="min-height: 8pt; height: 8pt; padding: 0px;"> </p></span><span style="color: #008080; font-size: 10pt;"><</span><span style="color: #3f7f7f; font-size: 10pt;">property</span><span style="font-size: 10pt;"> </span><span style="color: #7f007f; font-size: 10pt;">name</span><span style="font-size: 10pt;">=</span><em style="color: #2a00ff; font-size: 10pt;"><em style="color: #2a00ff; font-size: 10pt;">"hibernate.transaction.manager_lookup_class"</em></em><span style="font-size: 10pt;"> </span><span style="color: #7f007f; font-size: 10pt;">value</span><span style="font-size: 10pt;">=</span><em style="color: #2a00ff; font-size: 10pt;"><em style="color: #2a00ff; font-size: 10pt;">"org.hibernate.transaction.JBossTransactionManagerLookup"</em></em><span style="font-size: 10pt;"> </span><p align="left"><span style="color: #008080; font-size: 10pt;"><p align="left"><span style="color: #008080; font-size: 10pt;">/></span></p></span></p><span style=": ; font-size: 2;"><p align="left" style="min-height: 8pt; height: 8pt; padding: 0px;"> </p></span><span style="color: #008080; font-size: 10pt;"></</span><span style="color: #3f7f7f; font-size: 10pt;">properties</span><p align="left"><span style="color: #008080; font-size: 10pt;"><p align="left"><span style="color: #008080; font-size: 10pt;">></span></p></span></p><span style=": ; font-size: 2;"><p align="left" style="min-height: 8pt; height: 8pt; padding: 0px;"> </p></span><span style="color: #008080; font-size: 10pt;"></</span><span style="color: #3f7f7f; font-size: 10pt;">persistence-unit</span><p align="left"><span style="color: #008080; font-size: 10pt;"><p align="left"><span style="color: #008080; font-size: 10pt;">><span style="color: #008080; font-size: 2;"><p></</p></span></span></p></span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><span style="color: #3f7f7f; font-size: 10pt;">persistence</span><p><span style="color: #008080; font-size: 10pt;"><p><span style="color: #008080; font-size: 10pt;">></span></p></span></p></p></p></p></p></p></p><div class="mcePaste" id="_mcePaste" style="position: absolute; top: 0px; left: 0px;"></div></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/746404#746404">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>