Uploaded image for project: 'Red Hat Data Grid'
  1. Red Hat Data Grid
  2. JDG-1191

config-converter fails with CNFE

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Minor Minor
    • JDG 7.2 ER2
    • JDG 7.2 DR1
    • TestSuite
    • None
    • ER2

      When converting JDG 6.x config using library config-converter.sh and test configs from tools/src/test/resources, it fails with CNFE, cannot find regular JDG classes, e.g.

      jboss-datagrid-7.2.0-library$ ./bin/config-converter.sh 6.4.xml                                                                                                                                                           
      ERROR StatusLogger No log4j2 configuration file found. Using default configuration: logging only errors to the console.
      Warning: element 'replicationQueueScheduledExecutor' has been removed
      Warning: element 'totalOrderExecutor' has been removed
      Exception in thread "main" org.infinispan.commons.CacheConfigurationException: Unable to instantiate class org.infinispan.jmx.PerThreadMBeanServerLookup
              at org.infinispan.commons.util.Util.loadClass(Util.java:116)
              at org.infinispan.commons.util.Util.getInstance(Util.java:286)
              at org.infinispan.tools.config.v6.Parser62.parseGlobalJMXStatistics(Parser62.java:1986)
              at org.infinispan.tools.config.v6.Parser62.parseGlobal(Parser62.java:1562)
              at org.infinispan.tools.config.v6.Parser62.readElement(Parser62.java:119)
              at org.infinispan.configuration.parsing.ParserRegistry.parseElement(ParserRegistry.java:161)
              at org.infinispan.configuration.parsing.ParserRegistry.parse(ParserRegistry.java:140)
              at org.infinispan.configuration.parsing.ParserRegistry.parse(ParserRegistry.java:127)
              at org.infinispan.configuration.parsing.ParserRegistry.parse(ParserRegistry.java:114)
              at org.infinispan.tools.config.ConfigurationConverter.convert(ConfigurationConverter.java:27)
              at org.infinispan.tools.config.ConfigurationConverter.main(ConfigurationConverter.java:56)
      Caused by: java.lang.ClassNotFoundException: org.infinispan.jmx.PerThreadMBeanServerLookup
              at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
              at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
              at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
              at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
              at java.lang.Class.forName0(Native Method)
              at java.lang.Class.forName(Class.java:348)
              at org.infinispan.commons.util.Util.loadClassStrict(Util.java:184)
              at org.infinispan.commons.util.Util.loadClass(Util.java:114)
              ... 10 more
      

      It looks like packing issue as this class is not contained in jar file packed in library zip file.
      Some other classes, e.g. org.infinispan.distribution.groups.KXGrouper, are missing as well.

              remerson@redhat.com Ryan Emerson
              vjuranek@redhat.com Vojtech Juranek
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: