You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cactus-dev@jakarta.apache.org by "Eric Lapierre (JIRA)" <ca...@jakarta.apache.org> on 2005/07/06 20:50:09 UTC

[jira] Created: (CACTUS-219) the cactus scanner return a java.lang.NullPointerException with maven 1.1-beta-1

the cactus scanner return a java.lang.NullPointerException with maven 1.1-beta-1
--------------------------------------------------------------------------------

         Key: CACTUS-219
         URL: http://issues.apache.org/jira/browse/CACTUS-219
     Project: Cactus
        Type: Bug
  Components: Ant Integration  
    Versions: 1.7    
    Reporter: Eric Lapierre
 Attachments: CactusScannerTag.patch.zip

When running the cactus:test-war goal with maven 1.1-beta-1 I get the following stack trace:

Root cause
java.lang.NullPointerException
        at org.apache.cactus.integration.maven.CactusScanner.processFileSet(CactusScanner.java:106)
        at org.apache.cactus.integration.maven.CactusScannerTag.doTag(CactusScannerTag.java:123)
        at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:247)
        at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
        at org.apache.maven.jelly.tags.werkz.MavenGoalTag.runBodyTag(MavenGoalTag.java:78)
        at org.apache.maven.jelly.tags.werkz.MavenGoalTag$MavenGoalAction.performAction(MavenGoalTag.java:109)
        at org.apache.maven.werkz.Goal.fire(Goal.java:656)
        at org.apache.maven.werkz.Goal.attain(Goal.java:592)
        at org.apache.maven.werkz.WerkzProject.attainGoal(WerkzProject.java:210)
        at org.apache.maven.jelly.tags.werkz.MavenAttainGoalTag.doTag(MavenAttainGoalTag.java:114)
        at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:247)
        at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
        at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)


This seems to be caused by a change to the class org.apache.tools.ant.types.AbstractFileSet in ant 1.6.x. This class now has a new toString() method which throws the following exception

Caused by: No directory specified for FileSet.
        at org.apache.tools.ant.types.AbstractFileSet.getDirectoryScanner(AbstractFileSet.java:345)
        at org.apache.tools.ant.types.AbstractFileSet.toString(AbstractFileSet.java:654)
        at java.lang.String.valueOf(String.java:2577)
        at java.lang.StringBuilder.append(StringBuilder.java:116)
        at org.apache.cactus.integration.maven.CactusScannerTag.addFileset(CactusScannerTag.java:173) 


A potential patch to CactusScannerTag.java  is attached

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


---------------------------------------------------------------------
To unsubscribe, e-mail: cactus-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: cactus-dev-help@jakarta.apache.org


[jira] Commented: (CACTUS-219) the cactus scanner return a java.lang.NullPointerException with maven 1.1-beta-1

Posted by "Felipe Leme (JIRA)" <ca...@jakarta.apache.org>.
    [ http://issues.apache.org/jira/browse/CACTUS-219?page=comments#action_12315520 ] 

Felipe Leme commented on CACTUS-219:
------------------------------------

Ok, I could reproduce it - I will try to fix it tonight.

> the cactus scanner return a java.lang.NullPointerException with maven 1.1-beta-1
> --------------------------------------------------------------------------------
>
>          Key: CACTUS-219
>          URL: http://issues.apache.org/jira/browse/CACTUS-219
>      Project: Cactus
>         Type: Bug
>   Components: Ant Integration
>     Versions: 1.7
>     Reporter: Eric Lapierre
>  Attachments: CACTUS-219.zip, CactusScannerTag.patch.zip
>
> When running the cactus:test-war goal with maven 1.1-beta-1 I get the following stack trace:
> Root cause
> java.lang.NullPointerException
>         at org.apache.cactus.integration.maven.CactusScanner.processFileSet(CactusScanner.java:106)
>         at org.apache.cactus.integration.maven.CactusScannerTag.doTag(CactusScannerTag.java:123)
>         at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:247)
>         at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
>         at org.apache.maven.jelly.tags.werkz.MavenGoalTag.runBodyTag(MavenGoalTag.java:78)
>         at org.apache.maven.jelly.tags.werkz.MavenGoalTag$MavenGoalAction.performAction(MavenGoalTag.java:109)
>         at org.apache.maven.werkz.Goal.fire(Goal.java:656)
>         at org.apache.maven.werkz.Goal.attain(Goal.java:592)
>         at org.apache.maven.werkz.WerkzProject.attainGoal(WerkzProject.java:210)
>         at org.apache.maven.jelly.tags.werkz.MavenAttainGoalTag.doTag(MavenAttainGoalTag.java:114)
>         at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:247)
>         at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
>         at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
> This seems to be caused by a change to the class org.apache.tools.ant.types.AbstractFileSet in ant 1.6.x. This class now has a new toString() method which throws the following exception
> Caused by: No directory specified for FileSet.
>         at org.apache.tools.ant.types.AbstractFileSet.getDirectoryScanner(AbstractFileSet.java:345)
>         at org.apache.tools.ant.types.AbstractFileSet.toString(AbstractFileSet.java:654)
>         at java.lang.String.valueOf(String.java:2577)
>         at java.lang.StringBuilder.append(StringBuilder.java:116)
>         at org.apache.cactus.integration.maven.CactusScannerTag.addFileset(CactusScannerTag.java:173) 
> A potential patch to CactusScannerTag.java  is attached

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


---------------------------------------------------------------------
To unsubscribe, e-mail: cactus-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: cactus-dev-help@jakarta.apache.org


[jira] Updated: (CACTUS-219) the cactus scanner return a java.lang.NullPointerException with maven 1.1-beta-1

Posted by "Eric Lapierre (JIRA)" <ca...@jakarta.apache.org>.
     [ http://issues.apache.org/jira/browse/CACTUS-219?page=all ]

Eric Lapierre updated CACTUS-219:
---------------------------------

    Attachment: CactusScannerTag.patch.zip

> the cactus scanner return a java.lang.NullPointerException with maven 1.1-beta-1
> --------------------------------------------------------------------------------
>
>          Key: CACTUS-219
>          URL: http://issues.apache.org/jira/browse/CACTUS-219
>      Project: Cactus
>         Type: Bug
>   Components: Ant Integration
>     Versions: 1.7
>     Reporter: Eric Lapierre
>  Attachments: CactusScannerTag.patch.zip
>
> When running the cactus:test-war goal with maven 1.1-beta-1 I get the following stack trace:
> Root cause
> java.lang.NullPointerException
>         at org.apache.cactus.integration.maven.CactusScanner.processFileSet(CactusScanner.java:106)
>         at org.apache.cactus.integration.maven.CactusScannerTag.doTag(CactusScannerTag.java:123)
>         at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:247)
>         at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
>         at org.apache.maven.jelly.tags.werkz.MavenGoalTag.runBodyTag(MavenGoalTag.java:78)
>         at org.apache.maven.jelly.tags.werkz.MavenGoalTag$MavenGoalAction.performAction(MavenGoalTag.java:109)
>         at org.apache.maven.werkz.Goal.fire(Goal.java:656)
>         at org.apache.maven.werkz.Goal.attain(Goal.java:592)
>         at org.apache.maven.werkz.WerkzProject.attainGoal(WerkzProject.java:210)
>         at org.apache.maven.jelly.tags.werkz.MavenAttainGoalTag.doTag(MavenAttainGoalTag.java:114)
>         at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:247)
>         at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
>         at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
> This seems to be caused by a change to the class org.apache.tools.ant.types.AbstractFileSet in ant 1.6.x. This class now has a new toString() method which throws the following exception
> Caused by: No directory specified for FileSet.
>         at org.apache.tools.ant.types.AbstractFileSet.getDirectoryScanner(AbstractFileSet.java:345)
>         at org.apache.tools.ant.types.AbstractFileSet.toString(AbstractFileSet.java:654)
>         at java.lang.String.valueOf(String.java:2577)
>         at java.lang.StringBuilder.append(StringBuilder.java:116)
>         at org.apache.cactus.integration.maven.CactusScannerTag.addFileset(CactusScannerTag.java:173) 
> A potential patch to CactusScannerTag.java  is attached

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


---------------------------------------------------------------------
To unsubscribe, e-mail: cactus-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: cactus-dev-help@jakarta.apache.org


[jira] Closed: (CACTUS-219) the cactus scanner return a java.lang.NullPointerException with maven 1.1-beta-1

Posted by "Felipe Leme (JIRA)" <ca...@jakarta.apache.org>.
     [ http://issues.apache.org/jira/browse/CACTUS-219?page=all ]
     
Felipe Leme closed CACTUS-219:
------------------------------

    Fix Version: 1.7.1
     Resolution: Fixed
      Assign To: Felipe Leme

I applied Eric's suggestion, i.e., removed the call to fileset.toString(), as it wasn't being useful even on Maven 1.0.

> the cactus scanner return a java.lang.NullPointerException with maven 1.1-beta-1
> --------------------------------------------------------------------------------
>
>          Key: CACTUS-219
>          URL: http://issues.apache.org/jira/browse/CACTUS-219
>      Project: Cactus
>         Type: Bug
>   Components: Ant Integration
>     Versions: 1.7
>     Reporter: Eric Lapierre
>     Assignee: Felipe Leme
>      Fix For: 1.7.1
>  Attachments: CACTUS-219.zip, CactusScannerTag.patch.zip
>
> When running the cactus:test-war goal with maven 1.1-beta-1 I get the following stack trace:
> Root cause
> java.lang.NullPointerException
>         at org.apache.cactus.integration.maven.CactusScanner.processFileSet(CactusScanner.java:106)
>         at org.apache.cactus.integration.maven.CactusScannerTag.doTag(CactusScannerTag.java:123)
>         at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:247)
>         at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
>         at org.apache.maven.jelly.tags.werkz.MavenGoalTag.runBodyTag(MavenGoalTag.java:78)
>         at org.apache.maven.jelly.tags.werkz.MavenGoalTag$MavenGoalAction.performAction(MavenGoalTag.java:109)
>         at org.apache.maven.werkz.Goal.fire(Goal.java:656)
>         at org.apache.maven.werkz.Goal.attain(Goal.java:592)
>         at org.apache.maven.werkz.WerkzProject.attainGoal(WerkzProject.java:210)
>         at org.apache.maven.jelly.tags.werkz.MavenAttainGoalTag.doTag(MavenAttainGoalTag.java:114)
>         at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:247)
>         at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
>         at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
> This seems to be caused by a change to the class org.apache.tools.ant.types.AbstractFileSet in ant 1.6.x. This class now has a new toString() method which throws the following exception
> Caused by: No directory specified for FileSet.
>         at org.apache.tools.ant.types.AbstractFileSet.getDirectoryScanner(AbstractFileSet.java:345)
>         at org.apache.tools.ant.types.AbstractFileSet.toString(AbstractFileSet.java:654)
>         at java.lang.String.valueOf(String.java:2577)
>         at java.lang.StringBuilder.append(StringBuilder.java:116)
>         at org.apache.cactus.integration.maven.CactusScannerTag.addFileset(CactusScannerTag.java:173) 
> A potential patch to CactusScannerTag.java  is attached

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


---------------------------------------------------------------------
To unsubscribe, e-mail: cactus-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: cactus-dev-help@jakarta.apache.org


[jira] Updated: (CACTUS-219) the cactus scanner return a java.lang.NullPointerException with maven 1.1-beta-1

Posted by "Eric Lapierre (JIRA)" <ca...@jakarta.apache.org>.
     [ http://issues.apache.org/jira/browse/CACTUS-219?page=all ]

Eric Lapierre updated CACTUS-219:
---------------------------------

    Attachment: CACTUS-219.zip

I added a small project that reproduces the problem.  Just invoke maven cactus:test-war

Let me know if you need more info

> the cactus scanner return a java.lang.NullPointerException with maven 1.1-beta-1
> --------------------------------------------------------------------------------
>
>          Key: CACTUS-219
>          URL: http://issues.apache.org/jira/browse/CACTUS-219
>      Project: Cactus
>         Type: Bug
>   Components: Ant Integration
>     Versions: 1.7
>     Reporter: Eric Lapierre
>  Attachments: CACTUS-219.zip, CactusScannerTag.patch.zip
>
> When running the cactus:test-war goal with maven 1.1-beta-1 I get the following stack trace:
> Root cause
> java.lang.NullPointerException
>         at org.apache.cactus.integration.maven.CactusScanner.processFileSet(CactusScanner.java:106)
>         at org.apache.cactus.integration.maven.CactusScannerTag.doTag(CactusScannerTag.java:123)
>         at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:247)
>         at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
>         at org.apache.maven.jelly.tags.werkz.MavenGoalTag.runBodyTag(MavenGoalTag.java:78)
>         at org.apache.maven.jelly.tags.werkz.MavenGoalTag$MavenGoalAction.performAction(MavenGoalTag.java:109)
>         at org.apache.maven.werkz.Goal.fire(Goal.java:656)
>         at org.apache.maven.werkz.Goal.attain(Goal.java:592)
>         at org.apache.maven.werkz.WerkzProject.attainGoal(WerkzProject.java:210)
>         at org.apache.maven.jelly.tags.werkz.MavenAttainGoalTag.doTag(MavenAttainGoalTag.java:114)
>         at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:247)
>         at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
>         at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
> This seems to be caused by a change to the class org.apache.tools.ant.types.AbstractFileSet in ant 1.6.x. This class now has a new toString() method which throws the following exception
> Caused by: No directory specified for FileSet.
>         at org.apache.tools.ant.types.AbstractFileSet.getDirectoryScanner(AbstractFileSet.java:345)
>         at org.apache.tools.ant.types.AbstractFileSet.toString(AbstractFileSet.java:654)
>         at java.lang.String.valueOf(String.java:2577)
>         at java.lang.StringBuilder.append(StringBuilder.java:116)
>         at org.apache.cactus.integration.maven.CactusScannerTag.addFileset(CactusScannerTag.java:173) 
> A potential patch to CactusScannerTag.java  is attached

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


---------------------------------------------------------------------
To unsubscribe, e-mail: cactus-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: cactus-dev-help@jakarta.apache.org


[jira] Commented: (CACTUS-219) the cactus scanner return a java.lang.NullPointerException with maven 1.1-beta-1

Posted by "Felipe Leme (JIRA)" <ca...@jakarta.apache.org>.
    [ http://issues.apache.org/jira/browse/CACTUS-219?page=comments#action_12315345 ] 

Felipe Leme commented on CACTUS-219:
------------------------------------

Eric,

I can apply something similar to your patch so we can handle that toString() exception, but I'm afraid there is something more serious than that, I mean, we need to figure it out why the exception is being thrown. Could you provide instructions on how to reproduce it?

Note that it might be a problem similar to this one:

http://jira.codehaus.org/browse/MAVEN-1606

-- Felipe


> the cactus scanner return a java.lang.NullPointerException with maven 1.1-beta-1
> --------------------------------------------------------------------------------
>
>          Key: CACTUS-219
>          URL: http://issues.apache.org/jira/browse/CACTUS-219
>      Project: Cactus
>         Type: Bug
>   Components: Ant Integration
>     Versions: 1.7
>     Reporter: Eric Lapierre
>  Attachments: CactusScannerTag.patch.zip
>
> When running the cactus:test-war goal with maven 1.1-beta-1 I get the following stack trace:
> Root cause
> java.lang.NullPointerException
>         at org.apache.cactus.integration.maven.CactusScanner.processFileSet(CactusScanner.java:106)
>         at org.apache.cactus.integration.maven.CactusScannerTag.doTag(CactusScannerTag.java:123)
>         at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:247)
>         at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
>         at org.apache.maven.jelly.tags.werkz.MavenGoalTag.runBodyTag(MavenGoalTag.java:78)
>         at org.apache.maven.jelly.tags.werkz.MavenGoalTag$MavenGoalAction.performAction(MavenGoalTag.java:109)
>         at org.apache.maven.werkz.Goal.fire(Goal.java:656)
>         at org.apache.maven.werkz.Goal.attain(Goal.java:592)
>         at org.apache.maven.werkz.WerkzProject.attainGoal(WerkzProject.java:210)
>         at org.apache.maven.jelly.tags.werkz.MavenAttainGoalTag.doTag(MavenAttainGoalTag.java:114)
>         at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:247)
>         at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
>         at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
> This seems to be caused by a change to the class org.apache.tools.ant.types.AbstractFileSet in ant 1.6.x. This class now has a new toString() method which throws the following exception
> Caused by: No directory specified for FileSet.
>         at org.apache.tools.ant.types.AbstractFileSet.getDirectoryScanner(AbstractFileSet.java:345)
>         at org.apache.tools.ant.types.AbstractFileSet.toString(AbstractFileSet.java:654)
>         at java.lang.String.valueOf(String.java:2577)
>         at java.lang.StringBuilder.append(StringBuilder.java:116)
>         at org.apache.cactus.integration.maven.CactusScannerTag.addFileset(CactusScannerTag.java:173) 
> A potential patch to CactusScannerTag.java  is attached

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


---------------------------------------------------------------------
To unsubscribe, e-mail: cactus-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: cactus-dev-help@jakarta.apache.org