milleruntime opened a new issue #1978:
URL: https://github.com/apache/accumulo/issues/1978
**Describe the bug**
DefaultContextClassLoaderFactory fails to load when configured for the
"general.context.class.loader.factory" property.
**Versions (OS, Maven, Java, and others, as appropriate):**
- Affected version(s) of this project: 2.1
**To Reproduce**
Steps to reproduce the behavior (or a link to an example repository that
reproduces the problem):
1. Configure the property:
general.context.class.loader.factory=org.apache.accumulo.core.classloader.DefaultContextClassLoaderFactory
2. Start up accumulo
3. Tablet server will start up then die with the following error
<pre>
2021-03-26T17:48:14,259 [classloader.ClassLoaderUtil] INFO : Creating
org.apache.accumulo.core.spi.common.ContextClassLoaderFactory:
org.apache.accumulo.core.classloader.DefaultContextClassLoaderFactory
2021-03-26T17:48:14,259 [start.Main] ERROR: Thread 'tserver' died.
java.lang.IllegalStateException: Unable to load and initialize class:
org.apache.accumulo.core.classloader.DefaultContextClassLoaderFactory
at
org.apache.accumulo.core.classloader.ClassLoaderUtil.initContextFactory(ClassLoaderUtil.java:55)
~[accumulo-core-2.1.0-SNAPSHOT.jar:2.1.0-SNAPSHOT]
at
org.apache.accumulo.server.AbstractServer.<init>(AbstractServer.java:53)
~[accumulo-server-base-2.1.0-SNAPSHOT.jar:2.1.0-SNAPSHOT]
at
org.apache.accumulo.tserver.TabletServer.<init>(TabletServer.java:239)
~[accumulo-tserver-2.1.0-SNAPSHOT.jar:2.1.0-SNAPSHOT]
at
org.apache.accumulo.tserver.TabletServer.main(TabletServer.java:233)
~[accumulo-tserver-2.1.0-SNAPSHOT.jar:2.1.0-SNAPSHOT]
at
org.apache.accumulo.tserver.TServerExecutable.execute(TServerExecutable.java:45)
~[accumulo-tserver-2.1.0-SNAPSHOT.jar:2.1.0-SNAPSHOT]
at
org.apache.accumulo.start.Main.lambda$execKeyword$0(Main.java:126)
~[accumulo-start-2.1.0-SNAPSHOT.jar:2.1.0-SNAPSHOT]
at java.lang.Thread.run(Thread.java:834) [?:?]
Caused by: java.lang.NoSuchMethodException:
org.apache.accumulo.core.classloader.DefaultContextClassLoaderFactory.<init>()
at java.lang.Class.getConstructor0(Class.java:3349) ~[?:?]
at java.lang.Class.getDeclaredConstructor(Class.java:2553) ~[?:?]
at
org.apache.accumulo.core.classloader.ClassLoaderUtil.initContextFactory(ClassLoaderUtil.java:53)
~[accumulo-core-2.1.0-SNAPSHOT.jar:2.1.0-SNAPSHOT]
</pre>
--
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.
For queries about this service, please contact Infrastructure at:
[email protected]