[
https://issues.jboss.org/browse/ISPN-2232?page=com.atlassian.jira.plugin....
]
Ales Justin reopened ISPN-2232:
-------------------------------
This still fails:
11:33:18,345 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host]]
(http-/192.168.1.101:8080-2) Exception sending request initialized lifecycle event to
listener instance of class org.jboss.capedwarf.appidentity.GAEListener:
java.lang.IllegalArgumentException: Indexing was not enabled on this cache. class
org.infinispan.query.backend.QueryInterceptor not found in registry
at
org.infinispan.query.impl.ComponentRegistryUtils.getComponent(ComponentRegistryUtils.java:40)
at org.infinispan.query.SearchManagerImpl.<init>(SearchManagerImpl.java:57)
at org.infinispan.query.Search.getSearchManager(Search.java:39)
at org.infinispan.query.CommandInitializer.setCache(CommandInitializer.java:46)
at org.infinispan.query.impl.LifecycleManager.cacheStarted(LifecycleManager.java:127)
at org.infinispan.factories.ComponentRegistry.start(ComponentRegistry.java:178)
[infinispan-core-5.2.0-SNAPSHOT.jar:5.2.0-SNAPSHOT]
at org.infinispan.CacheImpl.start(CacheImpl.java:523)
[infinispan-core-5.2.0-SNAPSHOT.jar:5.2.0-SNAPSHOT]
at org.infinispan.AbstractDelegatingCache.start(AbstractDelegatingCache.java:343)
[infinispan-core-5.2.0-SNAPSHOT.jar:5.2.0-SNAPSHOT]
at
org.jboss.capedwarf.common.infinispan.InfinispanUtils.checkCache(InfinispanUtils.java:72)
[capedwarf-common-1.0.0-SNAPSHOT.jar:1.0.0-SNAPSHOT]
at
org.jboss.capedwarf.common.infinispan.InfinispanUtils.getCache(InfinispanUtils.java:82)
[capedwarf-common-1.0.0-SNAPSHOT.jar:1.0.0-SNAPSHOT]
at
org.jboss.capedwarf.common.infinispan.InfinispanUtils.getCache(InfinispanUtils.java:191)
[capedwarf-common-1.0.0-SNAPSHOT.jar:1.0.0-SNAPSHOT]
at
org.jboss.capedwarf.datastore.AbstractDatastoreService.createStore(AbstractDatastoreService.java:66)
[capedwarf-datastore-1.0.0-SNAPSHOT.jar:1.0.0-SNAPSHOT]
at
org.jboss.capedwarf.datastore.AbstractDatastoreService.<init>(AbstractDatastoreService.java:60)
[capedwarf-datastore-1.0.0-SNAPSHOT.jar:1.0.0-SNAPSHOT]
at
org.jboss.capedwarf.datastore.JBossDatastoreService.<init>(JBossDatastoreService.java:56)
[capedwarf-datastore-1.0.0-SNAPSHOT.jar:1.0.0-SNAPSHOT]
at
com.google.appengine.api.datastore.DatastoreServiceFactory.getDatastoreService(DatastoreServiceFactory.java)
[appengine-api-1.0-sdk-1.7.1.jar:]
at org.jboss.capedwarf.log.JBossLogService.requestStarted(JBossLogService.java:215)
[capedwarf-log-1.0.0-SNAPSHOT.jar:1.0.0-SNAPSHOT]
at org.jboss.capedwarf.appidentity.GAEListener.requestInitialized(GAEListener.java:91)
[capedwarf-appidentity-1.0.0-SNAPSHOT.jar:1.0.0-SNAPSHOT]
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:143)
[jbossweb-7.0.17.Final.jar:]
Cache::re-start doesn't setup CommandInitializer in
ComponentRegistry when used with Query
------------------------------------------------------------------------------------------
Key: ISPN-2232
URL:
https://issues.jboss.org/browse/ISPN-2232
Project: Infinispan
Issue Type: Bug
Components: Configuration, Querying
Affects Versions: 5.1.6.FINAL, 5.2.0.ALPHA2
Reporter: Ales Justin
Assignee: Galder ZamarreƱo
Fix For: 5.2.0.Alpha3, 5.2.0.Final
When re-starting existing stopped cache, NPE is thrown:
23:10:27,160 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host]]
(http-/192.168.1.101:8080-2) Exception sending request initialized lifecycle event to
listener instance of class org.jboss.capedwarf.appidentity.GAEListener:
java.lang.NullPointerException
at org.infinispan.query.impl.LifecycleManager.cacheStarted(LifecycleManager.java:125)
at org.infinispan.factories.ComponentRegistry.start(ComponentRegistry.java:178)
[infinispan-core-5.2.0.ALPHA2.jar:5.2.0.ALPHA2]
at org.infinispan.CacheImpl.start(CacheImpl.java:523)
[infinispan-core-5.2.0.ALPHA2.jar:5.2.0.ALPHA2]
at org.infinispan.AbstractDelegatingCache.start(AbstractDelegatingCache.java:343)
[infinispan-core-5.2.0.ALPHA2.jar:5.2.0.ALPHA2]
at
org.jboss.capedwarf.common.infinispan.InfinispanUtils.checkCache(InfinispanUtils.java:72)
[capedwarf-common-1.0.0-SNAPSHOT.jar:1.0.0-SNAPSHOT]
at
org.jboss.capedwarf.common.infinispan.InfinispanUtils.getCache(InfinispanUtils.java:82)
[capedwarf-common-1.0.0-SNAPSHOT.jar:1.0.0-SNAPSHOT]
This is the code I added:
private static <K, V> Cache<K, V> checkCache(String cacheName) {
final Cache<K, V> cache = cacheManager.getCache(cacheName, false);
if (cache != null) {
final ComponentStatus status = cache.getStatus();
if (status != ComponentStatus.INITIALIZING && status !=
ComponentStatus.RUNNING) {
cache.start();
}
}
return cache;
}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira