I have an instance of SonarQube installed on a server of mine, and I am trying to run scans on Atlassian's Bamboo using the Sonar Scanner. When I attempt to run a scan the following error is thrown.
I am using the following version:
Bamboo: v6.6.1
SonarQube: v6.5
SonarScanner: 3.0.3.778
An extra bit of detail is that this error did not start happening for all builds at a specific time. One day this error was only showing up every 3-4 builds, and you could rebuild the same code and it didn't show up. But over a period of two weeks it appeared more and more until now where it will not go away.
build 04-Sep-2018 12:32:16 12:32:16.533 INFO: Load server rules
build 04-Sep-2018 12:32:16 12:32:16.587 DEBUG: GET 200 http://<url>/api/rules/list.protobuf | time=53ms
build 04-Sep-2018 12:32:16 12:32:16.597 INFO: ------------------------------------------------------------------------
build 04-Sep-2018 12:32:16 12:32:16.597 INFO: EXECUTION FAILURE
build 04-Sep-2018 12:32:16 12:32:16.597 INFO: ------------------------------------------------------------------------
build 04-Sep-2018 12:32:16 12:32:16.597 INFO: Total time: 2.399s
build 04-Sep-2018 12:32:16 12:32:16.644 INFO: Final Memory: 46M/211M
build 04-Sep-2018 12:32:16 12:32:16.644 INFO: ------------------------------------------------------------------------
build 04-Sep-2018 12:32:16 12:32:16.647 DEBUG: Execution getVersion
build 04-Sep-2018 12:32:16 12:32:16.647 DEBUG: Execution stop
error 04-Sep-2018 12:32:16 12:32:16.644 ERROR: Error during SonarQube Scanner execution
error 04-Sep-2018 12:32:16 java.lang.IllegalStateException: Unable to load component class org.sonar.scanner.sensor.DefaultSensorStorage
error 04-Sep-2018 12:32:16 at org.sonar.core.platform.ComponentContainer$ExtendedDefaultPicoContainer.getComponent(ComponentContainer.java:71)
error 04-Sep-2018 12:32:16 at org.picocontainer.DefaultPicoContainer.getComponent(DefaultPicoContainer.java:678)
error 04-Sep-2018 12:32:16 at org.sonar.core.platform.ComponentContainer.getComponentByType(ComponentContainer.java:283)
error 04-Sep-2018 12:32:16 at org.sonar.scanner.scan.ModuleScanContainer.doAfterStart(ModuleScanContainer.java:177)
error 04-Sep-2018 12:32:16 at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:144)
error 04-Sep-2018 12:32:16 at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:129)
error 04-Sep-2018 12:32:16 at org.sonar.scanner.scan.ProjectScanContainer.scan(ProjectScanContainer.java:261)
error 04-Sep-2018 12:32:16 at org.sonar.scanner.scan.ProjectScanContainer.scanRecursively(ProjectScanContainer.java:256)
error 04-Sep-2018 12:32:16 at org.sonar.scanner.scan.ProjectScanContainer.doAfterStart(ProjectScanContainer.java:245)
error 04-Sep-2018 12:32:16 at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:144)
error 04-Sep-2018 12:32:16 at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:129)
error 04-Sep-2018 12:32:16 at org.sonar.scanner.task.ScanTask.execute(ScanTask.java:47)
error 04-Sep-2018 12:32:16 at org.sonar.scanner.task.TaskContainer.doAfterStart(TaskContainer.java:84)
error 04-Sep-2018 12:32:16 at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:144)
error 04-Sep-2018 12:32:16 at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:129)
error 04-Sep-2018 12:32:16 at org.sonar.scanner.bootstrap.GlobalContainer.executeTask(GlobalContainer.java:119)
error 04-Sep-2018 12:32:16 at org.sonar.batch.bootstrapper.Batch.executeTask(Batch.java:116)
error 04-Sep-2018 12:32:16 at org.sonarsource.scanner.api.internal.batch.BatchIsolatedLauncher.execute(BatchIsolatedLauncher.java:63)
error 04-Sep-2018 12:32:16 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
error 04-Sep-2018 12:32:16 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
error 04-Sep-2018 12:32:16 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
error 04-Sep-2018 12:32:16 at java.lang.reflect.Method.invoke(Method.java:498)
error 04-Sep-2018 12:32:16 at org.sonarsource.scanner.api.internal.IsolatedLauncherProxy.invoke(IsolatedLauncherProxy.java:60)
error 04-Sep-2018 12:32:16 at com.sun.proxy.$Proxy0.execute(Unknown Source)
error 04-Sep-2018 12:32:16 at org.sonarsource.scanner.api.EmbeddedScanner.doExecute(EmbeddedScanner.java:233)
error 04-Sep-2018 12:32:16 at org.sonarsource.scanner.api.EmbeddedScanner.runAnalysis(EmbeddedScanner.java:151)
error 04-Sep-2018 12:32:16 at org.sonarsource.scanner.cli.Main.runAnalysis(Main.java:123)
error 04-Sep-2018 12:32:16 at org.sonarsource.scanner.cli.Main.execute(Main.java:77)
error 04-Sep-2018 12:32:16 at org.sonarsource.scanner.cli.Main.main(Main.java:61)
error 04-Sep-2018 12:32:16 Caused by: java.lang.IllegalStateException: Unable to load component class org.sonar.scanner.issue.ModuleIssues
error 04-Sep-2018 12:32:16 at org.sonar.core.platform.ComponentContainer$ExtendedDefaultPicoContainer.getComponent(ComponentContainer.java:71)
error 04-Sep-2018 12:32:16 at org.picocontainer.DefaultPicoContainer.getComponent(DefaultPicoContainer.java:632)
error 04-Sep-2018 12:32:16 at org.picocontainer.parameters.BasicComponentParameter$1.resolveInstance(BasicComponentParameter.java:118)
error 04-Sep-2018 12:32:16 at org.picocontainer.parameters.ComponentParameter$1.resolveInstance(ComponentParameter.java:136)
error 04-Sep-2018 12:32:16 at org.picocontainer.injectors.SingleMemberInjector.getParameter(SingleMemberInjector.java:78)
error 04-Sep-2018 12:32:16 at org.picocontainer.injectors.ConstructorInjector$CtorAndAdapters.getParameterArguments(ConstructorInjector.java:309)
error 04-Sep-2018 12:32:16 at org.picocontainer.injectors.ConstructorInjector$1.run(ConstructorInjector.java:335)
error 04-Sep-2018 12:32:16 at org.picocontainer.injectors.AbstractInjector$ThreadLocalCyclicDependencyGuard.observe(AbstractInjector.java:270)
error 04-Sep-2018 12:32:16 at org.picocontainer.injectors.ConstructorInjector.getComponentInstance(ConstructorInjector.java:364)
error 04-Sep-2018 12:32:16 at org.picocontainer.injectors.AbstractInjectionFactory$LifecycleAdapter.getComponentInstance(AbstractInjectionFactory.java:56)
error 04-Sep-2018 12:32:16 at org.picocontainer.behaviors.AbstractBehavior.getComponentInstance(AbstractBehavior.java:64)
error 04-Sep-2018 12:32:16 at org.picocontainer.behaviors.Stored.getComponentInstance(Stored.java:91)
error 04-Sep-2018 12:32:16 at org.picocontainer.DefaultPicoContainer.getInstance(DefaultPicoContainer.java:699)
error 04-Sep-2018 12:32:16 at org.picocontainer.DefaultPicoContainer.getComponent(DefaultPicoContainer.java:647)
error 04-Sep-2018 12:32:16 at org.sonar.core.platform.ComponentContainer$ExtendedDefaultPicoContainer.getComponent(ComponentContainer.java:69)
error 04-Sep-2018 12:32:16 ... 28 more
error 04-Sep-2018 12:32:16 Caused by: java.lang.IllegalStateException: Unable to load component interface org.sonar.api.batch.rule.Rules
error 04-Sep-2018 12:32:16 at org.sonar.core.platform.ComponentContainer$ExtendedDefaultPicoContainer.getComponent(ComponentContainer.java:71)
error 04-Sep-2018 12:32:16 at org.picocontainer.DefaultPicoContainer.getComponent(DefaultPicoContainer.java:632)
error 04-Sep-2018 12:32:16 at org.picocontainer.parameters.BasicComponentParameter$1.resolveInstance(BasicComponentParameter.java:118)
error 04-Sep-2018 12:32:16 at org.picocontainer.parameters.ComponentParameter$1.resolveInstance(ComponentParameter.java:136)
error 04-Sep-2018 12:32:16 at org.picocontainer.injectors.SingleMemberInjector.getParameter(SingleMemberInjector.java:78)
error 04-Sep-2018 12:32:16 at org.picocontainer.injectors.ConstructorInjector$CtorAndAdapters.getParameterArguments(ConstructorInjector.java:309)
error 04-Sep-2018 12:32:16 at org.picocontainer.injectors.ConstructorInjector$1.run(ConstructorInjector.java:335)
error 04-Sep-2018 12:32:16 at org.picocontainer.injectors.AbstractInjector$ThreadLocalCyclicDependencyGuard.observe(AbstractInjector.java:270)
error 04-Sep-2018 12:32:16 at org.picocontainer.injectors.ConstructorInjector.getComponentInstance(ConstructorInjector.java:364)
error 04-Sep-2018 12:32:16 at org.picocontainer.injectors.AbstractInjectionFactory$LifecycleAdapter.getComponentInstance(AbstractInjectionFactory.java:56)
error 04-Sep-2018 12:32:16 at org.picocontainer.behaviors.AbstractBehavior.getComponentInstance(AbstractBehavior.java:64)
error 04-Sep-2018 12:32:16 at org.picocontainer.behaviors.Stored.getComponentInstance(Stored.java:91)
error 04-Sep-2018 12:32:16 at org.picocontainer.DefaultPicoContainer.getInstance(DefaultPicoContainer.java:699)
error 04-Sep-2018 12:32:16 at org.picocontainer.DefaultPicoContainer.getComponent(DefaultPicoContainer.java:647)
error 04-Sep-2018 12:32:16 at org.sonar.core.platform.ComponentContainer$ExtendedDefaultPicoContainer.getComponent(ComponentContainer.java:69)
error 04-Sep-2018 12:32:16 ... 42 more
error 04-Sep-2018 12:32:16 Caused by: java.lang.IllegalStateException: Unable to load component interface org.sonar.api.batch.rule.Rules
error 04-Sep-2018 12:32:16 at org.sonar.core.platform.ComponentContainer$ExtendedDefaultPicoContainer.getComponent(ComponentContainer.java:71)
error 04-Sep-2018 12:32:16 at org.picocontainer.DefaultPicoContainer.getComponent(DefaultPicoContainer.java:621)
error 04-Sep-2018 12:32:16 at org.picocontainer.containers.ImmutablePicoContainer.getComponent(ImmutablePicoContainer.java:40)
error 04-Sep-2018 12:32:16 at org.picocontainer.DefaultPicoContainer.getInstance(DefaultPicoContainer.java:718)
error 04-Sep-2018 12:32:16 at org.picocontainer.DefaultPicoContainer.getComponent(DefaultPicoContainer.java:647)
error 04-Sep-2018 12:32:16 at org.sonar.core.platform.ComponentContainer$ExtendedDefaultPicoContainer.getComponent(ComponentContainer.java:69)
error 04-Sep-2018 12:32:16 ... 56 more
error 04-Sep-2018 12:32:16 Caused by: java.lang.IllegalStateException: Unable to get rules
error 04-Sep-2018 12:32:16 at org.sonar.scanner.rule.DefaultRulesLoader.loadFromStream(DefaultRulesLoader.java:51)
error 04-Sep-2018 12:32:16 at org.sonar.scanner.rule.DefaultRulesLoader.load(DefaultRulesLoader.java:43)
error 04-Sep-2018 12:32:16 at org.sonar.scanner.rule.RulesProvider.load(RulesProvider.java:47)
error 04-Sep-2018 12:32:16 at org.sonar.scanner.rule.RulesProvider.provide(RulesProvider.java:40)
error 04-Sep-2018 12:32:16 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
error 04-Sep-2018 12:32:16 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
error 04-Sep-2018 12:32:16 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
error 04-Sep-2018 12:32:16 at java.lang.reflect.Method.invoke(Method.java:498)
error 04-Sep-2018 12:32:16 at org.picocontainer.injectors.MethodInjector.invokeMethod(MethodInjector.java:129)
error 04-Sep-2018 12:32:16 at org.picocontainer.injectors.MethodInjector.access$000(MethodInjector.java:39)
error 04-Sep-2018 12:32:16 at org.picocontainer.injectors.MethodInjector$2.run(MethodInjector.java:113)
error 04-Sep-2018 12:32:16 at org.picocontainer.injectors.AbstractInjector$ThreadLocalCyclicDependencyGuard.observe(AbstractInjector.java:270)
error 04-Sep-2018 12:32:16 at org.picocontainer.injectors.MethodInjector.decorateComponentInstance(MethodInjector.java:120)
error 04-Sep-2018 12:32:16 at org.picocontainer.injectors.CompositeInjector.decorateComponentInstance(CompositeInjector.java:58)
error 04-Sep-2018 12:32:16 at org.picocontainer.injectors.Reinjector.reinject(Reinjector.java:142)
error 04-Sep-2018 12:32:16 at org.picocontainer.injectors.ProviderAdapter.getComponentInstance(ProviderAdapter.java:96)
error 04-Sep-2018 12:32:16 at org.picocontainer.DefaultPicoContainer.getInstance(DefaultPicoContainer.java:699)
error 04-Sep-2018 12:32:16 at org.picocontainer.DefaultPicoContainer.getComponent(DefaultPicoContainer.java:647)
error 04-Sep-2018 12:32:16 at org.sonar.core.platform.ComponentContainer$ExtendedDefaultPicoContainer.getComponent(ComponentContainer.java:69)
error 04-Sep-2018 12:32:16 ... 61 more
error 04-Sep-2018 12:32:16 Caused by: com.google.protobuf.InvalidProtocolBufferException: Protocol message contained an invalid tag (zero).
error 04-Sep-2018 12:32:16 at com.google.protobuf.InvalidProtocolBufferException.invalidTag(InvalidProtocolBufferException.java:89)
error 04-Sep-2018 12:32:16 at com.google.protobuf.CodedInputStream.readTag(CodedInputStream.java:158)
error 04-Sep-2018 12:32:16 at org.sonarqube.ws.Rules$ListResponse$Rule.<init>(Rules.java:214)
error 04-Sep-2018 12:32:16 at org.sonarqube.ws.Rules$ListResponse$Rule.<init>(Rules.java:184)
error 04-Sep-2018 12:32:16 at org.sonarqube.ws.Rules$ListResponse$Rule$1.parsePartialFrom(Rules.java:1036)
error 04-Sep-2018 12:32:16 at org.sonarqube.ws.Rules$ListResponse$Rule$1.parsePartialFrom(Rules.java:1030)
error 04-Sep-2018 12:32:16 at com.google.protobuf.CodedInputStream.readMessage(CodedInputStream.java:495)
error 04-Sep-2018 12:32:16 at org.sonarqube.ws.Rules$ListResponse.<init>(Rules.java:90)
error 04-Sep-2018 12:32:16 at org.sonarqube.ws.Rules$ListResponse.<init>(Rules.java:46)
error 04-Sep-2018 12:32:16 at org.sonarqube.ws.Rules$ListResponse$1.parsePartialFrom(Rules.java:1609)
error 04-Sep-2018 12:32:16 at org.sonarqube.ws.Rules$ListResponse$1.parsePartialFrom(Rules.java:1603)
error 04-Sep-2018 12:32:16 at com.google.protobuf.AbstractParser.parsePartialFrom(AbstractParser.java:192)
error 04-Sep-2018 12:32:16 at com.google.protobuf.AbstractParser.parseFrom(AbstractParser.java:210)
error 04-Sep-2018 12:32:16 at com.google.protobuf.AbstractParser.parseFrom(AbstractParser.java:215)
error 04-Sep-2018 12:32:16 at com.google.protobuf.AbstractParser.parseFrom(AbstractParser.java:49)
error 04-Sep-2018 12:32:16 at org.sonarqube.ws.Rules$ListResponse.parseFrom(Rules.java:1154)
error 04-Sep-2018 12:32:16 at org.sonar.scanner.rule.DefaultRulesLoader.loadFromStream(DefaultRulesLoader.java:49)
error 04-Sep-2018 12:32:16 ... 79 more
Related
I am getting error during SonarScanner execution, while executing the third command:
dotnet begin /k:"project-key"
dotnet build
dotnet end
Below is the screen shot of the exception:
ERROR: Error during SonarScanner execution
INFO: ------------------------------------------------------------------------
java.lang.ExceptionInInitializerError
at com.sonar.sslr.api.typed.ActionParser.(ActionParser.java:59)
at org.sonar.javascript.parser.JavaScriptParser.(JavaScriptParser.java:33)enter code here
at org.sonar.javascript.parser.JavaScriptParserBuilder.createParser(JavaScriptParserBuilder.java:31)
at org.sonar.plugins.javascript.JavaScriptSensor.(JavaScriptSensor.java:136)
at org.sonar.plugins.javascript.JavaScriptSensor.(JavaScriptSensor.java:100)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:78)
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499)
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:480)
at org.picocontainer.injectors.AbstractInjector.newInstance(AbstractInjector.java:145)
at org.picocontainer.injectors.ConstructorInjector$1.run(ConstructorInjector.java:342)
at org.picocontainer.injectors.AbstractInjector$ThreadLocalCyclicDependencyGuard.observe(AbstractInjector.java:270)
at org.picocontainer.injectors.ConstructorInjector.getComponentInstance(ConstructorInjector.java:364)
at org.picocontainer.injectors.AbstractInjectionFactory$LifecycleAdapter.getComponentInstance(AbstractInjectionFactory.java:56)
at org.picocontainer.behaviors.AbstractBehavior.getComponentInstance(AbstractBehavior.java:64)
at org.picocontainer.behaviors.Stored.getComponentInstance(Stored.java:91)
at org.picocontainer.DefaultPicoContainer.getLocalInstance(DefaultPicoContainer.java:606)
at org.picocontainer.DefaultPicoContainer.getComponents(DefaultPicoContainer.java:587)
at org.sonar.core.platform.ComponentContainer.getComponentsByType(ComponentContainer.java:290)
at org.sonar.scanner.bootstrap.AbstractExtensionDictionnary.completeScannerExtensions(AbstractExtensionDictionnary.java:82)
at org.sonar.scanner.bootstrap.AbstractExtensionDictionnary.getExtensions(AbstractExtensionDictionnary.java:77)
at org.sonar.scanner.bootstrap.AbstractExtensionDictionnary.getFilteredExtensions(AbstractExtensionDictionnary.java:67)
at org.sonar.scanner.sensor.ModuleSensorExtensionDictionnary.selectSensors(ModuleSensorExtensionDictionnary.java:40)
at org.sonar.scanner.sensor.ModuleSensorsExecutor.lambda$execute$0(ModuleSensorsExecutor.java:52)
at org.sonar.scanner.sensor.ModuleSensorsExecutor.withModuleStrategy(ModuleSensorsExecutor.java:77)
at org.sonar.scanner.sensor.ModuleSensorsExecutor.execute(ModuleSensorsExecutor.java:52)
at org.sonar.scanner.scan.ModuleScanContainer.doAfterStart(ModuleScanContainer.java:82)
at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:136)
at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:122)
at org.sonar.scanner.scan.ProjectScanContainer.scan(ProjectScanContainer.java:400)
at org.sonar.scanner.scan.ProjectScanContainer.scanRecursively(ProjectScanContainer.java:395)
at org.sonar.scanner.scan.ProjectScanContainer.scanRecursively(ProjectScanContainer.java:392)
at org.sonar.scanner.scan.ProjectScanContainer.doAfterStart(ProjectScanContainer.java:358)
at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:136)
at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:122)
at org.sonar.scanner.bootstrap.GlobalContainer.doAfterStart(GlobalContainer.java:141)
at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:136)
at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:122)
at org.sonar.batch.bootstrapper.Batch.doExecute(Batch.java:73)
at org.sonar.batch.bootstrapper.Batch.execute(Batch.java:67)
at org.sonarsource.scanner.api.internal.batch.BatchIsolatedLauncher.execute(BatchIsolatedLauncher.java:46)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:567)
at org.sonarsource.scanner.api.internal.IsolatedLauncherProxy.invoke(IsolatedLauncherProxy.java:60)
at jdk.proxy1/jdk.proxy1.$Proxy0.execute(Unknown Source)
at org.sonarsource.scanner.api.EmbeddedScanner.doExecute(EmbeddedScanner.java:189)
at org.sonarsource.scanner.api.EmbeddedScanner.execute(EmbeddedScanner.java:138)
at org.sonarsource.scanner.cli.Main.execute(Main.java:112)
at org.sonarsource.scanner.cli.Main.execute(Main.java:75)
at org.sonarsource.scanner.cli.Main.main(Main.java:61)
Caused by: net.sf.cglib.core.CodeGenerationException: java.lang.reflect.InaccessibleObjectException-->Unable to make protected final java.lang.Class java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain) throws java.lang.ClassFormatError accessible: module java.base does not "opens java.lang" to unnamed module #1bf39d06
at net.sf.cglib.core.ReflectUtils.defineClass(ReflectUtils.java:464)
at net.sf.cglib.core.AbstractClassGenerator.generate(AbstractClassGenerator.java:336)
at net.sf.cglib.core.AbstractClassGenerator$ClassLoaderData$3.apply(AbstractClassGenerator.java:93)
at net.sf.cglib.core.AbstractClassGenerator$ClassLoaderData$3.apply(AbstractClassGenerator.java:91)
at net.sf.cglib.core.internal.LoadingCache$2.call(LoadingCache.java:54)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at net.sf.cglib.core.internal.LoadingCache.createEntry(LoadingCache.java:61)
at net.sf.cglib.core.internal.LoadingCache.get(LoadingCache.java:34)
at net.sf.cglib.core.AbstractClassGenerator$ClassLoaderData.get(AbstractClassGenerator.java:116)
at net.sf.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:291)
at net.sf.cglib.core.KeyFactory$Generator.create(KeyFactory.java:221)
at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:174)
at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:153)
at net.sf.cglib.proxy.Enhancer.(Enhancer.java:73)
... 53 more
Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make protected final java.lang.Class java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain) throws java.lang.ClassFormatError accessible: module java.base does not "opens java.lang" to unnamed module #1bf39d06
at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:357)
at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:297)
at java.base/java.lang.reflect.Method.checkCanSetAccessible(Method.java:199)
at java.base/java.lang.reflect.Method.setAccessible(Method.java:193)
at net.sf.cglib.core.ReflectUtils$1.run(ReflectUtils.java:61)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:554)
at net.sf.cglib.core.ReflectUtils.(ReflectUtils.java:52)
at net.sf.cglib.core.KeyFactory$Generator.generateClass(KeyFactory.java:243)
at net.sf.cglib.core.DefaultGeneratorStrategy.generate(DefaultGeneratorStrategy.java:25)
at net.sf.cglib.core.AbstractClassGenerator.generate(AbstractClassGenerator.java:329)
... 65 more
ERROR:
The SonarScanner did not complete successfully
18:19:06.186 Post-processing failed. Exit code: 1
SonarScanner exception screenshot
I had same problem and solved it by reverting to openjdk 15.0.2 (16.0 is latest as of today and seems to create this issue, I install using https://community.chocolatey.org/packages/openjdk#versionhistory)
I have recently begun running Sonarqube 7.0 from Jenkins using MSBUILD.
Several runs were successful, but intermittently (and now repeatedly) I find a failure in the execution.
The below is the final failure with the verbose=true setting.
Has anyone had this similar experience, and additionally, has any one found a solution?
12:05:33 12:05:33.540 INFO: ------------------------------------------------------------------------
12:05:33 12:05:33.540 INFO: EXECUTION FAILURE
12:05:33 12:05:33.540 INFO: ------------------------------------------------------------------------
12:05:33 12:05:33.540 INFO: Total time: 1:25.012s
12:05:33 12:05:33.618 INFO: Final Memory: 50M/99M
12:05:33 12:05:33.618 INFO: ------------------------------------------------------------------------
12:05:33 12:05:33.618 ERROR: Error during SonarQube Scanner execution
12:05:33 java.lang.IllegalStateException: Unable to load component class org.sonar.scanner.report.MetadataPublisher
12:05:33 at org.sonar.core.platform.ComponentContainer$ExtendedDefaultPicoContainer.getComponent(ComponentContainer.java:64)
12:05:33 at org.picocontainer.DefaultPicoContainer.getComponent(DefaultPicoContainer.java:621)
12:05:33 at org.picocontainer.parameters.CollectionComponentParameter.getArrayInstance(CollectionComponentParameter.java:334)
12:05:33 at org.picocontainer.parameters.CollectionComponentParameter.access$100(CollectionComponentParameter.java:49)
12:05:33 at org.picocontainer.parameters.CollectionComponentParameter$1.resolveInstance(CollectionComponentParameter.java:139)
12:05:33 at org.picocontainer.parameters.ComponentParameter$1.resolveInstance(ComponentParameter.java:141)
12:05:33 at org.picocontainer.injectors.SingleMemberInjector.getParameter(SingleMemberInjector.java:78)
12:05:33 at org.picocontainer.injectors.ConstructorInjector$CtorAndAdapters.getParameterArguments(ConstructorInjector.java:309)
12:05:33 at org.picocontainer.injectors.ConstructorInjector$1.run(ConstructorInjector.java:335)
12:05:33 at org.picocontainer.injectors.AbstractInjector$ThreadLocalCyclicDependencyGuard.observe(AbstractInjector.java:270)
12:05:33 at org.picocontainer.injectors.ConstructorInjector.getComponentInstance(ConstructorInjector.java:364)
12:05:33 at org.picocontainer.injectors.AbstractInjectionFactory$LifecycleAdapter.getComponentInstance(AbstractInjectionFactory.java:56)
12:05:33 at org.picocontainer.behaviors.AbstractBehavior.getComponentInstance(AbstractBehavior.java:64)
12:05:33 at org.picocontainer.behaviors.Stored.getComponentInstance(Stored.java:91)
12:05:33 at org.picocontainer.DefaultPicoContainer.instantiateComponentAsIsStartable(DefaultPicoContainer.java:1034)
12:05:33 at org.picocontainer.DefaultPicoContainer.addAdapterIfStartable(DefaultPicoContainer.java:1026)
12:05:33 at org.picocontainer.DefaultPicoContainer.startAdapters(DefaultPicoContainer.java:1003)
12:05:33 at org.picocontainer.DefaultPicoContainer.start(DefaultPicoContainer.java:767)
12:05:33 at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:134)
12:05:33 at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:121)
12:05:33 at org.sonar.scanner.task.ScanTask.execute(ScanTask.java:48)
12:05:33 at org.sonar.scanner.task.TaskContainer.doAfterStart(TaskContainer.java:84)
12:05:33 at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:135)
12:05:33 at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:121)
12:05:33 at org.sonar.scanner.bootstrap.GlobalContainer.executeTask(GlobalContainer.java:121)
12:05:33 at org.sonar.batch.bootstrapper.Batch.doExecuteTask(Batch.java:116)
12:05:33 at org.sonar.batch.bootstrapper.Batch.executeTask(Batch.java:111)
12:05:33 at org.sonarsource.scanner.api.internal.batch.BatchIsolatedLauncher.execute(BatchIsolatedLauncher.java:63)
12:05:33 at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
12:05:33 at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
12:05:33 at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
12:05:33 at java.base/java.lang.reflect.Method.invoke(Method.java:564)
12:05:33 at org.sonarsource.scanner.api.internal.IsolatedLauncherProxy.invoke(IsolatedLauncherProxy.java:60)
12:05:33 at com.sun.proxy.$Proxy0.execute(Unknown Source)
12:05:33 at org.sonarsource.scanner.api.EmbeddedScanner.doExecute(EmbeddedScanner.java:233)
12:05:33 at org.sonarsource.scanner.api.EmbeddedScanner.runAnalysis(EmbeddedScanner.java:151)
12:05:33 at org.sonarsource.scanner.cli.Main.runAnalysis(Main.java:123)
12:05:33 at org.sonarsource.scanner.cli.Main.execute(Main.java:77)
12:05:33 at org.sonarsource.scanner.cli.Main.main(Main.java:61)
12:05:33 Caused by: java.lang.IllegalStateException: Unable to load component class org.sonar.scanner.rule.ModuleQProfiles
12:05:33 at org.sonar.core.platform.ComponentContainer$ExtendedDefaultPicoContainer.getComponent(ComponentContainer.java:64)
12:05:33 at org.picocontainer.DefaultPicoContainer.getComponent(DefaultPicoContainer.java:632)
12:05:33 at org.picocontainer.parameters.BasicComponentParameter$1.resolveInstance(BasicComponentParameter.java:118)
12:05:33 at org.picocontainer.parameters.ComponentParameter$1.resolveInstance(ComponentParameter.java:136)
12:05:33 at org.picocontainer.injectors.SingleMemberInjector.getParameter(SingleMemberInjector.java:78)
12:05:33 at org.picocontainer.injectors.ConstructorInjector$CtorAndAdapters.getParameterArguments(ConstructorInjector.java:309)
12:05:33 at org.picocontainer.injectors.ConstructorInjector$1.run(ConstructorInjector.java:335)
12:05:33 at org.picocontainer.injectors.AbstractInjector$ThreadLocalCyclicDependencyGuard.observe(AbstractInjector.java:270)
12:05:33 at org.picocontainer.injectors.ConstructorInjector.getComponentInstance(ConstructorInjector.java:364)
12:05:33 at org.picocontainer.injectors.AbstractInjectionFactory$LifecycleAdapter.getComponentInstance(AbstractInjectionFactory.java:56)
12:05:33 at org.picocontainer.behaviors.AbstractBehavior.getComponentInstance(AbstractBehavior.java:64)
12:05:33 at org.picocontainer.behaviors.Stored.getComponentInstance(Stored.java:91)
12:05:33 at org.picocontainer.DefaultPicoContainer.getInstance(DefaultPicoContainer.java:699)
12:05:33 at org.picocontainer.DefaultPicoContainer.getComponent(DefaultPicoContainer.java:647)
12:05:33 at org.sonar.core.platform.ComponentContainer$ExtendedDefaultPicoContainer.getComponent(ComponentContainer.java:62)
12:05:33 ... 38 more
12:05:33 Caused by: java.lang.IllegalStateException: Fail to request http://sonarqube:9000/api/qualityprofiles/search.protobuf?projectKey=CCGeneral
12:05:33 at org.sonarqube.ws.client.HttpConnector.doCall(HttpConnector.java:190)
12:05:33 at org.sonarqube.ws.client.HttpConnector.get(HttpConnector.java:124)
12:05:33 at org.sonarqube.ws.client.HttpConnector.call(HttpConnector.java:111)
12:05:33 at org.sonar.scanner.bootstrap.ScannerWsClient.call(ScannerWsClient.java:73)
12:05:33 at org.sonar.scanner.repository.DefaultQualityProfileLoader.call(DefaultQualityProfileLoader.java:90)
12:05:33 at org.sonar.scanner.repository.DefaultQualityProfileLoader.loadAndOverrideIfNeeded(DefaultQualityProfileLoader.java:69)
12:05:33 at org.sonar.scanner.repository.DefaultQualityProfileLoader.load(DefaultQualityProfileLoader.java:64)
12:05:33 at org.sonar.scanner.repository.QualityProfileProvider.provide(QualityProfileProvider.java:45)
12:05:33 at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
12:05:33 at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
12:05:33 at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
12:05:33 at java.base/java.lang.reflect.Method.invoke(Method.java:564)
12:05:33 at org.picocontainer.injectors.MethodInjector.invokeMethod(MethodInjector.java:129)
12:05:33 at org.picocontainer.injectors.MethodInjector.access$000(MethodInjector.java:39)
12:05:33 at org.picocontainer.injectors.MethodInjector$2.run(MethodInjector.java:113)
12:05:33 at org.picocontainer.injectors.AbstractInjector$ThreadLocalCyclicDependencyGuard.observe(AbstractInjector.java:270)
12:05:33 at org.picocontainer.injectors.MethodInjector.decorateComponentInstance(MethodInjector.java:120)
12:05:33 at org.picocontainer.injectors.CompositeInjector.decorateComponentInstance(CompositeInjector.java:58)
12:05:33 at org.picocontainer.injectors.Reinjector.reinject(Reinjector.java:142)
12:05:33 at org.picocontainer.injectors.ProviderAdapter.getComponentInstance(ProviderAdapter.java:96)
12:05:33 at org.picocontainer.DefaultPicoContainer.getInstance(DefaultPicoContainer.java:699)
12:05:33 at org.picocontainer.DefaultPicoContainer.getComponent(DefaultPicoContainer.java:647)
12:05:33 at org.sonar.core.platform.ComponentContainer$ExtendedDefaultPicoContainer.getComponent(ComponentContainer.java:62)
12:05:33 12:05:33.649 DEBUG: Execution getVersion
12:05:33 12:05:33.649 DEBUG: Execution stop
12:05:33 ... 52 more
12:05:33 Caused by: java.net.SocketTimeoutException: timeout
12:05:33 at okio.Okio$4.newTimeoutException(Okio.java:227)
12:05:33 at okio.AsyncTimeout.exit(AsyncTimeout.java:284)
12:05:33 at okio.AsyncTimeout$2.read(AsyncTimeout.java:240)
12:05:33 at okio.RealBufferedSource.indexOf(RealBufferedSource.java:344)
12:05:33 at okio.RealBufferedSource.readUtf8LineStrict(RealBufferedSource.java:216)
12:05:33 at okio.RealBufferedSource.readUtf8LineStrict(RealBufferedSource.java:210)
12:05:33 at okhttp3.internal.http1.Http1Codec.readResponseHeaders(Http1Codec.java:189)
12:05:33 at okhttp3.internal.http.CallServerInterceptor.intercept(CallServerInterceptor.java:75)
12:05:33 at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92)
12:05:33 at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:67)
12:05:33 at org.sonarqube.ws.client.OkHttpClientBuilder.addHeaders(OkHttpClientBuilder.java:207)
12:05:33 at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92)
12:05:33 at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.java:45)
12:05:33 at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92)
12:05:33 at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:67)
12:05:33 at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.java:93)
12:05:33 at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92)
12:05:33 at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:67)
12:05:33 at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.java:93)
12:05:33 at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92)
12:05:33 at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.java:120)
12:05:33 at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92)
12:05:33 at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:67)
12:05:33 at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:185)
12:05:33 at okhttp3.RealCall.execute(RealCall.java:69)
12:05:33 at org.sonarqube.ws.client.HttpConnector.doCall(HttpConnector.java:188)
12:05:33 ... 74 more
12:05:33 Caused by: java.net.SocketTimeoutException: Read timed out
12:05:33 at java.base/java.net.SocketInputStream.socketRead0(Native Method)
12:05:33 at java.base/java.net.SocketInputStream.socketRead(SocketInputStream.java:116)
12:05:33 at java.base/java.net.SocketInputStream.read(SocketInputStream.java:171)
12:05:33 at java.base/java.net.SocketInputStream.read(SocketInputStream.java:141)
12:05:33 at okio.Okio$2.read(Okio.java:138)
12:05:33 at okio.AsyncTimeout$2.read(AsyncTimeout.java:236)
12:05:33 ... 97 more
12:05:33 12:05:33.649 ERROR:
12:05:33 12:05:33.649 ERROR: Re-run SonarQube Scanner using the -X switch to enable full debug logging.
12:05:34 Process returned exit code 1
12:05:34 The SonarQube Scanner did not complete successfully
12:05:34 12:05:34.402 Creating a summary markdown file...
12:05:34 12:05:34.402 Post-processing failed. Exit code: 1
12:05:34 ERROR: Execution of SonarQube Scanner for MSBuild failed (exit code 1)
12:05:34 Finished: FAILURE
It appears that my issue seems to have stemmed from a lack of disk space on the Jenkins server. I freed some disk by clearing out some old/unused workspaces, and the job has run successfully several times since.
I'm using Gradle 3.1 and the Gradle plugin for SonarQube 2.1. When I run gradle sonarqube using SonarQube 6.0 and the SonarQube plugin for Java 4.2, then everything works as expected.
However, when I upgrade SonarQube to 6.1-RC1, then I'm getting the following stacktrace:
org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':sonarqube'.
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:69)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:46)
at org.gradle.api.internal.tasks.execution.PostExecutionAnalysisTaskExecuter.execute(PostExecutionAnalysisTaskExecuter.java:35)
at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:64)
at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:58)
at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:52)
at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:52)
at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:53)
at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43)
at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:233)
at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:215)
at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.processTask(AbstractTaskPlanExecutor.java:74)
at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.run(AbstractTaskPlanExecutor.java:55)
at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:54)
at org.gradle.internal.concurrent.StoppableExecutorImpl$1.run(StoppableExecutorImpl.java:40)
Caused by: java.lang.IllegalStateException: Unable to load component class org.sonar.scanner.cpd.deprecated.DefaultCpdBlockIndexer
at org.sonar.core.platform.ComponentContainer$ExtendedDefaultPicoContainer.getComponent(ComponentContainer.java:69)
at org.picocontainer.DefaultPicoContainer.getComponent(DefaultPicoContainer.java:632)
at org.picocontainer.parameters.BasicComponentParameter$1.resolveInstance(BasicComponentParameter.java:118)
at org.picocontainer.parameters.ComponentParameter$1.resolveInstance(ComponentParameter.java:136)
at org.picocontainer.injectors.SingleMemberInjector.getParameter(SingleMemberInjector.java:78)
at org.picocontainer.injectors.ConstructorInjector$CtorAndAdapters.getParameterArguments(ConstructorInjector.java:309)
at org.picocontainer.injectors.ConstructorInjector$1.run(ConstructorInjector.java:335)
at org.picocontainer.injectors.AbstractInjector$ThreadLocalCyclicDependencyGuard.observe(AbstractInjector.java:270)
at org.picocontainer.injectors.ConstructorInjector.getComponentInstance(ConstructorInjector.java:364)
at org.picocontainer.injectors.AbstractInjectionFactory$LifecycleAdapter.getComponentInstance(AbstractInjectionFactory.java:56)
at org.picocontainer.behaviors.AbstractBehavior.getComponentInstance(AbstractBehavior.java:64)
at org.picocontainer.behaviors.Stored.getComponentInstance(Stored.java:91)
at org.picocontainer.DefaultPicoContainer.getLocalInstance(DefaultPicoContainer.java:606)
at org.picocontainer.DefaultPicoContainer.getComponents(DefaultPicoContainer.java:587)
at org.sonar.core.platform.ComponentContainer.getComponentsByType(ComponentContainer.java:281)
at org.sonar.scanner.bootstrap.BatchExtensionDictionnary.completeBatchExtensions(BatchExtensionDictionnary.java:134)
at org.sonar.scanner.bootstrap.BatchExtensionDictionnary.getExtensions(BatchExtensionDictionnary.java:128)
at org.sonar.scanner.bootstrap.BatchExtensionDictionnary.getFilteredExtensions(BatchExtensionDictionnary.java:107)
at org.sonar.scanner.bootstrap.BatchExtensionDictionnary.select(BatchExtensionDictionnary.java:74)
at org.sonar.scanner.phases.SensorsExecutor.execute(SensorsExecutor.java:45)
at org.sonar.scanner.phases.AbstractPhaseExecutor.execute(AbstractPhaseExecutor.java:78)
at org.sonar.scanner.scan.ModuleScanContainer.doAfterStart(ModuleScanContainer.java:182)
at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:142)
at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:127)
at org.sonar.scanner.scan.ProjectScanContainer.scan(ProjectScanContainer.java:247)
at org.sonar.scanner.scan.ProjectScanContainer.scanRecursively(ProjectScanContainer.java:242)
at org.sonar.scanner.scan.ProjectScanContainer.doAfterStart(ProjectScanContainer.java:232)
at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:142)
at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:127)
at org.sonar.scanner.task.ScanTask.execute(ScanTask.java:47)
at org.sonar.scanner.task.TaskContainer.doAfterStart(TaskContainer.java:86)
at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:142)
at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:127)
at org.sonar.scanner.bootstrap.GlobalContainer.executeTask(GlobalContainer.java:115)
at org.sonar.batch.bootstrapper.Batch.executeTask(Batch.java:118)
at org.sonarsource.scanner.api.internal.batch.BatchIsolatedLauncher.execute(BatchIsolatedLauncher.java:62)
at org.sonarsource.scanner.api.internal.IsolatedLauncherProxy.invoke(IsolatedLauncherProxy.java:60)
at com.sun.proxy.$Proxy110.execute(Unknown Source)
at org.sonarsource.scanner.api.EmbeddedScanner.doExecute(EmbeddedScanner.java:233)
at org.sonarsource.scanner.api.EmbeddedScanner.runAnalysis(EmbeddedScanner.java:151)
at org.sonarqube.gradle.SonarQubeTask.run(SonarQubeTask.java:90)
at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:75)
at org.gradle.api.internal.project.taskfactory.DefaultTaskClassInfoStore$StandardTaskAction.doExecute(DefaultTaskClassInfoStore.java:136)
at org.gradle.api.internal.project.taskfactory.DefaultTaskClassInfoStore$StandardTaskAction.execute(DefaultTaskClassInfoStore.java:129)
at org.gradle.api.internal.project.taskfactory.DefaultTaskClassInfoStore$StandardTaskAction.execute(DefaultTaskClassInfoStore.java:118)
at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:623)
at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:606)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:80)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:61)
... 14 more
Caused by: java.lang.IllegalStateException: Unable to load component class org.sonar.scanner.cpd.deprecated.CpdMappings
at org.sonar.core.platform.ComponentContainer$ExtendedDefaultPicoContainer.getComponent(ComponentContainer.java:69)
at org.picocontainer.DefaultPicoContainer.getComponent(DefaultPicoContainer.java:632)
at org.picocontainer.parameters.BasicComponentParameter$1.resolveInstance(BasicComponentParameter.java:118)
at org.picocontainer.parameters.ComponentParameter$1.resolveInstance(ComponentParameter.java:136)
at org.picocontainer.injectors.SingleMemberInjector.getParameter(SingleMemberInjector.java:78)
at org.picocontainer.injectors.ConstructorInjector$CtorAndAdapters.getParameterArguments(ConstructorInjector.java:309)
at org.picocontainer.injectors.ConstructorInjector$1.run(ConstructorInjector.java:335)
at org.picocontainer.injectors.AbstractInjector$ThreadLocalCyclicDependencyGuard.observe(AbstractInjector.java:270)
at org.picocontainer.injectors.ConstructorInjector.getComponentInstance(ConstructorInjector.java:364)
at org.picocontainer.injectors.AbstractInjectionFactory$LifecycleAdapter.getComponentInstance(AbstractInjectionFactory.java:56)
at org.picocontainer.behaviors.AbstractBehavior.getComponentInstance(AbstractBehavior.java:64)
at org.picocontainer.behaviors.Stored.getComponentInstance(Stored.java:91)
at org.picocontainer.DefaultPicoContainer.getInstance(DefaultPicoContainer.java:699)
at org.picocontainer.DefaultPicoContainer.getComponent(DefaultPicoContainer.java:647)
at org.sonar.core.platform.ComponentContainer$ExtendedDefaultPicoContainer.getComponent(ComponentContainer.java:67)
... 62 more
Caused by: java.lang.IllegalStateException: Unable to load component class org.sonar.plugins.css.cpd.CssCpdMapping
at org.sonar.core.platform.ComponentContainer$ExtendedDefaultPicoContainer.getComponent(ComponentContainer.java:69)
at org.picocontainer.DefaultPicoContainer.getComponent(DefaultPicoContainer.java:621)
at org.picocontainer.parameters.CollectionComponentParameter.getArrayInstance(CollectionComponentParameter.java:334)
at org.picocontainer.parameters.CollectionComponentParameter.access$100(CollectionComponentParameter.java:49)
at org.picocontainer.parameters.CollectionComponentParameter$1.resolveInstance(CollectionComponentParameter.java:139)
at org.picocontainer.parameters.ComponentParameter$1.resolveInstance(ComponentParameter.java:141)
at org.picocontainer.injectors.SingleMemberInjector.getParameter(SingleMemberInjector.java:78)
at org.picocontainer.injectors.ConstructorInjector$CtorAndAdapters.getParameterArguments(ConstructorInjector.java:309)
at org.picocontainer.injectors.ConstructorInjector$1.run(ConstructorInjector.java:335)
at org.picocontainer.injectors.AbstractInjector$ThreadLocalCyclicDependencyGuard.observe(AbstractInjector.java:270)
at org.picocontainer.injectors.ConstructorInjector.getComponentInstance(ConstructorInjector.java:364)
at org.picocontainer.injectors.AbstractInjectionFactory$LifecycleAdapter.getComponentInstance(AbstractInjectionFactory.java:56)
at org.picocontainer.behaviors.AbstractBehavior.getComponentInstance(AbstractBehavior.java:64)
at org.picocontainer.behaviors.Stored.getComponentInstance(Stored.java:91)
at org.picocontainer.DefaultPicoContainer.getInstance(DefaultPicoContainer.java:699)
at org.picocontainer.DefaultPicoContainer.getComponent(DefaultPicoContainer.java:647)
at org.sonar.core.platform.ComponentContainer$ExtendedDefaultPicoContainer.getComponent(ComponentContainer.java:67)
... 76 more
Caused by: java.lang.NoClassDefFoundError: org/sonar/api/scan/filesystem/ModuleFileSystem
at org.picocontainer.injectors.ConstructorInjector$3.run(ConstructorInjector.java:403)
at org.picocontainer.injectors.ConstructorInjector$3.run(ConstructorInjector.java:401)
at org.picocontainer.injectors.ConstructorInjector.getConstructors(ConstructorInjector.java:401)
at org.picocontainer.injectors.ConstructorInjector.getSortedMatchingConstructors(ConstructorInjector.java:377)
at org.picocontainer.injectors.ConstructorInjector.getGreediestSatisfiableConstructor(ConstructorInjector.java:128)
at org.picocontainer.injectors.ConstructorInjector.getGreediestSatisfiableConstructor(ConstructorInjector.java:110)
at org.picocontainer.injectors.ConstructorInjector.access$100(ConstructorInjector.java:51)
at org.picocontainer.injectors.ConstructorInjector$1.run(ConstructorInjector.java:331)
at org.picocontainer.injectors.AbstractInjector$ThreadLocalCyclicDependencyGuard.observe(AbstractInjector.java:270)
at org.picocontainer.injectors.ConstructorInjector.getComponentInstance(ConstructorInjector.java:364)
at org.picocontainer.injectors.AbstractInjectionFactory$LifecycleAdapter.getComponentInstance(AbstractInjectionFactory.java:56)
at org.picocontainer.behaviors.AbstractBehavior.getComponentInstance(AbstractBehavior.java:64)
at org.picocontainer.behaviors.Stored.getComponentInstance(Stored.java:91)
at org.picocontainer.DefaultPicoContainer.getInstance(DefaultPicoContainer.java:699)
at org.picocontainer.DefaultPicoContainer.getComponent(DefaultPicoContainer.java:647)
at org.sonar.core.platform.ComponentContainer$ExtendedDefaultPicoContainer.getComponent(ComponentContainer.java:67)
... 92 more
Caused by: java.lang.ClassNotFoundException: org.sonar.api.scan.filesystem.ModuleFileSystem
at org.sonar.classloader.ParentFirstStrategy.loadClass(ParentFirstStrategy.java:39)
at org.sonar.classloader.ClassRealm.loadClass(ClassRealm.java:87)
at org.sonar.classloader.ClassRealm.loadClass(ClassRealm.java:76)
... 108 more
You are using an incompatible version of the CSS SonarQube plugin. You should be using the latest version (2.1) that is supposed to be compatible with upcoming versions of SonarQube.
Iam migrating my java1.5 based application to java1.6 and deploying it to was8.5 server instead of was6.1 server.
When deployed to WAS8.5 it throws the following errors which could be as I have org.springframework.web.servlet.DispatcherServlet defined in my web.xml
The context xml file has beans which is are in a jar added to the web-inf/lib/*.jar
<servlet-name>MyServlet</servlet-name>
<display-name>MyServlet</display-name>
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
<init-param>
<param-name>contextConfigLocation</param-name>
<param-value>/WEB-INF/spring/my-context.xml</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
[10/10/13 14:13:59:862 IST] 00000079 AppManagement W ADMA0116W: Unable to start: CASEAR using: WebSphere:name=ApplicationManager,process=server1,platform=proxy,node=b60jkyl-7010Node09,version=8.5.5.0,type=ApplicationManager,mbeanIdentifier=ApplicationManager,cell=b60jkyl-7010Node09Cell,spec=1.0 exception is: javax.management.MBeanException: Exception thrown in RequiredModelMBean while trying to invoke operation startApplication
at javax.management.modelmbean.RequiredModelMBean.invokeMethod(RequiredModelMBean.java:1191)
at javax.management.modelmbean.RequiredModelMBean.invoke(RequiredModelMBean.java:995)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:848)
at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:774)
at com.ibm.ws.management.AdminServiceImpl$1.run(AdminServiceImpl.java:1335)
at com.ibm.ws.security.util.AccessController.doPrivileged(AccessController.java:118)
at com.ibm.ws.management.AdminServiceImpl.invoke(AdminServiceImpl.java:1228)
at com.ibm.ws.management.application.AppManagementImpl._startApplication(AppManagementImpl.java:1482)
at com.ibm.ws.management.application.AppManagementImpl.startApplication(AppManagementImpl.java:1371)
at com.ibm.ws.management.application.AppManagementImpl.startApplication(AppManagementImpl.java:1320)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:611)
at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:49)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:611)
at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:256)
at javax.management.modelmbean.RequiredModelMBean$4.run(RequiredModelMBean.java:1148)
at java.security.AccessController.doPrivileged(AccessController.java:252)
at com.ibm.oti.security.CheckedAccessControlContext.securityCheck(CheckedAccessControlContext.java:30)
at sun.misc.JavaSecurityAccessWrapper.doIntersectionPrivilege(JavaSecurityAccessWrapper.java:41)
at javax.management.modelmbean.RequiredModelMBean.invokeMethod(RequiredModelMBean.java:1142)
at javax.management.modelmbean.RequiredModelMBean.invoke(RequiredModelMBean.java:995)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:848)
at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:774)
at com.ibm.ws.management.AdminServiceImpl$1.run(AdminServiceImpl.java:1335)
at com.ibm.ws.security.util.AccessController.doPrivileged(AccessController.java:118)
at com.ibm.ws.management.AdminServiceImpl.invoke(AdminServiceImpl.java:1228)
at com.ibm.ws.management.connector.AdminServiceDelegator.invoke(AdminServiceDelegator.java:181)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:611)
at com.ibm.ws.management.connector.soap.SOAPConnector.invoke(SOAPConnector.java:478)
at com.ibm.ws.management.connector.soap.SOAPConnector.service(SOAPConnector.java:314)
at com.ibm.ws.management.connector.soap.SOAPConnection.handleRequest(SOAPConnection.java:65)
at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:733)
at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:532)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1862)
Caused by: com.ibm.ws.exception.RuntimeWarning: com.ibm.ws.webcontainer.exception.WebAppNotLoadedException: Failed to load webapp: Failed to load webapp: javax.servlet.ServletContainerInitializer: Provider org.springframework.web.SpringServletContainerInitializer not found
at com.ibm.ws.webcontainer.component.WebContainerImpl.install(WebContainerImpl.java:432)
at com.ibm.ws.webcontainer.component.WebContainerImpl.start(WebContainerImpl.java:718)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:1175)
at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:1370)
at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:639)
at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:968)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:774)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplicationDynamically(ApplicationMgrImpl.java:1374)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:2179)
at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:445)
at com.ibm.ws.runtime.component.CompositionUnitImpl.start(CompositionUnitImpl.java:123)
at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:388)
at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.access$500(CompositionUnitMgrImpl.java:116)
at com.ibm.ws.runtime.component.CompositionUnitMgrImpl$1.run(CompositionUnitMgrImpl.java:663)
at com.ibm.ws.security.auth.ContextManagerImpl.runAs(ContextManagerImpl.java:5384)
at com.ibm.ws.security.auth.ContextManagerImpl.runAsSystem(ContextManagerImpl.java:5600)
at com.ibm.ws.security.core.SecurityContext.runAsSystem(SecurityContext.java:255)
at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.startCompositionUnit(CompositionUnitMgrImpl.java:677)
at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.startCompositionUnit(CompositionUnitMgrImpl.java:621)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:1266)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:611)
at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:49)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:611)
at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:256)
at javax.management.modelmbean.RequiredModelMBean$4.run(RequiredModelMBean.java:1148)
at java.security.AccessController.doPrivileged(AccessController.java:252)
at com.ibm.oti.security.CheckedAccessControlContext.securityCheck(CheckedAccessControlContext.java:30)
at sun.misc.JavaSecurityAccessWrapper.doIntersectionPrivilege(JavaSecurityAccessWrapper.java:41)
at javax.management.modelmbean.RequiredModelMBean.invokeMethod(RequiredModelMBean.java:1142)
... 41 more
Caused by: com.ibm.ws.webcontainer.exception.WebAppNotLoadedException: Failed to load webapp: Failed to load webapp: javax.servlet.ServletContainerInitializer: Provider org.springframework.web.SpringServletContainerInitializer not found
at com.ibm.ws.webcontainer.WSWebContainer.addWebApp(WSWebContainer.java:759)
at com.ibm.ws.webcontainer.WSWebContainer.addWebApplication(WSWebContainer.java:634)
at com.ibm.ws.webcontainer.component.WebContainerImpl.install(WebContainerImpl.java:426)
... 75 more
Caused by: com.ibm.ws.webcontainer.exception.WebAppNotLoadedException: Failed to load webapp: javax.servlet.ServletContainerInitializer: Provider org.springframework.web.SpringServletContainerInitializer not found
at com.ibm.ws.webcontainer.VirtualHostImpl.addWebApplication(VirtualHostImpl.java:176)
at com.ibm.ws.webcontainer.WSWebContainer.addWebApp(WSWebContainer.java:746)
... 77 more
Caused by: java.util.ServiceConfigurationError: javax.servlet.ServletContainerInitializer: Provider org.springframework.web.SpringServletContainerInitializer not found
at java.util.ServiceLoader$ServiceIterator.next(ServiceLoader.java:208)
at com.ibm.ws.webcontainer.webapp.WebAppImpl.initializeServletContainerInitializers(WebAppImpl.java:535)
at com.ibm.ws.webcontainer.webapp.WebAppImpl.initialize(WebAppImpl.java:409)
at com.ibm.ws.webcontainer.webapp.WebGroupImpl.addWebApplication(WebGroupImpl.java:88)
at com.ibm.ws.webcontainer.VirtualHostImpl.addWebApplication(VirtualHostImpl.java:169)
... 78 more
What I can see is org.springframework.web.SpringServletContainerInitializer is not in my "spring-web-3.0.6.RELEASE.jar" but it is in subsequent version 3.1 onwards.
Even if I use spring web 3.1 version it then give null exception.
It looks like deploying to WAS8.5 server with java version is 6.0 fails at ServletContainerInitializer (java6, since servlet3.0) . Hope if some one has come across this issue.
Thanks
=================
Error trace when replacing spring web 3.0 to 3.1 so that it finds SpringServletContainerInitializer.java
com.ibm.ws.exception.RuntimeWarning: com.ibm.ws.webcontainer.exception.WebAppNotLoadedException: Failed to load webapp: Failed to load webapp: null
at com.ibm.ws.webcontainer.component.WebContainerImpl.install(WebContainerImpl.java:432)
at com.ibm.ws.webcontainer.component.WebContainerImpl.start(WebContainerImpl.java:718)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:1175)
at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:1370)
at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:639)
at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:968)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:774)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:2182)
at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:445)
at com.ibm.ws.runtime.component.CompositionUnitImpl.start(CompositionUnitImpl.java:123)
at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:388)
at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.access$500(CompositionUnitMgrImpl.java:116)
at com.ibm.ws.runtime.component.CompositionUnitMgrImpl$CUInitializer.run(CompositionUnitMgrImpl.java:994)
at com.ibm.wsspi.runtime.component.WsComponentImpl$_AsynchInitializer.run(WsComponentImpl.java:502)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1862)
Caused by: com.ibm.ws.webcontainer.exception.WebAppNotLoadedException: Failed to load webapp: Failed to load webapp: null
at com.ibm.ws.webcontainer.WSWebContainer.addWebApp(WSWebContainer.java:759)
at com.ibm.ws.webcontainer.WSWebContainer.addWebApplication(WSWebContainer.java:634)
at com.ibm.ws.webcontainer.component.WebContainerImpl.install(WebContainerImpl.java:426)
... 14 more
Caused by: com.ibm.ws.webcontainer.exception.WebAppNotLoadedException: Failed to load webapp: null
at com.ibm.ws.webcontainer.VirtualHostImpl.addWebApplication(VirtualHostImpl.java:176)
at com.ibm.ws.webcontainer.WSWebContainer.addWebApp(WSWebContainer.java:749)
... 16 more
Caused by: java.lang.NullPointerException
at org.springframework.web.SpringServletContainerInitializer.onStartup(SpringServletContainerInitializer.java:142)
at com.ibm.ws.webcontainer.webapp.WebAppImpl.initializeServletContainerInitializers(WebAppImpl.java:613)
at com.ibm.ws.webcontainer.webapp.WebAppImpl.initialize(WebAppImpl.java:409)
at com.ibm.ws.webcontainer.webapp.WebGroupImpl.addWebApplication(WebGroupImpl.java:88)
at com.ibm.ws.webcontainer.VirtualHostImpl.addWebApplication(VirtualHostImpl.java:169)
... 17 more
I have maven project, so I tried to maven install for making jar.
But I faiied because of the java.lang.ClassNotFoundException.
So, I found the jar that includes the class. And I added the dependecny in pom.xml.
<dependency>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-io</artifactId>
<version>1.0</version>
</dependency>
Still, it gave same error.
The most curious thing is that I runned it normally in another computer that has same
development environment except window's bit number.
The error I found is like the below.
0 [main] ERROR org.sonatype.guice.bean.reflect.NamedClass - Error injecting: org.codehaus.plexus.archiver.jar.JarArchiver
java.lang.NoClassDefFoundError: org/codehaus/plexus/components/io/resources/PlexusIoResourceCollection
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)
at java.lang.Class.getDeclaredConstructors(Class.java:1836)
at com.google.inject.spi.InjectionPoint.forConstructorOf(InjectionPoint.java:243)
at com.google.inject.internal.ConstructorBindingImpl.create(ConstructorBindingImpl.java:96)
at com.google.inject.internal.InjectorImpl.createUninitializedBinding(InjectorImpl.java:609)
at com.google.inject.internal.InjectorImpl.createJustInTimeBinding(InjectorImpl.java:816)
at com.google.inject.internal.InjectorImpl.createJustInTimeBindingRecursive(InjectorImpl.java:750)
at com.google.inject.internal.InjectorImpl.getJustInTimeBinding(InjectorImpl.java:235)
at com.google.inject.internal.InjectorImpl.getBindingOrThrow(InjectorImpl.java:185)
at com.google.inject.internal.InjectorImpl.getInternalFactory(InjectorImpl.java:824)
at com.google.inject.internal.InjectorImpl.getProviderOrThrow(InjectorImpl.java:938)
at com.google.inject.internal.InjectorImpl.getProvider(InjectorImpl.java:971)
at com.google.inject.internal.InjectorImpl.getProvider(InjectorImpl.java:932)
at com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:984)
at org.sonatype.guice.bean.reflect.AbstractDeferredClass.get(AbstractDeferredClass.java:48)
at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:40)
at com.google.inject.internal.InjectorImpl$4$1.call(InjectorImpl.java:949)
at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1002)
at com.google.inject.internal.InjectorImpl$4.get(InjectorImpl.java:945)
at com.google.inject.Scopes$1$1.get(Scopes.java:59)
at org.sonatype.guice.bean.locators.LazyQualifiedBean.getValue(LazyQualifiedBean.java:66)
at org.sonatype.guice.plexus.locators.LazyPlexusBean.getValue(LazyPlexusBean.java:54)
at org.sonatype.guice.plexus.binders.PlexusRequirements$RequirementProvider.get(PlexusRequirements.java:222)
at org.sonatype.guice.plexus.binders.ProvidedPropertyBinding.injectProperty(ProvidedPropertyBinding.java:50)
at org.sonatype.guice.bean.inject.BeanInjector.doInjection(BeanInjector.java:101)
at org.sonatype.guice.bean.inject.BeanInjector.injectMembers(BeanInjector.java:66)
at com.google.inject.internal.MembersInjectorImpl.injectMembers(MembersInjectorImpl.java:120)
at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:94)
at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:253)
at com.google.inject.internal.InjectorImpl$4$1.call(InjectorImpl.java:949)
at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1002)
at com.google.inject.internal.InjectorImpl$4.get(InjectorImpl.java:945)
at com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:984)
at org.sonatype.guice.bean.reflect.AbstractDeferredClass.get(AbstractDeferredClass.java:48)
at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:40)
at com.google.inject.internal.InjectorImpl$4$1.call(InjectorImpl.java:949)
at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:995)
at com.google.inject.internal.InjectorImpl$4.get(InjectorImpl.java:945)
at com.google.inject.Scopes$1$1.get(Scopes.java:59)
at org.sonatype.guice.bean.locators.LazyQualifiedBean.getValue(LazyQualifiedBean.java:66)
at org.sonatype.guice.plexus.locators.LazyPlexusBean.getValue(LazyPlexusBean.java:54)
at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:247)
at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:239)
at org.apache.maven.plugin.internal.DefaultMavenPluginManager.getConfiguredMojo(DefaultMavenPluginManager.java:451)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:98)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
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:597)
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: java.lang.ClassNotFoundException: org.codehaus.plexus.components.io.resources.PlexusIoResourceCollection
at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50)
at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:244)
at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:230)
... 66 more
5 [main] ERROR org.sonatype.guice.bean.reflect.LoadedClass - Error injecting: org.apache.maven.plugin.jar.JarMojo
com.google.inject.ProvisionException: Guice provision errors:
1) Error injecting: org.codehaus.plexus.archiver.jar.JarArchiver
at ClassRealm[plugin>org.apache.maven.plugins:maven-jar-plugin:2.3.1, parent: sun.misc.Launcher$AppClassLoader#addbf1]
while locating org.codehaus.plexus.archiver.Archiver annotated with #com.google.inject.name.Named(value=jar)
while locating org.apache.maven.plugin.jar.JarMojo
1 error
at com.google.inject.internal.InjectorImpl$4.get(InjectorImpl.java:958)
at com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:984)
at org.sonatype.guice.bean.reflect.AbstractDeferredClass.get(AbstractDeferredClass.java:48)
at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:40)
at com.google.inject.internal.InjectorImpl$4$1.call(InjectorImpl.java:949)
at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:995)
at com.google.inject.internal.InjectorImpl$4.get(InjectorImpl.java:945)
at com.google.inject.Scopes$1$1.get(Scopes.java:59)
at org.sonatype.guice.bean.locators.LazyQualifiedBean.getValue(LazyQualifiedBean.java:66)
at org.sonatype.guice.plexus.locators.LazyPlexusBean.getValue(LazyPlexusBean.java:54)
at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:247)
at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:239)
at org.apache.maven.plugin.internal.DefaultMavenPluginManager.getConfiguredMojo(DefaultMavenPluginManager.java:451)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:98)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
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:597)
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: java.lang.NoClassDefFoundError: org/codehaus/plexus/components/io/resources/PlexusIoResourceCollection
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)
at java.lang.Class.getDeclaredConstructors(Class.java:1836)
at com.google.inject.spi.InjectionPoint.forConstructorOf(InjectionPoint.java:243)
at com.google.inject.internal.ConstructorBindingImpl.create(ConstructorBindingImpl.java:96)
at com.google.inject.internal.InjectorImpl.createUninitializedBinding(InjectorImpl.java:609)
at com.google.inject.internal.InjectorImpl.createJustInTimeBinding(InjectorImpl.java:816)
at com.google.inject.internal.InjectorImpl.createJustInTimeBindingRecursive(InjectorImpl.java:750)
at com.google.inject.internal.InjectorImpl.getJustInTimeBinding(InjectorImpl.java:235)
at com.google.inject.internal.InjectorImpl.getBindingOrThrow(InjectorImpl.java:185)
at com.google.inject.internal.InjectorImpl.getInternalFactory(InjectorImpl.java:824)
at com.google.inject.internal.InjectorImpl.getProviderOrThrow(InjectorImpl.java:938)
at com.google.inject.internal.InjectorImpl.getProvider(InjectorImpl.java:971)
at com.google.inject.internal.InjectorImpl.getProvider(InjectorImpl.java:932)
at com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:984)
at org.sonatype.guice.bean.reflect.AbstractDeferredClass.get(AbstractDeferredClass.java:48)
at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:40)
at com.google.inject.internal.InjectorImpl$4$1.call(InjectorImpl.java:949)
at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1002)
at com.google.inject.internal.InjectorImpl$4.get(InjectorImpl.java:945)
at com.google.inject.Scopes$1$1.get(Scopes.java:59)
at org.sonatype.guice.bean.locators.LazyQualifiedBean.getValue(LazyQualifiedBean.java:66)
at org.sonatype.guice.plexus.locators.LazyPlexusBean.getValue(LazyPlexusBean.java:54)
at org.sonatype.guice.plexus.binders.PlexusRequirements$RequirementProvider.get(PlexusRequirements.java:222)
at org.sonatype.guice.plexus.binders.ProvidedPropertyBinding.injectProperty(ProvidedPropertyBinding.java:50)
at org.sonatype.guice.bean.inject.BeanInjector.doInjection(BeanInjector.java:101)
at org.sonatype.guice.bean.inject.BeanInjector.injectMembers(BeanInjector.java:66)
at com.google.inject.internal.MembersInjectorImpl.injectMembers(MembersInjectorImpl.java:120)
at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:94)
at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:253)
at com.google.inject.internal.InjectorImpl$4$1.call(InjectorImpl.java:949)
at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1002)
at com.google.inject.internal.InjectorImpl$4.get(InjectorImpl.java:945)
... 33 more
Caused by: java.lang.ClassNotFoundException: org.codehaus.plexus.components.io.resources.PlexusIoResourceCollection
at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50)
at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:244)
at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:230)
... 66 more
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.228s
[INFO] Finished at: Wed Aug 01 11:07:17 KST 2012
[INFO] Final Memory: 4M/15M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-jar-plugin:2.3.1:jar (default-jar) on project javaperf_io_ReadFile: Execution default-jar of goal org.apache.maven.plugins:maven-jar-plugin:2.3.1:jar failed: Unable to load the mojo 'jar' in the plugin 'org.apache.maven.plugins:maven-jar-plugin:2.3.1'. A required class is missing: org/codehaus/plexus/components/io/resources/PlexusIoResourceCollection
[ERROR] -----------------------------------------------------
[ERROR] realm = plugin>org.apache.maven.plugins:maven-jar-plugin:2.3.1
[ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
[ERROR] urls[0] = file:/C:/maven/repository/org/apache/maven/plugins/maven-jar-plugin/2.3.1/maven-jar-plugin-2.3.1.jar
[ERROR] urls[1] = file:/C:/maven/repository/junit/junit/3.8.1/junit-3.8.1.jar
[ERROR] urls[2] = file:/C:/maven/repository/org/apache/maven/maven-archiver/2.4.1/maven-archiver-2.4.1.jar
[ERROR] urls[3] = file:/C:/maven/repository/org/codehaus/plexus/plexus-archiver/1.0/plexus-archiver-1.0.jar
[ERROR] urls[4] = file:/C:/maven/repository/commons-lang/commons-lang/2.1/commons-lang-2.1.jar
[ERROR] urls[5] = file:/C:/maven/repository/org/codehaus/plexus/plexus-utils/2.0.5/plexus-utils-2.0.5.jar
[ERROR] Number of foreign imports: 1
[ERROR] import: Entry[import from realm ClassRealm[maven.api, parent: null]]
[ERROR]
[ERROR] -----------------------------------------------------: org.codehaus.plexus.components.io.resources.PlexusIoResourceCollection
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginContainerException