cshannon commented on issue #18:
URL: 
https://github.com/apache/accumulo-classloaders/issues/18#issuecomment-1444590114

   So it looks like we can't use SLF4J because it can't use the service 
provider during VM init. Instead of I will have a PR shortly with a small 
modification to ClusterConfigParser that allows us to write the a file directly 
instead of piping Standard out so we only capture the config lines we want and 
not the rest of System.out in the accumulo-cluster script.
   
   ```
   Error occurred during initialization of VM
   java.util.ServiceConfigurationError: org.slf4j.spi.SLF4JServiceProvider: not 
accessible to unnamed module @6504e3b2 during VM init
        at 
java.util.ServiceLoader.fail([email protected]/ServiceLoader.java:589)
        at 
java.util.ServiceLoader.<init>([email protected]/ServiceLoader.java:517)
        at 
java.util.ServiceLoader.load([email protected]/ServiceLoader.java:1692)
        at org.slf4j.LoggerFactory.findServiceProviders(LoggerFactory.java:102)
        at org.slf4j.LoggerFactory.bind(LoggerFactory.java:147)
        at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:139)
        at org.slf4j.LoggerFactory.getProvider(LoggerFactory.java:422)
        at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:408)
        at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:357)
        at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:383)
        at 
org.apache.accumulo.classloader.vfs.AccumuloVFSClassLoader.<clinit>(AccumuloVFSClassLoader.java:82)
        at 
jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0([email protected]/Native
 Method)
        at 
jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance([email protected]/NativeConstructorAccessorImpl.java:62)
        at 
jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance([email protected]/DelegatingConstructorAccessorImpl.java:45)
        at 
java.lang.reflect.Constructor.newInstance([email protected]/Constructor.java:490)
        at 
java.lang.ClassLoader.initSystemClassLoader([email protected]/ClassLoader.java:1978)
        at java.lang.System.initPhase3([email protected]/System.java:2074)
   ```
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to