You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Julien HENRY (JIRA)" <ji...@codehaus.org> on 2006/10/09 18:02:53 UTC
[jira] Created: (SCM-242) NPE on ScmRepositoryException
NPE on ScmRepositoryException
-----------------------------
Key: SCM-242
URL: http://jira.codehaus.org/browse/SCM-242
Project: Maven SCM
Issue Type: Bug
Components: maven-plugin
Reporter: Julien HENRY
I get a NPE when using Scm plugin with the provider I wrote (Synergy) and the URL is incorrect.
I think it's because I use the ScmRepositoryException( String msg ) constructor instead of ScmRepositoryException( String msg, List validationMessages ), and the result is
e.getValidationMessages().isEmpty()
raise a NPE.
Here is stack trace :
java.lang.NullPointerException
at org.apache.maven.scm.plugin.AbstractScmMojo.getScmRepository(AbstractScmMojo.java:258)
at org.apache.maven.scm.plugin.CheckoutMojo.checkout(CheckoutMojo.java:94)
at org.apache.maven.scm.plugin.BootstrapMojo.execute(BootstrapMojo.java:58)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:488)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:458)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:219)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
...
--
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
[jira] Closed: (SCM-242) NPE on ScmRepositoryException
Posted by "Kenney Westerhof (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/SCM-242?page=all ]
Kenney Westerhof closed SCM-242.
--------------------------------
Resolution: Fixed
Fixed in svn revision 454658.
> NPE on ScmRepositoryException
> -----------------------------
>
> Key: SCM-242
> URL: http://jira.codehaus.org/browse/SCM-242
> Project: Maven SCM
> Issue Type: Bug
> Components: maven-plugin
> Reporter: Julien HENRY
> Assigned To: Kenney Westerhof
> Attachments: NPE.patch
>
>
> I get a NPE when using Scm plugin with the provider I wrote (Synergy) and the URL is incorrect.
> I think it's because I use the ScmRepositoryException( String msg ) constructor instead of ScmRepositoryException( String msg, List validationMessages ), and the result is
> e.getValidationMessages().isEmpty()
> raise a NPE.
> Here is stack trace :
> java.lang.NullPointerException
> at org.apache.maven.scm.plugin.AbstractScmMojo.getScmRepository(AbstractScmMojo.java:258)
> at org.apache.maven.scm.plugin.CheckoutMojo.checkout(CheckoutMojo.java:94)
> at org.apache.maven.scm.plugin.BootstrapMojo.execute(BootstrapMojo.java:58)
> at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:488)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:458)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:219)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140)
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
> ...
--
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
[jira] Commented: (SCM-242) NPE on ScmRepositoryException
Posted by "Julien HENRY (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/SCM-242?page=comments#action_77122 ]
Julien HENRY commented on SCM-242:
----------------------------------
OK, your fix is better. ;)
> NPE on ScmRepositoryException
> -----------------------------
>
> Key: SCM-242
> URL: http://jira.codehaus.org/browse/SCM-242
> Project: Maven SCM
> Issue Type: Bug
> Components: maven-plugin
> Reporter: Julien HENRY
> Assigned To: Kenney Westerhof
> Attachments: NPE.patch
>
>
> I get a NPE when using Scm plugin with the provider I wrote (Synergy) and the URL is incorrect.
> I think it's because I use the ScmRepositoryException( String msg ) constructor instead of ScmRepositoryException( String msg, List validationMessages ), and the result is
> e.getValidationMessages().isEmpty()
> raise a NPE.
> Here is stack trace :
> java.lang.NullPointerException
> at org.apache.maven.scm.plugin.AbstractScmMojo.getScmRepository(AbstractScmMojo.java:258)
> at org.apache.maven.scm.plugin.CheckoutMojo.checkout(CheckoutMojo.java:94)
> at org.apache.maven.scm.plugin.BootstrapMojo.execute(BootstrapMojo.java:58)
> at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:488)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:458)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:219)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140)
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
> ...
--
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
[jira] Updated: (SCM-242) NPE on ScmRepositoryException
Posted by "Julien HENRY (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/SCM-242?page=all ]
Julien HENRY updated SCM-242:
-----------------------------
Attachment: NPE.patch
Here is a patch that fix the problem for me.
> NPE on ScmRepositoryException
> -----------------------------
>
> Key: SCM-242
> URL: http://jira.codehaus.org/browse/SCM-242
> Project: Maven SCM
> Issue Type: Bug
> Components: maven-plugin
> Reporter: Julien HENRY
> Assigned To: Kenney Westerhof
> Attachments: NPE.patch
>
>
> I get a NPE when using Scm plugin with the provider I wrote (Synergy) and the URL is incorrect.
> I think it's because I use the ScmRepositoryException( String msg ) constructor instead of ScmRepositoryException( String msg, List validationMessages ), and the result is
> e.getValidationMessages().isEmpty()
> raise a NPE.
> Here is stack trace :
> java.lang.NullPointerException
> at org.apache.maven.scm.plugin.AbstractScmMojo.getScmRepository(AbstractScmMojo.java:258)
> at org.apache.maven.scm.plugin.CheckoutMojo.checkout(CheckoutMojo.java:94)
> at org.apache.maven.scm.plugin.BootstrapMojo.execute(BootstrapMojo.java:58)
> at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:488)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:458)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:219)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140)
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
> ...
--
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
[jira] Commented: (SCM-242) NPE on ScmRepositoryException
Posted by "Kenney Westerhof (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/SCM-242?page=comments#action_77229 ]
Kenney Westerhof commented on SCM-242:
--------------------------------------
:) Thanks anyway!
> NPE on ScmRepositoryException
> -----------------------------
>
> Key: SCM-242
> URL: http://jira.codehaus.org/browse/SCM-242
> Project: Maven SCM
> Issue Type: Bug
> Components: maven-plugin
> Reporter: Julien HENRY
> Assigned To: Kenney Westerhof
> Attachments: NPE.patch
>
>
> I get a NPE when using Scm plugin with the provider I wrote (Synergy) and the URL is incorrect.
> I think it's because I use the ScmRepositoryException( String msg ) constructor instead of ScmRepositoryException( String msg, List validationMessages ), and the result is
> e.getValidationMessages().isEmpty()
> raise a NPE.
> Here is stack trace :
> java.lang.NullPointerException
> at org.apache.maven.scm.plugin.AbstractScmMojo.getScmRepository(AbstractScmMojo.java:258)
> at org.apache.maven.scm.plugin.CheckoutMojo.checkout(CheckoutMojo.java:94)
> at org.apache.maven.scm.plugin.BootstrapMojo.execute(BootstrapMojo.java:58)
> at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:488)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:458)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:219)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140)
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
> ...
--
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