I instaled J2EE 1.4 SDK (linux) : j2eesdk-1_4_03-linux.bin thar includes Sun Java System Application Server PE 8.2 and Java Adventure Builder 1.0.4. After the "build" and "deploy" of the Adventure, following the steps presented in Install.html, i did *one* adventure purchase via *browser*. To the client (browser) all goes ok, it gets the order ID, it is able to see the adventure details and the order has the correct status (SUBMITTED TO SUPPLIER and, afterwards, COMPLETED). But when i check the server logs (SUNWappserver/domains/domain1/logs/server.log) i get the following errors:
____________________________________________
[#|2006-04-11T16:48:08. 051+0100|SEVERE|sun-appserver-pe8.2|javax.enterprise.system.container.ejb|_Threa dID=33;|EJB5071: Some remote or transactional roll back exception occurred
com.sun.jdo.api.persistence.support.JDODataStoreException: JDO76406: Concurrent access exception: object to update has been updated or deleted by another transaction.
javax.ejb.EJBException: Transaction aborted; nested exception is: javax.transaction.RollbackException
javax.transaction.RollbackException
a t com.sun.jts.jta.TransactionManagerImpl.commit(TransactionManagerImpl.java:275)
at com.sun.enterprise.distributedtx.J2EETransactionManagerImpl.commit(J2EETran sactionManagerImpl.java:947)
at com.sun.enterprise.distributedtx.J2EETransactio nManagerOpt.commit(J2EETransactionManagerOpt.java:362)
at com.sun.ejb.container s.BaseContainer.completeNewTx(BaseContainer.java:2732)
at com.sun.ejb.container s.BaseContainer.postInvokeTx(BaseContainer.java:2521)
at com.sun.ejb.containers .MessageBeanContainer.afterMessageDeliveryInternal(MessageBeanContainer.java:107 1)
at com.sun.ejb.containers.MessageBeanContainer.afterMessageDelivery(MessageB eanContainer.java:1042)
at com.sun.ejb.containers.MessageBeanListenerImpl.after MessageDelivery(MessageBeanListenerImpl.java:46)
at com.sun.enterprise.connecto rs.inflow.MessageEndpointInvocationHandler.invoke(MessageEndpointInvocationHandl er.java:105)
at $Proxy92.afterDelivery(Unknown Source)
at com.sun.messaging.jms.ra.OnMessageRunner.run(OnMessageRunner.java:242)
at com.sun.enterprise.connectors.work.OneWork.doWork(OneWork.java:45)
at com.sun. corba.ee.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.run(Unknown Source)
javax.ejb.EJBException: Transaction aborted; nested exception is: javax.transaction.RollbackException
at com.sun.ejb.containers.BaseContaine r.completeNewTx(BaseContainer.java:2737)
at com.sun.ejb.containers.BaseContaine r.postInvokeTx(BaseContainer.java:2521)
at com.sun.ejb.containers.MessageBeanCo ntainer.afterMessageDeliveryInternal(MessageBeanContainer.java:1071)
at com.sun .ejb.containers.MessageBeanContainer.afterMessageDelivery(MessageBeanContainer.j ava:1042)
at com.sun.ejb.containers.MessageBeanListenerImpl.afterMessageDeliver y(MessageBeanListenerImpl.java:46)
at com.sun.enterprise.connectors.inflow.Mess ageEndpointInvocationHandler.invoke(MessageEndpointInvocationHandler.java:105)
at $Proxy92.afterDelivery(Unknown Source)
at com.sun.messaging.jms.ra.OnMessageRunner.run(OnMessageRunner.java:242)
at com.sun.enterprise.connectors.work.OneWork.doWork(OneWork.java:45)
at com.sun. corba.ee.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.run(Unknown Source)
|#]
[#|2006-04-11T16:48:08.091+0100|SEVERE|sun-appserver-pe8.2|javax.enterpri se.system.container.ejb|_ThreadID=33;|EJB5071: Some remote or transactional roll back exception occurred
com.sun.jdo.api.persistence.support.JDODataStoreException: JDO76406: Concurrent access exception: object to update has been updated or deleted by another transaction.
javax.ejb.EJBE xception: Unable to complete container-managed transaction.; nested exception is: javax.transaction.SystemException: org.omg.CORBA.INTERNAL: JTS5031: Exception [org.omg.CORBA.INTERNAL: vmcid: 0x0 minor code: 0 completed: Maybe] on Resource [commit] operation. vmcid: 0x0 minor code: 0 completed: No
javax.transaction.SystemException: org.omg.CORBA.INTERNAL: JTS5031: Exception [org.omg.CORBA.INTERNAL: vmcid: 0x0 minor code: 0 completed: Maybe] on Resource [commit] operation. vmcid: 0x0 minor code: 0 completed: No
at com.sun.jts.jta.TransactionManagerImpl.commit(TransactionMana gerImpl.java:285)
at com.sun.enterprise.distributedtx.J2EETransactionManagerImp l.commit(J2EETransactionManagerImpl.java:947)
at com.sun.enterprise.distributed tx.J2EETransactionManagerOpt.commit(J2EETransactionManagerOpt.java:362)
at com. sun.ejb.containers.BaseContainer.completeNewTx(BaseContainer.java:2732)
at com. sun.ejb.containers.BaseContainer.postInvokeTx(BaseContainer.java:2535)
at com.s un.ejb.containers.MessageBeanContainer.afterMessageDeliveryInternal(MessageBeanC ontainer.java:1071)
at com.sun.ejb.containers.MessageBeanContainer.callEJBTimeo ut(MessageBeanContainer.java:431)
at com.sun.ejb.containers.EJBTimerService.del iverTimeout(EJBTimerService.java:1349)
at com.sun.ejb.containers.EJBTimerServic e.access$100(EJBTimerService.java:66)
at com.sun.ejb.containers.EJBTimerService $TaskExpiredWork.run(EJBTimerService.java:1897)
at com.sun.ejb.containers.EJBTi merService$TaskExpiredWork.service(EJBTimerService.java:1893)
at com.sun.ejb.containers.util.WorkAdapter.doWork(WorkAdapter.java:44)
at com.sun .corba.ee.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.run(Unknown Source )
javax.ejb.EJBException: Unable to complete container-managed transaction.; nested exception is: javax.transaction.SystemException: org.omg.CORBA.INTERNAL: JTS5031: Exception [org.omg.CORBA.INTERNAL: vmcid: 0x0 minor code: 0 completed: Maybe] on Resource [commit] operation. vmcid: 0x0 minor code: 0 completed: No
at com.sun.ejb.containers.BaseContainer.completeNewTx(BaseContainer.java:27 42)
at com.sun.ejb.containers.BaseContainer.postInvokeTx(BaseContainer.java:253 5)
at com.sun.ejb.containers.MessageBeanContainer.afterMessageDeliveryInternal( MessageBeanContainer.java:1071)
at com.sun.ejb.containers.MessageBeanContainer. callEJBTimeout(MessageBeanContainer.java:431)
at com.sun.ejb.containers.EJBTime rService.deliverTimeout(EJBTimerService.java:1349)
at com.sun.ejb.containers.EJ BTimerService.access$100(EJBTimerService.java:66)
at com.sun.ejb.containers.EJB TimerService$TaskExpiredWork.run(EJBTimerService.java:1897)
at com.sun.ejb.cont ainers.EJBTimerService$TaskExpiredWork.service(EJBTimerService.java:1893)
at com.sun.ejb.containers.util.WorkAdapter.doWork(WorkAdapter.java:44)
at com.sun .corba.ee.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.run(Unknown Source )
|#]
[#|2006-04-11T16:50:13.062+0100|INFO|sun-appserver-pe8.2|javax.enterpris e.system.container.ejb|_ThreadID=34;|EJB5119:Expunging timer ['4@@1144682418760@@server@@domain1' 'TimedObject = WorkFlowManagerBean' 'Application = OPC' 'BEING_DELIVERED' 'PERIODIC' 'Container ID = 75023570086854669' 'Tue Apr 11 16:49:08 WEST 2006' '60000' ] after [2] failed deliveries|#]
_____________________________________
So, when i make hundreds of requests i have an obvious problem - a gigantic log! I did a little benchmark using 10 clients making burst requests and after a minute or so the Application Server simply stops replying to requests due to the gigantic number of errors.
Do you have any suggestion of what the problem may be? I already tried the Windows version and the same thing happens.