Getting BootstrapException in C# project

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Getting BootstrapException in C# project

Guru
Hi,

i'm getting the below exception one of my c# projects? can some one help me to resolve the same?

[exec] Exception in thread "main" org.sonar.batch.bootstrapper.BootstrapException: org.picocontainer.PicoLifecycleException: PicoLifecycleException: method 'public void org.sonar.batch.ProjectTree.start() throws java.io.IOException', instance 'org.sonar.batch.ProjectTree@a7bd7a9, javax.persistence.NonUniqueResultException: Expected single result, but got : [Snapshot[resourceId=368,createdAt=2013-05-07 15:56:30.759,version=1.0-SNAPSHOT,last=true,status=P,scope=PRJ,path=37013.,depth=1,qualifier=BRC,rootId=37013,parentId=37013,rootProjectId=4255,period1Mode=previous_analysis,period2Mode=days,period3Mode=days,period4Mode=<null>,period5Mode=<null>,period1Param=2013-05-07,period2Param=5,period3Param=30,period4Param=<null>,period5Param=<null>,period1Date=2013-05-07 14:52:30.628,period2Date=2013-05-02 15:56:30.759,period3Date=2013-04-07 15:56:30.759,period4Date=<null>,period5Date=<null>,id=37018], Snapshot[resourceId=368,createdAt=2013-05-07 16:04:33.864,version=1.0-SNAPSHOT,last=true,status=P,scope=PRJ,path=37101.,depth=1,qualifier=BRC,rootId=37101,parentId=37101,rootProjectId=4895,period1Mode=previous_analysis,period2Mode=days,period3Mode=days,period4Mode=<null>,period5Mode=<null>,period1Param=2013-05-07,period2Param=5,period3Param=30,period4Param=<null>,period5Param=<null>,period1Date=2013-05-07 14:52:30.628,period2Date=2013-05-02 16:04:33.864,period3Date=2013-04-07 16:04:33.864,period4Date=<null>,period5Date=<null>,id=37104]]
     [exec] at org.sonar.runner.Runner.delegateExecution(Runner.java:155)
     [exec] at org.sonar.runner.Runner.execute(Runner.java:58)
     [exec] at org.sonar.runner.Main.main(Main.java:52)
     [exec] Caused by: org.picocontainer.PicoLifecycleException: PicoLifecycleException: method 'public void org.sonar.batch.ProjectTree.start() throws java.io.IOException', instance 'org.sonar.batch.ProjectTree@a7bd7a9, javax.persistence.NonUniqueResultException: Expected single result, but got : [Snapshot[resourceId=368,createdAt=2013-05-07 15:56:30.759,version=1.0-SNAPSHOT,last=true,status=P,scope=PRJ,path=37013.,depth=1,qualifier=BRC,rootId=37013,parentId=37013,rootProjectId=4255,period1Mode=previous_analysis,period2Mode=days,period3Mode=days,period4Mode=<null>,period5Mode=<null>,period1Param=2013-05-07,period2Param=5,period3Param=30,period4Param=<null>,period5Param=<null>,period1Date=2013-05-07 14:52:30.628,period2Date=2013-05-02 15:56:30.759,period3Date=2013-04-07 15:56:30.759,period4Date=<null>,period5Date=<null>,id=37018], Snapshot[resourceId=368,createdAt=2013-05-07 16:04:33.864,version=1.0-SNAPSHOT,last=true,status=P,scope=PRJ,path=37101.,depth=1,qualifier=BRC,rootId=37101,parentId=37101,rootProjectId=4895,period1Mode=previous_analysis,period2Mode=days,period3Mode=days,period4Mode=<null>,period5Mode=<null>,period1Param=2013-05-07,period2Param=5,period3Param=30,period4Param=<null>,period5Param=<null>,period1Date=2013-05-07 14:52:30.628,period2Date=2013-05-02 16:04:33.864,period3Date=2013-04-07 16:04:33.864,period4Date=<null>,period5Date=<null>,id=37104]]
     [exec] at org.picocontainer.monitors.NullComponentMonitor.lifecycleInvocationFailed(NullComponentMonitor.java:77)
     [exec] at org.picocontainer.lifecycle.ReflectionLifecycleStrategy.monitorAndThrowReflectionLifecycleException(ReflectionLifecycleStrategy.java:132)
     [exec] at org.picocontainer.lifecycle.ReflectionLifecycleStrategy.invokeMethod(ReflectionLifecycleStrategy.java:115)
     [exec] at org.picocontainer.lifecycle.ReflectionLifecycleStrategy.start(ReflectionLifecycleStrategy.java:89)
     [exec] at org.picocontainer.injectors.AbstractInjectionFactory$LifecycleAdapter.start(AbstractInjectionFactory.java:84)
     [exec] at org.picocontainer.behaviors.AbstractBehavior.start(AbstractBehavior.java:169)
     [exec] at org.picocontainer.behaviors.Stored$RealComponentLifecycle.start(Stored.java:132)
     [exec] at org.picocontainer.behaviors.Stored.start(Stored.java:110)
     [exec] at org.picocontainer.DefaultPicoContainer.potentiallyStartAdapter(DefaultPicoContainer.java:996)
     [exec] at org.picocontainer.DefaultPicoContainer.startAdapters(DefaultPicoContainer.java:989)
     [exec] at org.picocontainer.DefaultPicoContainer.start(DefaultPicoContainer.java:746)
     [exec] at org.sonar.api.platform.ComponentContainer.startComponents(ComponentContainer.java:70)
     [exec] at org.sonar.batch.bootstrap.Module.start(Module.java:82)
     [exec] at org.sonar.batch.bootstrap.BootstrapModule.doStart(BootstrapModule.java:102)
     [exec] at org.sonar.batch.bootstrap.Module.start(Module.java:83)
     [exec] at org.sonar.batch.Batch.execute(Batch.java:100)
     [exec] at org.sonar.runner.Launcher.executeBatch(Launcher.java:60)
     [exec] at org.sonar.runner.Launcher.execute(Launcher.java:53)
     [exec] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     [exec] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
     [exec] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
     [exec] at java.lang.reflect.Method.invoke(Unknown Source)
     [exec] at org.sonar.runner.Runner.delegateExecution(Runner.java:152)
     [exec] ... 2 more
     [exec] Caused by: javax.persistence.NonUniqueResultException: Expected single result, but got : [Snapshot[resourceId=368,createdAt=2013-05-07 15:56:30.759,version=1.0-SNAPSHOT,last=true,status=P,scope=PRJ,path=37013.,depth=1,qualifier=BRC,rootId=37013,parentId=37013,rootProjectId=4255,period1Mode=previous_analysis,period2Mode=days,period3Mode=days,period4Mode=<null>,period5Mode=<null>,period1Param=2013-05-07,period2Param=5,period3Param=30,period4Param=<null>,period5Param=<null>,period1Date=2013-05-07 14:52:30.628,period2Date=2013-05-02 15:56:30.759,period3Date=2013-04-07 15:56:30.759,period4Date=<null>,period5Date=<null>,id=37018], Snapshot[resourceId=368,createdAt=2013-05-07 16:04:33.864,version=1.0-SNAPSHOT,last=true,status=P,scope=PRJ,path=37101.,depth=1,qualifier=BRC,rootId=37101,parentId=37101,rootProjectId=4895,period1Mode=previous_analysis,period2Mode=days,period3Mode=days,period4Mode=<null>,period5Mode=<null>,period1Param=2013-05-07,period2Param=5,period3Param=30,period4Param=<null>,period5Param=<null>,period1Date=2013-05-07 14:52:30.628,period2Date=2013-05-02 16:04:33.864,period3Date=2013-04-07 16:04:33.864,period4Date=<null>,period5Date=<null>,id=37104]]
     [exec] at org.sonar.jpa.session.JpaDatabaseSession.getSingleResult(JpaDatabaseSession.java:195)
     [exec] at org.sonar.jpa.session.JpaDatabaseSession.getSingleResult(JpaDatabaseSession.java:213)
     [exec] at org.sonar.batch.ProjectConfigurator.isLatestAnalysis(ProjectConfigurator.java:84)
     [exec] at org.sonar.batch.ProjectConfigurator.configure(ProjectConfigurator.java:71)
     [exec] at org.sonar.batch.ProjectTree.doStart(ProjectTree.java:89)
     [exec] at org.sonar.batch.ProjectTree.start(ProjectTree.java:66)
     [exec] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     [exec] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
     [exec] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
     [exec] at java.lang.reflect.Method.invoke(Unknown Source)
     [exec] at org.picocontainer.lifecycle.ReflectionLifecycleStrategy.invokeMethod(ReflectionLifecycleStrategy.java:110)
     [exec] ... 22 more
Reply | Threaded
Open this post in threaded view
|

Re: Getting BootstrapException in C# project

Freddy Mallet
Could you send back the result of the following SQL request : "select * from projects where id = 368" ?

Thanks

-----
SonarQube for Continuous Inspection


On Tue, Aug 27, 2013 at 3:56 PM, Guru <[hidden email]> wrote:
Hi,

i'm getting the below exception one of my c# projects? can some one help me
to resolve the same?

[exec] Exception in thread "main"
org.sonar.batch.bootstrapper.BootstrapException:
org.picocontainer.PicoLifecycleException: PicoLifecycleException: method
'public void org.sonar.batch.ProjectTree.start() throws
java.io.IOException', instance 'org.sonar.batch.ProjectTree@a7bd7a9,
javax.persistence.NonUniqueResultException: Expected single result, but got
: [Snapshot[resourceId=368,createdAt=2013-05-07
15:56:30.759,version=1.0-SNAPSHOT,last=true,status=P,scope=PRJ,path=37013.,depth=1,qualifier=BRC,rootId=37013,parentId=37013,rootProjectId=4255,period1Mode=previous_analysis,period2Mode=days,period3Mode=days,period4Mode=<null>,period5Mode=<null>,period1Param=2013-05-07,period2Param=5,period3Param=30,period4Param=<null>,period5Param=<null>,period1Date=2013-05-07
14:52:30.628,period2Date=2013-05-02 15:56:30.759,period3Date=2013-04-07
15:56:30.759,period4Date=<null>,period5Date=<null>,id=37018],
Snapshot[resourceId=368,createdAt=2013-05-07
16:04:33.864,version=1.0-SNAPSHOT,last=true,status=P,scope=PRJ,path=37101.,depth=1,qualifier=BRC,rootId=37101,parentId=37101,rootProjectId=4895,period1Mode=previous_analysis,period2Mode=days,period3Mode=days,period4Mode=<null>,period5Mode=<null>,period1Param=2013-05-07,period2Param=5,period3Param=30,period4Param=<null>,period5Param=<null>,period1Date=2013-05-07
14:52:30.628,period2Date=2013-05-02 16:04:33.864,period3Date=2013-04-07
16:04:33.864,period4Date=<null>,period5Date=<null>,id=37104]]
     [exec]     at org.sonar.runner.Runner.delegateExecution(Runner.java:155)
     [exec]     at org.sonar.runner.Runner.execute(Runner.java:58)
     [exec]     at org.sonar.runner.Main.main(Main.java:52)
     [exec] Caused by: org.picocontainer.PicoLifecycleException:
PicoLifecycleException: method 'public void
org.sonar.batch.ProjectTree.start() throws java.io.IOException', instance
'org.sonar.batch.ProjectTree@a7bd7a9,
javax.persistence.NonUniqueResultException: Expected single result, but got
: [Snapshot[resourceId=368,createdAt=2013-05-07
15:56:30.759,version=1.0-SNAPSHOT,last=true,status=P,scope=PRJ,path=37013.,depth=1,qualifier=BRC,rootId=37013,parentId=37013,rootProjectId=4255,period1Mode=previous_analysis,period2Mode=days,period3Mode=days,period4Mode=<null>,period5Mode=<null>,period1Param=2013-05-07,period2Param=5,period3Param=30,period4Param=<null>,period5Param=<null>,period1Date=2013-05-07
14:52:30.628,period2Date=2013-05-02 15:56:30.759,period3Date=2013-04-07
15:56:30.759,period4Date=<null>,period5Date=<null>,id=37018],
Snapshot[resourceId=368,createdAt=2013-05-07
16:04:33.864,version=1.0-SNAPSHOT,last=true,status=P,scope=PRJ,path=37101.,depth=1,qualifier=BRC,rootId=37101,parentId=37101,rootProjectId=4895,period1Mode=previous_analysis,period2Mode=days,period3Mode=days,period4Mode=<null>,period5Mode=<null>,period1Param=2013-05-07,period2Param=5,period3Param=30,period4Param=<null>,period5Param=<null>,period1Date=2013-05-07
14:52:30.628,period2Date=2013-05-02 16:04:33.864,period3Date=2013-04-07
16:04:33.864,period4Date=<null>,period5Date=<null>,id=37104]]
     [exec]     at
org.picocontainer.monitors.NullComponentMonitor.lifecycleInvocationFailed(NullComponentMonitor.java:77)
     [exec]     at
org.picocontainer.lifecycle.ReflectionLifecycleStrategy.monitorAndThrowReflectionLifecycleException(ReflectionLifecycleStrategy.java:132)
     [exec]     at
org.picocontainer.lifecycle.ReflectionLifecycleStrategy.invokeMethod(ReflectionLifecycleStrategy.java:115)
     [exec]     at
org.picocontainer.lifecycle.ReflectionLifecycleStrategy.start(ReflectionLifecycleStrategy.java:89)
     [exec]     at
org.picocontainer.injectors.AbstractInjectionFactory$LifecycleAdapter.start(AbstractInjectionFactory.java:84)
     [exec]     at
org.picocontainer.behaviors.AbstractBehavior.start(AbstractBehavior.java:169)
     [exec]     at
org.picocontainer.behaviors.Stored$RealComponentLifecycle.start(Stored.java:132)
     [exec]     at org.picocontainer.behaviors.Stored.start(Stored.java:110)
     [exec]     at
org.picocontainer.DefaultPicoContainer.potentiallyStartAdapter(DefaultPicoContainer.java:996)
     [exec]     at
org.picocontainer.DefaultPicoContainer.startAdapters(DefaultPicoContainer.java:989)
     [exec]     at
org.picocontainer.DefaultPicoContainer.start(DefaultPicoContainer.java:746)
     [exec]     at
org.sonar.api.platform.ComponentContainer.startComponents(ComponentContainer.java:70)
     [exec]     at org.sonar.batch.bootstrap.Module.start(Module.java:82)
     [exec]     at
org.sonar.batch.bootstrap.BootstrapModule.doStart(BootstrapModule.java:102)
     [exec]     at org.sonar.batch.bootstrap.Module.start(Module.java:83)
     [exec]     at org.sonar.batch.Batch.execute(Batch.java:100)
     [exec]     at org.sonar.runner.Launcher.executeBatch(Launcher.java:60)
     [exec]     at org.sonar.runner.Launcher.execute(Launcher.java:53)
     [exec]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     [exec]     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
     [exec]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source)
     [exec]     at java.lang.reflect.Method.invoke(Unknown Source)
     [exec]     at org.sonar.runner.Runner.delegateExecution(Runner.java:152)
     [exec]     ... 2 more
     [exec] Caused by: javax.persistence.NonUniqueResultException: Expected
single result, but got : [Snapshot[resourceId=368,createdAt=2013-05-07
15:56:30.759,version=1.0-SNAPSHOT,last=true,status=P,scope=PRJ,path=37013.,depth=1,qualifier=BRC,rootId=37013,parentId=37013,rootProjectId=4255,period1Mode=previous_analysis,period2Mode=days,period3Mode=days,period4Mode=<null>,period5Mode=<null>,period1Param=2013-05-07,period2Param=5,period3Param=30,period4Param=<null>,period5Param=<null>,period1Date=2013-05-07
14:52:30.628,period2Date=2013-05-02 15:56:30.759,period3Date=2013-04-07
15:56:30.759,period4Date=<null>,period5Date=<null>,id=37018],
Snapshot[resourceId=368,createdAt=2013-05-07
16:04:33.864,version=1.0-SNAPSHOT,last=true,status=P,scope=PRJ,path=37101.,depth=1,qualifier=BRC,rootId=37101,parentId=37101,rootProjectId=4895,period1Mode=previous_analysis,period2Mode=days,period3Mode=days,period4Mode=<null>,period5Mode=<null>,period1Param=2013-05-07,period2Param=5,period3Param=30,period4Param=<null>,period5Param=<null>,period1Date=2013-05-07
14:52:30.628,period2Date=2013-05-02 16:04:33.864,period3Date=2013-04-07
16:04:33.864,period4Date=<null>,period5Date=<null>,id=37104]]
     [exec]     at
org.sonar.jpa.session.JpaDatabaseSession.getSingleResult(JpaDatabaseSession.java:195)
     [exec]     at
org.sonar.jpa.session.JpaDatabaseSession.getSingleResult(JpaDatabaseSession.java:213)
     [exec]     at
org.sonar.batch.ProjectConfigurator.isLatestAnalysis(ProjectConfigurator.java:84)
     [exec]     at
org.sonar.batch.ProjectConfigurator.configure(ProjectConfigurator.java:71)
     [exec]     at org.sonar.batch.ProjectTree.doStart(ProjectTree.java:89)
     [exec]     at org.sonar.batch.ProjectTree.start(ProjectTree.java:66)
     [exec]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     [exec]     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
     [exec]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source)
     [exec]     at java.lang.reflect.Method.invoke(Unknown Source)
     [exec]     at
org.picocontainer.lifecycle.ReflectionLifecycleStrategy.invokeMethod(ReflectionLifecycleStrategy.java:110)
     [exec]     ... 22 more



--
View this message in context: http://sonar.15.x6.nabble.com/Getting-BootstrapException-in-C-project-tp5016385.html
Sent from the Sonar user mailing list archive at Nabble.com.

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

    http://xircles.codehaus.org/manage_email



Reply | Threaded
Open this post in threaded view
|

Re: Getting BootstrapException in C# project

Guru
This post was updated on .
here is the result of "select * from projects where id = 368" query.