[JBoss JIRA] (ISPN-1847) treecache Exception "invocationBatching is not enabled" with configured batching="true" in AS7 infinispan subsystem
by Lars Fischer (JIRA)
Lars Fischer created ISPN-1847:
----------------------------------
Summary: treecache Exception "invocationBatching is not enabled" with configured batching="true" in AS7 infinispan subsystem
Key: ISPN-1847
URL: https://issues.jboss.org/browse/ISPN-1847
Project: Infinispan
Issue Type: Bug
Components: Tree API
Affects Versions: 5.1.1.FINAL
Reporter: Lars Fischer
Assignee: Manik Surtani
Hello,
trying to get the treecache working inside a JBoss AS7 7.1.0-x, there is a problem within the configuration parameter "invocationBatching". Although batching is enabled, treecache is not recognizing it.
I think the reason is that treecache is using the deprecated configuration API. (e.g. TreeCacheFactory#createTreeCache)
AS7 cache configurations:
{code}
<cache-container name="myappCache" default-cache="repl">
<local-cache name="default" batching="true">
<eviction strategy="LRU"/>
</local-cache>
<distributed-cache mode="SYNC" name="repl" batching="true">
<locking isolation="REPEATABLE_READ"/>
</distributed-cache>
</cache-container>
...
{code}
Example usage:
{code}
@Singleton
public class CacheServiceBean {
@Resource(mappedName = "java:jboss/infinispan/myappCache")
CacheContainer infinispanCacheContainer;
TreeCache tc;
@PostConstruct
public void init(){
this.tc = new TreeCacheFactory().createTreeCache(infinispanCacheContainer.getCache());
}
}
{code}
Resulting exception:
{quote}
org.infinispan.config.ConfigurationException: invocationBatching is not enabled. Make sure this is enabled by calling config.setInvocationBatchingEnabled(true)
at org.infinispan.tree.TreeCacheFactory.createTreeCache(TreeCacheFactory.java:55) [infinispan-tree-5.1.0.CR1.jar:5.1.0.CR1]
at com......CacheServiceBean.init(CacheServiceBean.java:35) [example-base-ejb-0.0.1-SNAPSHOT.jar:]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [:1.6.0_29]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [:1.6.0_29]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [:1.6.0_29]
at java.lang.reflect.Method.invoke(Method.java:597) [:1.6.0_29]
at org.jboss.as.ee.component.ManagedReferenceLifecycleMethodInterceptorFactory$ManagedReferenceLifecycleMethodInterceptor.processInvocation(ManagedReferenceLifecycleMethodInterceptorFactory.java:130) [jboss-as-ee-7.1.0.Final-SNAPSHOT.jar:7.1.0.Final-SNAPSHOT]
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
at org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
at org.jboss.as.weld.injection.WeldInjectionInterceptor.processInvocation(WeldInjectionInterceptor.java:73) [jboss-as-weld-7.1.0.Final-SNAPSHOT.jar:7.1.0.Final-SNAPSHOT]
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
at org.jboss.as.ee.component.ManagedReferenceFieldInjectionInterceptorFactory$ManagedReferenceFieldInjectionInterceptor.processInvocation(ManagedReferenceFieldInjectionInterceptorFactory.java:112) [jboss-as-ee-7.1.0.Final-SNAPSHOT.jar:7.1.0.Final-SNAPSHOT]
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
{quote}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 10 months
[JBoss JIRA] (ISPN-1751) NPE in hotrod client
by Michal Linhard (JIRA)
Michal Linhard created ISPN-1751:
------------------------------------
Summary: NPE in hotrod client
Key: ISPN-1751
URL: https://issues.jboss.org/browse/ISPN-1751
Project: Infinispan
Issue Type: Bug
Affects Versions: 5.1.0.CR4
Reporter: Michal Linhard
Assignee: Manik Surtani
I've got this one in two recent stress test runs:
{code}
java.lang.NullPointerException
at sun.nio.ch.Util.atBugLevel(Util.java:448)
at sun.nio.ch.SelectorImpl.<init>(SelectorImpl.java:40)
at sun.nio.ch.EPollSelectorImpl.<init>(EPollSelectorImpl.java:47)
at sun.nio.ch.EPollSelectorProvider.openSelector(EPollSelectorProvider.java:18)
at sun.nio.ch.Util.getTemporarySelector(Util.java:245)
at sun.nio.ch.SocketAdaptor.connect(SocketAdaptor.java:92)
at org.infinispan.client.hotrod.impl.transport.tcp.TcpTransport.<init>(TcpTransport.java:80)
at org.infinispan.client.hotrod.impl.transport.tcp.TransportObjectFactory.makeObject(TransportObjectFactory.java:57)
at org.apache.commons.pool.impl.GenericKeyedObjectPool.borrowObject(GenericKeyedObjectPool.java:1179)
at org.infinispan.client.hotrod.impl.transport.tcp.TcpTransportFactory.borrowTransportFromPool(TcpTransportFactory.java:250)
at org.infinispan.client.hotrod.impl.transport.tcp.TcpTransportFactory.getTransport(TcpTransportFactory.java:143)
at org.jboss.qa.edg.adapter.HotRodAdapter$AdapterTcpTransportFactory.getTransport(HotRodAdapter.java:104)
at org.infinispan.client.hotrod.RemoteCacheManager.ping(RemoteCacheManager.java:529)
at org.infinispan.client.hotrod.RemoteCacheManager.createRemoteCache(RemoteCacheManager.java:511)
at org.infinispan.client.hotrod.RemoteCacheManager.getCache(RemoteCacheManager.java:433)
at org.infinispan.client.hotrod.RemoteCacheManager.getCache(RemoteCacheManager.java:429)
at org.jboss.qa.edg.adapter.HotRodAdapter.getCache(HotRodAdapter.java:216)
at org.jboss.smartfrog.edg.loaddriver.DriverNodeImpl$ClientThread.init(DriverNodeImpl.java:104)
at org.jboss.smartfrog.edg.loaddriver.DriverNodeImpl$ClientThread.run(DriverNodeImpl.java:317)
{code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 10 months
[JBoss JIRA] (ISPN-1873) ExternalizerTable not detecting cache manager shutdown for provided channels
by Paul Ferraro (JIRA)
Paul Ferraro created ISPN-1873:
----------------------------------
Summary: ExternalizerTable not detecting cache manager shutdown for provided channels
Key: ISPN-1873
URL: https://issues.jboss.org/browse/ISPN-1873
Project: Infinispan
Issue Type: Bug
Components: Marshalling, RPC
Affects Versions: 5.1.1.FINAL
Reporter: Paul Ferraro
Assignee: Galder Zamarreño
During clean shutdown of AS7, we occasionally see log messages like the below stack trace. To detect that the cache manager is being shutdown, ExternalizerTable checks both a "started" boolean flag and the interrupted status of the up handler thread. In the AS, however, the cache manager does not control the lifecycle of the channel - a channel does not stop until its dependent services (e.g. the cache manager) have already stopped. So, the incoming message handling thread won't be interrupted. Objects like ExternalizerTable need to use some other mechanism to distinguish "shutting down" from "not yet started".
[JBossINF] 12:28:22,463 WARN [org.infinispan.remoting.transport.jgroups.CommandAwareRpcDispatcher] Problems unmarshalling remote command from byte buffer: org.infinispan.CacheException: Cache manager is either starting up or shutting down but it's not interrupted, so type (id=74) cannot be resolved.
[JBossINF] at org.infinispan.marshall.jboss.ExternalizerTable.readObject(ExternalizerTable.java:257) [infinispan-core-5.1.0.CR1.jar:5.1.0.CR1]
[JBossINF] at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:351)
[JBossINF] at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:209)
[JBossINF] at org.jboss.marshalling.AbstractObjectInput.readObject(AbstractObjectInput.java:37) [jboss-marshalling-1.3.4.GA.jar:1.3.4.GA]
[JBossINF] at org.infinispan.marshall.jboss.AbstractJBossMarshaller.objectFromObjectStream(AbstractJBossMarshaller.java:120) [infinispan-core-5.1.0.CR1.jar:5.1.0.CR1]
[JBossINF] at org.infinispan.marshall.VersionAwareMarshaller.objectFromByteBuffer(VersionAwareMarshaller.java:115) [infinispan-core-5.1.0.CR1.jar:5.1.0.CR1]
[JBossINF] at org.infinispan.marshall.AbstractDelegatingMarshaller.objectFromByteBuffer(AbstractDelegatingMarshaller.java:79) [infinispan-core-5.1.0.CR1.jar:5.1.0.CR1]
[JBossINF] at org.infinispan.remoting.transport.jgroups.MarshallerAdapter.objectFromBuffer(MarshallerAdapter.java:50) [infinispan-core-5.1.0.CR1.jar:5.1.0.CR1]
[JBossINF] at org.infinispan.remoting.transport.jgroups.CommandAwareRpcDispatcher.handle(CommandAwareRpcDispatcher.java:139) [infinispan-core-5.1.0.CR1.jar:5.1.0.CR1]
[JBossINF] at org.jgroups.blocks.RequestCorrelator.handleRequest(RequestCorrelator.java:447) [jgroups-3.0.1.Final.jar:3.0.1.Final]
[JBossINF] at org.jgroups.blocks.RequestCorrelator.receiveMessage(RequestCorrelator.java:354) [jgroups-3.0.1.Final.jar:3.0.1.Final]
[JBossINF] at org.jgroups.blocks.RequestCorrelator.receive(RequestCorrelator.java:230) [jgroups-3.0.1.Final.jar:3.0.1.Final]
[JBossINF] at org.jgroups.blocks.MessageDispatcher$ProtocolAdapter.up(MessageDispatcher.java:556) [jgroups-3.0.1.Final.jar:3.0.1.Final]
[JBossINF] at org.jboss.as.clustering.jgroups.ClassLoaderAwareUpHandler.up(ClassLoaderAwareUpHandler.java:56) [jboss-as-clustering-jgroups-7.1.0.Final-SNAPSHOT.jar:7.1.0.Final-SNAPSHOT]
[JBossINF] at org.jgroups.blocks.mux.MuxUpHandler.up(MuxUpHandler.java:130) [jgroups-3.0.1.Final.jar:3.0.1.Final]
[JBossINF] at org.jboss.as.clustering.jgroups.MuxChannel$ClassLoaderAwareMuxUpHandler.up(MuxChannel.java:64) [jboss-as-clustering-jgroups-7.1.0.Final-SNAPSHOT.jar:7.1.0.Final-SNAPSHOT]
[JBossINF] at org.jgroups.JChannel.up(JChannel.java:716) [jgroups-3.0.1.Final.jar:3.0.1.Final]
[JBossINF] at org.jgroups.stack.ProtocolStack.up(ProtocolStack.java:1026) [jgroups-3.0.1.Final.jar:3.0.1.Final]
[JBossINF] at org.jgroups.protocols.pbcast.FLUSH.up(FLUSH.java:481) [jgroups-3.0.1.Final.jar:3.0.1.Final]
[JBossINF] at org.jgroups.protocols.pbcast.STATE_TRANSFER.up(STATE_TRANSFER.java:178) [jgroups-3.0.1.Final.jar:3.0.1.Final]
[JBossINF] at org.jgroups.protocols.FRAG2.up(FRAG2.java:181) [jgroups-3.0.1.Final.jar:3.0.1.Final]
[JBossINF] at org.jgroups.protocols.FlowControl.up(FlowControl.java:400) [jgroups-3.0.1.Final.jar:3.0.1.Final]
[JBossINF] at org.jgroups.protocols.FlowControl.up(FlowControl.java:418) [jgroups-3.0.1.Final.jar:3.0.1.Final]
[JBossINF] at org.jgroups.protocols.pbcast.GMS.up(GMS.java:881) [jgroups-3.0.1.Final.jar:3.0.1.Final]
[JBossINF] at org.jgroups.protocols.pbcast.STABLE.up(STABLE.java:244) [jgroups-3.0.1.Final.jar:3.0.1.Final]
[JBossINF] at org.jgroups.protocols.UNICAST2.up(UNICAST2.java:383) [jgroups-3.0.1.Final.jar:3.0.1.Final]
[JBossINF] at org.jgroups.protocols.pbcast.NAKACK.handleMessage(NAKACK.java:733) [jgroups-3.0.1.Final.jar:3.0.1.Final]
[JBossINF] at org.jgroups.protocols.pbcast.NAKACK.up(NAKACK.java:561) [jgroups-3.0.1.Final.jar:3.0.1.Final]
[JBossINF] at org.jgroups.protocols.BARRIER.up(BARRIER.java:126) [jgroups-3.0.1.Final.jar:3.0.1.Final]
[JBossINF] at org.jgroups.protocols.VERIFY_SUSPECT.up(VERIFY_SUSPECT.java:140) [jgroups-3.0.1.Final.jar:3.0.1.Final]
[JBossINF] at org.jgroups.protocols.FD.up(FD.java:273) [jgroups-3.0.1.Final.jar:3.0.1.Final]
[JBossINF] at org.jgroups.protocols.FD_SOCK.up(FD_SOCK.java:284) [jgroups-3.0.1.Final.jar:3.0.1.Final]
[JBossINF] at org.jgroups.protocols.MERGE2.up(MERGE2.java:205) [jgroups-3.0.1.Final.jar:3.0.1.Final]
[JBossINF] at org.jgroups.protocols.Discovery.up(Discovery.java:354) [jgroups-3.0.1.Final.jar:3.0.1.Final]
[JBossINF] at org.jgroups.stack.Protocol.up(Protocol.java:358) [jgroups-3.0.1.Final.jar:3.0.1.Final]
[JBossINF] at org.jgroups.protocols.TP.passMessageUp(TP.java:1174) [jgroups-3.0.1.Final.jar:3.0.1.Final]
[JBossINF] at org.jgroups.protocols.TP$IncomingPacket.handleMyMessage(TP.java:1709) [jgroups-3.0.1.Final.jar:3.0.1.Final]
[JBossINF] at org.jgroups.protocols.TP$IncomingPacket.run(TP.java:1691) [jgroups-3.0.1.Final.jar:3.0.1.Final]
[JBossINF] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_29]
[JBossINF] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_29]
[JBossINF] at java.lang.Thread.run(Thread.java:662) [:1.6.0_29]
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 10 months
[JBoss JIRA] (ISPN-1875) Pi approximation and word count demos don't work
by Galder Zamarreño (JIRA)
Galder Zamarreño created ISPN-1875:
--------------------------------------
Summary: Pi approximation and word count demos don't work
Key: ISPN-1875
URL: https://issues.jboss.org/browse/ISPN-1875
Project: Infinispan
Issue Type: Bug
Components: Demos and Tutorials
Affects Versions: 5.1.1.FINAL
Reporter: Galder Zamarreño
Assignee: Galder Zamarreño
Fix For: 5.1.2.CR1, 5.1.2.FINAL
{code}[g@dhcp-144-239:/opt/infinispan]% ./bin/runPiApproximationDemo.sh
Exception in thread "main" java.util.ServiceConfigurationError: org.infinispan.lifecycle.ModuleLifecycle: Provider org.infinispan.query.impl.LifecycleManager not found
at java.util.ServiceLoader.fail(ServiceLoader.java:214)
at java.util.ServiceLoader.access$400(ServiceLoader.java:164)
at java.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:350)
at java.util.ServiceLoader$1.next(ServiceLoader.java:421)
at org.infinispan.util.ModuleProperties.resolveModuleLifecycles(ModuleProperties.java:70)
at org.infinispan.factories.GlobalComponentRegistry.<init>(GlobalComponentRegistry.java:100)
at org.infinispan.manager.DefaultCacheManager.<init>(DefaultCacheManager.java:377)
at org.infinispan.manager.DefaultCacheManager.<init>(DefaultCacheManager.java:336)
at org.infinispan.manager.DefaultCacheManager.<init>(DefaultCacheManager.java:323)
at org.infinispan.demo.CacheBuilder.<init>(CacheBuilder.java:39)
at org.infinispan.demo.Demo.startCache(Demo.java:62)
at org.infinispan.demo.distexec.PiApproximationDemo.run(PiApproximationDemo.java:38)
at org.infinispan.demo.distexec.PiApproximationDemo.main(PiApproximationDemo.java:28)
[g@dhcp-144-239:/opt/infinispan]% ./bin/runPiApproximationDemo.sh
[g@dhcp-144-239:/opt/infinispan]% ./bin/runWordCountDemo.sh
Exception in thread "main" java.util.ServiceConfigurationError: org.infinispan.lifecycle.ModuleLifecycle: Provider org.infinispan.query.impl.LifecycleManager not found
at java.util.ServiceLoader.fail(ServiceLoader.java:214)
at java.util.ServiceLoader.access$400(ServiceLoader.java:164)
at java.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:350)
at java.util.ServiceLoader$1.next(ServiceLoader.java:421)
at org.infinispan.util.ModuleProperties.resolveModuleLifecycles(ModuleProperties.java:70)
at org.infinispan.factories.GlobalComponentRegistry.<init>(GlobalComponentRegistry.java:100)
at org.infinispan.manager.DefaultCacheManager.<init>(DefaultCacheManager.java:377)
at org.infinispan.manager.DefaultCacheManager.<init>(DefaultCacheManager.java:336)
at org.infinispan.manager.DefaultCacheManager.<init>(DefaultCacheManager.java:323)
at org.infinispan.demo.CacheBuilder.<init>(CacheBuilder.java:39)
at org.infinispan.demo.Demo.startCache(Demo.java:62)
at org.infinispan.demo.mapreduce.WordCountDemo.run(WordCountDemo.java:63)
at org.infinispan.demo.mapreduce.WordCountDemo.main(WordCountDemo.java:51){code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 10 months