Provider org.apache.logging.log4j.core.impl.Log4jProvider not a subtype

Hi, when i use graylog-project CLI, there are some exception. could you help me?

objc[1306]: Class JavaLaunchHelper is implemented in both /Library/Java/JavaVirtualMachines/jdk1.8.0_112.jdk/Contents/Home/bin/java (0x10b22f4c0) and /Library/Java/JavaVirtualMachines/jdk1.8.0_112.jdk/Contents/Home/jre/lib/libinstrument.dylib (0x10b2bb4e0). One of the two will be used. Which one is undefined.
SnapShooter listening on port 51681
Exception in thread "main" java.util.ServiceConfigurationError: org.apache.logging.log4j.spi.Provider: Provider org.apache.logging.log4j.core.impl.Log4jProvider not a subtype
	at java.util.ServiceLoader.fail(ServiceLoader.java:239)
	at java.util.ServiceLoader.access$300(ServiceLoader.java:185)
	at java.util.ServiceLoader$LazyIterator.nextService(ServiceLoader.java:376)
	at java.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:404)
	at java.util.ServiceLoader$1.next(ServiceLoader.java:480)
	at org.apache.logging.log4j.util.ProviderUtil.loadProviders(ProviderUtil.java:101)
	at org.apache.logging.log4j.util.ProviderUtil.<init>(ProviderUtil.java:67)
	at org.apache.logging.log4j.util.ProviderUtil.lazyInit(ProviderUtil.java:142)
	at org.apache.logging.log4j.util.ProviderUtil.hasProviders(ProviderUtil.java:126)
	at org.apache.logging.log4j.LogManager.<clinit>(LogManager.java:89)
	at org.apache.logging.log4j.spi.AbstractLoggerAdapter.getContext(AbstractLoggerAdapter.java:122)
	at org.apache.logging.slf4j.Log4jLoggerFactory.getContext(Log4jLoggerFactory.java:43)
	at org.apache.logging.log4j.spi.AbstractLoggerAdapter.getLogger(AbstractLoggerAdapter.java:46)
	at org.apache.logging.slf4j.Log4jLoggerFactory.getLogger(Log4jLoggerFactory.java:29)
	at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:358)
	at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:383)
	at org.graylog2.bootstrap.CmdLineTool.<clinit>(CmdLineTool.java:88)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
	at com.github.rvesse.airline.parser.ParserUtil.createInstance(ParserUtil.java:39)
	at com.github.rvesse.airline.DefaultCommandFactory.createInstance(DefaultCommandFactory.java:25)
	at com.github.rvesse.airline.parser.ParserUtil.createInstance(ParserUtil.java:94)
	at com.github.rvesse.airline.parser.ParseResult.getCommand(ParseResult.java:114)
	at com.github.rvesse.airline.parser.command.CliParser.parse(CliParser.java:54)
	at com.github.rvesse.airline.Cli.parse(Cli.java:107)
	at com.github.rvesse.airline.Cli.parse(Cli.java:93)
	at org.graylog2.bootstrap.Main.main(Main.java:43)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at com.intellij.uiDesigner.snapShooter.SnapShooter.main(SnapShooter.java:59)

Process finished with exit code 1

What’s the exact command you’re running?
What does your development setup look like?

I follow the step of the graylog-project CLI step by step. I found this a bug. When I change the <log4j.version>2.9.1 </log4j.version> to <log4j.version>2.9.0</log4j.version>,it work。But It still have some exception.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.