You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@continuum.apache.org by "Wendy Smoak (JIRA)" <ji...@codehaus.org> on 2009/02/26 01:57:19 UTC

[jira] Updated: (CONTINUUM-2039) NPE in data management when a profile is active but not defined

     [ http://jira.codehaus.org/browse/CONTINUUM-2039?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Wendy Smoak updated CONTINUUM-2039:
-----------------------------------

    Description: 
{noformat}
imbrium:tmp wsmoak$ java -Xmx512m -jar data-management-cli-1.2.4-SNAPSHOT-r734910-app.jar -buildsJdbcUrl jdbc:derby:/tmp/continuum/database -mode EXPORT -directory backups 
0 [main] INFO org.apache.maven.continuum.management.DataManagementCli  - Processing Continuum database...
Exception in thread "main" java.lang.NullPointerException
	at org.apache.maven.continuum.management.DataManagementCli.downloadArtifact(DataManagementCli.java:364)
	at org.apache.maven.continuum.management.DataManagementCli.processDatabase(DataManagementCli.java:198)
	at org.apache.maven.continuum.management.DataManagementCli.main(DataManagementCli.java:170)
{noformat}

Around line 364 of DataManagementCli, it assumes that any active profile has actually been defined.

If I move my settings.xml out of the way and let it work against central, then it proceeds.



  was:
{noformat}
imbrium:tmp wsmoak$ java -Xmx512m -jar data-management-cli-1.2.4-SNAPSHOT-r734910-app.jar -buildsJdbcUrl jdbc:derby:/tmp/continuum/database -mode EXPORT -directory backups 
0 [main] INFO org.apache.maven.continuum.management.DataManagementCli  - Processing Continuum database...
Exception in thread "main" java.lang.NullPointerException
	at org.apache.maven.continuum.management.DataManagementCli.downloadArtifact(DataManagementCli.java:364)
	at org.apache.maven.continuum.management.DataManagementCli.processDatabase(DataManagementCli.java:198)
	at org.apache.maven.continuum.management.DataManagementCli.main(DataManagementCli.java:170)
{noformat}

Around line 364 of DataManagementCli, it seems to assume that any active profile must contain a repository.

If I move my settings.xml out of the way and let it work against central, then it proceeds.



        Summary: NPE in data management when a profile is active but not defined  (was: NPE in data management when an active profile in settings.xml has no repositories)

Updated description -- it wasn't a problem with a profile not containing repositories, it was an active profile that wasn't defined in settings.xml.

If you have <activeProfile>abc</activeProfile>, but no <profile><id>abc</id>, then you get the NPE.

> NPE in data management when a profile is active but not defined
> ---------------------------------------------------------------
>
>                 Key: CONTINUUM-2039
>                 URL: http://jira.codehaus.org/browse/CONTINUUM-2039
>             Project: Continuum
>          Issue Type: Bug
>          Components: Data Management
>    Affects Versions: 1.2.4
>         Environment: Continuum 1.2.x branch r734910
>            Reporter: Wendy Smoak
>
> {noformat}
> imbrium:tmp wsmoak$ java -Xmx512m -jar data-management-cli-1.2.4-SNAPSHOT-r734910-app.jar -buildsJdbcUrl jdbc:derby:/tmp/continuum/database -mode EXPORT -directory backups 
> 0 [main] INFO org.apache.maven.continuum.management.DataManagementCli  - Processing Continuum database...
> Exception in thread "main" java.lang.NullPointerException
> 	at org.apache.maven.continuum.management.DataManagementCli.downloadArtifact(DataManagementCli.java:364)
> 	at org.apache.maven.continuum.management.DataManagementCli.processDatabase(DataManagementCli.java:198)
> 	at org.apache.maven.continuum.management.DataManagementCli.main(DataManagementCli.java:170)
> {noformat}
> Around line 364 of DataManagementCli, it assumes that any active profile has actually been defined.
> If I move my settings.xml out of the way and let it work against central, then it proceeds.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira