You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm-dev@maven.apache.org by "Piotr Kosiorowski (JIRA)" <ji...@codehaus.org> on 2006/01/30 21:25:09 UTC

[jira] Created: (SCM-144) ClearCase update fails with NullPointerException

ClearCase update fails with NullPointerException
------------------------------------------------

         Key: SCM-144
         URL: http://jira.codehaus.org/browse/SCM-144
     Project: Maven SCM
        Type: Bug

  Components: maven-scm-provider-clearcase  
    Versions: 1.0-beta-3, 1.0-beta-2    
 Environment: Linux (run from Continuum)
    Reporter: Piotr Kosiorowski


Update fails because update command uses changelog command without setting logger on it - so
changelog command fails with NullPointerException  at the beggining of execution in:
 getLogger().debug( "executing changelog command..." );

The required change is in
ClearCaseUpdateCommand.java:
 protected ChangeLogCommand getChangeLogCommand()
 {
     return new ClearCaseChangeLogCommand();
 }
should be:
 protected ChangeLogCommand getChangeLogCommand()
 {
    ClearCaseChangeLogCommand c=  new ClearCaseChangeLogCommand();
    c.setLogger(getLogger());
    return c;
 } 
This change is done according to convention used in cvs,perforce,starteam providers when invoking one command from another.

-- 
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-144) ClearCase update fails with NullPointerException

Posted by "Emmanuel Venisse (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/SCM-144?page=all ]
     
Emmanuel Venisse closed SCM-144:
--------------------------------

      Assign To: Emmanuel Venisse
     Resolution: Fixed
    Fix Version: 1.0-beta-3

Fixed.

> ClearCase update fails with NullPointerException
> ------------------------------------------------
>
>          Key: SCM-144
>          URL: http://jira.codehaus.org/browse/SCM-144
>      Project: Maven SCM
>         Type: Bug

>   Components: maven-scm-provider-clearcase
>     Versions: 1.0-beta-3, 1.0-beta-2
>  Environment: Linux (run from Continuum)
>     Reporter: Piotr Kosiorowski
>     Assignee: Emmanuel Venisse
>      Fix For: 1.0-beta-3

>
>
> Update fails because update command uses changelog command without setting logger on it - so
> changelog command fails with NullPointerException  at the beggining of execution in:
>  getLogger().debug( "executing changelog command..." );
> The required change is in
> ClearCaseUpdateCommand.java:
>  protected ChangeLogCommand getChangeLogCommand()
>  {
>      return new ClearCaseChangeLogCommand();
>  }
> should be:
>  protected ChangeLogCommand getChangeLogCommand()
>  {
>     ClearCaseChangeLogCommand c=  new ClearCaseChangeLogCommand();
>     c.setLogger(getLogger());
>     return c;
>  } 
> This change is done according to convention used in cvs,perforce,starteam providers when invoking one command from another.

-- 
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