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

Google Groups | Bangar Milind | 4 months ago
  1. 0

    Issue with SONARQube server start with Java Plugin

    Google Groups | 4 months ago | Bangar Milind
    java.lang.IllegalStateException: Cannot stop. Current container state was: CONSTRUCTED
  2. 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
  3. 0

    abstract Stepdef classes causes a crash during initialization

    GitHub | 5 years ago | avh4
    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

    I was integrating the Sonar ANT task into my build process. Within my overall project, I have sub modules (Jar level), each of which I have been loading into Sonar as a separate Sonar project. When iterating within ant to execute the sonar task via a subant call, I hit the following exception after about 6 or 7 modules, which appears not to be the original cause. Adjusting my process to execute the Sonar ant task for each of my modules as a separate Exec task to run a standalone ant process for just that module and I can successfully execute across my whole project. It seems there is some type of resource usage which is building up from task to task when run within single ant process which eventually would cause the failure. Here's the error, prior to this within the ant run the Sonar ant task executed successfully 6 or 7 times. {noformat} sonar: [delete] Deleting directory [mkdir] Created dir: [sonar:sonar] Apache Ant version 1.8.0 compiled on February 1 2010 [sonar:sonar] Sonar Ant Task version: 1.0 [sonar:sonar] Loaded from: file: [sonar:sonar] Sonar work directory: [sonar:sonar] Sonar server: [sonar:sonar] Sonar version: 2.7 [sonar:sonar] [INFO] Database dialect class org.sonar.jpa.dialect.MySql [sonar:sonar] [INFO] Execution environment: Ant Apache Ant version 1.8.0 compiled on February 1 2010 [sonar:sonar] [INFO] ------------- Analyzing XXX BUILD FAILED build.xml:45: The following error occurred while executing this line: build-module.xml:215: 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.ant.Launcher.executeBatch(Launcher.java:121) at org.sonar.ant.Launcher.execute(Launcher.java:60) 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.sonar.ant.SonarTask.delegateExecution(SonarTask.java:167) at org.sonar.ant.SonarTask.execute(SonarTask.java:151) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291) at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) at org.apache.tools.ant.Task.perform(Task.java:348) at org.apache.tools.ant.Target.execute(Target.java:390) at org.apache.tools.ant.Target.performTasks(Target.java:411) at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1360) at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38) at org.apache.tools.ant.Project.executeTargets(Project.java:1212) at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:441) at org.apache.tools.ant.taskdefs.SubAnt.execute(SubAnt.java:302) at org.apache.tools.ant.taskdefs.SubAnt.execute(SubAnt.java:221) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291) at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) at org.apache.tools.ant.Task.perform(Task.java:348) at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68) at net.sf.antcontrib.logic.IfTask.execute(IfTask.java:197) 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.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) at org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:154) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291) at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) at org.apache.tools.ant.Task.perform(Task.java:348) at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291) at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) at org.apache.tools.ant.Task.perform(Task.java:348) at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:398) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291) at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) at org.apache.tools.ant.Task.perform(Task.java:348) at org.apache.tools.ant.Target.execute(Target.java:390) at org.apache.tools.ant.Target.performTasks(Target.java:411) at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1360) at org.apache.tools.ant.Project.executeTarget(Project.java:1329) at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) at org.apache.tools.ant.Project.executeTargets(Project.java:1212) at org.apache.tools.ant.Main.runBuild(Main.java:801) at org.apache.tools.ant.Main.startAnt(Main.java:218) at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280) at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109) {noformat}

    SonarSource JIRA | 6 years ago | Daniel Holmes
    java.lang.IllegalStateException: Cannot stop. Current container state was: CONSTRUCTED
  6. 0

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

    gradle.org | 1 year ago
    java.lang.IllegalStateException: Cannot stop. Current container state was: CONSTRUCTED

    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