Skip to content

Instantly share code, notes, and snippets.

I have the following JDG library mode configuration (Note the clusterName="clustered")
<transport clusterName="clustered" nodeName="RDS-JDG-1">
<properties>
<property name="configurationFile" value="jgroups-udp.xml" />
</properties>
</transport>
and UDP configuration
<UDP
<?xml version='1.0' encoding='UTF-8'?>
<server xmlns="urn:jboss:domain:1.4">
<extensions>
<extension module="org.infinispan.server.endpoint"/>
<extension module="org.jboss.as.clustering.infinispan"/>
<extension module="org.jboss.as.clustering.jgroups"/>
<extension module="org.jboss.as.connector"/>
<extension module="org.jboss.as.jdr"/>
<extension module="org.jboss.as.jmx"/>
ProtocolStackConfigurator configurator = ConfiguratorFactory.getStackConfigurator("InputStream of UDP/TCP Configs");
MuxChannel channel = new MuxChannel(configurator);
org.infinispan.remoting.transport.Transport transport = new org.infinispan.remoting.transport.jgroups.JGroupsTransport(channel);
then replace the below
new GlobalConfigurationBuilder().clusteredDefault().globalJmxStatistics().cacheManagerName("RDSCacheManager").allowDuplicateDomains(true).enable().transport().clusterName("UDM-CLUSTER").addProperty("configurationFile", "jgroups-tcp2.xml")
WITH
new GlobalConfigurationBuilder().clusteredDefault().globalJmxStatistics().cacheManagerName("RDSCacheManager").allowDuplicateDomains(true).enable().transport(Transport).clusterName("UDM-CLUSTER")
package com.askitis.consulting.jdg.jgroups;
import java.io.IOException;
import java.lang.reflect.Proxy;
import org.jboss.marshalling.ClassResolver;
import org.jboss.marshalling.Marshaller;
import org.jboss.marshalling.Unmarshaller;
public final class HybridClassResolver implements ClassResolver {
private ClassLoader classLoader;
private HybridClassResolver(final ClassLoader classLoader) {
@skoussou
skoussou / gist:fc3cf2fd075844497f4f
Created February 17, 2015 07:22
Infinispan Build headace
Using
a) Java(TM) SE Runtime Environment (build 1.7.0_51-b13)
b) Apache Maven 3.2.1
c) build.bat with "install -DskipTests -s maven-settings.xml"
It fails to build infinispan-core with the following
========================================================================================================
[ERROR] Failed to execute goal org.scala-tools:maven-scala-plugin:2.15.2:script (generate-blueprint) on project infinispan-core: wrap: org.apache.commons.exec.ExecuteException: Pro
cess exited with an error: 1(Exit value: 1) -> [Help 1]
@skoussou
skoussou / gist:09413de556b5b11442ff
Created February 19, 2015 14:08
Failed to initialise the Protobuf serialization context
14:07:18,163 INFO [org.infinispan.factories.GlobalComponentRegistry] (MSC service thread 1-5) ISPN000128: Infinispan version: Infinispan 'Hoptimus Prime' 7.1.1-SNAPSHOT
14:07:24,717 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-5) MSC000001: Failed to start service jboss.infinispan.clustered.default: org.jboss.msc.service.StartException
in service jboss.infinispan.clustered.default: Failed to start service
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1904) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_51]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_51]
at java.lang.Thread.run(Thread.java:744) [rt.jar:1.7.0_51]
Caused by: org.infinispan.manager.EmbeddedCacheManagerStartupException: org.infinispan.commons.CacheException: Failed to initialise the Protobuf serialization context
@skoussou
skoussou / gist:fd3bef5d83a64319d671
Created February 19, 2015 16:33
Starting caches -->java.lang.NullPointerException at org.infinispan.query.remote.LifecycleManager.cacheStarting(LifecycleManager.java:106)
16:30:07,438 INFO [org.infinispan.factories.GlobalComponentRegistry] (MSC service thread 1-4) ISPN000128: Infinispan version: Infinispan 'Hoptimus Prime' 7.1.1-SNAPSHOT
16:30:07,473 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-4) MSC000001: Failed to start service jboss.infinispan.clustered.memcachedCache: org.jboss.msc.service.StartEx
ception in service jboss.infinispan.clustered.memcachedCache: Failed to start service
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1904) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_51]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_51]
at java.lang.Thread.run(Thread.java:744) [rt.jar:1.7.0_51]
Caused by: java.lang.NoClassDefFoundError: org/infinispan/objectfilter/ObjectFilter$FilterResult
at org.infinispan.query.remote.client.MarshallerRegistr
@skoussou
skoussou / gist:67d1f4407050a85d24e0
Created February 26, 2015 15:07
Unsupported protocol version 74
15:01:06,580 DEBUG [org.infinispan.server.hotrod.HotRodDecoder] (HotRodServerWorker-8) Exception caught: io.netty.handler.codec.DecoderException: org.infinispan.server.hotrod.HotRo
dException: java.io.IOException: Unsupported protocol version 74
at io.netty.handler.codec.ReplayingDecoder.callDecode(ReplayingDecoder.java:417) [netty-all-4.0.18.Final-redhat-1.jar:4.0.18.Final-redhat-1]
at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:141) [netty-all-4.0.18.Final-redhat-1.jar:4.0.18.Final-redhat-1]
at org.infinispan.server.core.AbstractProtocolDecoder.channelRead(AbstractProtocolDecoder.scala:459) [infinispan-server-core-6.2.0.Final-redhat-4.jar:6.2.0.Final-redhat-4]
at io.netty.channel.DefaultChannelHandlerContext.invokeChannelRead(DefaultChannelHandlerContext.java:341) [netty-all-4.0.18.Final-redhat-1.jar:4.0.18.Final-redhat-1]
at io.netty.channel.DefaultChannelHandlerContext.fireChannelRead(DefaultChannelHandlerContext.java:327) [nett
14:39:42,133 INFO [org.apache.cxf.service.factory.ReflectionServiceFactoryBean] (Worker5_QueryProcessorQueue11) Creating Service {http://teiid.org}teiid from class org.apache.cxf.jaxws.support.DummyImpl
14:39:42,421 INFO [org.apache.cxf.services.AddressingService.AddressingServicePort.ServiceIface] (http-localhost/127.0.0.1:8080-1) Inbound Message
----------------------------
ID: 2
Address: http://localhost:8080/jboss-jaxws-addressing/AddressingService
Encoding: UTF-8
Http-Method: POST
Content-Type: text/xml; charset=UTF-8
Headers: {Accept=[*/*], cache-control=[no-cache], connection=[keep-alive], Content-Length=[567], content-type=[text/xml; charset=UTF-8], host=[localhost:8080], pragma=[no-cache], SOAPAction=[""], user-agent=[Apache CXF 2.7.14.redhat-1]}
Payload: <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tns="http://www.jboss.org/jbossws/ws-extensions/wsaddressing" xmlns:wsa="http://www.w3.org/2005/08/addressing">
[stkousso@stkousso kie-config-cli]$ mvn eclipse:eclipse
[INFO] Scanning for projects...
[WARNING] The POM for com.coderplus.maven.plugins:copy-rename-maven-plugin:jar:1.0 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
[WARNING] Failed to retrieve plugin descriptor for com.coderplus.maven.plugins:copy-rename-maven-plugin:1.0: Plugin com.coderplus.maven.plugins:copy-rename-maven-plugin:1.0 or one of its dependencies could not be resolved: Failed to read artifact descriptor for com.coderplus.maven.plugins:copy-rename-maven-plugin:jar:1.0
[WARNING] The POM for org.codehaus.mojo:animal-sniffer-maven-plugin:jar:1.13 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
[WARNING] Failed to retrieve plugin descriptor for org.codehaus.mojo:animal-sniffer-maven-plugin:1.13: Plugin org.codehaus.mojo:animal-sniffer-maven-plugin:1.13 or one of its dependencies could not be resolved: Failed to read artifact descri