Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 252940

Re: GemFire and Atomikos in tcServer

$
0
0

You probably want this - http://www.atomikos.com/Documentation/Tomcat7Integration35

 

And this:

2013-02-27 14:26:43,264 1545 [localhost-startStop-1] DEBUG org.springframework.transaction.jta.JtaTransactionManager (

JtaTransactionManager.java:544) - Retrieving JTA UserTransaction from JNDI location [java:comp/UserTransaction]

2013-02-27 14:26:43,264 1545 [localhost-startStop-1] DEBUG org.springframework.jndi.JndiTemplate (

JndiTemplate.java:150) - Looking up JNDI object with name [java:comp/UserTransaction]

2013-02-27 14:26:43,264 1545 [localhost-startStop-1] DEBUG org.springframework.transaction.jta.JtaTransactionManager (

JtaTransactionManager.java:568) - Retrieving JTA TransactionManager from JNDI location [java:comp/env/TransactionManager]

2013-02-27 14:26:43,264 1545 [localhost-startStop-1] DEBUG org.springframework.jndi.JndiTemplate (

JndiTemplate.java:150) - Looking up JNDI object with name [java:comp/env/TransactionManager]

2013-02-27 14:26:43,280 1561 [localhost-startStop-1] INFO org.springframework.transaction.jta.JtaTransactionManager (

JtaTransactionManager.java:470) - Using JTA UserTransaction: com.atomikos.icatch.jta.UserTransactionImp@6f831461

2013-02-27 14:26:43,280 1561 [localhost-startStop-1] INFO org.springframework.transaction.jta.JtaTransactionManager (

JtaTransactionManager.java:481) - Using JTA TransactionManager: com.atomikos.icatch.jta.UserTransactionManager@6af2579

 

 

Note : [java:comp/env/TransactionManager]

 

I'm not sure what log info you want.

 

Out of desperation I've dropped the @Transactional and tried the old school approach

UserTransaction txmgr = null;

 

 

try

 

{

 

 

 

Context ctx =

cache.getJNDIContext();

txmgr = (UserTransaction) ctx.lookup(

"java:comp/UserTransaction");

 

This actually gets me a user transaction.

Sadly GemFire isn't part of it - it still won't roll back...

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

2013-02-27 14:27:02,927 21208 [Function Execution Processor1] DEBUG com.atomikos.icatch.imp.BaseTransactionManager (

Slf4jLogger.java:20) - getCompositeTransaction() returning NULL!

2013-02-27 14:27:02,958 21239 [Function Execution Processor1] DEBUG com.atomikos.icatch.imp.CoordinatorImp (

Slf4jLogger.java:20) - Coordinator 10.2.157.202.tm0000100006 entering state: ACTIVE

2013-02-27 14:27:02,958 21239 [Function Execution Processor1] DEBUG com.atomikos.icatch.imp.thread.TaskManager (

Slf4jLogger.java:20) - TaskManager: initializing...

2013-02-27 14:27:02,958 21239 [Function Execution Processor1] INFO com.atomikos.icatch.imp.thread.TaskManager (

 

Slf4jLogger.java:16) - THREADS: using JDK thread pooling...

2013-02-27 14:27:02,958 21239 [Function Execution Processor1] DEBUG com.atomikos.icatch.imp.thread.TaskManager (

 

Slf4jLogger.java:20) - THREADS: using executor class com.atomikos.icatch.imp.thread.Java15ExecutorFactory$Executor

2013-02-27 14:27:02,958 21239 [Function Execution Processor1] DEBUG com.atomikos.icatch.imp.thread.Java15ExecutorFactory (

 

Slf4jLogger.java:20

) - (1.5) executing task: com.atomikos.timing.PooledAlarmTimer@56961bb

2013-02-27 14:27:02,958 21239 [Function Execution Processor1] DEBUG com.atomikos.icatch.imp.thread.ThreadFactory (

 

Slf4jLogger.java:20

) - ThreadFactory: creating new thread: Atomikos:0

2013-02-27 14:27:02,958 21239 [Function Execution Processor1] DEBUG com.atomikos.icatch.imp.TransactionServiceImp (

 

Slf4jLogger.java:20

) - Creating composite transaction: 10.2.157.202.tm0000100006

2013-02-27 14:27:02,974 21255 [Function Execution Processor1] INFO com.atomikos.icatch.imp.BaseTransactionManager (

 

Slf4jLogger.java:16

) - createCompositeTransaction ( 10000 ): created new ROOT transaction with id 10.2.157.202.tm0000100006

2013-02-27 14:27:02,974 21255 [Function Execution Processor1] DEBUG com.mediaocean.gemfire.eav.store.function.EavStoreFunctionImpl (

 

EavStoreSaveFunctionImpl.java:68

) - Saving...

2013-02-27 14:27:02,974 21255 [Function Execution Processor1] DEBUG com.mediaocean.gemfire.eav.store.function.EavStoreFunctionImpl (

 

EavStoreSaveFunctionImpl.java:68

) - Saving...

2013-02-27 14:27:02,974 21255 [Function Execution Processor1] DEBUG com.atomikos.icatch.imp.BaseTransactionManager (

 

Slf4jLogger.java:20

) - getCompositeTransaction() returning instance with id 10.2.157.202.tm0000100006

2013-02-27 14:27:02,974 21255 [Function Execution Processor1] DEBUG com.atomikos.icatch.imp.BaseTransactionManager (

 

Slf4jLogger.java:20

) - getCompositeTransaction() returning instance with id 10.2.157.202.tm0000100006

2013-02-27 14:27:02,974 21255 [Function Execution Processor1] DEBUG com.atomikos.icatch.imp.CoordinatorImp (

 

Slf4jLogger.java:20

) - Coordinator 10.2.157.202.tm0000100006 entering state: ABORTING

2013-02-27 14:27:02,974 21255 [Function Execution Processor1] DEBUG com.atomikos.icatch.imp.CoordinatorImp (

 

Slf4jLogger.java:20

) - Coordinator 10.2.157.202.tm0000100006 entering state: TERMINATED

2013-02-27 14:27:02,974 21255 [Function Execution Processor1] DEBUG com.atomikos.icatch.imp.CoordinatorImp (

 

Slf4jLogger.java:20

) - Coordinator 10.2.157.202.tm0000100006 : stopping timer...

2013-02-27 14:27:02,974 21255 [Function Execution Processor1] DEBUG com.atomikos.icatch.imp.CoordinatorImp (

 

Slf4jLogger.java:20

) - Coordinator 10.2.157.202.tm0000100006 : disposing statehandler TERMINATED...

2013-02-27 14:27:02,974 21255 [Function Execution Processor1] DEBUG com.atomikos.icatch.imp.CoordinatorImp (

 

Slf4jLogger.java:20

) - Coordinator 10.2.157.202.tm0000100006 : disposed.

2013-02-27 14:27:02,974 21255 [Function Execution Processor1] DEBUG com.atomikos.icatch.imp.CompositeTransactionImp (

 

Slf4jLogger.java:33

) - Ignoring error during event callback

java.lang.IllegalStateException

 

 

: Transaction no longer active

at com.atomikos.icatch.imp.TxTerminatedStateHandler.rollbackWithStateCheck(

 

TxTerminatedStateHandler.java:106

)

at com.atomikos.icatch.imp.CompositeTransactionImp.doRollback(

 

CompositeTransactionImp.java:237

)

at com.atomikos.icatch.imp.CompositeTerminatorImp.rollback(

 

CompositeTerminatorImp.java:123

)

at com.atomikos.icatch.imp.CompositeTransactionImp.rollback(

 

CompositeTransactionImp.java:346

)

at com.atomikos.icatch.imp.CompositeTransactionImp.entered(

 

CompositeTransactionImp.java:373

)

at com.atomikos.finitestates.FSMImp.notifyListeners(

 

FSMImp.java:186

)

at com.atomikos.finitestates.FSMImp.setState(

 

FSMImp.java:277

)

at com.atomikos.icatch.imp.CoordinatorImp.setState(

 

CoordinatorImp.java:429

)

at com.atomikos.icatch.imp.CoordinatorImp.setStateHandler(

 

CoordinatorImp.java:286

)

at com.atomikos.icatch.imp.CoordinatorStateHandler.rollback(

 

CoordinatorStateHandler.java:764

)

at com.atomikos.icatch.imp.ActiveStateHandler.rollback(

 

ActiveStateHandler.java:264

)

at com.atomikos.icatch.imp.CoordinatorImp.rollback(

 

CoordinatorImp.java:747

)

at com.atomikos.icatch.imp.TransactionStateHandler.rollback(

 

TransactionStateHandler.java:179

)

at com.atomikos.icatch.imp.TransactionStateHandler.rollbackWithStateCheck(

 

TransactionStateHandler.java:197

)

at com.atomikos.icatch.imp.CompositeTransactionImp.doRollback(

 

CompositeTransactionImp.java:237

)

at com.atomikos.icatch.imp.CompositeTerminatorImp.rollback(

 

CompositeTerminatorImp.java:123

)

at com.atomikos.icatch.imp.CompositeTransactionImp.rollback(

 

CompositeTransactionImp.java:346

)

at com.atomikos.icatch.jta.TransactionImp.rollback(

 

TransactionImp.java:234

)

at com.atomikos.icatch.jta.TransactionManagerImp.rollback(

 

TransactionManagerImp.java:524

)

at com.atomikos.icatch.jta.UserTransactionImp.rollback(

 

UserTransactionImp.java:141

)

at com.mediaocean.gemfire.eav.store.function.EavStoreSaveFunctionImpl.performFunction(

 

EavStoreSaveFunctionImpl.java:99

)

at com.mediaocean.gemfire.eav.store.function.EavStoreFunctionImpl.execute(

 

EavStoreFunctionImpl.java:110

)

at com.gemstone.gemfire.internal.cache.execute.AbstractExecution.executeFunctionLocally(

 

AbstractExecution.java:341

)

at com.gemstone.gemfire.internal.cache.execute.AbstractExecution$2.run(

 

AbstractExecution.java:305

)

at java.util.concurrent.ThreadPoolExecutor.runWorker(

 

ThreadPoolExecutor.java:1145

)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(

 

ThreadPoolExecutor.java:615

)

at com.gemstone.gemfire.distributed.internal.DistributionManager.runUntilShutdown(

DistributionManager.java:687) at com.gemstone.gemfire.distributed.internal.DistributionManager$8$1.run(DistributionManager.java:1111) at java.lang.Thread.run(Thread.java:722)

2013-02-27 14:27:02,974 21255 [Function Execution Processor1] INFO com.atomikos.icatch.imp.CompositeTransactionImp (

 

Slf4jLogger.java:16

) - rollback() done of transaction 10.2.157.202.tm0000100006

 

This help at all?


Viewing all articles
Browse latest Browse all 252940

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>