liliana.iovanovici [https://community.jboss.org/people/liliana.iovanovici] created the discussion
"NullPointerException when trying to configure jbpm5 with Spring 3.0 and Persistence" To view the discussion, visit: https://community.jboss.org/message/719061#719061 -------------------------------------------------------------- Hi, I am trying to configure Spring 3.0 with JBPM 5 and Persistence: <jbpm:ksession id="persistentKSession" type="stateful" kbase="kbase"> <jbpm:configuration> <jbpm:jpa-persistence> <jbpm:transaction-manager ref="transactionManager" /> <jbpm:entity-manager-factory ref="entityManagerFactory" /> </jbpm:jpa-persistence> </jbpm:configuration> </jbpm:ksession> <bean id="entityManagerFactory" class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean"> <property name="persistenceUnitName" value="oracle" /> </bean> <bean id="transactionManager" class="org.springframework.orm.jpa.JpaTransactionManager"> <property name="entityManagerFactory" ref="entityManagerFactory" /> </bean> </beans> When I trying to create the context: new ClassPathXmlApplicationContext("conf.xml"); I got an error: Caused by: java.lang.NullPointerException at org.jbpm.persistence.processinstance.JPAProcessInstanceManager.getProcessInstances(JPAProcessInstanceManager.java:97) at org.jbpm.process.instance.ProcessRuntimeImpl.getProcessInstances(ProcessRuntimeImpl.java:200) at org.drools.common.AbstractWorkingMemory.getProcessInstances(AbstractWorkingMemory.java:1093) at org.jbpm.marshalling.impl.ProcessMarshallerImpl.writeProcessInstances(ProcessMarshallerImpl.java:32) at org.drools.marshalling.impl.OutputMarshaller.writeSession(OutputMarshaller.java:158) ... Does anybody know what I am doing wrog? Thanks. -------------------------------------------------------------- Reply to this message by going to Community [https://community.jboss.org/message/719061#719061] Start a new discussion in jBPM at Community [https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
_______________________________________________ jboss-user mailing list [email protected] https://lists.jboss.org/mailman/listinfo/jboss-user
