Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-9380

NoClassDefFoundError : Could not initialize class org.jgroups.conf.XmlConfigurator

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • 12.0.0.Final
    • 9.3.0.Final
    • Clustered Locks
    • None

      hello everybody,

      can someone help me to fix this probleme please.
      I want to use infinispan in my project with spring boot, it works correclty in local .
      but in gitlab ci , the instanciantion of EmbeddedCacheManager doesnt work ,

      this line this.manager = new DefaultCacheManager(ispnCfgFile); genere me this error

      Caused by: org.infinispan.commons.CacheException: Unable to invoke method public void org.infinispan.remoting.transport.jgroups.JGroupsTransport.start() on object of type JGroupsTransport
      at org.infinispan.commons.util.SecurityActions.lambda$invokeAccessibly$0(SecurityActions.java:83)
      at org.infinispan.commons.util.SecurityActions.doPrivileged(SecurityActions.java:71)
      at org.infinispan.commons.util.SecurityActions.invokeAccessibly(SecurityActions.java:76)
      at org.infinispan.commons.util.ReflectionUtil.invokeAccessibly(ReflectionUtil.java:185)
      at org.infinispan.factories.AbstractComponentRegistry$PrioritizedMethod.invoke(AbstractComponentRegistry.java:968)
      at org.infinispan.factories.AbstractComponentRegistry.lambda$invokePrioritizedMethods$6(AbstractComponentRegistry.java:703)
      at org.infinispan.factories.SecurityActions.lambda$run$1(SecurityActions.java:72)
      at org.infinispan.security.Security.doPrivileged(Security.java:44)
      at org.infinispan.factories.SecurityActions.run(SecurityActions.java:71)
      at org.infinispan.factories.AbstractComponentRegistry.invokePrioritizedMethods(AbstractComponentRegistry.java:696)
      at org.infinispan.factories.AbstractComponentRegistry.internalStart(AbstractComponentRegistry.java:689)
      at org.infinispan.factories.AbstractComponentRegistry.start(AbstractComponentRegistry.java:607)
      at org.infinispan.factories.GlobalComponentRegistry.start(GlobalComponentRegistry.java:250)
      ... 57 common frames omitted
      Caused by: java.lang.NoClassDefFoundError: Could not initialize class org.jgroups.conf.XmlConfigurator

      the content of the file ispnCfgFile is :

      <?xml version="1.0" encoding="UTF-8"?>
      <infinispan xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="urn:infinispan:config:9.3 http://infinispan.org/schemas/infinispan-config-9.3.xsd"
      xmlns="urn:infinispan:config:9.3">
      <jgroups>
      <stack-file name="tcpStack" path="${infinispan.configClusterFilePath:ispn/moose-jgroups-tcp.xml}"/>
      </jgroups>
      <cache-container default-cache="moose-data" statistics="true">
      <transport stack="tcpStack" cluster="mooseCluster"/>
      <jmx/>
      <replicated-cache name="moose-data" mode="SYNC" remote-timeout="1000">
      <state-transfer timeout="1000"/>
      <locking acquire-timeout="1000"/>
      <transaction mode="NON_XA" locking="PESSIMISTIC"/>
      </replicated-cache>
      </cache-container>
      </infinispan>

      the dependency that i added in my pom file for to integrate infinispan is :
      dependency>
      <groupId>org.infinispan</groupId>
      <artifactId>infinispan-clustered-lock</artifactId>
      <version>9.3.0.Final</version>
      </dependency>

      thank you very much in advance.

              Unassigned Unassigned
              younesnias Youness Younssi (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: