Re: [rules-users] IllegalStateException : DroolsJPAManager while calling session.dispose() method.

2010-08-06 Thread drooRam

i am facing the above problem when i tried to integrate hibernate with
drools.

Anyone used hibernate with drools? If so, what is the transaction manager
setting for hibernate + drools + tomcat i am trying to use the default
transaction manager or the jpa transaction manager implementation from
springlike the one below... but running into the above error







 








  





 

  





-- 
View this message in context: 
http://drools-java-rules-engine.46999.n3.nabble.com/IllegalStateException-DroolsJPAManager-while-calling-session-dispose-method-tp1027858p1030457.html
Sent from the Drools - User mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] IllegalStateException : DroolsJPAManager while calling session.dispose() method.

2010-08-05 Thread drooRam

Hi 

 I have got the following exception when i tried to call ksession.dispose()
method : Does anyone have faced this problem before??


 java.lang.IllegalStateException: No value for key
[org.springframework.orm.jpa.localcontainerentitymanagerfactoryb...@173898a]
bound to thread [http-8080-1]

org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:656)

org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:560)
javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

root cause

java.lang.IllegalStateException: No value for key
[org.springframework.orm.jpa.localcontainerentitymanagerfactoryb...@173898a]
bound to thread [http-8080-1]

org.springframework.transaction.support.TransactionSynchronizationManager.unbindResource(TransactionSynchronizationManager.java:199)

org.drools.container.spring.beans.persistence.DroolsSpringJpaManager.dispose(DroolsSpringJpaManager.java:75)

org.drools.persistence.session.SingleSessionCommandService.execute(SingleSessionCommandService.java:296)

org.drools.command.impl.CommandBasedStatefulKnowledgeSession.dispose(CommandBasedStatefulKnowledgeSession.java:181)

edu.rascalflow.service.impl.LoanApprovalServiceImpl.requestLoan(LoanApprovalServiceImpl.java:59)

edu.rascalflow.service.impl.BankingServiceImpl.requestLoan(BankingServiceImpl.java:62)

edu.rascalflow.controller.LoanRequestFormController.onSubmit(LoanRequestFormController.java:31)

org.springframework.web.servlet.mvc.SimpleFormController.onSubmit(SimpleFormController.java:387)

org.springframework.web.servlet.mvc.SimpleFormController.processFormSubmission(SimpleFormController.java:272)

org.springframework.web.servlet.mvc.AbstractFormController.handleRequestInternal(AbstractFormController.java:268)

org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)

org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)

org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:774)

org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:719)

org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:644)

org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:560)
javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

-- 
View this message in context: 
http://drools-java-rules-engine.46999.n3.nabble.com/IllegalStateException-DroolsJPAManager-while-calling-session-dispose-method-tp1027858p1027858.html
Sent from the Drools - User mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users