Sonar Upgrade Error - 4.2

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Sonar Upgrade Error - 4.2

jbdundas
Hi,

I am getting this issue after upgrading the server from 3.7 to 4.2 . I have gone through the URL. The problem is that I need both the Groovy and the SQALE plugin and I cannot have just one of them.Please help in fixing this:-

I faced the issue while adding groovy plugin ( see for fixing -> http://sonarqube.15.x6.nabble.com/Fwd-sonar-dev-Sonar-4-1-2-failed-to-start-after-upgrading-Groovy-plugin-from-0-6-to-1-0-1-

td5023356.html )
2014.04.04 18:17:19 INFO  [o.s.s.s.RegisterNewProfiles]  Register Quality Profiles done: 20972 ms
2014.04.04 18:17:20 INFO  [org.sonar.INFO]  Remove deleted active rule documents...
2014.04.04 18:17:20 INFO  [org.sonar.INFO]  Remove deleted active rule documents done: 2 ms
2014.04.04 18:17:20 INFO  [o.s.s.s.RegisterTechnicalDebtModel]  Register Technical Debt Model...
2014.04.04 18:17:22 ERROR [o.s.s.p.PlatformLifecycleListener]  Fail to start server
java.util.NoSuchElementException: null
        at com.google.common.collect.AbstractIterator.next(AbstractIterator.java:152) ~[guava-10.0.1.jar:na]
        at com.google.common.collect.Iterators.find(Iterators.java:715) ~[guava-10.0.1.jar:na]
        at com.google.common.collect.Iterables.find(Iterables.java:638) ~[guava-10.0.1.jar:na]
        at org.sonar.core.technicaldebt.TechnicalDebtModelSynchronizer.findCharacteristic(TechnicalDebtModelSynchronizer.java:173) ~[sonar-core-4.2.jar:na]
        at org.sonar.core.technicaldebt.TechnicalDebtModelSynchronizer.mergePlugin(TechnicalDebtModelSynchronizer.java:126) ~[sonar-core-4.2.jar:na]
        at org.sonar.core.technicaldebt.TechnicalDebtModelSynchronizer.mergePlugins(TechnicalDebtModelSynchronizer.java:116) ~[sonar-core-4.2.jar:na]
        at org.sonar.core.technicaldebt.TechnicalDebtModelSynchronizer.synchronize(TechnicalDebtModelSynchronizer.java:78) ~[sonar-core-4.2.jar:na]
        at org.sonar.core.technicaldebt.TechnicalDebtModelSynchronizer.synchronize(TechnicalDebtModelSynchronizer.java:66) ~[sonar-core-4.2.jar:na]
        at org.sonar.server.startup.RegisterTechnicalDebtModel.start(RegisterTechnicalDebtModel.java:49) ~[RegisterTechnicalDebtModel.class:na]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.7.0_13]
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[na:1.7.0_13]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.7.0_13]
        at java.lang.reflect.Method.invoke(Method.java:601) ~[na:1.7.0_13]
        at org.picocontainer.lifecycle.ReflectionLifecycleStrategy.invokeMethod(ReflectionLifecycleStrategy.java:110) ~[picocontainer-2.14.3.jar:na]
        at org.picocontainer.lifecycle.ReflectionLifecycleStrategy.start(ReflectionLifecycleStrategy.java:89) ~[picocontainer-2.14.3.jar:na]
        at org.picocontainer.injectors.AbstractInjectionFactory$LifecycleAdapter.start(AbstractInjectionFactory.java:84) ~[picocontainer-2.14.3.jar:na]
        at org.picocontainer.behaviors.AbstractBehavior.start(AbstractBehavior.java:169) ~[picocontainer-2.14.3.jar:na]
        at org.picocontainer.behaviors.Stored$RealComponentLifecycle.start(Stored.java:132) ~[picocontainer-2.14.3.jar:na]
        at org.picocontainer.behaviors.Stored.start(Stored.java:110) ~[picocontainer-2.14.3.jar:na]
        at org.picocontainer.DefaultPicoContainer.potentiallyStartAdapter(DefaultPicoContainer.java:1015) ~[picocontainer-2.14.3.jar:na]
        at org.picocontainer.DefaultPicoContainer.startAdapters(DefaultPicoContainer.java:1008) ~[picocontainer-2.14.3.jar:na]
        at org.picocontainer.DefaultPicoContainer.start(DefaultPicoContainer.java:766) ~[picocontainer-2.14.3.jar:na]
        at org.sonar.api.platform.ComponentContainer.startComponents(ComponentContainer.java:91) ~[sonar-plugin-api-4.2.jar:na]
        at org.sonar.server.platform.Platform.executeStartupTasks(Platform.java:433) ~[Platform.class:na]
        at org.sonar.server.platform.Platform.start(Platform.java:176) ~[Platform.class:na]
        at org.sonar.server.platform.PlatformLifecycleListener.contextInitialized(PlatformLifecycleListener.java:54) ~[PlatformLifecycleListener.class:na]
        at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4939) [tomcat-embed-core-7.0.42.jar:7.0.42]
        at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5434) [tomcat-embed-core-7.0.42.jar:7.0.42]
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) [tomcat-embed-core-7.0.42.jar:7.0.42]
        at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559) [tomcat-embed-core-7.0.42.jar:7.0.42]
        at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549) [tomcat-embed-core-7.0.42.jar:7.0.42]
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) [na:1.7.0_13]
        at java.util.concurrent.FutureTask.run(FutureTask.java:166) [na:1.7.0_13]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_13]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_13]
        at java.lang.Thread.run(Thread.java:722) [na:1.7.0_13]
2014.04.04 18:17:22 INFO  [o.s.s.n.NotificationService]  Notification service stopped
2014.04.04 18:17:22 INFO  [o.elasticsearch.node]  [sonarqube] stopping ...


Thanks & Regards,
Jitesh Dundas

Phone - 732-357-6292





---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email

soanr_upgrade_error_sqale.PNG (52K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Sonar Upgrade Error - 4.2

jbdundas
Ok, I managed to fix this issue. Turns out I had to restart the server and then after following those steps, I had to install Groovy plugin.

This issue should be documented somewhere or the workaround can be mentioned on the plugin if possible.

Thank you for the solution. Appreciate your help.

Thanks & Regards,
Jitesh Dundas

Phone - 732-357-6292





On Fri, Apr 4, 2014 at 6:29 PM, jitesh dundas <[hidden email]> wrote:
Hi,

I am getting this issue after upgrading the server from 3.7 to 4.2 . I have gone through the URL. The problem is that I need both the Groovy and the SQALE plugin and I cannot have just one of them.Please help in fixing this:-

I faced the issue while adding groovy plugin ( see for fixing -> http://sonarqube.15.x6.nabble.com/Fwd-sonar-dev-Sonar-4-1-2-failed-to-start-after-upgrading-Groovy-plugin-from-0-6-to-1-0-1-

td5023356.html )
<a href="tel:2014.04.04%2018" value="+12014040418" target="_blank">2014.04.04 18:17:19 INFO  [o.s.s.s.RegisterNewProfiles]  Register Quality Profiles done: 20972 ms
<a href="tel:2014.04.04%2018" value="+12014040418" target="_blank">2014.04.04 18:17:20 INFO  [org.sonar.INFO]  Remove deleted active rule documents...
<a href="tel:2014.04.04%2018" value="+12014040418" target="_blank">2014.04.04 18:17:20 INFO  [org.sonar.INFO]  Remove deleted active rule documents done: 2 ms
<a href="tel:2014.04.04%2018" value="+12014040418" target="_blank">2014.04.04 18:17:20 INFO  [o.s.s.s.RegisterTechnicalDebtModel]  Register Technical Debt Model...
<a href="tel:2014.04.04%2018" value="+12014040418" target="_blank">2014.04.04 18:17:22 ERROR [o.s.s.p.PlatformLifecycleListener]  Fail to start server
java.util.NoSuchElementException: null
        at com.google.common.collect.AbstractIterator.next(AbstractIterator.java:152) ~[guava-10.0.1.jar:na]
        at com.google.common.collect.Iterators.find(Iterators.java:715) ~[guava-10.0.1.jar:na]
        at com.google.common.collect.Iterables.find(Iterables.java:638) ~[guava-10.0.1.jar:na]
        at org.sonar.core.technicaldebt.TechnicalDebtModelSynchronizer.findCharacteristic(TechnicalDebtModelSynchronizer.java:173) ~[sonar-core-4.2.jar:na]
        at org.sonar.core.technicaldebt.TechnicalDebtModelSynchronizer.mergePlugin(TechnicalDebtModelSynchronizer.java:126) ~[sonar-core-4.2.jar:na]
        at org.sonar.core.technicaldebt.TechnicalDebtModelSynchronizer.mergePlugins(TechnicalDebtModelSynchronizer.java:116) ~[sonar-core-4.2.jar:na]
        at org.sonar.core.technicaldebt.TechnicalDebtModelSynchronizer.synchronize(TechnicalDebtModelSynchronizer.java:78) ~[sonar-core-4.2.jar:na]
        at org.sonar.core.technicaldebt.TechnicalDebtModelSynchronizer.synchronize(TechnicalDebtModelSynchronizer.java:66) ~[sonar-core-4.2.jar:na]
        at org.sonar.server.startup.RegisterTechnicalDebtModel.start(RegisterTechnicalDebtModel.java:49) ~[RegisterTechnicalDebtModel.class:na]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.7.0_13]
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[na:1.7.0_13]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.7.0_13]
        at java.lang.reflect.Method.invoke(Method.java:601) ~[na:1.7.0_13]
        at org.picocontainer.lifecycle.ReflectionLifecycleStrategy.invokeMethod(ReflectionLifecycleStrategy.java:110) ~[picocontainer-2.14.3.jar:na]
        at org.picocontainer.lifecycle.ReflectionLifecycleStrategy.start(ReflectionLifecycleStrategy.java:89) ~[picocontainer-2.14.3.jar:na]
        at org.picocontainer.injectors.AbstractInjectionFactory$LifecycleAdapter.start(AbstractInjectionFactory.java:84) ~[picocontainer-2.14.3.jar:na]
        at org.picocontainer.behaviors.AbstractBehavior.start(AbstractBehavior.java:169) ~[picocontainer-2.14.3.jar:na]
        at org.picocontainer.behaviors.Stored$RealComponentLifecycle.start(Stored.java:132) ~[picocontainer-2.14.3.jar:na]
        at org.picocontainer.behaviors.Stored.start(Stored.java:110) ~[picocontainer-2.14.3.jar:na]
        at org.picocontainer.DefaultPicoContainer.potentiallyStartAdapter(DefaultPicoContainer.java:1015) ~[picocontainer-2.14.3.jar:na]
        at org.picocontainer.DefaultPicoContainer.startAdapters(DefaultPicoContainer.java:1008) ~[picocontainer-2.14.3.jar:na]
        at org.picocontainer.DefaultPicoContainer.start(DefaultPicoContainer.java:766) ~[picocontainer-2.14.3.jar:na]
        at org.sonar.api.platform.ComponentContainer.startComponents(ComponentContainer.java:91) ~[sonar-plugin-api-4.2.jar:na]
        at org.sonar.server.platform.Platform.executeStartupTasks(Platform.java:433) ~[Platform.class:na]
        at org.sonar.server.platform.Platform.start(Platform.java:176) ~[Platform.class:na]
        at org.sonar.server.platform.PlatformLifecycleListener.contextInitialized(PlatformLifecycleListener.java:54) ~[PlatformLifecycleListener.class:na]
        at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4939) [tomcat-embed-core-7.0.42.jar:7.0.42]
        at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5434) [tomcat-embed-core-7.0.42.jar:7.0.42]
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) [tomcat-embed-core-7.0.42.jar:7.0.42]
        at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559) [tomcat-embed-core-7.0.42.jar:7.0.42]
        at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549) [tomcat-embed-core-7.0.42.jar:7.0.42]
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) [na:1.7.0_13]
        at java.util.concurrent.FutureTask.run(FutureTask.java:166) [na:1.7.0_13]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_13]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_13]
        at java.lang.Thread.run(Thread.java:722) [na:1.7.0_13]
<a href="tel:2014.04.04%2018" value="+12014040418" target="_blank">2014.04.04 18:17:22 INFO  [o.s.s.n.NotificationService]  Notification service stopped
<a href="tel:2014.04.04%2018" value="+12014040418" target="_blank">2014.04.04 18:17:22 INFO  [o.elasticsearch.node]  [sonarqube] stopping ...


Thanks & Regards,
Jitesh Dundas

Phone - <a href="tel:732-357-6292" value="+17323576292" target="_blank">732-357-6292