sivasamyk / graylog-plugin-input-jmx

JMX Monitor Input Plugin for Graylog
MIT License
15 stars 4 forks source link

Graylog 6 #7

Open timboss opened 3 months ago

timboss commented 3 months ago

Can this plugin be updated for Graylog 6?

2024-08-03T08:42:29.797+10:00 ERROR [CmdLineTool] Guice error (more detail on log level debug): No implementation for org.graylog.inputs.jmx.JMXInput$Factory was bound. 2024-08-03T08:42:29.801+10:00 ERROR [CmdLineTool] Guice error (more detail on log level debug): org.graylog2.plugin.inputs.MessageInput$Descriptor is abstract, not a concrete class. Unable to create AssistedInject factory. 2024-08-03T08:42:29.803+10:00 ERROR [CmdLineTool] Startup error: com.google.inject.CreationException: Unable to create injector, see the following errors:

1) [Guice/MissingConstructor]: No injectable constructor for type JMXInput$Config.

class JMXInput$Config does not have a @Inject annotated constructor or a no-arg constructor.

Requested by: 1 : JMXInput$Config.class(JMXInput.java:52) while locating JMXInput$Config at JMXInput$Factory.getConfig(JMXInput.java:1)

Learn more: https://github.com/google/guice/wiki/MISSING_CONSTRUCTOR

2) [Guice/MissingImplementation]: No implementation for JMXInput$Factory was bound.

Requested by: 1 : Graylog2Module.installInput(Graylog2Module.java:236) _ installed by: PluginBindings -> JMXInputPluginModule

Learn more: https://github.com/google/guice/wiki/MISSING_IMPLEMENTATION

3) MessageInput$Descriptor is abstract, not a concrete class. Unable to create AssistedInject factory. while locating MessageInput$Descriptor at MessageInput$Factory.getDescriptor(MessageInput.java:1)

3 errors

====================== Full classname legend:

Graylog2Module: "org.graylog2.plugin.inject.Graylog2Module" JMXInput$Config: "org.graylog.inputs.jmx.JMXInput$Config" JMXInput$Factory: "org.graylog.inputs.jmx.JMXInput$Factory" JMXInputPluginModule: "org.graylog.inputs.jmx.JMXInputPluginModule" MessageInput$Descriptor: "org.graylog2.plugin.inputs.MessageInput$Descriptor" MessageInput$Factory: "org.graylog2.plugin.inputs.MessageInput$Factory" PluginBindings: "org.graylog2.shared.bindings.PluginBindings"

End of classname legend:

    at com.google.inject.internal.Errors.throwCreationExceptionIfErrorsExist(Errors.java:589) ~[graylog.jar:?]
    at com.google.inject.internal.InternalInjectorCreator.initializeStatically(InternalInjectorCreator.java:163) ~[graylog.jar:?]
    at org.graylog2.shared.bindings.GuiceInjectorHolder.createInjector(GuiceInjectorHolder.java:34) ~[graylog.jar:?]
    at org.graylog2.bootstrap.CmdLineTool.setupInjector(CmdLineTool.java:530) ~[graylog.jar:?]
    at org.graylog2.bootstrap.CmdLineTool.doRun(CmdLineTool.java:317) ~[graylog.jar:?]
    at org.graylog2.bootstrap.CmdLineTool.run(CmdLineTool.java:267) [graylog.jar:?]
    at org.graylog2.bootstrap.Main.main(Main.java:55) [graylog.jar:?]

2024-08-03T08:42:43.424+10:00 INFO [ImmutableFeatureFlagsCollector] Following feature flags are used: {default properties file=[frontend_hotkeys=on, field_types_management=on, cloud_inputs=on, data_tiering_cloud=off, scripting_api_preview=on, composable_index_templates=off, search_filter=on, preflight_web=on, data_node_migration=off, instant_archiving=off]} 2024-08-03T08:42:44.989+10:00 ERROR [CmdLineTool] Startup error: java.util.ServiceConfigurationError: org.graylog2.plugin.Plugin: Error accessing configuration file at java.base/java.util.ServiceLoader.fail(Unknown Source) ~[?:?] at java.base/java.util.ServiceLoader$LazyClassPathLookupIterator.parse(Unknown Source) ~[?:?] at java.base/java.util.ServiceLoader$LazyClassPathLookupIterator.nextProviderClass(Unknown Source) ~[?:?] at java.base/java.util.ServiceLoader$LazyClassPathLookupIterator.hasNextService(Unknown Source) ~[?:?] at java.base/java.util.ServiceLoader$LazyClassPathLookupIterator.hasNext(Unknown Source) ~[?:?] at java.base/java.util.ServiceLoader$2.hasNext(Unknown Source) ~[?:?] at java.base/java.util.ServiceLoader$3.hasNext(Unknown Source) ~[?:?] at com.google.common.collect.ImmutableCollection$Builder.addAll(ImmutableCollection.java:494) ~[graylog.jar:?] at com.google.common.collect.ImmutableSet$Builder.addAll(ImmutableSet.java:552) ~[graylog.jar:?] at com.google.common.collect.ImmutableSet.copyOf(ImmutableSet.java:243) ~[graylog.jar:?] at com.google.common.collect.ImmutableSet.copyOf(ImmutableSet.java:225) ~[graylog.jar:?] at org.graylog2.shared.plugins.PluginLoader.loadJarPlugins(PluginLoader.java:80) ~[graylog.jar:?] at org.graylog2.shared.plugins.PluginLoader.loadPlugins(PluginLoader.java:70) ~[graylog.jar:?] at org.graylog2.bootstrap.CmdLineTool.loadPlugins(CmdLineTool.java:445) ~[graylog.jar:?] at org.graylog2.bootstrap.CmdLineTool.doRun(CmdLineTool.java:297) ~[graylog.jar:?] at org.graylog2.bootstrap.CmdLineTool.run(CmdLineTool.java:267) [graylog.jar:?] at org.graylog2.bootstrap.Main.main(Main.java:55) [graylog.jar:?] Caused by: java.nio.file.NoSuchFileException: /usr/share/graylog-server/plugin/graylog-plugin-input-jmx-1.0.2-SNAPSHOT.jar at java.base/sun.nio.fs.UnixException.translateToIOException(Unknown Source) ~[?:?] at java.base/sun.nio.fs.UnixException.rethrowAsIOException(Unknown Source) ~[?:?] at java.base/sun.nio.fs.UnixException.rethrowAsIOException(Unknown Source) ~[?:?] at java.base/sun.nio.fs.UnixFileAttributeViews$Basic.readAttributes(Unknown Source) ~[?:?] at java.base/sun.nio.fs.UnixFileSystemProvider.readAttributes(Unknown Source) ~[?:?] at java.base/sun.nio.fs.LinuxFileSystemProvider.readAttributes(Unknown Source) ~[?:?] at java.base/java.nio.file.Files.readAttributes(Unknown Source) ~[?:?] at java.base/java.util.zip.ZipFile$Source.get(Unknown Source) ~[?:?] at java.base/java.util.zip.ZipFile$CleanableResource.(Unknown Source) ~[?:?] at java.base/java.util.zip.ZipFile.(Unknown Source) ~[?:?] at java.base/java.util.zip.ZipFile.(Unknown Source) ~[?:?] at java.base/java.util.jar.JarFile.(Unknown Source) ~[?:?] at java.base/sun.net.www.protocol.jar.URLJarFile.(Unknown Source) ~[?:?] at java.base/sun.net.www.protocol.jar.URLJarFile.getJarFile(Unknown Source) ~[?:?] at java.base/sun.net.www.protocol.jar.JarFileFactory.get(Unknown Source) ~[?:?] at java.base/sun.net.www.protocol.jar.JarFileFactory.getOrCreate(Unknown Source) ~[?:?] at java.base/sun.net.www.protocol.jar.JarURLConnection.connect(Unknown Source) ~[?:?] at java.base/sun.net.www.protocol.jar.JarURLConnection.getInputStream(Unknown Source) ~[?:?] ... 16 more