|
View:
New views
6 Messages
—
Rating Filter:
Alert me
|
|
|
deleted entity passed to persistHas anyone seen an error like this? Sonar only fails for this project FooBar, but works for many others.
Maven 1.9.2 winxp [07:57:32]: [INFO] FooBar [class org.sonar.plugins.core.SaveProjectLinksFromPom] executing [07:57:32]: [INFO] ------------------------------------------------------------------------ [07:57:32]: [ERROR] BUILD ERROR [07:57:32]: [INFO] ------------------------------------------------------------------------ [07:57:32]: [INFO] Can not start sonar-core-maven-plugin [07:57:32]: [07:57:32]: Embedded error: deleted entity passed to persist: [org.sonar.commons.resources.ProjectLink#<null>] [07:57:32]: [INFO] ------------------------------------------------------------------------ [07:57:32]: [DEBUG] Trace [07:57:32]: org.apache.maven.lifecycle.LifecycleExecutionException: Can not start sonar-core-maven-plugin [07:57:32]: at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:583) [07:57:32]: at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:512) [07:57:32]: at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:482) [07:57:32]: at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330) [07:57:32]: at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:227) [07:57:32]: at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142) [07:57:32]: at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336) [07:57:32]: at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129) [07:57:32]: at org.apache.maven.cli.MavenCli.main(MavenCli.java:287) [07:57:32]: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [07:57:32]: at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [07:57:32]: at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [07:57:32]: at java.lang.reflect.Method.invoke(Method.java:585) [07:57:32]: at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) [07:57:32]: at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) [07:57:32]: at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) [07:57:32]: at org.codehaus.classworlds.Launcher.main(Launcher.java:375) [07:57:32]: Caused by: org.apache.maven.plugin.MojoExecutionException: Can not start sonar-core-maven-plugin [07:57:32]: at org.sonar.mojo.bootstrap.BootstrapMojo.execute(BootstrapMojo.java:90) [07:57:32]: at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451) [07:57:32]: at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558) [07:57:32]: ... 16 more [07:57:32]: Caused by: javax.persistence.EntityNotFoundException: deleted entity passed to persist: [org.sonar.commons.resources.ProjectLink#<null>] [07:57:32]: at org.hibernate.ejb.AbstractEntityManagerImpl.throwPersistenceException(AbstractEntityManagerImpl.java:614) [07:57:32]: at org.hibernate.ejb.AbstractEntityManagerImpl.flush(AbstractEntityManagerImpl.java:300) [07:57:32]: at org.sonar.commons.database.DatabaseSession.flush(DatabaseSession.java:148) [07:57:32]: at org.sonar.commons.database.DatabaseSession.remove(DatabaseSession.java:131) [07:57:32]: at org.sonar.mojo.ProjectContextImpl.removeLink(ProjectContextImpl.java:300) [07:57:32]: at org.sonar.plugins.core.SaveProjectLinksFromPom.updateLink(SaveProjectLinksFromPom.java:79) [07:57:32]: at org.sonar.plugins.core.SaveProjectLinksFromPom.collect(SaveProjectLinksFromPom.java:61) [07:57:32]: at org.sonar.plugins.core.SaveProjectLinksFromPom.collect(SaveProjectLinksFromPom.java:50) [07:57:32]: at org.sonar.mojo.InternalMojo.executeCollectors(InternalMojo.java:295) [07:57:32]: at org.sonar.mojo.InternalMojo.processModules(InternalMojo.java:177) [07:57:32]: at org.sonar.mojo.InternalMojo.execute(InternalMojo.java:156) [07:57:32]: at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451) [07:57:32]: at org.sonar.mojo.bootstrap.MojoExecutor.executeMojo(MojoExecutor.java:42) [07:57:32]: at org.sonar.mojo.bootstrap.BootstrapMojo.execute(BootstrapMojo.java:84) [07:57:32]: ... 18 more |
|
|
Re: deleted entity passed to persistHello,
Could you create a Jira ticket and attach a sample project to it ? This error seems to occur in your case when no scm developer connection is defined in the pom.xml file.
Your sample project could be very useful to reproduce this behavior. Thanks for your help Freddy On Tue, Jun 30, 2009 at 2:36 PM, harshavsn <harsha.sri-narayana@...> wrote:
|
|
|
Re: deleted entity passed to persistOur subversion structure looks like this:
trunk/libs/lib-foo trunk/apps/app-bar The maven release plugin places everything inside the tags directory: tags/lib-foo tags/app-bar I'm wondering why sonar requires correct scm information. Aren't they just comments?
|
|
|
Re: deleted entity passed to persistI recreated the mysql database from scratch and ran sonar again. Now it works.
My top theory explaining why.... I recently took down the sonar server for a few hours. I think in that time, other developers continued to make commits to the subversion server. When sonar came back online, there was a database conflict between it's internal data about this project FooBar and the subversion copy of FooBar. The real problem is that we've lost all the collected historical data. If this problem arises everytime we take the sonar server down, I suspect my managers are going to ditch my work on it. |
|
|
Re: deleted entity passed to persistStrange issue you are having...
Sonar does not need scm as such to function, it is only information that get displayed on the dashboard. I don't know you environment, but I do not believe very much in your top theory :-) Why would there be a conflict between scm and Sonar ? I simply think that the conditions of the crash have been clean by the fact you rebuilt mysql. To rebuild missing historical data, you should be able to use historical data injection : http://docs.codehaus.org/display/SONAR/Advanced+parameters To try to understand beeter your issue, could you try to provide the following info ? - do you run Sonar at every commit in SCM ? - do you combine Sonar with mvn release goal ? - would you be able to find scm infos before and after the crash ? Thanks Olivier On Mon, Jul 6, 2009 at 5:44 PM, harshavsn <harsha.sri-narayana@...> wrote:
|
|
|
Re: deleted entity passed to persistThe scm post is a red-herring. Indeed you are completely right that sonar requires no scm information. And you're right that it was cleaned by the sql rebuild(since the code hasn't changed from broken -> fixed). The only out of the ordinary event was taking down the sql server for a few hours. The svn server stayed up during this time.
It's very possible I didn't cleanly shut down sonar or mysql. |
| Free embeddable forum powered by Nabble | Forum Help |