JBoss Community

Re: jbpm hibernate persistence

created by J J in jBPM - View the full discussion

Do you have an example to share?

 

I tried

 

{code}

env.set(EnvironmentName.TRANSACTION, jtaTransactionManager.getUserTransaction());

{code}

 

Though receive

 

{code}

Caused by: java.lang.reflect.InvocationTargetException

          at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

          at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)

          at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)

          at java.lang.reflect.Constructor.newInstance(Constructor.java:532)

          at org.drools.persistence.jpa.KnowledgeStoreServiceImpl.buildCommanService(KnowledgeStoreServiceImpl.java:116)

          ... 34 more

Caused by: java.lang.RuntimeException: Could not commit session

          at org.drools.persistence.SingleSessionCommandService.<init>(SingleSessionCommandService.java:136)

          ... 39 more

Caused by: java.lang.NullPointerException

          at org.drools.persistence.SingleSessionCommandService.<init>(SingleSessionCommandService.java:125)

          ... 39 more

{code}

Reply to this message by going to Community

Start a new discussion in jBPM at Community