Dev - Exception when calling the [createCreditCardAndAddress] service g roup in version 3.0

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

Dev - Exception when calling the [createCreditCardAndAddress] service g roup in version 3.0

Li Jie (Jie Lee)
Hi,
        Is there anyone knows this issue in the ofbiz version 3.0? My system
got an exception when calling the createCreditCardAndAddress service, which
is a serice group. The version of the ofbiz is 3.0. When I input the wrong
credit card number  this error will occurs. This caused the web page cannot
display the correct error message, but the exception message such as "..
javax.transaction.xa.XAException:  ...". The createCreditCard service runs
OK. Although it uses the same code in the ServiceDispatcher.runSync()
function. This makes me confused.  I am not sure anyone know this or can
give me some information.
I have not used the latest version of ofbiz so I don't know there is the
issue or not in the latest version.

Thanks everyone. :)
Li Jie

Here is the log:

723260[     RequestHandler.java:200:INFO ] [Processing Request]:
enterCreditCardAndBillingAddress
723260[        LoginEvents.java:150:INFO ] User logged in, checking for
session map and permisstion...
723270[        LoginEvents.java:200:INFO ] User already logged in
723310[     ServiceEcaRule.java:123:INFO ] Running ECA Service:
buildCcExpireDate, triggered by rule on Service: createCreditCardAndAddress
723460[  GroupServiceModel.java:110:INFO ] Running grouped service
[createPostalAddress]
724151[                Log.java:103:INFO ] Contact mech created with id
10390
724331[  GroupServiceModel.java:110:INFO ] Running grouped service
[createCreditCard]
724361[     ServiceEcaRule.java:123:INFO ] Running ECA Service:
buildCcExpireDate, triggered by rule on Service: createCreditCard
724452[  ServiceDispatcher.java:309:ERROR] Service Error [createCreditCard]:
null
724462[    TransactionUtil.java:232:INFO ] [TransactionUtil.setRollbackOnly]
transaction roll back only set
724472[         GroupModel.java:159:ERROR] Grouped service
[createCreditCard] failed.
724472[  ServiceDispatcher.java:309:ERROR] Service Error
[createCreditCardAndAddress]: null
724472[    TransactionUtil.java:202:ERROR] [TransactionUtil.rollback]
java.lang.Exception: Stack Trace
        at
org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:2
01)
        at
org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:1
83)
        at
org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:313)
        at
org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:171)
        at
org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:110)
        at
org.ofbiz.content.webapp.event.ServiceEventHandler.invoke(ServiceEventHandle
r.java:178)
        at
org.ofbiz.content.webapp.control.RequestHandler.runEvent(RequestHandler.java
:363)
        at
org.ofbiz.content.webapp.control.RequestHandler.doRequest(RequestHandler.jav
a:238)
        at
org.ofbiz.content.webapp.control.ControlServlet.doGet(ControlServlet.java:18
7)
        at
org.ofbiz.content.webapp.control.ControlServlet.doPost(ControlServlet.java:8
9)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:354)
        at
org.mortbay.jetty.servlet.WebApplicationHandler$Chain.doFilter(WebApplicatio
nHandler.java:342)
        at
org.ofbiz.content.webapp.control.ContextFilter.doFilter(ContextFilter.java:2
28)
        at
org.mortbay.jetty.servlet.WebApplicationHandler$Chain.doFilter(WebApplicatio
nHandler.java:334)
        at
org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandl
er.java:286)
        at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:567)
        at org.mortbay.http.HttpContext.handle(HttpContext.java:1808)
        at
org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext
.java:525)
        at org.mortbay.http.HttpContext.handle(HttpContext.java:1758)
        at org.mortbay.http.HttpServer.service(HttpServer.java:879)
        at org.mortbay.http.HttpConnection.service(HttpConnection.java:790)
        at
org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:952)
        at org.mortbay.http.HttpConnection.handle(HttpConnection.java:807)
        at
org.mortbay.http.SocketListener.handleConnection(SocketListener.java:197)
        at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:289)
        at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:501)
724482[     XAResourceImpl.java:252:ERROR] java.sql.SQLException: General
error: Warning:  Some non-transactional changed tables couldn't be rolled
back
724492[     SubCoordinator.java:736:ERROR] Got XAException from resource:
javax.transaction.xa.XAException: Rollback failed: General error: Warning:
Some non-transactional changed tables couldn't be rolled back
724492[  ServiceDispatcher.java:348:ERROR] Service
[createCreditCardAndAddress] threw an unexpected exception/error
java.lang.IllegalStateException: Exception on
rollback:java.rmi.RemoteException: rollback: Unexpected XAException:0
        at
org.objectweb.jotm.TransactionImpl.rollback(TransactionImpl.java:500)
        at org.objectweb.jotm.Current.rollback(Current.java:303)
        at
org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:2
04)
        at
org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:1
83)
        at
org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:313)
        at
org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:171)
        at
org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:110)
        at
org.ofbiz.content.webapp.event.ServiceEventHandler.invoke(ServiceEventHandle
r.java:178)
        at
org.ofbiz.content.webapp.control.RequestHandler.runEvent(RequestHandler.java
:363)
        at
org.ofbiz.content.webapp.control.RequestHandler.doRequest(RequestHandler.jav
a:238)
        at
org.ofbiz.content.webapp.control.ControlServlet.doGet(ControlServlet.java:18
7)
        at
org.ofbiz.content.webapp.control.ControlServlet.doPost(ControlServlet.java:8
9)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:354)
        at
org.mortbay.jetty.servlet.WebApplicationHandler$Chain.doFilter(WebApplicatio
nHandler.java:342)
        at
org.ofbiz.content.webapp.control.ContextFilter.doFilter(ContextFilter.java:2
28)
        at
org.mortbay.jetty.servlet.WebApplicationHandler$Chain.doFilter(WebApplicatio
nHandler.java:334)
        at
org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandl
er.java:286)
        at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:567)
        at org.mortbay.http.HttpContext.handle(HttpContext.java:1808)
        at
org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext
.java:525)
        at org.mortbay.http.HttpContext.handle(HttpContext.java:1758)
        at org.mortbay.http.HttpServer.service(HttpServer.java:879)
        at org.mortbay.http.HttpConnection.service(HttpConnection.java:790)
        at
org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:952)
        at org.mortbay.http.HttpConnection.handle(HttpConnection.java:807)
        at
org.mortbay.http.SocketListener.handleConnection(SocketListener.java:197)
        at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:289)
        at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:501)
724502[    TransactionUtil.java:210:INFO ] [TransactionUtil.rollback]
transaction not rolled back, status is STATUS_NO_TRANSACTION
724532[ServiceEventHandler.java:190:ERROR] Service invocation error
org.ofbiz.service.GenericServiceException: Service
[createCreditCardAndAddress] Failed (Exception on
rollback:java.rmi.RemoteException: rollback: Unexpected XAException:0)
        at
org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:365)
        at
org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:171)
        at
org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:110)
        at
org.ofbiz.content.webapp.event.ServiceEventHandler.invoke(ServiceEventHandle
r.java:178)
        at
org.ofbiz.content.webapp.control.RequestHandler.runEvent(RequestHandler.java
:363)
        at
org.ofbiz.content.webapp.control.RequestHandler.doRequest(RequestHandler.jav
a:238)
        at
org.ofbiz.content.webapp.control.ControlServlet.doGet(ControlServlet.java:18
7)
        at
org.ofbiz.content.webapp.control.ControlServlet.doPost(ControlServlet.java:8
9)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:354)
        at
org.mortbay.jetty.servlet.WebApplicationHandler$Chain.doFilter(WebApplicatio
nHandler.java:342)
        at
org.ofbiz.content.webapp.control.ContextFilter.doFilter(ContextFilter.java:2
28)
        at
org.mortbay.jetty.servlet.WebApplicationHandler$Chain.doFilter(WebApplicatio
nHandler.java:334)
        at
org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandl
er.java:286)
        at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:567)
        at org.mortbay.http.HttpContext.handle(HttpContext.java:1808)
        at
org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext
.java:525)
        at org.mortbay.http.HttpContext.handle(HttpContext.java:1758)
        at org.mortbay.http.HttpServer.service(HttpServer.java:879)
        at org.mortbay.http.HttpConnection.service(HttpConnection.java:790)
        at
org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:952)
        at org.mortbay.http.HttpConnection.handle(HttpConnection.java:807)
        at
org.mortbay.http.SocketListener.handleConnection(SocketListener.java:197)
        at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:289)
        at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:501)
Caused by:
java.lang.IllegalStateException: Exception on
rollback:java.rmi.RemoteException: rollback: Unexpected XAException:0
        at
org.objectweb.jotm.TransactionImpl.rollback(TransactionImpl.java:500)
        at org.objectweb.jotm.Current.rollback(Current.java:303)
        at
org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:2
04)
        at
org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:1
83)
        at
org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:313)
        at
org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:171)
        at
org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:110)
        at
org.ofbiz.content.webapp.event.ServiceEventHandler.invoke(ServiceEventHandle
r.java:178)
        at
org.ofbiz.content.webapp.control.RequestHandler.runEvent(RequestHandler.java
:363)
        at
org.ofbiz.content.webapp.control.RequestHandler.doRequest(RequestHandler.jav
a:238)
        at
org.ofbiz.content.webapp.control.ControlServlet.doGet(ControlServlet.java:18
7)
        at
org.ofbiz.content.webapp.control.ControlServlet.doPost(ControlServlet.java:8
9)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:354)
        at
org.mortbay.jetty.servlet.WebApplicationHandler$Chain.doFilter(WebApplicatio
nHandler.java:342)
        at
org.ofbiz.content.webapp.control.ContextFilter.doFilter(ContextFilter.java:2
28)
        at
org.mortbay.jetty.servlet.WebApplicationHandler$Chain.doFilter(WebApplicatio
nHandler.java:334)
        at
org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandl
er.java:286)
        at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:567)
        at org.mortbay.http.HttpContext.handle(HttpContext.java:1808)
        at
org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext
.java:525)
        at org.mortbay.http.HttpContext.handle(HttpContext.java:1758)
        at org.mortbay.http.HttpServer.service(HttpServer.java:879)
        at org.mortbay.http.HttpConnection.service(HttpConnection.java:790)
        at
org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:952)
        at org.mortbay.http.HttpConnection.handle(HttpConnection.java:807)
        at
org.mortbay.http.SocketListener.handleConnection(SocketListener.java:197)
        at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:289)
        at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:501)
724532[     RequestHandler.java:336:INFO ] [RequestHandler.doRequest]:
Response is a view.
724542[     RequestHandler.java:446:INFO ] servletName=control,
view=quickcheckout
724982[     ControlServlet.java:226:DEBUG]
[[[enterCreditCardAndBillingAddress] Done rendering page, Servlet Finished-
total:1.722,since last([enterCreditCardA...):1.722]]
 
_______________________________________________
Dev mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/dev