Users - no transaction begun

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Users - no transaction begun

puranisank

Hi all,
Can anyone tell me why do I get this exception and how to resolve this.
I get this exception when trying to run  the line "product = delegator.findByPrimaryKeyCache("Product", UtilMisc.toMap("productId", productId));"

---- exception report ----------------------------------------------------------
[TransactionUtil.begin] active transaction marked for rollback in place, so no transaction begun; this stack trace shows when the exception began:
Exception: java.lang.Exception
Message: Tx Stack Placeholder
---- stack trace ---------------------------------------------------------------
java.lang.Exception: Tx Stack Placeholder
org.ofbiz.entity.transaction.TransactionUtil.setTransactionBeginStack(TransactionUtil.java:517)
org.ofbiz.entity.transaction.TransactionUtil.begin(TransactionUtil.java:117)
org.ofbiz.entity.transaction.TransactionUtil.begin(TransactionUtil.java:63)
org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:100)
org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:115)
org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:100)
org.ofbiz.widget.screen.ScreenWidgetViewHandler.render(ScreenWidgetViewHandler.java:85)
org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:589)
org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:374)
org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:191)
javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:258)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:526)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
java.lang.Thread.run(Unknown Source)
--------------------------------------------------------------------------------

2985328 (http-0.0.0.0-8080-Processor3) [    TransactionUtil.java:614:WARN ] WARNING: In getSetRollbackOnlyCause no stack placeholder was in place, here is the current location:
java.lang.NullPointerException
     at org.ofbiz.entity.transaction.TransactionUtil.begin(TransactionUtil.java:90)
     at org.ofbiz.entity.transaction.TransactionUtil.begin(TransactionUtil.java:63)
     at org.ofbiz.entity.GenericDelegator.findByPrimaryKey(GenericDelegator.java:1286)
     at org.ofbiz.entity.GenericDelegator.findByPrimaryKeyCache(GenericDelegator.java:1339)
     at org.ofbiz.entity.GenericDelegator.findByPrimaryKeyCache(GenericDelegator.java:1365)
     at sun.reflect.GeneratedMethodAccessor44.invoke(Unknown Source)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
     at java.lang.reflect.Method.invoke(Unknown Source)
     at bsh.Reflect.invokeOnMethod(Reflect.java:117)
     at bsh.Reflect.invokeObjectMethod(Reflect.java:91)
     at bsh.Name.invokeMethod(Name.java:689)
     at bsh.BSHMethodInvocation.eval(BSHMethodInvocation.java:55)
     at bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:69)
     at bsh.BSHAssignment.eval(BSHAssignment.java:58)
     at bsh.BSHBlock.eval(BSHBlock.java:79)
     at bsh.BSHBlock.eval(BSHBlock.java:44)
     at bsh.BSHIfStatement.eval(BSHIfStatement.java:48)
     at bsh.Interpreter.evalParsedScript(Interpreter.java:1104)
     at org.ofbiz.base.util.BshUtil.runBshAtLocation(BshUtil.java:169)
     at org.ofbiz.widget.screen.ModelScreenAction$Script.runAction(ModelScreenAction.java:365)
     at org.ofbiz.widget.screen.ModelScreenAction.runSubActions(ModelScreenAction.java:94)
     at org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:243)
     at org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:103)
     at org.ofbiz.widget.screen.ModelScreenWidget$DecoratorScreen.renderWidgetString(ModelScreenWidget.java:496)
     at org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:157)
     at org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:250)
     at org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:103)
     at org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:115)
     at org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:100)
     at org.ofbiz.widget.screen.ScreenWidgetViewHandler.render(ScreenWidgetViewHandler.java:85)
     at org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:589)
     at org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:374)
     at org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:191)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
     at org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:258)
     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
     at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
     at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
     at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
     at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
     at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
     at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:526)
     at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
     at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
     at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
     at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
     at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
     at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
     at java.lang.Thread.run(Unknown Source) 

Purani




 
_______________________________________________
Users mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/users