RE: NullPointerException when adding a new build definition

2007-10-02 Thread Iker Almandoz
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)
>> > 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:4

Re: NullPointerException when adding a new build definition

2007-10-02 Thread olivier lamy
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

2007-10-02 Thread Iker Almandoz
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

Re: When builds are done in multi-module projects ?

2007-10-02 Thread Emmanuel Venisse



Damien Lecan a écrit :

I'll try to reproduce it.

After few try, I can't reproduce your issue. I have always the same
number (1) of build result on each project


With 2 build definitions together ? Aaarrgghh :(


Oooops, no.

I'll do a new test.



I will try to understand what is specific in my test case...

Thanks for testing

Damien






Re: When builds are done in multi-module projects ?

2007-10-02 Thread Damien Lecan
> >> I'll try to reproduce it.
>
> After few try, I can't reproduce your issue. I have always the same
> number (1) of build result on each project

With 2 build definitions together ? Aaarrgghh :(

I will try to understand what is specific in my test case...

Thanks for testing

Damien


Re: Weird behavior in user management

2007-10-02 Thread Emmanuel Venisse

Do you have a user without role?

About your admin, it's normal, an admin can do everything.

Emmanuel

Iker Almandoz a écrit :

Hi Emmanuel,

I have updated to 1.1-beta-3 following the instructions in
http://maven.apache.org/continuum/guides/mini/guide-data-management.html

The problem is gone as now my admin user can see all the projects. However,
i was not able to import the users.

While trying to import the users database, i run into the following problem
which means that i could not import the users into the db...

15144 [main] INFO JPOX.RDBMS  - Validated 1 index(es) for table
USERSMANAGEMENTMODELLOMETADATA
Exception in thread "main" java.lang.NullPointerException
at
org.codehaus.plexus.redback.management.JdoDataManagementTool.restoreRBACDatabase
(JdoDataManagementTool.java:169)
at
org.apache.maven.continuum.management.redback.JdoDataManagementTool.restoreDatabase
(JdoDataManagementTool.java:93)
at
org.apache.maven.continuum.management.DataManagementCli.processDatabase(
DataManagementCli.java:243)
at org.apache.maven.continuum.management.DataManagementCli.main(
DataManagementCli.java:153)

Any thoughts ?

Regards,
Iker






On 10/1/07, Emmanuel Venisse <[EMAIL PROTECTED]> wrote:

You can upgrade your continuum to 1.1-beta-3, some issues in redback
(security framework) are fixed.

Emmanuel

Iker Almandoz a écrit :

Hi All,

I'm using continuum-1.1-beta-2 with maven 7.

I am running the system as admin and i am getting a project group twice

when

i look at my permission list:

* Project Administrator - Aggregators
* Project User - Aggregators
* Project Administrator - Aggregators
* Project Developer - Aggregators
* Project User - Aggregators
* Project Developer - Aggregators

When i try to add a new project into this group, i am getting the

following

error:
  * You are not authorized to access this page. Please contact your
administrator to be granted the appropriate permissions.

However, i am the admin of the continuum installation.

Here is part of my log:


INFO   | jvm 1| 2007/10/01 10:21:18 | 2007-10-01 10:21:18,818
[SocketListener0-0] INFO  DispatcherUtils- Unable to

find '

webwork.multipart.saveDir' property setting. Defaulting to
javax.servlet.context.tempdir
INFO   | jvm 1| 2007/10/01 10:21:18 | 2007-10-01 10:21:18,821
[SocketListener0-0] WARN  MultiPartRequest   - Item is a

file

upload of 0 size, ignoring
INFO   | jvm 1| 2007/10/01 10:21:18 | 2007-10-01 10:21:18,821
[SocketListener0-0] ERROR DispatcherUtils- Error setting
character encoding to 'UTF-8' - ignoring.
INFO   | jvm 1| 2007/10/01 10:21:18 |

java.lang.IllegalStateException:

getReader() or getInputStream() called
INFO   | jvm 1| 2007/10/01 10:21:18 | at
org.mortbay.jetty.servlet.ServletHttpRequest.setCharacterEncoding(
ServletHttpRequest.java:602)
INFO   | jvm 1| 2007/10/01 10:21:18 | at
javax.servlet.ServletRequestWrapper.setCharacterEncoding(
ServletRequestWrapper.java:112)
INFO   | jvm 1| 2007/10/01 10:21:18 | at
com.opensymphony.webwork.dispatcher.DispatcherUtils.prepare(
DispatcherUtils.java:392)
INFO   | jvm 1| 2007/10/01 10:21:18 | at
com.opensymphony.webwork.dispatcher.FilterDispatcher.doFilter(
FilterDispatcher.java:160)
INFO   | jvm 1| 2007/10/01 10:21:18 | at
org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(
WebApplicationHandler.java:821)
INFO   | jvm 1| 2007/10/01 10:21:18 | at
com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(

PageFilter.java

:118)
INFO   | jvm 1| 2007/10/01 10:21:18 | at
com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(

PageFilter.java

:52)
INFO   | jvm 1| 2007/10/01 10:21:18 | at
org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(
WebApplicationHandler.java:821)
INFO   | jvm 1| 2007/10/01 10:21:18 | at
com.opensymphony.webwork.dispatcher.ActionContextCleanUp.doFilter(
ActionContextCleanUp.java:88)
INFO   | jvm 1| 2007/10/01 10:21:18 | at
org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(
WebApplicationHandler.java:821)
INFO   | jvm 1| 2007/10/01 10:21:18 | at
org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(
WebApplicationHandler.java:471)
INFO   | jvm 1| 2007/10/01 10:21:18 | at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:568)
INFO   | jvm 1| 2007/10/01 10:21:18 | at
org.mortbay.http.HttpContext.handle(HttpContext.java:1530)
INFO   | jvm 1| 2007/10/01 10:21:18 | at
org.mortbay.jetty.servlet.WebApplicationContext.handle(
WebApplicationContext.java:633)
INFO   | jvm 1| 2007/10/01 10:21:18 | at
org.mortbay.http.HttpContext.handle(HttpContext.java:1482)
INFO   | jvm 1| 2007/10/01 10:21:18 | at
org.mortbay.http.HttpServer.service(HttpServer.java:909)
INFO   | jvm 1| 2007/10/01 10:21:18 | at
org.mortbay.http.HttpConnection.service(Htt