Welcome to the new Gigaspaces XAP forum. To recover your account, please follow these instructions.

Ask Your Question
0

gigaspace local transaction manager error

hi,

  i'm trying to run gigaspace for few days and end up i got below exception. could anyone help me on how i could fix the error. i'm using gigaspace 6.5

WARNING: Local transaction id= 18349 timed out, transaction aborted by LocalTransactionManager. space = spaceOMS1 2008-10-15 04:17:18,142 ERROR [SimplePollingEventListenerContainer] [spaceDuplicatorPollContainer] Setup of event listener invoker failed - trying to recover org.openspaces.core.transaction.manager.AbstractJiniTransactionManager$1: unexpected exception ; nested exception is net.jini.core.transaction.UnknownTransactionException: LocalTransactionManager: Abort- cannot abort, xtn 18349 not active. at org.openspaces.core.transaction.manager.AbstractJiniTransactionManager.convertJiniException(AbstractJiniTransactionManager.java:377) at org.openspaces.core.transaction.manager.AbstractJiniTransactionManager.doRollback(AbstractJiniTransactionManager.java:296) at org.springframework.transaction.support.AbstractPlatformTransactionManager.processRollback(AbstractPlatformTransactionManager.java:800) at org.springframework.transaction.support.AbstractPlatformTransactionManager.rollback(AbstractPlatformTransactionManager.java:777) at org.openspaces.events.polling.AbstractPollingEventListenerContainer.receiveAndExecute(AbstractPollingEventListenerContainer.java:324) at org.openspaces.events.polling.SimplePollingEventListenerContainer$AsyncEventListenerInvoker.invokeListener(SimplePollingEventListenerContainer.java:676) at org.openspaces.events.polling.SimplePollingEventListenerContainer$AsyncEventListenerInvoker.run(SimplePollingEventListenerContainer.java:617) at java.lang.Thread.run(Thread.java:619) Caused by: net.jini.core.transaction.UnknownTransactionException: LocalTransactionManager: Abort- cannot abort, xtn 18349 not active. at com.gigaspaces.client.transaction.local.LocalTransactionManagerImpl.abort(SourceFile:301) at com.gigaspaces.client.transaction.local.LocalTransactionManagerImpl.abort(SourceFile:330) at net.jini.core.transaction.server.ServerTransaction.abort(ServerTransaction.java:113) at org.openspaces.core.transaction.manager.AbstractJiniTransactionManager.doRollback(AbstractJiniTransactionManager.java:293) ... 6 more


2008-10-15 07:53:50,766 ERROR [SimpleNotifyEventListenerContainer] [rateHandlerNotifyContainer] Execution of event listener failed org.openspaces.events.adapter.ListenerExecutionFailedException: Listener event method 'rateEvent' threw exception; nested exception is java.util.concurrent.RejectedExecutionException at org.openspaces.events.adapter.AbstractReflectionEventListenerAdapter.onEventWithResult(AbstractReflectionEventListenerAdapter.java:153) at org.openspaces.events.adapter.AbstractResultEventListenerAdapter.onEvent(AbstractResultEventListenerAdapter.java:79) at org.openspaces.events.AbstractEventListenerContainer.invokeListener(AbstractEventListenerContainer.java:136) at org.openspaces.events.notify.AbstractNotifyEventListenerContainer.invokeListenerWithTransaction(AbstractNotifyEventListenerContainer.java:586) at org.openspaces.events.notify.SimpleNotifyEventListenerContainer$NotifyListenerDelegate.notify(SimpleNotifyEventListenerContainer.java:197) at com.j_spaces.core.client.NotifyDelegator.notify(SourceFile:232) at com.j_spaces.core.client.RemoteEventListenerExporter$TransientDelegator.notify(SourceFile:96) at com.j_spaces.core.lrmi.LRMIRemoteEventListener.notify(SourceFile:91) at com.j_spaces.obf.lt.a(SourceFile:242) at com.j_spaces.obf.lt.b(SourceFile:142) at com.j_spaces.obf.jq.a(SourceFile:58) at com.j_spaces.obf.lt.a(SourceFile:61) at com.j_spaces.obf.lt.dispatch(SourceFile:30) at com.j_spaces.obf.de.run(SourceFile:62) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907) at java.lang.Thread.run(Thread.java:619) Caused by: java.util.concurrent.RejectedExecutionException at java.util.concurrent.ThreadPoolExecutor$AbortPolicy.rejectedExecution(ThreadPoolExecutor.java:1759) at java.util.concurrent.ThreadPoolExecutor.reject(ThreadPoolExecutor.java:767) at java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:658) at java.util.concurrent.AbstractExecutorService.invokeAll(AbstractExecutorService.java:200) at com.org.tp.core.oms.pu.order.OrderTriggerer.massiveUpdateStatus(OrderTriggerer.java:80) at com.org.tp.core.oms.pu.order.OrderTriggerer.generateSQLQuery(OrderTriggerer.java:159) at com.org.tp.core.oms.pu.order.OrderTriggerer.rateEvent(OrderTriggerer.java:214) at sun.reflect.GeneratedMethodAccessor177.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.openspaces.events.adapter.AbstractReflectionEventListenerAdapter.onEventWithResult(AbstractReflectionEventListenerAdapter.java:148) ... 16 more 2008-10-15 07:53:50,767 ERROR [SimpleNotifyEventListenerContainer] [rateHandlerNotifyContainer] Execution of event listener failed org.openspaces.events.adapter.ListenerExecutionFailedException: Listener event method 'rateEvent' threw exception; nested exception is java.util.concurrent.RejectedExecutionException at org.openspaces.events.adapter.AbstractReflectionEventListenerAdapter.onEventWithResult(AbstractReflectionEventListenerAdapter.java:153) at org.openspaces.events.adapter.AbstractResultEventListenerAdapter.onEvent(AbstractResultEventListenerAdapter.java:79) at org.openspaces.events.AbstractEventListenerContainer.invokeListener(AbstractEventListenerContainer.java:136) at org.openspaces.events.notify.AbstractNotifyEventListenerContainer.invokeListenerWithTransaction(AbstractNotifyEventListenerContainer.java:586) at org.openspaces.events.notify.SimpleNotifyEventListenerContainer$NotifyListenerDelegate.notify(SimpleNotifyEventListenerContainer.java:197) at com.j_spaces.core.client.NotifyDelegator.notify(SourceFile:232) at com.j_spaces.core.client.RemoteEventListenerExporter$TransientDelegator.notify(SourceFile:96) at com.j_spaces.core.lrmi.LRMIRemoteEventListener.notify(SourceFile:91) at com.j_spaces.obf.lt.a(SourceFile:242) at com.j_spaces.obf.lt.b(SourceFile:142) at com.j_spaces.obf.jq.a(SourceFile:58) at com.j_spaces.obf.lt.a(SourceFile:61) at com.j_spaces.obf.lt.dispatch(SourceFile:30) at com.j_spaces.obf.de.run(SourceFile:62) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907) at java.lang.Thread.run(Thread.java:619) Caused by: java.util.concurrent.RejectedExecutionException at java.util.concurrent.ThreadPoolExecutor$AbortPolicy.rejectedExecution(ThreadPoolExecutor.java:1759) at java.util.concurrent.ThreadPoolExecutor.reject(ThreadPoolExecutor.java:767) at java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:658) at java.util.concurrent.AbstractExecutorService.invokeAll(AbstractExecutorService.java:200) at com.org.tp.core.oms.pu.order.OrderTriggerer.massiveUpdateStatus(OrderTriggerer.java:80) at com.org.tp.core.oms.pu.order.OrderTriggerer.generateSQLQuery(OrderTriggerer.java:197) at com.org.tp.core.oms.pu.order.OrderTriggerer.rateEvent(OrderTriggerer.java:214) at sun.reflect.GeneratedMethodAccessor177.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.openspaces.events.adapter.AbstractReflectionEventListenerAdapter.onEventWithResult(AbstractReflectionEventListenerAdapter.java:148) ... 16 more

best regards

jack li

{quote}This thread was imported from the previous forum. For your reference, the original is [available here|http://forum.openspaces.org/thread.jspa?threadID=2658]{quote}

asked 2008-10-14 23:16:23 -0500

jackli gravatar image

updated 2013-08-08 09:52:00 -0500

jaissefsfex gravatar image
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

What is your transaction timeout? Can you increase it or renew it? How much time your transaction could take?

Shay

answered 2008-10-15 07:34:28 -0500

shay hassidim gravatar image
edit flag offensive delete link more

Comments

Hi Shay.

i don't quite sure how long my transaction take time but it not suppose to be long. when i create the transaction manager in xml i don't specified my timeout. is it better if i use the renewal or increase the time out or both?

regards

jack li

jackli gravatar imagejackli ( 2008-10-15 20:00:51 -0500 )edit

Jack,

Something is not clear here. - Can u explain what are u doing once the notify container trigger the event? - Why u need this to be a transactional event? Do u perform space operations as part of the space event implementation? - Can u change this to a polling container (to use exclusive read handler) and see if u still have this problem? - Are u using Jini or distributed TX manager? If so - Can u use Local TX manager? - see if increasing the TX timeout resolves the problem. I doubt it will.

Shay

shay hassidim gravatar imageshay hassidim ( 2008-10-15 21:37:49 -0500 )edit

hi Shay,

 what the notify container do is actually changing some other class in the space by executing an sqlquery. so it being triger by some write event to the space. i use local manager by putting <os-core:local-tx-manager id="transactionManager" space="space" /> in my xml. i try to use polling container but the load become bigger than when i use notify container.

regards

jack li

jackli gravatar imagejackli ( 2008-10-15 22:17:25 -0500 )edit

hi Shay,

 what the notify container do is actually changing some other class in the space by executing an sqlquery. so it being triger by some write event to the space. i use local manager by putting <os-core:local-tx-manager id="transactionManager" space="space" /> in my xml. i try to use polling container but the load become bigger than when i use notify container.

regards

jack li

jackli gravatar imagejackli ( 2008-10-15 22:43:56 -0500 )edit

Jack,

I suggest you to take a look on this blog post: http://blog.gigaspaces.com/2008/10/03...

Can you use the MultiTakeReceiveOperationHandler with your polling container? This will boost the processing and allow to keep up with the incoming data.

Can you specify the type of query you are doing? Can you use regular template query instead of SQLQuery?

When using SQLQuery it is impotent to reuse the SQLQuery object it and not create it every time.

Shay

shay hassidim gravatar imageshay hassidim ( 2008-10-15 23:41:14 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2008-10-14 23:16:23 -0500

Seen: 385 times

Last updated: Oct 15 '08