java.lang.IllegalStateException: Cannot stop. Current container state was: CONSTRUCTED

Google Groups | Bangar Milind | 8 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Issue with SONARQube server start with Java Plugin

    Google Groups | 8 months ago | Bangar Milind
    java.lang.IllegalStateException: Cannot stop. Current container state was: CONSTRUCTED
  2. 0

    abstract Stepdef classes causes a crash during initialization

    GitHub | 5 years ago | avh4
    java.lang.IllegalStateException: Cannot stop. Current container state was: CONSTRUCTED
  3. 0

    [GRADLE-1625] NoClassDefFound org.jaxen.XPath using Sonar plugin - Gradle Issues

    gradle.org | 2 years ago
    java.lang.IllegalStateException: Cannot stop. Current container state was: CONSTRUCTED
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    [INFO] Sonar branch: [ERROR] Can not stop the container java.lang.IllegalStateException: Cannot stop. Current container state was: CONSTRUCTED at org.picocontainer.lifecycle.DefaultLifecycleState.stopping(DefaultLifecycleState.java:72) [picocontainer-2.7.jar:2.7] at org.picocontainer.DefaultPicoContainer.stop(DefaultPicoContainer.java:657) [picocontainer-2.7.jar:2.7] at org.picocontainer.DefaultPicoContainer.stop(DefaultPicoContainer.java:662) [picocontainer-2.7.jar:2.7] at org.sonar.mojo.MavenExtensionsContainer.stop(MavenExtensionsContainer.java:94) [sonar-core-maven-plugin-20090515152028.jar:na] at org.sonar.mojo.InternalMojo.execute(InternalMojo.java:153) [sonar-core-maven-plugin-20090515152028.jar:na] at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451) [maven-2.0.9-uber.jar:2.0.9] at org.codehaus.mojo.sonar.Bootstraper.executeMojo(Bootstraper.java:82) [sonar-maven-plugin-1.0-beta-1.jar:na] at org.codehaus.mojo.sonar.Bootstraper.start(Bootstraper.java:65) [sonar-maven-plugin-1.0-beta-1.jar:na] at org.codehaus.mojo.sonar.SonarMojo.execute(SonarMojo.java:117) [sonar-maven-plugin-1.0-beta-1.jar:na] at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451) [maven-2.0.9-uber.jar:2.0.9] at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558) [maven-2.0.9-uber.jar:2.0.9] at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:512) [maven-2.0.9-uber.jar:2.0.9] at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:482) [maven-2.0.9-uber.jar:2.0.9] at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330) [maven-2.0.9-uber.jar:2.0.9] at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:227) [maven-2.0.9-uber.jar:2.0.9] at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142) [maven-2.0.9-uber.jar:2.0.9] at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336) [maven-2.0.9-uber.jar:2.0.9] at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129) [maven-2.0.9-uber.jar:2.0.9] at org.apache.maven.cli.MavenCli.main(MavenCli.java:287) [maven-2.0.9-uber.jar:2.0.9] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [na:1.6.0_13] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [na:1.6.0_13] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [na:1.6.0_13] at java.lang.reflect.Method.invoke(Method.java:597) [na:1.6.0_13] at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) [classworlds-1.1.jar:1.1] at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) [classworlds-1.1.jar:1.1] at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) [classworlds-1.1.jar:1.1] at org.codehaus.classworlds.Launcher.main(Launcher.java:375) [classworlds-1.1.jar:1.1] [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Can not execute Sonar Embedded error: Quality profile not found for com.sonarsource.plugins:plsql-sample-simple, language plsql [INFO] ------------------------------------------------------------------------ [INFO] Trace org.apache.maven.lifecycle.LifecycleExecutionException: Can not execute Sonar at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:583) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:512) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:482) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:227) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129) at org.apache.maven.cli.MavenCli.main(MavenCli.java:287) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) Caused by: org.apache.maven.plugin.MojoExecutionException: Can not execute Sonar at org.codehaus.mojo.sonar.Bootstraper.executeMojo(Bootstraper.java:87) at org.codehaus.mojo.sonar.Bootstraper.start(Bootstraper.java:65) at org.codehaus.mojo.sonar.SonarMojo.execute(SonarMojo.java:117) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558) ... 16 more Caused by: java.lang.RuntimeException: Quality profile not found for com.sonarsource.plugins:plsql-sample-simple, language plsql at org.sonar.mojo.QualityProfileProvider.provide(QualityProfileProvider.java:40) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.picocontainer.injectors.MethodInjector.invokeMethod(MethodInjector.java:137) at org.picocontainer.injectors.MethodInjector.access$000(MethodInjector.java:39) at org.picocontainer.injectors.MethodInjector$2.run(MethodInjector.java:123) at org.picocontainer.injectors.AbstractInjector$ThreadLocalCyclicDependencyGuard.observe(AbstractInjector.java:289) at org.picocontainer.injectors.MethodInjector.decorateComponentInstance(MethodInjector.java:130) at org.picocontainer.injectors.CompositeInjector.decorateComponentInstance(CompositeInjector.java:59) at org.picocontainer.injectors.Reinjector.reinject(Reinjector.java:99) at org.picocontainer.injectors.ProviderAdapter.getComponentInstance(ProviderAdapter.java:84) at org.picocontainer.DefaultPicoContainer.getInstance(DefaultPicoContainer.java:573) at org.picocontainer.DefaultPicoContainer.getComponent(DefaultPicoContainer.java:534) at org.picocontainer.DefaultPicoContainer.getComponent(DefaultPicoContainer.java:524) at org.picocontainer.parameters.BasicComponentParameter.resolveInstance(BasicComponentParameter.java:164) at org.picocontainer.parameters.ComponentParameter.resolveInstance(ComponentParameter.java:123) at org.picocontainer.injectors.SingleMemberInjector.getParameter(SingleMemberInjector.java:68) at org.picocontainer.injectors.SingleMemberInjector.getMemberArguments(SingleMemberInjector.java:53) at org.picocontainer.injectors.ConstructorInjector.getMemberArguments(ConstructorInjector.java:240) at org.picocontainer.injectors.ConstructorInjector$1.run(ConstructorInjector.java:199) at org.picocontainer.injectors.AbstractInjector$ThreadLocalCyclicDependencyGuard.observe(AbstractInjector.java:289) at org.picocontainer.injectors.ConstructorInjector.getComponentInstance(ConstructorInjector.java:229) at org.picocontainer.behaviors.AbstractBehavior.getComponentInstance(AbstractBehavior.java:66) at org.picocontainer.behaviors.Stored.getComponentInstance(Stored.java:92) at org.picocontainer.DefaultPicoContainer.getLocalInstance(DefaultPicoContainer.java:499) at org.picocontainer.DefaultPicoContainer.getComponents(DefaultPicoContainer.java:481) at org.sonar.mojo.MavenExtensionsContainer.getMavenCollectors(MavenExtensionsContainer.java:105) at org.sonar.mojo.MavenExtensionsContainer.getMavenPluginHandlers(MavenExtensionsContainer.java:123) at org.sonar.mojo.InternalMojo.executeMojos(InternalMojo.java:212) at org.sonar.mojo.InternalMojo.execute(InternalMojo.java:147) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451) at org.codehaus.mojo.sonar.Bootstraper.executeMojo(Bootstraper.java:82) ... 20 more

    SonarSource JIRA | 8 years ago | Olivier Gaudin
    java.lang.IllegalStateException: Cannot stop. Current container state was: CONSTRUCTED
  6. 0

    {noformat} [ERROR] Failed to execute goal org.codehaus.mojo:sonar-maven-plugin:2.0-beta-2:sonar (default-cli) on project uno: Can not execute Sonar: Cannot stop. Current container state was: CONSTRUCTED -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.codehaus.mojo:sonar-maven-plugin:2.0-beta-2:sonar (default-cli) on project uno: Can not execute Sonar at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:534) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196) at org.apache.maven.cli.MavenCli.main(MavenCli.java:141) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:592) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352) Caused by: org.apache.maven.plugin.MojoExecutionException: Can not execute Sonar at org.codehaus.mojo.sonar.Bootstraper.executeMojo(Bootstraper.java:118) at org.codehaus.mojo.sonar.Bootstraper.start(Bootstraper.java:65) at org.codehaus.mojo.sonar.SonarMojo.execute(SonarMojo.java:90) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:107) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209) ... 19 more Caused by: java.lang.IllegalStateException: Cannot stop. Current container state was: CONSTRUCTED at org.picocontainer.lifecycle.DefaultLifecycleState.stopping(DefaultLifecycleState.java:72) at org.picocontainer.DefaultPicoContainer.stop(DefaultPicoContainer.java:773) at org.picocontainer.DefaultPicoContainer.stop(DefaultPicoContainer.java:778) at org.picocontainer.DefaultPicoContainer.stop(DefaultPicoContainer.java:778) at org.sonar.batch.Module.stop(Module.java:96) at org.sonar.batch.Batch.execute(Batch.java:65) at org.sonar.maven3.SonarMojo.executeBatch(SonarMojo.java:144) at org.sonar.maven3.SonarMojo.execute(SonarMojo.java:135) at org.codehaus.mojo.sonar.Bootstraper.executeMojo(Bootstraper.java:113) ... 23 more {noformat}

    SonarSource JIRA | 6 years ago | Lucien Weller
    org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.codehaus.mojo:sonar-maven-plugin:2.0-beta-2:sonar (default-cli) on project uno: Can not execute Sonar

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalStateException

      Cannot stop. Current container state was: CONSTRUCTED

      at org.picocontainer.lifecycle.DefaultLifecycleState.stopping()
    2. PicoContainer Core
      DefaultLifecycleState.stopping
      1. org.picocontainer.lifecycle.DefaultLifecycleState.stopping(DefaultLifecycleState.java:72)
      1 frame