[Update Center] Automatically install dependencies

58 views
Skip to first unread message

David Racodon

unread,
Aug 4, 2016, 4:21:10 PM8/4/16
to SonarQube
Hi,

When a plugin depends on another plugin and this plugin is missing, the error is a bit cryptic in the log. Is there any plan to improve the log?
Also, I plan to add rules on JSON files in the Puppet plugin. Thus, the Puppet plugin will depend on the JSON plugin. Is there any plan to deal with dependencies in the Update Center and automatically install the dependencies (the JSON plugin when installing the Puppet plugin for example)?

2016.08.04 21:52:20 INFO  ce[o.s.c.c.CePluginRepository] Load plugins
2016.08.04 21:52:20 ERROR ce[o.s.ce.app.CeServer] Compute Engine startup failed
java.lang.NullPointerException: null
at org.sonar.core.platform.PluginLoader.basePluginKey(PluginLoader.java:176) ~[sonar-core-5.6.jar:na]
at org.sonar.core.platform.PluginLoader.defineClassloaders(PluginLoader.java:85) ~[sonar-core-5.6.jar:na]
at org.sonar.core.platform.PluginLoader.load(PluginLoader.java:71) ~[sonar-core-5.6.jar:na]
at org.sonar.ce.container.CePluginRepository.start(CePluginRepository.java:71) ~[sonar-ce-5.6.jar:na]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_45]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_45]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_45]
at java.lang.reflect.Method.invoke(Method.java:497) ~[na:1.8.0_45]
at org.picocontainer.lifecycle.ReflectionLifecycleStrategy.invokeMethod(ReflectionLifecycleStrategy.java:110) ~[picocontainer-2.15.jar:na]
at org.picocontainer.lifecycle.ReflectionLifecycleStrategy.start(ReflectionLifecycleStrategy.java:89) ~[picocontainer-2.15.jar:na]
at org.sonar.core.platform.ComponentContainer$1.start(ComponentContainer.java:320) ~[sonar-core-5.6.jar:na]
at org.picocontainer.injectors.AbstractInjectionFactory$LifecycleAdapter.start(AbstractInjectionFactory.java:84) ~[picocontainer-2.15.jar:na]
at org.picocontainer.behaviors.AbstractBehavior.start(AbstractBehavior.java:169) ~[picocontainer-2.15.jar:na]
at org.picocontainer.behaviors.Stored$RealComponentLifecycle.start(Stored.java:132) ~[picocontainer-2.15.jar:na]
at org.picocontainer.behaviors.Stored.start(Stored.java:110) ~[picocontainer-2.15.jar:na]
at org.picocontainer.DefaultPicoContainer.potentiallyStartAdapter(DefaultPicoContainer.java:1016) ~[picocontainer-2.15.jar:na]
at org.picocontainer.DefaultPicoContainer.startAdapters(DefaultPicoContainer.java:1009) ~[picocontainer-2.15.jar:na]
at org.picocontainer.DefaultPicoContainer.start(DefaultPicoContainer.java:767) ~[picocontainer-2.15.jar:na]
at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:141) ~[sonar-core-5.6.jar:na]
at org.sonar.ce.container.ComputeEngineContainerImpl.start(ComputeEngineContainerImpl.java:605) ~[sonar-ce-5.6.jar:na]
at org.sonar.ce.ComputeEngineImpl.startup(ComputeEngineImpl.java:43) ~[sonar-ce-5.6.jar:na]
at org.sonar.ce.app.CeServer$CeMainThread.startup(CeServer.java:175) [sonar-ce-5.6.jar:na]
at org.sonar.ce.app.CeServer$CeMainThread.attemptStartup(CeServer.java:165) [sonar-ce-5.6.jar:na]
at org.sonar.ce.app.CeServer$CeMainThread.run(CeServer.java:153) [sonar-ce-5.6.jar:na]

Thank you

Regards,

David RACODON
Freelance QA Consultant

eric.hi...@sonarsource.com

unread,
Aug 12, 2016, 2:43:37 AM8/12/16
to SonarQube
Hello,

I agree on the cryptic message.
At this point there is no plan for such an automated management of dependencies that would help your case.
Only few others similar needs were identified so far, leaving the subject opened for the moment.

Regards,

Éric HIRLEMANN | SonarSource
http://sonarsource.com
Reply all
Reply to author
Forward
0 new messages