Hello Jacques,
Please let me know how can I find such patches in Jira for
TransactionUtil.java..it seems the work to upgrade is much bigger
My exception is almost always like
2010-01-27 15:04:39,691 (TP-Processor21)
[InheritableTransactionContext.java:311:ERROR] Unable to roll back
transaction
java.lang.IllegalStateException: Status is STATUS_NO_TRANSACTION
at
org.apache.geronimo.transaction.manager.TransactionImpl.rollback(TransactionImpl.java:438)
at
org.apache.geronimo.transaction.context.InheritableTransactionContext.rollbackAndThrow(InheritableTransactionContext.java:308)
at
org.apache.geronimo.transaction.context.InheritableTransactionContext.complete(InheritableTransactionContext.java:199)
at
org.apache.geronimo.transaction.context.InheritableTransactionContext.commit(InheritableTransactionContext.java:146)
at
org.apache.geronimo.transaction.context.GeronimoTransactionManager.commit(GeronimoTransactionManager.java:81)
at
org.ofbiz.entity.transaction.TransactionUtil.commit(TransactionUtil.java:192)
at
org.ofbiz.entity.transaction.TransactionUtil.commit(TransactionUtil.java:178)
at
org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:163)
at
org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:105)
at
org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:90)
at
org.ofbiz.widget.screen.ScreenWidgetViewHandler.render(ScreenWidgetViewHandler.java:78)
at
org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:699)
at
org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:467)
at
org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:200)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:595)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:688)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
at
org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
at
org.tuckey.web.filters.urlrewrite.RewrittenUrl.doRewrite(RewrittenUrl.java:176)
at
org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:728)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at
org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:423)
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:541)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
or like
2010-01-27 15:04:44,384 (TP-Processor110)
[InheritableTransactionContext.java:311:ERROR] Unable to roll back
transaction
java.lang.IllegalStateException: Status is STATUS_NO_TRANSACTION
at
org.apache.geronimo.transaction.manager.TransactionImpl.rollback(TransactionImpl.java:438)
at
org.apache.geronimo.transaction.context.InheritableTransactionContext.rollbackAndThrow(InheritableTransactionContext.java:308)
at
org.apache.geronimo.transaction.context.InheritableTransactionContext.complete(InheritableTransactionContext.java:199)
at
org.apache.geronimo.transaction.context.InheritableTransactionContext.commit(InheritableTransactionContext.java:146)
at
org.apache.geronimo.transaction.context.GeronimoTransactionManager.commit(GeronimoTransactionManager.java:81)
at
org.ofbiz.entity.transaction.TransactionUtil.commit(TransactionUtil.java:192)
at
org.ofbiz.entity.transaction.TransactionUtil.commit(TransactionUtil.java:178)
at
org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:163)
at
org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:105)
at
org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:90)
at
org.ofbiz.widget.screen.ScreenWidgetViewHandler.render(ScreenWidgetViewHandler.java:78)
at
org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:699)
at
org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:467)
at
org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:200)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:595)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:688)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
at
org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
at
org.tuckey.web.filters.urlrewrite.RewrittenUrl.doRewrite(RewrittenUrl.java:176)
at
org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:728)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at
org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:423)
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:541)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
Indeed it happens while I do mass tests using an automated tool - aprox
90 concurrent virtual users trying to show the products of a selected
tre category.
If you are mostly interested by the framework fixes, you may try to
apply the patches you may found in respective Jira issues...
Jacques
From: "Florin Popa" <[email protected]>
We have a separate Eclipse project which contains ONLY the resources we
ever touched. But even like this no one of the procedures seems easy for
the moment
regards,
Flopa
Given the amount of changes required to back port you're probably
better to upgrade to a newer revision, depending on how you've
handled your custom code and what tests you have in place to verify
your main areas of functionality, it should be relatively
straightforward.
Regards
Scott
HotWax Media
http://www.hotwaxmedia.com
On 25/01/2010, at 7:01 AM, Florin Popa wrote:
Hello all,
We started to develop an e-commerce application based on Ofbiz
framework around 2 years ago.
The version we started from is a revision 691692.
Main problem is that we already have few systems launched into
production, based on that revision.
Meanwhile, doing some mass tests, we encountered a lot of problems
- mostly related to transactions...
We noticed the implementation of
/framework/entity/src/org/ofbiz/entity/transaction/TransactionUtil.java
has lots of problems from this point of view - maybe not thread safe.
We just checked out today revision 902810 and it seems someone
really improved a lot that source code from threads-safe point of
view.
Trying to upgrade only that class into our old version drove to
upgrade for more and more classes. We encountered lots of
incompatibilities - the source code has been in some places fully
changed. Right now, having more than 800 compilation errors I would
not feel too optimist to integrate only what I need from the newer
version into the old one.
On the other hand, trying to get 902810 and then put over our work
might also cause same problems because the entity layer and
conditions handling seems to be changed.. I even expect to be worse
that way because maybe web templates are also changed.
Which way could someone suggest to proceed for a better version
where all database/entity layer/transaction later problems are fixed?
Many thanks,
Flopa