ProcessInstanceInfo.processInstanceId null with MySQL / Tomcat

1 message Options
Embed this post
Permalink
Barry K

ProcessInstanceInfo.processInstanceId null with MySQL / Tomcat

Reply Threaded More More options
Print post
Permalink
Hello,

I am having an issue with persisting the Stateful Session in MySQL and hopefully someone can help.  I'll try and return the favor in the future.  :-)

I am running the following environment
Drools 5.1M1   (Stateful Rule Session with Persistence)
Tomcat 6
MySQL 5

When I run with a unit test the statefulsession is persisted correctly to the MySQL database, but when I run in Tomcat I get a NullPointer because the ProcessInstanceInfo.processInstanceId is null.

It appears that the tag  @GeneratedValue(strategy = GenerationType.AUTO) is not working for me when connecting to MySQL through a Tomcat pooled connection.

The unit test is using a PoolingDataSource while Tomcat is using a resource in Context.xml.  

Has anyone seen a similar issue or can provide a direction for me to look?

Thanks for any help,
Barry