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/07/26 09:06:05 UTC
[jira] Created: (MAVEN-1404) ClassCastException in the debug log when inheriting an undefined property
Message:
A new issue has been created in JIRA.
---------------------------------------------------------------------
View the issue:
http://jira.codehaus.org/browse/MAVEN-1404
Here is an overview of the issue:
---------------------------------------------------------------------
Key: MAVEN-1404
Summary: ClassCastException in the debug log when inheriting an undefined property
Type: Bug
Status: Unassigned
Priority: Minor
Original Estimate: Unknown
Time Spent: Unknown
Remaining: Unknown
Project: maven
Components:
inheritance
Versions:
1.0
Assignee:
Reporter: Julien Kirch
Created: Mon, 26 Jul 2004 3:04 AM
Updated: Mon, 26 Jul 2004 3:04 AM
Description:
It's a behavior that appears when using maven with -X property in an unherited project, I can't know if it's a real problem or only a bad log.
1) Make a project
2) In it's project.properties, put a property that uses an undefined property, as an exemple
my.foo.property=${undefined.property}
3) Execute a maven goal : all goes well
4) Make a new project inheriting this one
5) Call maven in debug mode, in the log I have a :
####
Unexpected error evaluating expression
java.lang.ClassCastException
at org.apache.maven.MavenUtils.integrateMapInContext(MavenUtils.java:820)
at org.apache.maven.MavenUtils.getNonJellyProject(MavenUtils.java:240)
at org.apache.maven.MavenUtils.getProject(MavenUtils.java:144)
at org.apache.maven.MavenUtils.getProject(MavenUtils.java:123)
at org.apache.maven.MavenSession.initializeRootProject(MavenSession.java:235)
at org.apache.maven.MavenSession.initialize(MavenSession.java:175)
at org.apache.maven.cli.App.doMain(App.java:473)
at org.apache.maven.cli.App.main(App.java:1215)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.werken.forehead.Forehead.run(Forehead.java:551)
at com.werken.forehead.Forehead.main(Forehead.java:581)
####
with no detail about the expression that causes the problem
In MavenUtils, the line says :
String literalValue = (String) value;
and (after a quick look) the /value/ (it's the value of ${undefined.property}), in this case is not a String but a
org.apache.commons.jelly.expression.jexl.JexlExpressionFactory$ExpressionSupportLocal@15bdc50[expression:undefined.property]
It sounds like in this (inherited) case the property value is not evaluated as it should be.
I don't know if it's a real problem or simply a log issue, but if it's simply a log problem it should be removed or the log should be cleaner.
---------------------------------------------------------------------
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] Updated: (MAVEN-1404) ClassCastException in the debug log when inheriting an undefined property
Posted by ji...@codehaus.org.
The following issue has been updated:
Updater: Carlos Sanchez (mailto:apache@carlos.cousas.net)
Date: Wed, 28 Jul 2004 10:21 AM
Comment:
It affects inheritance, as can be seen in related issues
Changes:
priority changed from Minor to Critical
---------------------------------------------------------------------
For a full history of the issue, see:
http://jira.codehaus.org/browse/MAVEN-1404?page=history
---------------------------------------------------------------------
View the issue:
http://jira.codehaus.org/browse/MAVEN-1404
Here is an overview of the issue:
---------------------------------------------------------------------
Key: MAVEN-1404
Summary: ClassCastException in the debug log when inheriting an undefined property
Type: Bug
Status: Unassigned
Priority: Critical
Original Estimate: Unknown
Time Spent: Unknown
Remaining: Unknown
Project: maven
Components:
inheritance
Versions:
1.0
Assignee:
Reporter: Julien Kirch
Created: Mon, 26 Jul 2004 3:04 AM
Updated: Wed, 28 Jul 2004 10:21 AM
Description:
It's a behavior that appears when using maven with -X property in an unherited project, I can't know if it's a real problem or only a bad log.
1) Make a project
2) In it's project.properties, put a property that uses an undefined property, as an exemple
my.foo.property=${undefined.property}
3) Execute a maven goal : all goes well
4) Make a new project inheriting this one
5) Call maven in debug mode, in the log I have a :
####
Unexpected error evaluating expression
java.lang.ClassCastException
at org.apache.maven.MavenUtils.integrateMapInContext(MavenUtils.java:820)
at org.apache.maven.MavenUtils.getNonJellyProject(MavenUtils.java:240)
at org.apache.maven.MavenUtils.getProject(MavenUtils.java:144)
at org.apache.maven.MavenUtils.getProject(MavenUtils.java:123)
at org.apache.maven.MavenSession.initializeRootProject(MavenSession.java:235)
at org.apache.maven.MavenSession.initialize(MavenSession.java:175)
at org.apache.maven.cli.App.doMain(App.java:473)
at org.apache.maven.cli.App.main(App.java:1215)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.werken.forehead.Forehead.run(Forehead.java:551)
at com.werken.forehead.Forehead.main(Forehead.java:581)
####
with no detail about the expression that causes the problem
In MavenUtils, the line says :
String literalValue = (String) value;
and (after a quick look) the /value/ (it's the value of ${undefined.property}), in this case is not a String but a
org.apache.commons.jelly.expression.jexl.JexlExpressionFactory$ExpressionSupportLocal@15bdc50[expression:undefined.property]
It sounds like in this (inherited) case the property value is not evaluated as it should be.
I don't know if it's a real problem or simply a log issue, but if it's simply a log problem it should be removed or the log should be cleaner.
---------------------------------------------------------------------
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] Updated: (MAVEN-1404) ClassCastException in the debug log when inheriting an undefined property
Posted by ji...@codehaus.org.
The following issue has been updated:
Updater: Brett Porter (mailto:brett@codehaus.org)
Date: Tue, 21 Sep 2004 8:17 AM
Changes:
Fix Version changed to 1.1
---------------------------------------------------------------------
For a full history of the issue, see:
http://jira.codehaus.org/browse/MAVEN-1404?page=history
---------------------------------------------------------------------
View the issue:
http://jira.codehaus.org/browse/MAVEN-1404
Here is an overview of the issue:
---------------------------------------------------------------------
Key: MAVEN-1404
Summary: ClassCastException in the debug log when inheriting an undefined property
Type: Bug
Status: Open
Priority: Critical
Original Estimate: Unknown
Time Spent: Unknown
Remaining: Unknown
Project: maven
Components:
inheritance
Fix Fors:
1.1
Versions:
1.0
Assignee: Brett Porter
Reporter: Julien Kirch
Created: Mon, 26 Jul 2004 3:04 AM
Updated: Tue, 21 Sep 2004 8:17 AM
Description:
It's a behavior that appears when using maven with -X property in an unherited project, I can't know if it's a real problem or only a bad log.
1) Make a project
2) In it's project.properties, put a property that uses an undefined property, as an exemple
my.foo.property=${undefined.property}
3) Execute a maven goal : all goes well
4) Make a new project inheriting this one
5) Call maven in debug mode, in the log I have a :
####
Unexpected error evaluating expression
java.lang.ClassCastException
at org.apache.maven.MavenUtils.integrateMapInContext(MavenUtils.java:820)
at org.apache.maven.MavenUtils.getNonJellyProject(MavenUtils.java:240)
at org.apache.maven.MavenUtils.getProject(MavenUtils.java:144)
at org.apache.maven.MavenUtils.getProject(MavenUtils.java:123)
at org.apache.maven.MavenSession.initializeRootProject(MavenSession.java:235)
at org.apache.maven.MavenSession.initialize(MavenSession.java:175)
at org.apache.maven.cli.App.doMain(App.java:473)
at org.apache.maven.cli.App.main(App.java:1215)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.werken.forehead.Forehead.run(Forehead.java:551)
at com.werken.forehead.Forehead.main(Forehead.java:581)
####
with no detail about the expression that causes the problem
In MavenUtils, the line says :
String literalValue = (String) value;
and (after a quick look) the /value/ (it's the value of ${undefined.property}), in this case is not a String but a
org.apache.commons.jelly.expression.jexl.JexlExpressionFactory$ExpressionSupportLocal@15bdc50[expression:undefined.property]
It sounds like in this (inherited) case the property value is not evaluated as it should be.
I don't know if it's a real problem or simply a log issue, but if it's simply a log problem it should be removed or the log should be cleaner.
---------------------------------------------------------------------
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-1404) ClassCastException in the debug log when inheriting an undefined property
Posted by ji...@codehaus.org.
The following comment has been added to this issue:
Author: Julien Kirch
Created: Wed, 28 Jul 2004 10:50 AM
Body:
For info it's maven 1.0 under NT4sp6.
Happy to see this "minor log problem" becoming "critical inheritrance issue" :)
---------------------------------------------------------------------
View this comment:
http://jira.codehaus.org/browse/MAVEN-1404?page=comments#action_22455
---------------------------------------------------------------------
View the issue:
http://jira.codehaus.org/browse/MAVEN-1404
Here is an overview of the issue:
---------------------------------------------------------------------
Key: MAVEN-1404
Summary: ClassCastException in the debug log when inheriting an undefined property
Type: Bug
Status: Unassigned
Priority: Critical
Original Estimate: Unknown
Time Spent: Unknown
Remaining: Unknown
Project: maven
Components:
inheritance
Versions:
1.0
Assignee:
Reporter: Julien Kirch
Created: Mon, 26 Jul 2004 3:04 AM
Updated: Wed, 28 Jul 2004 10:50 AM
Description:
It's a behavior that appears when using maven with -X property in an unherited project, I can't know if it's a real problem or only a bad log.
1) Make a project
2) In it's project.properties, put a property that uses an undefined property, as an exemple
my.foo.property=${undefined.property}
3) Execute a maven goal : all goes well
4) Make a new project inheriting this one
5) Call maven in debug mode, in the log I have a :
####
Unexpected error evaluating expression
java.lang.ClassCastException
at org.apache.maven.MavenUtils.integrateMapInContext(MavenUtils.java:820)
at org.apache.maven.MavenUtils.getNonJellyProject(MavenUtils.java:240)
at org.apache.maven.MavenUtils.getProject(MavenUtils.java:144)
at org.apache.maven.MavenUtils.getProject(MavenUtils.java:123)
at org.apache.maven.MavenSession.initializeRootProject(MavenSession.java:235)
at org.apache.maven.MavenSession.initialize(MavenSession.java:175)
at org.apache.maven.cli.App.doMain(App.java:473)
at org.apache.maven.cli.App.main(App.java:1215)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.werken.forehead.Forehead.run(Forehead.java:551)
at com.werken.forehead.Forehead.main(Forehead.java:581)
####
with no detail about the expression that causes the problem
In MavenUtils, the line says :
String literalValue = (String) value;
and (after a quick look) the /value/ (it's the value of ${undefined.property}), in this case is not a String but a
org.apache.commons.jelly.expression.jexl.JexlExpressionFactory$ExpressionSupportLocal@15bdc50[expression:undefined.property]
It sounds like in this (inherited) case the property value is not evaluated as it should be.
I don't know if it's a real problem or simply a log issue, but if it's simply a log problem it should be removed or the log should be cleaner.
---------------------------------------------------------------------
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-1404) ClassCastException in the debug log when inheriting an undefined property
Posted by ji...@codehaus.org.
The following comment has been added to this issue:
Author: Julien Kirch
Created: Mon, 26 Jul 2004 3:07 AM
Body:
For 5), read "Call a maven goal in debug mode in the inherited project, in the log I have a :"
---------------------------------------------------------------------
View this comment:
http://jira.codehaus.org/browse/MAVEN-1404?page=comments#action_22317
---------------------------------------------------------------------
View the issue:
http://jira.codehaus.org/browse/MAVEN-1404
Here is an overview of the issue:
---------------------------------------------------------------------
Key: MAVEN-1404
Summary: ClassCastException in the debug log when inheriting an undefined property
Type: Bug
Status: Unassigned
Priority: Minor
Original Estimate: Unknown
Time Spent: Unknown
Remaining: Unknown
Project: maven
Components:
inheritance
Versions:
1.0
Assignee:
Reporter: Julien Kirch
Created: Mon, 26 Jul 2004 3:04 AM
Updated: Mon, 26 Jul 2004 3:07 AM
Description:
It's a behavior that appears when using maven with -X property in an unherited project, I can't know if it's a real problem or only a bad log.
1) Make a project
2) In it's project.properties, put a property that uses an undefined property, as an exemple
my.foo.property=${undefined.property}
3) Execute a maven goal : all goes well
4) Make a new project inheriting this one
5) Call maven in debug mode, in the log I have a :
####
Unexpected error evaluating expression
java.lang.ClassCastException
at org.apache.maven.MavenUtils.integrateMapInContext(MavenUtils.java:820)
at org.apache.maven.MavenUtils.getNonJellyProject(MavenUtils.java:240)
at org.apache.maven.MavenUtils.getProject(MavenUtils.java:144)
at org.apache.maven.MavenUtils.getProject(MavenUtils.java:123)
at org.apache.maven.MavenSession.initializeRootProject(MavenSession.java:235)
at org.apache.maven.MavenSession.initialize(MavenSession.java:175)
at org.apache.maven.cli.App.doMain(App.java:473)
at org.apache.maven.cli.App.main(App.java:1215)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.werken.forehead.Forehead.run(Forehead.java:551)
at com.werken.forehead.Forehead.main(Forehead.java:581)
####
with no detail about the expression that causes the problem
In MavenUtils, the line says :
String literalValue = (String) value;
and (after a quick look) the /value/ (it's the value of ${undefined.property}), in this case is not a String but a
org.apache.commons.jelly.expression.jexl.JexlExpressionFactory$ExpressionSupportLocal@15bdc50[expression:undefined.property]
It sounds like in this (inherited) case the property value is not evaluated as it should be.
I don't know if it's a real problem or simply a log issue, but if it's simply a log problem it should be removed or the log should be cleaner.
---------------------------------------------------------------------
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-1404) ClassCastException in the debug log when inheriting an undefined property
Posted by ji...@codehaus.org.
Message:
The following issue has been closed.
Resolver: Brett Porter
Date: Thu, 4 Nov 2004 8:38 AM
this was just a warning. checking that it is a string first.
---------------------------------------------------------------------
View the issue:
http://jira.codehaus.org/browse/MAVEN-1404
Here is an overview of the issue:
---------------------------------------------------------------------
Key: MAVEN-1404
Summary: ClassCastException in the debug log when inheriting an undefined property
Type: Bug
Status: Closed
Priority: Critical
Resolution: FIXED
Original Estimate: Unknown
Time Spent: Unknown
Remaining: Unknown
Project: maven
Components:
inheritance
Fix Fors:
1.0.1
Versions:
1.0
Assignee: Brett Porter
Reporter: Julien Kirch
Created: Mon, 26 Jul 2004 3:04 AM
Updated: Thu, 4 Nov 2004 8:38 AM
Description:
It's a behavior that appears when using maven with -X property in an unherited project, I can't know if it's a real problem or only a bad log.
1) Make a project
2) In it's project.properties, put a property that uses an undefined property, as an exemple
my.foo.property=${undefined.property}
3) Execute a maven goal : all goes well
4) Make a new project inheriting this one
5) Call maven in debug mode, in the log I have a :
####
Unexpected error evaluating expression
java.lang.ClassCastException
at org.apache.maven.MavenUtils.integrateMapInContext(MavenUtils.java:820)
at org.apache.maven.MavenUtils.getNonJellyProject(MavenUtils.java:240)
at org.apache.maven.MavenUtils.getProject(MavenUtils.java:144)
at org.apache.maven.MavenUtils.getProject(MavenUtils.java:123)
at org.apache.maven.MavenSession.initializeRootProject(MavenSession.java:235)
at org.apache.maven.MavenSession.initialize(MavenSession.java:175)
at org.apache.maven.cli.App.doMain(App.java:473)
at org.apache.maven.cli.App.main(App.java:1215)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.werken.forehead.Forehead.run(Forehead.java:551)
at com.werken.forehead.Forehead.main(Forehead.java:581)
####
with no detail about the expression that causes the problem
In MavenUtils, the line says :
String literalValue = (String) value;
and (after a quick look) the /value/ (it's the value of ${undefined.property}), in this case is not a String but a
org.apache.commons.jelly.expression.jexl.JexlExpressionFactory$ExpressionSupportLocal@15bdc50[expression:undefined.property]
It sounds like in this (inherited) case the property value is not evaluated as it should be.
I don't know if it's a real problem or simply a log issue, but if it's simply a log problem it should be removed or the log should be cleaner.
---------------------------------------------------------------------
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