我正在使用SonarQube 5.6.5。我的声纳java分析失败,出现以下错误消息。无法在任何地方找到解决方案。请帮助。
org.sonar.runner.impl.RunnerException:无法执行声纳 在org.sonar.runner.impl.BatchLauncher $ 1.delegateExecution(BatchLauncher.java:91) 在org.sonar.runner.impl.BatchLauncher $ 1.run(BatchLauncher.java:75) at java.security.AccessController.doPrivileged(Native Method) 在org.sonar.runner.impl.BatchLauncher.doExecute(BatchLauncher.java:69) 在org.sonar.runner.impl.BatchLauncher.execute(BatchLauncher.java:50) 在org.sonar.runner.api.EmbeddedRunner.doExecute(EmbeddedRunner.java:102) 在org.sonar.runner.api.Runner.execute(Runner.java:100) 在org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
引起:java.lang.IllegalStateException:无法加载组件类org.sonar.batch.report.ActiveRulesPublisher at org.sonar.core.platform.ComponentContainer $ ExtendedDefaultPicoContainer.getComponent(ComponentContainer.java:69) 在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) 在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) 在org.picocontainer.DefaultPicoContainer.instantiateComponentAsIsStartable(DefaultPicoContainer.java:1034) 在org.picocontainer.DefaultPicoContainer.addAdapterIfStartable(DefaultPicoContainer.java:1026) at org.picocontainer.DefaultPicoContainer.startAdapters(DefaultPicoContainer.java:1003) 在org.picocontainer.DefaultPicoContainer.start(DefaultPicoContainer.java:767) 在org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:141) 在org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:127) 在org.sonar.batch.task.ScanTask.execute(ScanTask.java:47) 在org.sonar.batch.task.TaskContainer.doAfterStart(TaskContainer.java:86) 在org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:142) 在org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:127) 在org.sonar.batch.bootstrap.GlobalContainer.executeTask(GlobalContainer.java:106) 在org.sonar.batch.bootstrapper.Batch.executeTask(Batch.java:119) 在org.sonar.batch.bootstrapper.Batch.execute(Batch.java:79) 在org.sonar.runner.batch.IsolatedLauncher.execute(IsolatedLauncher.java:48) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) 在org.sonar.runner.impl.BatchLauncher $ 1.delegateExecution(BatchLauncher.java:87) ......还有9个 引起:java.lang.IllegalStateException:无法加载组件接口org.sonar.api.batch.rule.ActiveRules
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)
... 41 more
引起:java.lang.NullPointerException at org.sonar.batch.rule.DefaultActiveRulesLoader.readPage(DefaultActiveRulesLoader.java:100) 在org.sonar.batch.rule.DefaultActiveRulesLoader.load(DefaultActiveRulesLoader.java:60) 在org.sonar.batch.rule.ActiveRulesProvider.load(ActiveRulesProvider.java:102) 在org.sonar.batch.rule.ActiveRulesProvider.load(ActiveRulesProvider.java:63) 在org.sonar.batch.rule.ActiveRulesProvider.provide(ActiveRulesProvider.java:49) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) 在org.picocontainer.injectors.MethodInjector.invokeMethod(MethodInjector.java:129) at org.picocontainer.injectors.MethodInjector.access $ 000(MethodInjector.java:39) 在org.picocontainer.injectors.MethodInjector $ 2.run(MethodInjector.java:113) at org.picocontainer.injectors.AbstractInjector $ ThreadLocalCyclicDependencyGuard.observe(AbstractInjector.java:270) at org.picocontainer.injectors.MethodInjector.decorateComponentInstance(MethodInjector.java:120) 在org.picocontainer.injectors.CompositeInjector.decorateComponentInstance(CompositeInjector.java:58) 在org.picocontainer.injectors.Reinjector.reinject(Reinjector.java:142) 在org.picocontainer.injectors.ProviderAdapter.getComponentInstance(ProviderAdapter.java:96) at org.picocontainer.DefaultPicoContainer.getInstance(DefaultPicoContainer.java:699) 在org.picocontainer.DefaultPicoContainer.getComponent(DefaultPicoContainer.java:647) at org.sonar.core.platform.ComponentContainer $ ExtendedDefaultPicoContainer.getComponent(ComponentContainer.java:67) ......还有55个