You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After dynamically installing a plugin and unstalling it, try to install the plugin again then throws ClassCastException 2024-05-22 16:10:37.191 [ERROR] [io.sermant.core.plugin.service.PluginServiceManager] [initPluginServices:59] [Attach Listener] Error occurs while starting plugin service: class io.sermant.monitor.service.report.MetricServiceImpl java.lang.ClassCastException: io.sermant.monitor.config.MonitorServiceConfig cannot be cast to io.sermant.monitor.config.MonitorServiceConfig at io.sermant.monitor.service.report.MetricServiceImpl.start(MetricServiceImpl.java:45) at io.sermant.core.plugin.service.PluginServiceManager.initPluginServices(PluginServiceManager.java:56) at io.sermant.core.plugin.PluginManager.doInitPlugin(PluginManager.java:203) at io.sermant.core.plugin.PluginManager.executeInit(PluginManager.java:188) at io.sermant.core.plugin.PluginManager.initPlugins(PluginManager.java:175) at io.sermant.core.plugin.PluginManager.install(PluginManager.java:81) at io.sermant.core.command.PluginsInstallCommandExecutor.execute(PluginsInstallCommandExecutor.java:44) at io.sermant.core.command.CommandProcessor.process(CommandProcessor.java:77) 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 io.sermant.premain.AgentLauncher.executeCommand(AgentLauncher.java:153) at io.sermant.premain.AgentLauncher.launchAgent(AgentLauncher.java:93) at io.sermant.premain.AgentLauncher.agentmain(AgentLauncher.java:72) 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 sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:386) at sun.instrument.InstrumentationImpl.loadClassAndCallAgentmain(InstrumentationImpl.java:411)
How can we reproduce it (as minimally and precisely as possible)?
when dynamically install a plugin at the second time, you can reproduce it
Sermant version
1.4.0 / develop branch
The text was updated successfully, but these errors were encountered:
What happened?
After dynamically installing a plugin and unstalling it, try to install the plugin again then throws ClassCastException
2024-05-22 16:10:37.191 [ERROR] [io.sermant.core.plugin.service.PluginServiceManager] [initPluginServices:59] [Attach Listener] Error occurs while starting plugin service: class io.sermant.monitor.service.report.MetricServiceImpl java.lang.ClassCastException: io.sermant.monitor.config.MonitorServiceConfig cannot be cast to io.sermant.monitor.config.MonitorServiceConfig at io.sermant.monitor.service.report.MetricServiceImpl.start(MetricServiceImpl.java:45) at io.sermant.core.plugin.service.PluginServiceManager.initPluginServices(PluginServiceManager.java:56) at io.sermant.core.plugin.PluginManager.doInitPlugin(PluginManager.java:203) at io.sermant.core.plugin.PluginManager.executeInit(PluginManager.java:188) at io.sermant.core.plugin.PluginManager.initPlugins(PluginManager.java:175) at io.sermant.core.plugin.PluginManager.install(PluginManager.java:81) at io.sermant.core.command.PluginsInstallCommandExecutor.execute(PluginsInstallCommandExecutor.java:44) at io.sermant.core.command.CommandProcessor.process(CommandProcessor.java:77) 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 io.sermant.premain.AgentLauncher.executeCommand(AgentLauncher.java:153) at io.sermant.premain.AgentLauncher.launchAgent(AgentLauncher.java:93) at io.sermant.premain.AgentLauncher.agentmain(AgentLauncher.java:72) 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 sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:386) at sun.instrument.InstrumentationImpl.loadClassAndCallAgentmain(InstrumentationImpl.java:411)
How can we reproduce it (as minimally and precisely as possible)?
when dynamically install a plugin at the second time, you can reproduce it
Sermant version
1.4.0 / develop branch
The text was updated successfully, but these errors were encountered: