You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by ji...@codehaus.org on 2004/09/13 07:53:11 UTC
[jira] Created: (MAVEN-1445) junit test PluginManagerTest.java failure
Message:
A new issue has been created in JIRA.
---------------------------------------------------------------------
View the issue:
http://jira.codehaus.org/browse/MAVEN-1445
Here is an overview of the issue:
---------------------------------------------------------------------
Key: MAVEN-1445
Summary: junit test PluginManagerTest.java failure
Type: Bug
Status: Unassigned
Priority: Critical
Original Estimate: Unknown
Time Spent: Unknown
Remaining: Unknown
Project: maven
Components:
plugin manager
Versions:
1.1
Assignee:
Reporter: Wallace Peng
Created: Mon, 13 Sep 2004 1:52 AM
Updated: Mon, 13 Sep 2004 1:52 AM
Environment: Windows XP
Description:
cd maven_src
just run ant -f build-bootstrap.xml
everything works fine except PluginManager unit test.
Testcase: testPluginPropertySubstitution(org.apache.maven.plugin.PluginManagerTest): Caused an ERROR
Error initialising plugin context
org.apache.maven.MavenException: Error initialising plugin context
at org.apache.maven.plugin.PluginManager.getPluginContext(PluginManager.java:906)
at org.apache.maven.plugin.PluginManagerTest.testPluginPropertySubstitution(PluginManagerTest.java:263)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
--- Nested Exception ---
org.apache.commons.jelly.JellyTagException: C:\opwv\mdm\maven\src\test\java\org\apache\maven\plugin\maven.home\plugins\jar\plugin.jelly:28:19:
<project> java.lang.NullPointerException
at org.apache.commons.jelly.impl.TagScript.handleException(TagScript.java:637)
at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:242)
at org.apache.maven.plugin.PluginManager.runScript(PluginManager.java:1018)
at org.apache.maven.plugin.PluginManager.initialiseHousingPluginContext(PluginManager.java:719)
at org.apache.maven.plugin.PluginManager.getPluginContext(PluginManager.java:903)
at org.apache.maven.plugin.PluginManagerTest.testPluginPropertySubstitution(PluginManagerTest.java:263)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
Caused by: java.lang.NullPointerException
at org.apache.commons.jelly.tags.ant.AntTagLibrary.createProject(AntTagLibrary.java:137)
at org.apache.commons.jelly.tags.ant.AntTagLibrary.getProject(AntTagLibrary.java:103)
at com.werken.werkz.jelly.ProjectTag.doTag(ProjectTag.java:107)
at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:233)
... 18 more
Root cause
java.lang.NullPointerException
at org.apache.commons.jelly.tags.ant.AntTagLibrary.createProject(AntTagLibrary.java:137)
at org.apache.commons.jelly.tags.ant.AntTagLibrary.getProject(AntTagLibrary.java:103)
at com.werken.werkz.jelly.ProjectTag.doTag(ProjectTag.java:107)
at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:233)
at org.apache.maven.plugin.PluginManager.runScript(PluginManager.java:1018)
at org.apache.maven.plugin.PluginManager.initialiseHousingPluginContext(PluginManager.java:719)
at org.apache.maven.plugin.PluginManager.getPluginContext(PluginManager.java:903)
at org.apache.maven.plugin.PluginManagerTest.testPluginPropertySubstitution(PluginManagerTest.java:263)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
I checked the source code, found it failed in AntTagLibrary.java,
ant tag version current maven depends on is 20030625.032346 which threw this exception. and I found this problem has been fixed in jelly ant tag library.
(jelly ant tag) below is the new version of
public static Project createProject(JellyContext context) {
GrantProject project = new GrantProject();
project.setPropsHandler(new JellyPropsHandler(context));
BuildLogger logger = new NoBannerLogger();
logger.setMessageOutputLevel( org.apache.tools.ant.Project.MSG_INFO );
logger.setOutputPrintStream( System.out );
logger.setErrorPrintStream( System.err);
project.addBuildListener( logger );
project.init();
project.getBaseDir();
if (context.getCurrentURL() != null) {
project.setProperty("ant.file",
context.getCurrentURL().toExternalForm());
}
return project;
}
in the jelly ant tag source tree. Actually I found this problem caused by brett's 8/20 checkin.
Sugguestion: use the latest version of jelly ant tag.
---------------------------------------------------------------------
JIRA INFORMATION:
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
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
[jira] Commented: (MAVEN-1445) junit test PluginManagerTest.java failure
Posted by ji...@codehaus.org.
The following comment has been added to this issue:
Author: Wallace Peng
Created: Mon, 13 Sep 2004 2:55 AM
Body:
I guess I posted the bug right before your checkin :P
---------------------------------------------------------------------
View this comment:
http://jira.codehaus.org/browse/MAVEN-1445?page=comments#action_24020
---------------------------------------------------------------------
View the issue:
http://jira.codehaus.org/browse/MAVEN-1445
Here is an overview of the issue:
---------------------------------------------------------------------
Key: MAVEN-1445
Summary: junit test PluginManagerTest.java failure
Type: Bug
Status: Closed
Priority: Critical
Resolution: CANNOT REPRODUCE
Original Estimate: Unknown
Time Spent: Unknown
Remaining: Unknown
Project: maven
Components:
plugin manager
Versions:
1.1
Assignee:
Reporter: Wallace Peng
Created: Mon, 13 Sep 2004 1:52 AM
Updated: Mon, 13 Sep 2004 2:55 AM
Environment: Windows XP
Description:
cd maven_src
just run ant -f build-bootstrap.xml
everything works fine except PluginManager unit test.
Testcase: testPluginPropertySubstitution(org.apache.maven.plugin.PluginManagerTest): Caused an ERROR
Error initialising plugin context
org.apache.maven.MavenException: Error initialising plugin context
at org.apache.maven.plugin.PluginManager.getPluginContext(PluginManager.java:906)
at org.apache.maven.plugin.PluginManagerTest.testPluginPropertySubstitution(PluginManagerTest.java:263)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
--- Nested Exception ---
org.apache.commons.jelly.JellyTagException: C:\opwv\mdm\maven\src\test\java\org\apache\maven\plugin\maven.home\plugins\jar\plugin.jelly:28:19:
<project> java.lang.NullPointerException
at org.apache.commons.jelly.impl.TagScript.handleException(TagScript.java:637)
at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:242)
at org.apache.maven.plugin.PluginManager.runScript(PluginManager.java:1018)
at org.apache.maven.plugin.PluginManager.initialiseHousingPluginContext(PluginManager.java:719)
at org.apache.maven.plugin.PluginManager.getPluginContext(PluginManager.java:903)
at org.apache.maven.plugin.PluginManagerTest.testPluginPropertySubstitution(PluginManagerTest.java:263)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
Caused by: java.lang.NullPointerException
at org.apache.commons.jelly.tags.ant.AntTagLibrary.createProject(AntTagLibrary.java:137)
at org.apache.commons.jelly.tags.ant.AntTagLibrary.getProject(AntTagLibrary.java:103)
at com.werken.werkz.jelly.ProjectTag.doTag(ProjectTag.java:107)
at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:233)
... 18 more
Root cause
java.lang.NullPointerException
at org.apache.commons.jelly.tags.ant.AntTagLibrary.createProject(AntTagLibrary.java:137)
at org.apache.commons.jelly.tags.ant.AntTagLibrary.getProject(AntTagLibrary.java:103)
at com.werken.werkz.jelly.ProjectTag.doTag(ProjectTag.java:107)
at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:233)
at org.apache.maven.plugin.PluginManager.runScript(PluginManager.java:1018)
at org.apache.maven.plugin.PluginManager.initialiseHousingPluginContext(PluginManager.java:719)
at org.apache.maven.plugin.PluginManager.getPluginContext(PluginManager.java:903)
at org.apache.maven.plugin.PluginManagerTest.testPluginPropertySubstitution(PluginManagerTest.java:263)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
I checked the source code, found it failed in AntTagLibrary.java,
ant tag version current maven depends on is 20030625.032346 which threw this exception. and I found this problem has been fixed in jelly ant tag library.
(jelly ant tag) below is the new version of
public static Project createProject(JellyContext context) {
GrantProject project = new GrantProject();
project.setPropsHandler(new JellyPropsHandler(context));
BuildLogger logger = new NoBannerLogger();
logger.setMessageOutputLevel( org.apache.tools.ant.Project.MSG_INFO );
logger.setOutputPrintStream( System.out );
logger.setErrorPrintStream( System.err);
project.addBuildListener( logger );
project.init();
project.getBaseDir();
if (context.getCurrentURL() != null) {
project.setProperty("ant.file",
context.getCurrentURL().toExternalForm());
}
return project;
}
in the jelly ant tag source tree. Actually I found this problem caused by brett's 8/20 checkin.
Sugguestion: use the latest version of jelly ant tag.
---------------------------------------------------------------------
JIRA INFORMATION:
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
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
[jira] Commented: (MAVEN-1445) junit test PluginManagerTest.java failure
Posted by ji...@codehaus.org.
The following comment has been added to this issue:
Author: Wallace Peng
Created: Mon, 13 Sep 2004 2:52 AM
Body:
ok, I saw your checkin just now. :) It works for me too right now.
Thanks
---------------------------------------------------------------------
View this comment:
http://jira.codehaus.org/browse/MAVEN-1445?page=comments#action_24019
---------------------------------------------------------------------
View the issue:
http://jira.codehaus.org/browse/MAVEN-1445
Here is an overview of the issue:
---------------------------------------------------------------------
Key: MAVEN-1445
Summary: junit test PluginManagerTest.java failure
Type: Bug
Status: Closed
Priority: Critical
Resolution: CANNOT REPRODUCE
Original Estimate: Unknown
Time Spent: Unknown
Remaining: Unknown
Project: maven
Components:
plugin manager
Versions:
1.1
Assignee:
Reporter: Wallace Peng
Created: Mon, 13 Sep 2004 1:52 AM
Updated: Mon, 13 Sep 2004 2:52 AM
Environment: Windows XP
Description:
cd maven_src
just run ant -f build-bootstrap.xml
everything works fine except PluginManager unit test.
Testcase: testPluginPropertySubstitution(org.apache.maven.plugin.PluginManagerTest): Caused an ERROR
Error initialising plugin context
org.apache.maven.MavenException: Error initialising plugin context
at org.apache.maven.plugin.PluginManager.getPluginContext(PluginManager.java:906)
at org.apache.maven.plugin.PluginManagerTest.testPluginPropertySubstitution(PluginManagerTest.java:263)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
--- Nested Exception ---
org.apache.commons.jelly.JellyTagException: C:\opwv\mdm\maven\src\test\java\org\apache\maven\plugin\maven.home\plugins\jar\plugin.jelly:28:19:
<project> java.lang.NullPointerException
at org.apache.commons.jelly.impl.TagScript.handleException(TagScript.java:637)
at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:242)
at org.apache.maven.plugin.PluginManager.runScript(PluginManager.java:1018)
at org.apache.maven.plugin.PluginManager.initialiseHousingPluginContext(PluginManager.java:719)
at org.apache.maven.plugin.PluginManager.getPluginContext(PluginManager.java:903)
at org.apache.maven.plugin.PluginManagerTest.testPluginPropertySubstitution(PluginManagerTest.java:263)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
Caused by: java.lang.NullPointerException
at org.apache.commons.jelly.tags.ant.AntTagLibrary.createProject(AntTagLibrary.java:137)
at org.apache.commons.jelly.tags.ant.AntTagLibrary.getProject(AntTagLibrary.java:103)
at com.werken.werkz.jelly.ProjectTag.doTag(ProjectTag.java:107)
at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:233)
... 18 more
Root cause
java.lang.NullPointerException
at org.apache.commons.jelly.tags.ant.AntTagLibrary.createProject(AntTagLibrary.java:137)
at org.apache.commons.jelly.tags.ant.AntTagLibrary.getProject(AntTagLibrary.java:103)
at com.werken.werkz.jelly.ProjectTag.doTag(ProjectTag.java:107)
at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:233)
at org.apache.maven.plugin.PluginManager.runScript(PluginManager.java:1018)
at org.apache.maven.plugin.PluginManager.initialiseHousingPluginContext(PluginManager.java:719)
at org.apache.maven.plugin.PluginManager.getPluginContext(PluginManager.java:903)
at org.apache.maven.plugin.PluginManagerTest.testPluginPropertySubstitution(PluginManagerTest.java:263)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
I checked the source code, found it failed in AntTagLibrary.java,
ant tag version current maven depends on is 20030625.032346 which threw this exception. and I found this problem has been fixed in jelly ant tag library.
(jelly ant tag) below is the new version of
public static Project createProject(JellyContext context) {
GrantProject project = new GrantProject();
project.setPropsHandler(new JellyPropsHandler(context));
BuildLogger logger = new NoBannerLogger();
logger.setMessageOutputLevel( org.apache.tools.ant.Project.MSG_INFO );
logger.setOutputPrintStream( System.out );
logger.setErrorPrintStream( System.err);
project.addBuildListener( logger );
project.init();
project.getBaseDir();
if (context.getCurrentURL() != null) {
project.setProperty("ant.file",
context.getCurrentURL().toExternalForm());
}
return project;
}
in the jelly ant tag source tree. Actually I found this problem caused by brett's 8/20 checkin.
Sugguestion: use the latest version of jelly ant tag.
---------------------------------------------------------------------
JIRA INFORMATION:
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
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
[jira] Commented: (MAVEN-1445) junit test PluginManagerTest.java failure
Posted by ji...@codehaus.org.
The following comment has been added to this issue:
Author: Brett Porter
Created: Mon, 13 Sep 2004 2:58 AM
Body:
no, I saw your bug first. What I was saying was that it worked on CVS HEAD before I changed anything. Somebody else had a problem in this class previously that was corrected by doing a clean build.
Anyway, I had been meaning to update those deps, so I did it, built it and checked it in just to make sure :)
---------------------------------------------------------------------
View this comment:
http://jira.codehaus.org/browse/MAVEN-1445?page=comments#action_24021
---------------------------------------------------------------------
View the issue:
http://jira.codehaus.org/browse/MAVEN-1445
Here is an overview of the issue:
---------------------------------------------------------------------
Key: MAVEN-1445
Summary: junit test PluginManagerTest.java failure
Type: Bug
Status: Closed
Priority: Critical
Resolution: CANNOT REPRODUCE
Original Estimate: Unknown
Time Spent: Unknown
Remaining: Unknown
Project: maven
Components:
plugin manager
Versions:
1.1
Assignee:
Reporter: Wallace Peng
Created: Mon, 13 Sep 2004 1:52 AM
Updated: Mon, 13 Sep 2004 2:58 AM
Environment: Windows XP
Description:
cd maven_src
just run ant -f build-bootstrap.xml
everything works fine except PluginManager unit test.
Testcase: testPluginPropertySubstitution(org.apache.maven.plugin.PluginManagerTest): Caused an ERROR
Error initialising plugin context
org.apache.maven.MavenException: Error initialising plugin context
at org.apache.maven.plugin.PluginManager.getPluginContext(PluginManager.java:906)
at org.apache.maven.plugin.PluginManagerTest.testPluginPropertySubstitution(PluginManagerTest.java:263)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
--- Nested Exception ---
org.apache.commons.jelly.JellyTagException: C:\opwv\mdm\maven\src\test\java\org\apache\maven\plugin\maven.home\plugins\jar\plugin.jelly:28:19:
<project> java.lang.NullPointerException
at org.apache.commons.jelly.impl.TagScript.handleException(TagScript.java:637)
at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:242)
at org.apache.maven.plugin.PluginManager.runScript(PluginManager.java:1018)
at org.apache.maven.plugin.PluginManager.initialiseHousingPluginContext(PluginManager.java:719)
at org.apache.maven.plugin.PluginManager.getPluginContext(PluginManager.java:903)
at org.apache.maven.plugin.PluginManagerTest.testPluginPropertySubstitution(PluginManagerTest.java:263)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
Caused by: java.lang.NullPointerException
at org.apache.commons.jelly.tags.ant.AntTagLibrary.createProject(AntTagLibrary.java:137)
at org.apache.commons.jelly.tags.ant.AntTagLibrary.getProject(AntTagLibrary.java:103)
at com.werken.werkz.jelly.ProjectTag.doTag(ProjectTag.java:107)
at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:233)
... 18 more
Root cause
java.lang.NullPointerException
at org.apache.commons.jelly.tags.ant.AntTagLibrary.createProject(AntTagLibrary.java:137)
at org.apache.commons.jelly.tags.ant.AntTagLibrary.getProject(AntTagLibrary.java:103)
at com.werken.werkz.jelly.ProjectTag.doTag(ProjectTag.java:107)
at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:233)
at org.apache.maven.plugin.PluginManager.runScript(PluginManager.java:1018)
at org.apache.maven.plugin.PluginManager.initialiseHousingPluginContext(PluginManager.java:719)
at org.apache.maven.plugin.PluginManager.getPluginContext(PluginManager.java:903)
at org.apache.maven.plugin.PluginManagerTest.testPluginPropertySubstitution(PluginManagerTest.java:263)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
I checked the source code, found it failed in AntTagLibrary.java,
ant tag version current maven depends on is 20030625.032346 which threw this exception. and I found this problem has been fixed in jelly ant tag library.
(jelly ant tag) below is the new version of
public static Project createProject(JellyContext context) {
GrantProject project = new GrantProject();
project.setPropsHandler(new JellyPropsHandler(context));
BuildLogger logger = new NoBannerLogger();
logger.setMessageOutputLevel( org.apache.tools.ant.Project.MSG_INFO );
logger.setOutputPrintStream( System.out );
logger.setErrorPrintStream( System.err);
project.addBuildListener( logger );
project.init();
project.getBaseDir();
if (context.getCurrentURL() != null) {
project.setProperty("ant.file",
context.getCurrentURL().toExternalForm());
}
return project;
}
in the jelly ant tag source tree. Actually I found this problem caused by brett's 8/20 checkin.
Sugguestion: use the latest version of jelly ant tag.
---------------------------------------------------------------------
JIRA INFORMATION:
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
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
[jira] Closed: (MAVEN-1445) junit test PluginManagerTest.java failure
Posted by ji...@codehaus.org.
Message:
The following issue has been closed.
Resolver: Brett Porter
Date: Mon, 13 Sep 2004 2:37 AM
it worked for me with a clean checkout of CVS HEAD of maven and maven-plugins. Are you sure?
Anyway, I have updated all the tag library dependencies (and commons-io for good measure) to 1.0.
---------------------------------------------------------------------
View the issue:
http://jira.codehaus.org/browse/MAVEN-1445
Here is an overview of the issue:
---------------------------------------------------------------------
Key: MAVEN-1445
Summary: junit test PluginManagerTest.java failure
Type: Bug
Status: Closed
Priority: Critical
Resolution: CANNOT REPRODUCE
Original Estimate: Unknown
Time Spent: Unknown
Remaining: Unknown
Project: maven
Components:
plugin manager
Versions:
1.1
Assignee:
Reporter: Wallace Peng
Created: Mon, 13 Sep 2004 1:52 AM
Updated: Mon, 13 Sep 2004 2:37 AM
Environment: Windows XP
Description:
cd maven_src
just run ant -f build-bootstrap.xml
everything works fine except PluginManager unit test.
Testcase: testPluginPropertySubstitution(org.apache.maven.plugin.PluginManagerTest): Caused an ERROR
Error initialising plugin context
org.apache.maven.MavenException: Error initialising plugin context
at org.apache.maven.plugin.PluginManager.getPluginContext(PluginManager.java:906)
at org.apache.maven.plugin.PluginManagerTest.testPluginPropertySubstitution(PluginManagerTest.java:263)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
--- Nested Exception ---
org.apache.commons.jelly.JellyTagException: C:\opwv\mdm\maven\src\test\java\org\apache\maven\plugin\maven.home\plugins\jar\plugin.jelly:28:19:
<project> java.lang.NullPointerException
at org.apache.commons.jelly.impl.TagScript.handleException(TagScript.java:637)
at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:242)
at org.apache.maven.plugin.PluginManager.runScript(PluginManager.java:1018)
at org.apache.maven.plugin.PluginManager.initialiseHousingPluginContext(PluginManager.java:719)
at org.apache.maven.plugin.PluginManager.getPluginContext(PluginManager.java:903)
at org.apache.maven.plugin.PluginManagerTest.testPluginPropertySubstitution(PluginManagerTest.java:263)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
Caused by: java.lang.NullPointerException
at org.apache.commons.jelly.tags.ant.AntTagLibrary.createProject(AntTagLibrary.java:137)
at org.apache.commons.jelly.tags.ant.AntTagLibrary.getProject(AntTagLibrary.java:103)
at com.werken.werkz.jelly.ProjectTag.doTag(ProjectTag.java:107)
at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:233)
... 18 more
Root cause
java.lang.NullPointerException
at org.apache.commons.jelly.tags.ant.AntTagLibrary.createProject(AntTagLibrary.java:137)
at org.apache.commons.jelly.tags.ant.AntTagLibrary.getProject(AntTagLibrary.java:103)
at com.werken.werkz.jelly.ProjectTag.doTag(ProjectTag.java:107)
at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:233)
at org.apache.maven.plugin.PluginManager.runScript(PluginManager.java:1018)
at org.apache.maven.plugin.PluginManager.initialiseHousingPluginContext(PluginManager.java:719)
at org.apache.maven.plugin.PluginManager.getPluginContext(PluginManager.java:903)
at org.apache.maven.plugin.PluginManagerTest.testPluginPropertySubstitution(PluginManagerTest.java:263)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
I checked the source code, found it failed in AntTagLibrary.java,
ant tag version current maven depends on is 20030625.032346 which threw this exception. and I found this problem has been fixed in jelly ant tag library.
(jelly ant tag) below is the new version of
public static Project createProject(JellyContext context) {
GrantProject project = new GrantProject();
project.setPropsHandler(new JellyPropsHandler(context));
BuildLogger logger = new NoBannerLogger();
logger.setMessageOutputLevel( org.apache.tools.ant.Project.MSG_INFO );
logger.setOutputPrintStream( System.out );
logger.setErrorPrintStream( System.err);
project.addBuildListener( logger );
project.init();
project.getBaseDir();
if (context.getCurrentURL() != null) {
project.setProperty("ant.file",
context.getCurrentURL().toExternalForm());
}
return project;
}
in the jelly ant tag source tree. Actually I found this problem caused by brett's 8/20 checkin.
Sugguestion: use the latest version of jelly ant tag.
---------------------------------------------------------------------
JIRA INFORMATION:
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
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
[jira] Commented: (MAVEN-1445) junit test PluginManagerTest.java failure
Posted by ji...@codehaus.org.
The following comment has been added to this issue:
Author: dion gillard
Created: Tue, 14 Sep 2004 8:58 PM
Body:
I fixed a bug in the Jelly Ant Taglib before 1.0. You might want to try upgrading to that.
---------------------------------------------------------------------
View this comment:
http://jira.codehaus.org/browse/MAVEN-1445?page=comments#action_24081
---------------------------------------------------------------------
View the issue:
http://jira.codehaus.org/browse/MAVEN-1445
Here is an overview of the issue:
---------------------------------------------------------------------
Key: MAVEN-1445
Summary: junit test PluginManagerTest.java failure
Type: Bug
Status: Closed
Priority: Critical
Resolution: CANNOT REPRODUCE
Original Estimate: Unknown
Time Spent: Unknown
Remaining: Unknown
Project: maven
Components:
plugin manager
Versions:
1.1
Assignee:
Reporter: Wallace Peng
Created: Mon, 13 Sep 2004 1:52 AM
Updated: Tue, 14 Sep 2004 8:58 PM
Environment: Windows XP
Description:
cd maven_src
just run ant -f build-bootstrap.xml
everything works fine except PluginManager unit test.
Testcase: testPluginPropertySubstitution(org.apache.maven.plugin.PluginManagerTest): Caused an ERROR
Error initialising plugin context
org.apache.maven.MavenException: Error initialising plugin context
at org.apache.maven.plugin.PluginManager.getPluginContext(PluginManager.java:906)
at org.apache.maven.plugin.PluginManagerTest.testPluginPropertySubstitution(PluginManagerTest.java:263)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
--- Nested Exception ---
org.apache.commons.jelly.JellyTagException: C:\opwv\mdm\maven\src\test\java\org\apache\maven\plugin\maven.home\plugins\jar\plugin.jelly:28:19:
<project> java.lang.NullPointerException
at org.apache.commons.jelly.impl.TagScript.handleException(TagScript.java:637)
at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:242)
at org.apache.maven.plugin.PluginManager.runScript(PluginManager.java:1018)
at org.apache.maven.plugin.PluginManager.initialiseHousingPluginContext(PluginManager.java:719)
at org.apache.maven.plugin.PluginManager.getPluginContext(PluginManager.java:903)
at org.apache.maven.plugin.PluginManagerTest.testPluginPropertySubstitution(PluginManagerTest.java:263)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
Caused by: java.lang.NullPointerException
at org.apache.commons.jelly.tags.ant.AntTagLibrary.createProject(AntTagLibrary.java:137)
at org.apache.commons.jelly.tags.ant.AntTagLibrary.getProject(AntTagLibrary.java:103)
at com.werken.werkz.jelly.ProjectTag.doTag(ProjectTag.java:107)
at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:233)
... 18 more
Root cause
java.lang.NullPointerException
at org.apache.commons.jelly.tags.ant.AntTagLibrary.createProject(AntTagLibrary.java:137)
at org.apache.commons.jelly.tags.ant.AntTagLibrary.getProject(AntTagLibrary.java:103)
at com.werken.werkz.jelly.ProjectTag.doTag(ProjectTag.java:107)
at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:233)
at org.apache.maven.plugin.PluginManager.runScript(PluginManager.java:1018)
at org.apache.maven.plugin.PluginManager.initialiseHousingPluginContext(PluginManager.java:719)
at org.apache.maven.plugin.PluginManager.getPluginContext(PluginManager.java:903)
at org.apache.maven.plugin.PluginManagerTest.testPluginPropertySubstitution(PluginManagerTest.java:263)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
I checked the source code, found it failed in AntTagLibrary.java,
ant tag version current maven depends on is 20030625.032346 which threw this exception. and I found this problem has been fixed in jelly ant tag library.
(jelly ant tag) below is the new version of
public static Project createProject(JellyContext context) {
GrantProject project = new GrantProject();
project.setPropsHandler(new JellyPropsHandler(context));
BuildLogger logger = new NoBannerLogger();
logger.setMessageOutputLevel( org.apache.tools.ant.Project.MSG_INFO );
logger.setOutputPrintStream( System.out );
logger.setErrorPrintStream( System.err);
project.addBuildListener( logger );
project.init();
project.getBaseDir();
if (context.getCurrentURL() != null) {
project.setProperty("ant.file",
context.getCurrentURL().toExternalForm());
}
return project;
}
in the jelly ant tag source tree. Actually I found this problem caused by brett's 8/20 checkin.
Sugguestion: use the latest version of jelly ant tag.
---------------------------------------------------------------------
JIRA INFORMATION:
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
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org