Skip to content

Instantly share code, notes, and snippets.

View pferraro's full-sized avatar

Paul Ferraro pferraro

  • IBM
  • Edinburgh, UK
  • 13:23 (UTC +01:00)
View GitHub Profile
@Listener
public class Test {
@org.junit.Test
public void test() throws InterruptedException {
GlobalConfiguration global1 = new GlobalConfigurationBuilder().transport().defaultTransport().addProperty("configurationFile", "fast.xml").globalJmxStatistics().allowDuplicateDomains(true).build();
GlobalConfiguration global2 = new GlobalConfigurationBuilder().transport().defaultTransport().addProperty("configurationFile", "fast.xml").globalJmxStatistics().allowDuplicateDomains(true).build();
Configuration config = new ConfigurationBuilder().clustering().cacheMode(CacheMode.REPL_SYNC).transaction().transactionMode(TransactionMode.NON_TRANSACTIONAL).expiration().wakeUpInterval(5, TimeUnit.SECONDS).build();
EmbeddedCacheManager manager1 = new DefaultCacheManager(global1, config, false);
manager1.start();
16:50:13,228 ERROR [org.jboss.msc.service.fail] (ServerService Thread Pool -- 27) MSC000001: Failed to start service org.wildfly.clustering.infinispan.cache.ejb.CdiFailoverTestCase.war: org.jboss.msc.service.StartException in service org.wildfly.clustering.infinispan.cache.ejb.CdiFailoverTestCase.war: org.infinispan.commons.CacheException: Unable to invoke method public void org.infinispan.cache.impl.EncoderCache.wireRealCache() on object of type EncoderCache with parameters []
at org.wildfly.clustering.service.FunctionalService.start(FunctionalService.java:70)
at org.wildfly.clustering.service.AsyncServiceConfigurator$AsyncService.lambda$start$0(AsyncServiceConfigurator.java:118)
at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1985)
at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1487)
at org.jboss.threads.EnhancedQueueExecutor$Thre
&amp#27;[0m&amp#27;[31m20:56:33,725 ERROR [io.undertow.request] (default task-1) UT005023: Exception handling request to /FineTransactionalHotRodWebFailoverTestCase/simple: java.lang.IllegalStateException: javax.transaction.RollbackException: XaResource.prepare() for XaResource{transaction=TransactionImpl{xid=Xid{formatId=1213355096, globalTransactionId=84129AB2E968A73294093C2CE5E64F9200000171F6EF0C7B0000000000000006,branchQualifier=84129AB2E968A73294093C2CE5E64F9200000171F6EF0C7B0000000000000006}, status=PREPARING}, caches=[FineTransactionalHotRodWebFailoverTestCase.war]} wants to rollback.
at org.wildfly.clustering.ee.cache@20.0.0.Beta1-SNAPSHOT//org.wildfly.clustering.ee.cache.tx.TransactionalBatch.close(TransactionalBatch.java:101)
at org.wildfly.clustering.web.undertow@20.0.0.Beta1-SNAPSHOT//org.wildfly.clustering.web.undertow.session.DistributableSession.invalidate(DistributableSession.java:234)
at io.undertow.servlet@2.1.0.Final//io.undertow.servlet.spec.HttpSessionImpl.invalidate(HttpSessionImpl.ja
&amp#27;[0m&amp#27;[0m09:25:35,044 INFO [org.jboss.as.server] (management-handler-thread - 1) WFLYSRV0010: Deployed "CoarseSessionExpirationTestCase.war" (runtime-name : "CoarseSessionExpirationTestCase.war")
&amp#27;[0m&amp#27;[0m09:25:35,056 INFO [io.undertow.servlet] (default task-1) http://127.0.0.1:8080/CoarseSessionExpirationTestCase/listener?operation=set&name=a
&amp#27;[0m&amp#27;[0m09:25:35,064 INFO [io.undertow.servlet] (default task-2) http://127.0.0.1:8080/CoarseSessionExpirationTestCase/listener?operation=set&name=a&value=1
&amp#27;[0m&amp#27;[0m09:25:35,075 INFO [io.undertow.servlet] (default task-1) http://127.0.0.1:8180/CoarseSessionExpirationTestCase/listener?operation=get&name=a
&amp#27;[0m&amp#27;[0m09:25:35,088 INFO [io.undertow.servlet] (default task-2) http://127.0.0.1:8180/CoarseSessionExpirationTestCase/listener?operation=remove&name=b
&amp#27;[0m&amp#27;[0m09:25:35,095 INFO [io.undertow.servlet] (default task-2) http://127.0.0.1:8080/CoarseSessionExpirationTestCase/listener?oper
&amp#27;[0m&amp#27;[0m09:25:37,525 INFO [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 38) WFLYCLINF0002: Started FineSessionExpirationTestCase.war cache from web container
&amp#27;[0m&amp#27;[0m09:25:37,532 INFO [org.infinispan.CLUSTER] (thread-12,ejb,node-1) [Context=FineSessionExpirationTestCase.war] ISPN100009: Advancing to rebalance phase READ_ALL_WRITE_ALL, topology id 3
&amp#27;[0m&amp#27;[0m09:25:37,534 INFO [org.infinispan.CLUSTER] (thread-12,ejb,node-1) [Context=FineSessionExpirationTestCase.war] ISPN100009: Advancing to rebalance phase READ_NEW_WRITE_ALL, topology id 4
&amp#27;[0m&amp#27;[0m09:25:37,536 INFO [org.infinispan.CLUSTER] (thread-12,ejb,node-1) [Context=FineSessionExpirationTestCase.war] ISPN100010: Finished rebalance with members [node-1, node-2], topology id 5
&amp#27;[0m&amp#27;[0m09:25:37,556 INFO [org.wildfly.extension.undertow] (ServerService Thread Pool -- 38) WFLYUT0021: Registered web context: '/FineSessionExpirationTestCase' for server 'default-server'