Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-16976

ClassNotFoundException: org.apache.logging.log4j.jul.LogManager with JMX enabled

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 9.3
    • 9.8
    • None

    Description

      When starting Solr 9.3 with remote JMX enabled, an exception is logged

      java.lang.ClassNotFoundException: org.apache.logging.log4j.jul.LogManager
      at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641)
      at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188)
      at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:520)
      at java.logging/java.util.logging.LogManager$1.run(LogManager.java:239)
      at java.logging/java.util.logging.LogManager$1.run(LogManager.java:223)
      at java.base/java.security.AccessController.doPrivileged(AccessController.java:318)
      at java.logging/java.util.logging.LogManager.<clinit>(LogManager.java:222)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:568)
      at java.management/sun.management.ManagementFactoryHelper$LoggingMXBeanAccess.getMXBeanImplementation(ManagementFactoryHelper.java:243)
      at java.management/sun.management.ManagementFactoryHelper$LoggingMXBeanAccess.<init>(ManagementFactoryHelper.java:259)
      at java.management/sun.management.ManagementFactoryHelper$PlatformLoggingImpl.getInstance(ManagementFactoryHelper.java:339)
      at java.management/sun.management.ManagementFactoryHelper$PlatformLoggingImpl.<clinit>(ManagementFactoryHelper.java:342)
      at java.management/sun.management.ManagementFactoryHelper.getPlatformLoggingMXBean(ManagementFactoryHelper.java:160)
      at java.management/java.lang.management.DefaultPlatformMBeanProvider$9.nameToMBeanMap(DefaultPlatformMBeanProvider.java:378)
      at java.management/java.lang.management.ManagementFactory.lambda$getPlatformMBeanServer$0(ManagementFactory.java:488)
      at java.base/java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:273)
      at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:179)
      at java.base/java.util.HashMap$ValueSpliterator.forEachRemaining(HashMap.java:1779)
      at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
      at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
      at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150)
      at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173)
      at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
      at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:596)
      at java.management/java.lang.management.ManagementFactory.getPlatformMBeanServer(ManagementFactory.java:489)
      at jdk.management.agent/sun.management.jmxremote.ConnectorBootstrap.startRemoteConnectorServer(ConnectorBootstrap.java:476)
      at jdk.management.agent/jdk.internal.agent.Agent.startAgent(Agent.java:447)
      at jdk.management.agent/jdk.internal.agent.Agent.startAgent(Agent.java:599)
      Waiting up to 30 seconds to see Solr running on port 8983
      Started Solr server on port 8983. Happy searching!

      Solr Node (id node1) on port 8983: Started

       

       

      Attachments

        1. use-slf4j-jul-bridge.patch
          4 kB
          Shawn Heisey

        Issue Links

          Activity

            People

              Unassigned Unassigned
              colvinco Colvin Cowie
              Votes:
              1 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 2h 40m
                  2h 40m