RE: NullPointerException when adding a new build definition
Anshula, I've noted that if you set the new build as 'default' it let's you add it... Also, if you click on the type drop-down and select 'maven2' (which is what shows as default), also works... Hope that helps as a workaround, Regards, Iker -Original Message- From: Anshula [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 02, 2007 1:53 PM To: continuum-users@maven.apache.org Subject: Re: NullPointerException when adding a new build definition Hi, Even I observed the same bug. After opening the build definition for each project and saving it again, the builds start working correctly. But today I observed another bug. I have an existing default build definition for each of my projects (that has been exported from Continuum-beta2) . I tried to add another build definition today in my latest Continuum beta3 version and it is giving me the following exception - org.apache.maven.continuum.ContinuumException: Error while executing the action 'add-build-definition-to-project-group'. And underneath this exception I get a NullPointerException. The whole Stacktrace is in the attached file. I observed the same behaviour for both Maven2 and Ant projects. Any help will be appreciated...Thanks, Anshula http://www.nabble.com/file/p13007750/Stacktrace.txt Stacktrace.txt olivier lamy wrote: > > Hi, > Yes it is (an issue). > If you have some updates to do on the derby database, you can stop > continuum > and use squirrel [1] > > -- > Olivier > > [1]http://squirrel-sql.sourceforge.net/ > > 2007/10/2, Iker Almandoz <[EMAIL PROTECTED]>: >> >> Some more information that can be helpful: >> >> I have checked the project and no 'type' information is given for all the >> build definitions after the import was done... so this might be an issue >> with the import tool... >> >> To fix it, i went to the project view, "Build definition" and edited the >> default build definition to have type='maven2' >> >> Regards, >> Iker >> >> >> >> On 10/1/07, Iker Almandoz <[EMAIL PROTECTED]> wrote: >> > >> > Hi, >> > >> > I tried to add a new porject to my continuum-1.1-beta-3 and got a >> NullPointerException >> > Then i've tried to execute the default target for this project from the >> project group view page and got a " >> > >> > org.apache.maven.continuum.ContinuumException: Project (id=280 doens't >> have a default build definition." >> > >> > However, if i go to the actual project I do see a build definition, and >> if I click on it, the project builds successfully. >> > >> > >> > >> > Below is the log from the NullPointerException and the stacktrace i got >> when trying to add a build definition... >> > >> > Any ideas ? >> > >> > Please let me know if i can provide any more info to help debug this >> issue, >> > >> > >> > >> > Best regards, >> > Iker >> > >> > >> > INFO | jvm 1| 2007/10/01 18:46:43 | 2007-10-01 18:46:43,308 >> [pool-2-thread-1] INFO ContinuumScm:default - Checking out >> project: 'My Projet', id: '280' to '/usr/local/ >> > continuum- >> > 1.1-beta-3/apps/continuum/webapp/WEB-INF/working-directory/280'. >> > INFO | jvm 1| 2007/10/01 18:46:43 | 2007-10-01 18:46:43,334 >> [pool-2-thread-1] INFO ScmManager:default - Executing: >> /bin/sh >> -c "cd /usr/local/ >> > continuum- >> > 1.1-beta-3/apps/continuum/webapp/WEB-INF/working-directory && cvs -f -d >> :ext:[EMAIL PROTECTED]:/cvs -q checkout -d 280 my_project" >> > >> > INFO | jvm 1| 2007/10/01 18:46:43 | 2007-10-01 18:46:43,334 >> [pool-2-thread-1] INFO ScmManager:default - Working >> directory: >> /usr/local/continuum- >> > 1.1-beta-3 >> > /apps/continuum/webapp/WEB-INF/working-directory >> > INFO | jvm 1| 2007/10/01 18:46:44 | 2007-10-01 18:46:44,096 >> [pool-2-thread-1] INFO ContinuumScm:default - Checked out 2 >> files. >> > >> > INFO | jvm 1| 2007/10/01 18:47:06 | 2007-10-01 18:47:06,773 >> [SocketListener0-0] INFO Continuum:default - exception >> > >> > INFO | jvm 1| 2007/10/01 18:47:06 | >> > java.lang.NullPointerException >> > INFO | jvm 1| 2007/10/01 18:47:06 | at >> org.jpox.state.StateManagerImpl.internalMakePersistent( >> StateManagerImpl.java:3667) >> > I
Re: NullPointerException when adding a new build definition
Hi, Yes it is (an issue). If you have some updates to do on the derby database, you can stop continuum and use squirrel [1] -- Olivier [1]http://squirrel-sql.sourceforge.net/ 2007/10/2, Iker Almandoz <[EMAIL PROTECTED]>: > > Some more information that can be helpful: > > I have checked the project and no 'type' information is given for all the > build definitions after the import was done... so this might be an issue > with the import tool... > > To fix it, i went to the project view, "Build definition" and edited the > default build definition to have type='maven2' > > Regards, > Iker > > > > On 10/1/07, Iker Almandoz <[EMAIL PROTECTED]> wrote: > > > > Hi, > > > > I tried to add a new porject to my continuum-1.1-beta-3 and got a > NullPointerException > > Then i've tried to execute the default target for this project from the > project group view page and got a " > > > > org.apache.maven.continuum.ContinuumException: Project (id=280 doens't > have a default build definition." > > > > However, if i go to the actual project I do see a build definition, and > if I click on it, the project builds successfully. > > > > > > > > Below is the log from the NullPointerException and the stacktrace i got > when trying to add a build definition... > > > > Any ideas ? > > > > Please let me know if i can provide any more info to help debug this > issue, > > > > > > > > Best regards, > > Iker > > > > > > INFO | jvm 1| 2007/10/01 18:46:43 | 2007-10-01 18:46:43,308 > [pool-2-thread-1] INFO ContinuumScm:default - Checking out > project: 'My Projet', id: '280' to '/usr/local/ > > continuum- > > 1.1-beta-3/apps/continuum/webapp/WEB-INF/working-directory/280'. > > INFO | jvm 1| 2007/10/01 18:46:43 | 2007-10-01 18:46:43,334 > [pool-2-thread-1] INFO ScmManager:default - Executing: /bin/sh > -c "cd /usr/local/ > > continuum- > > 1.1-beta-3/apps/continuum/webapp/WEB-INF/working-directory && cvs -f -d > :ext:[EMAIL PROTECTED]:/cvs -q checkout -d 280 my_project" > > > > INFO | jvm 1| 2007/10/01 18:46:43 | 2007-10-01 18:46:43,334 > [pool-2-thread-1] INFO ScmManager:default - Working directory: > /usr/local/continuum- > > 1.1-beta-3 > > /apps/continuum/webapp/WEB-INF/working-directory > > INFO | jvm 1| 2007/10/01 18:46:44 | 2007-10-01 18:46:44,096 > [pool-2-thread-1] INFO ContinuumScm:default - Checked out 2 > files. > > > > INFO | jvm 1| 2007/10/01 18:47:06 | 2007-10-01 18:47:06,773 > [SocketListener0-0] INFO Continuum:default - exception > > > > INFO | jvm 1| 2007/10/01 18:47:06 | > > java.lang.NullPointerException > > INFO | jvm 1| 2007/10/01 18:47:06 | at > org.jpox.state.StateManagerImpl.internalMakePersistent( > StateManagerImpl.java:3667) > > INFO | jvm 1| 2007/10/01 18:47:06 | at > > org.jpox.state.StateManagerImpl.makePersistent > > (StateManagerImpl.java:3646) > > INFO | jvm 1| 2007/10/01 18:47:06 | at > org.jpox.AbstractPersistenceManager.internalMakePersistent( > AbstractPersistenceManager.java:1202) > > > > INFO | jvm 1| 2007/10/01 18:47:06 | at > org.jpox.AbstractPersistenceManager.makePersistent( > AbstractPersistenceManager.java:1261) > > INFO | jvm 1| 2007/10/01 18:47:06 | at > org.codehaus.plexus.jdo.PlexusJdoUtils.updateObject > > > > (PlexusJdoUtils.java:160) > > INFO | jvm 1| 2007/10/01 18:47:06 | at > org.apache.maven.continuum.store.JdoContinuumStore.updateObject( > JdoContinuumStore.java:855) > > INFO | jvm 1| 2007/10/01 18:47:06 | at > > org.apache.maven.continuum.store.JdoContinuumStore.updateObject > > (JdoContinuumStore.java:847) > > INFO | jvm 1| 2007/10/01 18:47:06 | at org.apache.maven. > > continuum.store.JdoContinuumStore.updateProject(JdoContinuumStore.java > :1232) > > INFO | jvm 1| 2007/10/01 18:47:06 | at > > > org.apache.maven.continuum.core.action.AddBuildDefinitionToProjectAction.execute > ( > > AddBuildDefinitionToProjectAction.java:51) > > INFO | jvm 1| 2007/10/01 18:47:06 | at > org.apache.maven.continuum.DefaultContinuum.executeAction > > (DefaultContinuum.java:2715) > > > > INFO | jvm 1| 2007/10/01 18:47:06 | at > org.apache.maven.continuum.DefaultContinuum.addBuildDefinitionToProject( > DefaultContinuum.java:2092) > > INFO | jvm 1| 2007/10/01 18:47:06 | at > > > > > org.apache.maven.continuum.web.action.BuildDefinitionAction.saveToProject( > BuildDefinitionAction.java:284) > > INFO | jvm 1| 2007/10/01 18:47:06 | at org.apache.maven. > > continuum.web.action.BuildDefinitionAction.saveBuildDefinition > > (BuildDefinitionAction.java:266) > > INFO | jvm 1| 2007/10/01 18:47:06 | at > sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > > INFO | jvm 1| 2007/10/01 18:47:06 | at > > sun.reflect.NativeMethodAccessorImpl.invoke > > (NativeMethodAccessorImpl.java:39) > > INFO | jvm 1| 2007/10/01 18:47:06 | at > sun.reflect.DelegatingMe
Re: NullPointerException when adding a new build definition
Some more information that can be helpful: I have checked the project and no 'type' information is given for all the build definitions after the import was done... so this might be an issue with the import tool... To fix it, i went to the project view, "Build definition" and edited the default build definition to have type='maven2' Regards, Iker On 10/1/07, Iker Almandoz <[EMAIL PROTECTED]> wrote: > > Hi, > > I tried to add a new porject to my continuum-1.1-beta-3 and got a > NullPointerException > Then i've tried to execute the default target for this project from the > project group view page and got a " > > org.apache.maven.continuum.ContinuumException: Project (id=280 doens't have a > default build definition." > > However, if i go to the actual project I do see a build definition, and if I > click on it, the project builds successfully. > > > > Below is the log from the NullPointerException and the stacktrace i got when > trying to add a build definition... > > Any ideas ? > > Please let me know if i can provide any more info to help debug this issue, > > > > Best regards, > Iker > > > INFO | jvm 1| 2007/10/01 18:46:43 | 2007-10-01 18:46:43,308 > [pool-2-thread-1] INFO ContinuumScm:default - Checking out > project: 'My Projet', id: '280' to '/usr/local/ > continuum- > 1.1-beta-3/apps/continuum/webapp/WEB-INF/working-directory/280'. > INFO | jvm 1| 2007/10/01 18:46:43 | 2007-10-01 18:46:43,334 > [pool-2-thread-1] INFO ScmManager:default - Executing: /bin/sh > -c "cd /usr/local/ > continuum- > 1.1-beta-3/apps/continuum/webapp/WEB-INF/working-directory && cvs -f -d > :ext:[EMAIL PROTECTED]:/cvs -q checkout -d 280 my_project" > > INFO | jvm 1| 2007/10/01 18:46:43 | 2007-10-01 18:46:43,334 > [pool-2-thread-1] INFO ScmManager:default - Working directory: > /usr/local/continuum- > 1.1-beta-3 > /apps/continuum/webapp/WEB-INF/working-directory > INFO | jvm 1| 2007/10/01 18:46:44 | 2007-10-01 18:46:44,096 > [pool-2-thread-1] INFO ContinuumScm:default - Checked out 2 files. > > INFO | jvm 1| 2007/10/01 18:47:06 | 2007-10-01 18:47:06,773 > [SocketListener0-0] INFO Continuum:default - exception > > INFO | jvm 1| 2007/10/01 18:47:06 | > java.lang.NullPointerException > INFO | jvm 1| 2007/10/01 18:47:06 | at > org.jpox.state.StateManagerImpl.internalMakePersistent(StateManagerImpl.java:3667) > INFO | jvm 1| 2007/10/01 18:47:06 | at > org.jpox.state.StateManagerImpl.makePersistent > (StateManagerImpl.java:3646) > INFO | jvm 1| 2007/10/01 18:47:06 | at > org.jpox.AbstractPersistenceManager.internalMakePersistent(AbstractPersistenceManager.java:1202) > > INFO | jvm 1| 2007/10/01 18:47:06 | at > org.jpox.AbstractPersistenceManager.makePersistent(AbstractPersistenceManager.java:1261) > INFO | jvm 1| 2007/10/01 18:47:06 | at > org.codehaus.plexus.jdo.PlexusJdoUtils.updateObject > > (PlexusJdoUtils.java:160) > INFO | jvm 1| 2007/10/01 18:47:06 | at > org.apache.maven.continuum.store.JdoContinuumStore.updateObject(JdoContinuumStore.java:855) > INFO | jvm 1| 2007/10/01 18:47:06 | at > org.apache.maven.continuum.store.JdoContinuumStore.updateObject > (JdoContinuumStore.java:847) > INFO | jvm 1| 2007/10/01 18:47:06 | at org.apache.maven. > continuum.store.JdoContinuumStore.updateProject(JdoContinuumStore.java:1232) > INFO | jvm 1| 2007/10/01 18:47:06 | at > org.apache.maven.continuum.core.action.AddBuildDefinitionToProjectAction.execute( > AddBuildDefinitionToProjectAction.java:51) > INFO | jvm 1| 2007/10/01 18:47:06 | at > org.apache.maven.continuum.DefaultContinuum.executeAction > (DefaultContinuum.java:2715) > > INFO | jvm 1| 2007/10/01 18:47:06 | at > org.apache.maven.continuum.DefaultContinuum.addBuildDefinitionToProject(DefaultContinuum.java:2092) > INFO | jvm 1| 2007/10/01 18:47:06 | at > > org.apache.maven.continuum.web.action.BuildDefinitionAction.saveToProject(BuildDefinitionAction.java:284) > INFO | jvm 1| 2007/10/01 18:47:06 | at org.apache.maven. > continuum.web.action.BuildDefinitionAction.saveBuildDefinition > (BuildDefinitionAction.java:266) > INFO | jvm 1| 2007/10/01 18:47:06 | at > sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > INFO | jvm 1| 2007/10/01 18:47:06 | at > sun.reflect.NativeMethodAccessorImpl.invoke > (NativeMethodAccessorImpl.java:39) > INFO | jvm 1| 2007/10/01 18:47:06 | at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > INFO | jvm 1| 2007/10/01 18:47:06 | at > java.lang.reflect.Method.invoke > (Method.java:585) > INFO | jvm 1| 2007/10/01 18:47:06 | at > com.opensymphony.xwork.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:358) > INFO | jvm 1| 2007/10/01 18:47:06 | at > com.opensymphony.xwork.DefaultActionInv
NullPointerException when adding a new build definition
Hi, I tried to add a new porject to my continuum-1.1-beta-3 and got a NullPointerException Then i've tried to execute the default target for this project from the project group view page and got a "org.apache.maven.continuum.ContinuumException: Project (id=280 doens't have a default build definition." However, if i go to the actual project I do see a build definition, and if I click on it, the project builds successfully. Below is the log from the NullPointerException and the stacktrace i got when trying to add a build definition... Any ideas ? Please let me know if i can provide any more info to help debug this issue, Best regards, Iker INFO | jvm 1| 2007/10/01 18:46:43 | 2007-10-01 18:46:43,308 [pool-2-thread-1] INFO ContinuumScm:default - Checking out project: 'My Projet', id: '280' to '/usr/local/continuum-1.1-beta-3/apps/continuum/webapp/WEB-INF/working-directory/280'. INFO | jvm 1| 2007/10/01 18:46:43 | 2007-10-01 18:46:43,334 [pool-2-thread-1] INFO ScmManager:default - Executing: /bin/sh -c "cd /usr/local/continuum-1.1-beta-3/apps/continuum/webapp/WEB-INF/working-directory && cvs -f -d :ext:[EMAIL PROTECTED]:/cvs -q checkout -d 280 my_project" INFO | jvm 1| 2007/10/01 18:46:43 | 2007-10-01 18:46:43,334 [pool-2-thread-1] INFO ScmManager:default - Working directory: /usr/local/continuum-1.1-beta-3/apps/continuum/webapp/WEB-INF/working-directory INFO | jvm 1| 2007/10/01 18:46:44 | 2007-10-01 18:46:44,096 [pool-2-thread-1] INFO ContinuumScm:default - Checked out 2 files. INFO | jvm 1| 2007/10/01 18:47:06 | 2007-10-01 18:47:06,773 [SocketListener0-0] INFO Continuum:default - exception INFO | jvm 1| 2007/10/01 18:47:06 | java.lang.NullPointerException INFO | jvm 1| 2007/10/01 18:47:06 | at org.jpox.state.StateManagerImpl.internalMakePersistent(StateManagerImpl.java:3667) INFO | jvm 1| 2007/10/01 18:47:06 | at org.jpox.state.StateManagerImpl.makePersistent(StateManagerImpl.java:3646) INFO | jvm 1| 2007/10/01 18:47:06 | at org.jpox.AbstractPersistenceManager.internalMakePersistent(AbstractPersistenceManager.java:1202) INFO | jvm 1| 2007/10/01 18:47:06 | at org.jpox.AbstractPersistenceManager.makePersistent(AbstractPersistenceManager.java:1261) INFO | jvm 1| 2007/10/01 18:47:06 | at org.codehaus.plexus.jdo.PlexusJdoUtils.updateObject(PlexusJdoUtils.java:160) INFO | jvm 1| 2007/10/01 18:47:06 | at org.apache.maven.continuum.store.JdoContinuumStore.updateObject(JdoContinuumStore.java:855) INFO | jvm 1| 2007/10/01 18:47:06 | at org.apache.maven.continuum.store.JdoContinuumStore.updateObject(JdoContinuumStore.java:847) INFO | jvm 1| 2007/10/01 18:47:06 | at org.apache.maven.continuum.store.JdoContinuumStore.updateProject(JdoContinuumStore.java:1232) INFO | jvm 1| 2007/10/01 18:47:06 | at org.apache.maven.continuum.core.action.AddBuildDefinitionToProjectAction.execute(AddBuildDefinitionToProjectAction.java:51) INFO | jvm 1| 2007/10/01 18:47:06 | at org.apache.maven.continuum.DefaultContinuum.executeAction(DefaultContinuum.java:2715) INFO | jvm 1| 2007/10/01 18:47:06 | at org.apache.maven.continuum.DefaultContinuum.addBuildDefinitionToProject(DefaultContinuum.java:2092) INFO | jvm 1| 2007/10/01 18:47:06 | at org.apache.maven.continuum.web.action.BuildDefinitionAction.saveToProject(BuildDefinitionAction.java:284) INFO | jvm 1| 2007/10/01 18:47:06 | at org.apache.maven.continuum.web.action.BuildDefinitionAction.saveBuildDefinition(BuildDefinitionAction.java:266) INFO | jvm 1| 2007/10/01 18:47:06 | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) INFO | jvm 1| 2007/10/01 18:47:06 | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) INFO | jvm 1| 2007/10/01 18:47:06 | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) INFO | jvm 1| 2007/10/01 18:47:06 | at java.lang.reflect.Method.invoke(Method.java:585) INFO | jvm 1| 2007/10/01 18:47:06 | at com.opensymphony.xwork.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:358) INFO | jvm 1| 2007/10/01 18:47:06 | at com.opensymphony.xwork.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:218) INFO | jvm 1| 2007/10/01 18:47:06 | at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:192) INFO | jvm 1| 2007/10/01 18:47:06 | at org.codehaus.plexus.xwork.interceptor.PlexusReleaseComponentInterceptor.intercept(PlexusReleaseComponentInterceptor.java:69) INFO | jvm 1| 2007/10/01 18:47:06 | at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:190) INFO | jvm 1| 2007/10/01 18:47:06 | at com.opensymphony.xwork.interceptor.DefaultWo