Skip to content

Instantly share code, notes, and snippets.

View pferraro's full-sized avatar

Paul Ferraro pferraro

  • Red Hat
  • Edinburgh, UK
  • 09:37 (UTC)
View GitHub Profile
&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'
&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;[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 [email protected]//org.wildfly.clustering.ee.cache.tx.TransactionalBatch.close(TransactionalBatch.java:101)
at [email protected]//org.wildfly.clustering.web.undertow.session.DistributableSession.invalidate(DistributableSession.java:234)
at [email protected]//io.undertow.servlet.spec.HttpSessionImpl.invalidate(HttpSessionImpl.ja
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
@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();
public class RouteBuilder implements Builder<String>, Value<String> {
private static final String DELIMITER = ":";
private final String serverName;
private final InjectedValue<UndertowService> service = new InjectedValue<>();
public RouteBuilder(String serverName) {
this.serverName = serverName;
}
@pferraro
pferraro / gist:00e49201192dfdabd4c7
Created February 3, 2016 21:01
testPassivationMaxSize(org.jboss.as.test.integration.ejb.stateful.passivation.PassivationTestCase)
javax.ejb.EJBException: WFLYJPA0030: Found extended persistence context in SFSB invocation call stack but that cannot be used because the transaction already has a transactional context associated with it. This can be avoided by changing application code, either eliminate the extended persistence context or the transactional context. See JPA spec 2.0 section 7.6.3.1. Scoped persistence unit name=passivation-test.jar#main, persistence context already in transaction =ExtendedEntityManager [passivation-test.jar#main], extended persistence context =ExtendedEntityManager [passivation-test.jar#main].
at org.jboss.as.jpa.container.ExtendedEntityManager.internalAssociateWithJtaTx(ExtendedEntityManager.java:149)
at org.jboss.as.jpa.container.ExtendedEntityManager.getEntityManager(ExtendedEntityManager.java:129)
at org.jboss.as.jpa.container.AbstractEntityManager.createQuery(AbstractEntityManager.java:444)
at org.jboss.as.test.integration.ejb.stateful.passivation.TestPassivationBean.isPersistenceContextSame(Test
Tests run: 12, Failures: 3, Errors: 0, Skipped: 6, Time elapsed: 4.571 sec <<< FAILURE! - in org.jboss.as.clustering.infinispan.subsystem.TransformersTestCase
testTransformer620(org.jboss.as.clustering.infinispan.subsystem.TransformersTestCase) Time elapsed: 0.625 sec <<< FAILURE!
org.junit.ComparisonFailure: cache-container/minimal/: {
"default-cache" => "local",
"jndi-name" => undefined,
"listener-executor" => undefined,
"replication-queue-executor" => undefined,
"distributed-cache" => undefined,
"invalidation-cache" => undefined,
"local-cache" => {"local" => {
@pferraro
pferraro / gist:b26c328646e342c0c133
Created November 12, 2015 18:32
Statistics enabled + simple cache
31m13:29:08,909 ERROR [org.jboss.msc.service.fail] (ServerService Thread Pool -- 25) MSC000001: Failed to start service jboss.infinispan.hibernate.local-query: org.jboss.msc.service.StartException in service jboss.infinispan.hibernate.local-query: org.infinispan.commons.CacheException: Unable to construct a ComponentRegistry!
at org.wildfly.clustering.service.AsynchronousServiceBuilder$1.run(AsynchronousServiceBuilder.java:107)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
at org.jboss.threads.JBossThread.run(JBossThread.java:320)
Caused by: org.infinispan.commons.CacheException: Unable to construct a ComponentRegistry!
at org.infinispan.factories.ComponentRegistry.<init>(ComponentRegistry.java:91)
at org.infinispan.factories.InternalCacheFactory$1.<init>(InternalCacheFactory.java:89)
at org.infinispan.factories.InternalCacheFactory.createSimp
09:39:11,100 INFO [stdout] (management-handler-thread - 1) Converted [
09:39:11,100 INFO [stdout] (management-handler-thread - 1) ("subsystem" => "infinispan"),
09:39:11,100 INFO [stdout] (management-handler-thread - 1) ("cache-container" => "*"),
09:39:11,100 INFO [stdout] (management-handler-thread - 1) ("local-cache" => "*"),
09:39:11,101 INFO [stdout] (management-handler-thread - 1) ("file-store" => "FILE_STORE")
09:39:11,101 INFO [stdout] (management-handler-thread - 1) ] to ["subsystem" => "infinispan", "cache-container" => "*", "local-cache" => "*", "store" => "file"]
09:39:11,102 ERROR [org.jboss.as.controller.management-operation] (management-handler-thread - 1) WFLYCTL0013: Operation ("read-resource-description") failed - address: ([
("subsystem" => "infinispan"),
("cache-container" => "*"),
("local-cache" => "*"),