commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 29402] - [el] ClassCastException when using commons-el.jar and standard.jar el evaluator
Date Mon, 14 Feb 2005 21:12:56 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=29402>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=29402





------- Additional Comments From asfbugzilla@jonsaville.net  2005-02-14 22:12 -------
I know that "me too" comments aren't very helpful, but what the hey. This is
still broken in Tomcat 5.5.7, using Taglibs Standard 1.1.2.

Arguably this bug could also be logged against tomcat or taglibs, since it's a
result of combining these products that's causing the havoc. It doesn't seem to
be getting much love here in Commons-EL :)

My scenario is very similar - my custom tag calls ExpressionEvaluator.evaluate()
as follows:

evaluator.evaluate(expression,MyClass.class,pageContext.getVariableResolver(),null);

At which point the following exception is thrown:

java.lang.ClassCastException: org.apache.taglibs.standard.lang.jstl.ImplicitObjects
  at
org.apache.commons.el.ImplicitObjects.getImplicitObjects(ImplicitObjects.java:123)
  at
org.apache.commons.el.VariableResolverImpl.resolveVariable(VariableResolverImpl.java:110)
  at
org.apache.jasper.runtime.PageContextImpl.resolveVariable(PageContextImpl.java:854)
  at org.apache.commons.el.NamedValue.evaluate(NamedValue.java:124)
  at org.apache.commons.el.ComplexValue.evaluate(ComplexValue.java:140)
  at
org.apache.commons.el.ExpressionEvaluatorImpl.evaluate(ExpressionEvaluatorImpl.java:263)
  at
org.apache.commons.el.ExpressionEvaluatorImpl.evaluate(ExpressionEvaluatorImpl.java:190)
[...]

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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


Mime
View raw message