Error in plugins sonia.scm.statistic with SCM-Manager 1.54

Issue #945 new
firmansyah
created an issue

Please help for the following error:

Aug 22, 2017 4:25:20 PM org.apache.catalina.core.StandardContext listenerStart SEVERE: Exception sending context initialized event to listener instance of class sonia.scm.boot.BootstrapListener com.google.inject.ProvisionException: Guice provision errors:

1) Tried proxying sonia.scm.repository.api.RepositoryServiceFactory to support a circular dependency, but it is not an interface. at sonia.scm.ScmServletModule.configureServlets(ScmServletModule.java:367) while locating sonia.scm.repository.api.RepositoryServiceFactory for parameter 2 at sonia.scm.notify.FreemarkerContentBuilder.<init>(FreemarkerContentBuilder.java:96) while locating sonia.scm.notify.FreemarkerContentBuilder while locating sonia.scm.notify.ContentBuilder for parameter 0 at sonia.scm.notify.DefaultNotifyHandlerFactory.<init>(DefaultNotifyHandlerFactory.java:66) at sonia.scm.notify.DefaultNotifyHandlerFactory.class(DefaultNotifyHandlerFactory.java:66) while locating sonia.scm.notify.DefaultNotifyHandlerFactory while locating sonia.scm.notify.NotifyHandlerFactory for parameter 1 at sonia.scm.notify.NotifyRepositoryHook.<init>(NotifyRepositoryHook.java:85) at sonia.scm.notify.NotifyRepositoryHook.class(NotifyRepositoryHook.java:68) while locating sonia.scm.notify.NotifyRepositoryHook while locating sonia.scm.repository.RepositoryHook annotated with @com.google.inject.multibindings.Element(setName=,uniqueId=33) at sonia.scm.plugin.ext.ExtensionBinder.bindMultiExtensionPoint(ExtensionBinder.java:180) while locating java.util.Set<sonia.scm.repository.RepositoryHook> at sonia.scm.repository.DefaultRepositoryManager.class(DefaultRepositoryManager.java:88) while locating sonia.scm.repository.DefaultRepositoryManager while locating sonia.scm.repository.RepositoryManager annotated with interface sonia.scm.Undecorated while locating sonia.scm.repository.RepositoryManagerProvider while locating sonia.scm.repository.RepositoryManager for parameter 2 at sonia.scm.repository.api.RepositoryServiceFactory.<init>(RepositoryServiceFactory.java:168) at sonia.scm.ScmServletModule.configureServlets(ScmServletModule.java:367) while locating sonia.scm.repository.api.RepositoryServiceFactory for parameter 0 at sonia.scm.statistic.StatisticManager.<init>(StatisticManager.java:98) at sonia.scm.plugin.ext.ExtensionBinder.bind(ExtensionBinder.java:133) while locating sonia.scm.statistic.StatisticManager for parameter 0 at sonia.scm.statistic.StatisticListener.<init>(StatisticListener.java:83) while locating sonia.scm.statistic.StatisticListener

1 error at com.google.inject.internal.InjectorImpl$4.get(InjectorImpl.java:987) at com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:1013) at sonia.scm.EagerSingletonModule.initialize(EagerSingletonModule.java:81) at sonia.scm.ScmContextListener.contextInitialized(ScmContextListener.java:145) at sonia.scm.boot.BootstrapListener.initializeContext(BootstrapListener.java:290) at sonia.scm.boot.BootstrapListener.contextInitialized(BootstrapListener.java:163) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4812) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5255) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:725) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:701) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717) at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:585) at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1794) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748)

Aug 22, 2017 4:25:20 PM org.apache.catalina.core.StandardContext startInternal SEVERE: One or more listeners failed to start. Full details will be found in the appropriate container log file Aug 22, 2017 4:25:20 PM org.apache.catalina.core.StandardContext startInternal SEVERE: Context [/scm] startup failed due to previous errors Aug 22, 2017 4:25:20 PM org.apache.catalina.loader.WebappClassLoaderBase checkThreadLocalMapForLeaks SEVERE: The web application [scm] created a ThreadLocal with key of type [com.google.inject.internal.InjectorImpl$1] (value [com.google.inject.internal.InjectorImpl$1@4b5ae945]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@7e2e6b57]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak. Aug 22, 2017 4:25:20 PM org.apache.catalina.startup.HostConfig deployDescriptor INFO: Deployment of configuration descriptor /var/lib/tomcat8-scm/conf/Catalina/localhost/scm.xml has finished in 3,656 ms Aug 22, 2017 4:25:20 PM org.apache.coyote.AbstractProtocol start INFO: Starting ProtocolHandler ["http-nio-8081"] Aug 22, 2017 4:25:20 PM org.apache.catalina.startup.Catalina start INFO: Server startup in 3692 ms

Comments (1)

  1. Gábor Stefanik

    Same issue here. Installing the Statistic plugin made scm-manager not start. Service was restored by deleting the jar file for the plugin from /var/lib/scm/plugins, but obviously that disables the plugin.

  2. Log in to comment