org.picocontainer.PicoLifecycleException: PicoLifecycleException: method 'public void org.sonar.server.platform.DefaultServerFileSystem.start()', instance 'org.sonar.server.platform.DefaultServerFileSystem@6ac615, java.lang.RuntimeException: wrapper

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • SonarQube Users (archive) - Failed to start sonar
    via by Unknown author,
  • Error when delete repository
    via GitHub by losper
    ,
  • I've downloaded and unpacked Sonar 2.6, set up a database and started it using the StartSonar.bat file. Everything ran as expected so I stopped the server and installed the NT service. The service starts but Sonar is left in a non-working state the log file includes messages and stack trace shown below. I've tried setting access permissions to the deploy folder but didn't have any luck making the service delete / write the required files. I suspect write permissions are the problem though as I notice that when I start the server using the StartSonar.bat file again numerous files and folders are created under the deploy folder the service is having trouble with. STATUS | wrapper | 2011/03/11 08:42:17 | Sonar installed. STATUS | wrapper | 2011/03/11 08:44:46 | --> Wrapper Started as Service STATUS | wrapper | 2011/03/11 08:44:46 | Java Service Wrapper Community Edition 3.3.0 STATUS | wrapper | 2011/03/11 08:44:46 | Copyright (C) 1999-2008 Tanuki Software, Inc. All Rights Reserved. STATUS | wrapper | 2011/03/11 08:44:46 | http://wrapper.tanukisoftware.org STATUS | wrapper | 2011/03/11 08:44:46 | STATUS | wrapper | 2011/03/11 08:44:46 | Launching a JVM... INFO | jvm 1 | 2011/03/11 08:44:47 | WrapperManager: Initializing... 2011.03.11 08:44:48 INFO org.sonar.INFO JDBC datasource bound to JNDI, name=jdbc/sonar 2011.03.11 08:44:48 INFO org.sonar.INFO Database dialect class org.sonar.jpa.dialect.MySql 2011.03.11 08:44:49 INFO org.sonar.INFO Start services... 2011.03.11 08:44:49 INFO org.sonar.INFO Sonar home: D:\Development\integration\sonar-2.6 2011.03.11 08:44:49 INFO org.sonar.INFO Deploy dir: D:\Development\integration\sonar-2.6\war\sonar-server\deploy 2011.03.11 08:44:49 ERROR org.mortbay.log Failed startup of context org.mortbay.jetty.webapp.WebAppContext@ebf3f0{/,file:/D:/Development/integration/sonar-2.6/war/sonar-server} org.picocontainer.PicoLifecycleException: PicoLifecycleException: method 'public void org.sonar.server.platform.DefaultServerFileSystem.start()', instance 'org.sonar.server.platform.DefaultServerFileSystem@15c6c8d, java.lang.RuntimeException: wrapper at org.picocontainer.monitors.NullComponentMonitor.lifecycleInvocationFailed(NullComponentMonitor.java:77) [na:na] at org.picocontainer.lifecycle.ReflectionLifecycleStrategy.monitorAndThrowReflectionLifecycleException(ReflectionLifecycleStrategy.java:132) [na:na] at org.picocontainer.lifecycle.ReflectionLifecycleStrategy.invokeMethod(ReflectionLifecycleStrategy.java:115) [na:na] at org.picocontainer.lifecycle.ReflectionLifecycleStrategy.start(ReflectionLifecycleStrategy.java:89) [na:na] at org.picocontainer.injectors.AbstractInjectionFactory$LifecycleAdapter.start(AbstractInjectionFactory.java:84) [na:na] at org.picocontainer.behaviors.AbstractBehavior.start(AbstractBehavior.java:169) [na:na] at org.picocontainer.behaviors.Stored$RealComponentLifecycle.start(Stored.java:132) [na:na] at org.picocontainer.behaviors.Stored.start(Stored.java:110) [na:na] at org.picocontainer.DefaultPicoContainer.potentiallyStartAdapter(DefaultPicoContainer.java:996) [na:na] at org.picocontainer.DefaultPicoContainer.startAdapters(DefaultPicoContainer.java:989) [na:na] at org.picocontainer.DefaultPicoContainer.start(DefaultPicoContainer.java:746) [na:na] at org.sonar.server.platform.Platform.startCoreComponents(Platform.java:141) [na:na] at org.sonar.server.platform.Platform.start(Platform.java:100) [na:na] at org.sonar.server.platform.PlatformLifecycleListener.contextInitialized(PlatformLifecycleListener.java:37) [na:na] at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:548) [jetty-6.1.24.jar:6.1.24] at org.mortbay.jetty.servlet.Context.startContext(Context.java:136) [jetty-6.1.24.jar:6.1.24] at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1250) [jetty-6.1.24.jar:6.1.24] at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517) [jetty-6.1.24.jar:6.1.24] at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:467) [jetty-6.1.24.jar:6.1.24] at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) [jetty-util-6.1.24.jar:6.1.24] at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130) [jetty-6.1.24.jar:6.1.24] at org.mortbay.jetty.Server.doStart(Server.java:224) [jetty-6.1.24.jar:6.1.24] at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) [jetty-util-6.1.24.jar:6.1.24] at org.sonar.application.JettyEmbedder.start(JettyEmbedder.java:80) [sonar-application-2.6.jar:na] at org.sonar.application.StartServer.main(StartServer.java:48) [sonar-application-2.6.jar:na] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [na:1.6.0_23] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) [na:1.6.0_23] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) [na:1.6.0_23] at java.lang.reflect.Method.invoke(Unknown Source) [na:1.6.0_23] at org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:237) [wrapper.jar:3.3.0] at java.lang.Thread.run(Unknown Source) [na:1.6.0_23] Caused by: java.lang.RuntimeException: wrapper at org.picocontainer.lifecycle.ReflectionLifecycleStrategy.monitorAndThrowReflectionLifecycleException(ReflectionLifecycleStrategy.java:130) [na:na] ... 29 common frames omitted Caused by: org.sonar.server.platform.ServerStartException: The following directory can not be created: D:\Development\integration\sonar-2.6\war\sonar-server\deploy at org.sonar.server.platform.DefaultServerFileSystem.start(DefaultServerFileSystem.java:82) [na:na] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [na:1.6.0_23] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) [na:1.6.0_23] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) [na:1.6.0_23] at java.lang.reflect.Method.invoke(Unknown Source) [na:1.6.0_23] at org.picocontainer.lifecycle.ReflectionLifecycleStrategy.invokeMethod(ReflectionLifecycleStrategy.java:110) [na:na] ... 28 common frames omitted Caused by: java.io.IOException: Unable to delete directory D:\Development\integration\sonar-2.6\war\sonar-server\deploy\plugins. at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:1206) [commons-io-2.0.1.jar:2.0.1] at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:1634) [commons-io-2.0.1.jar:2.0.1] at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1268) [commons-io-2.0.1.jar:2.0.1] at org.sonar.server.platform.DefaultServerFileSystem.start(DefaultServerFileSystem.java:79) [na:na] ... 33 common frames omitted 2011.03.11 08:44:49 INFO org.sonar.INFO Sonar started: http://0.0.0.0:9000/
    via by Graham Smith,
  • See for instance https://jira-bamboo.internal.atlassian.com/browse/JIRAMASTER-LDAPAD-JOB1-1200/log The build appears to complete normally, however it is hung and requires manual kill: {noformat} build 11-Dec-2013 22:33:00 [INFO] ------------------------------------------------------------------------ build 11-Dec-2013 22:33:00 [INFO] BUILD SUCCESSFUL build 11-Dec-2013 22:33:00 [INFO] ------------------------------------------------------------------------ build 11-Dec-2013 22:33:00 [INFO] Total time: 19 minutes 18 seconds build 11-Dec-2013 22:33:00 [INFO] Finished at: Wed Dec 11 22:33:00 GMT 2013 build 11-Dec-2013 22:33:00 [INFO] Final Memory: 84M/200M build 11-Dec-2013 22:33:00 [INFO] ------------------------------------------------------------------------ command 15-Dec-2013 22:47:29 Request to stop 'JIRAMASTER-LDAPAD-JOB1-1200' received from jhazelwood {noformat} Bamboo's error viewer shows the clue to the underlying problem https://jira-bamboo.internal.atlassian.com/admin/viewError.action?buildKey=JIRAMASTER-LDAPAD-JOB1&error=161 {noformat} java.io.IOException: Unable to delete file: C:\Users\Administrator\bamboo-agent-home\xml-data\build-dir\JIRAMASTER-LDAPAD-JOB1\jira-distribution\tpm-standalone\spm\target\atlassian-jira-6.2-SNAPSHOT-standalone\logs\manager.2013-12-12.log at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:2279) at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1653) at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:1535) at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:2270) at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1653) at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:1535) at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:2270) at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1653) at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:1535) at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:2270) at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1653) at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:1535) at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:2270) at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1653) at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:1535) at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:2270) at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1653) at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:1535) at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:2270) at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1653) at com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask.cleanWorkingDirectory(ExecuteBuildTask.java:129) at com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask.call(ExecuteBuildTask.java:98) at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:181) at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:101) at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:108) at com.atlassian.bamboo.build.pipeline.concurrent.NamedThreadFactory$2.run(NamedThreadFactory.java:55) at java.lang.Thread.run(Thread.java:662) {noformat} Observed in 5.3-m2
    via by Mark Lassau [Atlassian],
  • See for instance https://jira-bamboo.internal.atlassian.com/browse/JIRAMASTER-LDAPAD-JOB1-1200/log The build appears to complete normally, however it is hung and requires manual kill: {noformat} build 11-Dec-2013 22:33:00 [INFO] ------------------------------------------------------------------------ build 11-Dec-2013 22:33:00 [INFO] BUILD SUCCESSFUL build 11-Dec-2013 22:33:00 [INFO] ------------------------------------------------------------------------ build 11-Dec-2013 22:33:00 [INFO] Total time: 19 minutes 18 seconds build 11-Dec-2013 22:33:00 [INFO] Finished at: Wed Dec 11 22:33:00 GMT 2013 build 11-Dec-2013 22:33:00 [INFO] Final Memory: 84M/200M build 11-Dec-2013 22:33:00 [INFO] ------------------------------------------------------------------------ command 15-Dec-2013 22:47:29 Request to stop 'JIRAMASTER-LDAPAD-JOB1-1200' received from jhazelwood {noformat} Bamboo's error viewer shows the clue to the underlying problem https://jira-bamboo.internal.atlassian.com/admin/viewError.action?buildKey=JIRAMASTER-LDAPAD-JOB1&error=161 {noformat} java.io.IOException: Unable to delete file: C:\Users\Administrator\bamboo-agent-home\xml-data\build-dir\JIRAMASTER-LDAPAD-JOB1\jira-distribution\tpm-standalone\spm\target\atlassian-jira-6.2-SNAPSHOT-standalone\logs\manager.2013-12-12.log at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:2279) at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1653) at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:1535) at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:2270) at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1653) at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:1535) at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:2270) at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1653) at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:1535) at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:2270) at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1653) at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:1535) at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:2270) at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1653) at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:1535) at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:2270) at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1653) at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:1535) at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:2270) at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1653) at com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask.cleanWorkingDirectory(ExecuteBuildTask.java:129) at com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask.call(ExecuteBuildTask.java:98) at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:181) at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:101) at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:108) at com.atlassian.bamboo.build.pipeline.concurrent.NamedThreadFactory$2.run(NamedThreadFactory.java:55) at java.lang.Thread.run(Thread.java:662) {noformat} Observed in 5.3-m2
    via by Mark Lassau [Atlassian],
    • org.picocontainer.PicoLifecycleException: PicoLifecycleException: method 'public void org.sonar.server.platform.DefaultServerFileSystem.start()', instance 'org.sonar.server.platform.DefaultServerFileSystem@6ac615, java.lang.RuntimeException: wrapper at org.picocontainer.monitors.NullComponentMonitor.lifecycleInvocationFailed(NullComponentMonitor.java:77)[na:na] at org.picocontainer.lifecycle.ReflectionLifecycleStrategy.monitorAndThrowReflectionLifecycleException(ReflectionLifecycleStrategy.java:132)[na:na] at org.picocontainer.lifecycle.ReflectionLifecycleStrategy.invokeMethod(ReflectionLifecycleStrategy.java:115)[na:na] at org.picocontainer.lifecycle.ReflectionLifecycleStrategy.start(ReflectionLifecycleStrategy.java:89)[na:na] at org.picocontainer.injectors.AbstractInjectionFactory$LifecycleAdapter.start(AbstractInjectionFactory.java:84)[na:na] at org.picocontainer.behaviors.AbstractBehavior.start(AbstractBehavior.java:169)[na:na] at org.picocontainer.behaviors.Stored$RealComponentLifecycle.start(Stored.java:132)[na:na] at org.picocontainer.behaviors.Stored.start(Stored.java:110)[na:na] at org.picocontainer.DefaultPicoContainer.potentiallyStartAdapter(DefaultPicoContainer.java:996)[na:na] at org.picocontainer.DefaultPicoContainer.startAdapters(DefaultPicoContainer.java:989)[na:na] at org.picocontainer.DefaultPicoContainer.start(DefaultPicoContainer.java:746)[na:na] at org.sonar.server.platform.Platform.startCoreComponents(Platform.java:141)[na:na] at org.sonar.server.platform.Platform.start(Platform.java:100)[na:na] at org.sonar.server.platform.PlatformLifecycleListener.contextInitialized(PlatformLifecycleListener.java:37)[na:na] at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:548)[jetty-6.1.24.jar:6.1.24] at org.mortbay.jetty.servlet.Context.startContext(Context.java:136)[jetty-6.1.24.jar:6.1.24] at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1250)[jetty-6.1.24.jar:6.1.24] at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517)[jetty-6.1.24.jar:6.1.24] at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:467)[jetty-6.1.24.jar:6.1.24] at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)[jetty-util-6.1.24.jar:6.1.24] at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)[jetty-6.1.24.jar:6.1.24] at org.mortbay.jetty.Server.doStart(Server.java:224)[jetty-6.1.24.jar:6.1.24] at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)[jetty-util-6.1.24.jar:6.1.24] at org.sonar.application.JettyEmbedder.start(JettyEmbedder.java:80)[sonar-application-2.6.jar:na] at org.sonar.application.StartServer.main(StartServer.java:48)[sonar-application-2.6.jar:na] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[na:1.6.0_16] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)[na:1.6.0_16] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)[na:1.6.0_16] at java.lang.reflect.Method.invoke(Unknown Source)[na:1.6.0_16] at org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:237)[wrapper.jar:3.3.0] at java.lang.Thread.run(Unknown Source)[na:1.6.0_16] Caused by: java.lang.RuntimeException: wrapper at org.picocontainer.lifecycle.ReflectionLifecycleStrategy.monitorAndThrowReflectionLifecycleException(ReflectionLifecycleStrategy.java:130)[na:na] ... 29 more Caused by: org.sonar.server.platform.ServerStartException: The following directory can not be created: C:\sonar-2.6\war\sonar-server\deploy at org.sonar.server.platform.DefaultServerFileSystem.start(DefaultServerFileSystem.java:82)[na:na] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[na:1.6.0_16] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)[na:1.6.0_16] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)[na:1.6.0_16] at java.lang.reflect.Method.invoke(Unknown Source)[na:1.6.0_16] at org.picocontainer.lifecycle.ReflectionLifecycleStrategy.invokeMethod(ReflectionLifecycleStrategy.java:110)[na:na] ... 28 more Caused by: java.io.IOException: Unable to delete file: C:\sonar-2.6\war\sonar-server\deploy\plugins\surefire\sonar-surefire-plugin-2.6.jar at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:1643)[commons-io-2.0.1.jar:2.0.1] at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1268)[commons-io-2.0.1.jar:2.0.1] at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:1200)[commons-io-2.0.1.jar:2.0.1] at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:1634)[commons-io-2.0.1.jar:2.0.1] at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1268)[commons-io-2.0.1.jar:2.0.1] at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:1200)[commons-io-2.0.1.jar:2.0.1] at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:1634)[commons-io-2.0.1.jar:2.0.1] at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1268)[commons-io-2.0.1.jar:2.0.1] at org.sonar.server.platform.DefaultServerFileSystem.start(DefaultServerFileSystem.java:79)[na:na]

    Users with the same issue

    kid
    kid17 times, last one,
    jf-ast
    jf-ast1 times, last one,
    pulse00
    pulse0012 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    2 more bugmates