cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Reinhard Poetz <reinh...@apache.org>
Subject JXPath environment expressions broken in jxtemplate
Date Thu, 19 May 2005 06:02:58 GMT

Yesterday I tried to upgrade to the latest Cocoon and found out that jxpath 
expressions don't work, e.g. #{$cocoon/request/protocol.

Ideas?


java.lang.ClassCastException
	at 
org.apache.cocoon.components.flow.javascript.ScriptablePropertyHandler.getProperty(ScriptablePropertyHandler.java:37)
	at 
org.apache.commons.jxpath.ri.model.dynamic.DynamicPropertyPointer.getBaseValue(DynamicPropertyPointer.java:153)
	at 
org.apache.cocoon.components.flow.javascript.ScriptablePropertyPointer.getImmediateNode(ScriptablePropertyPointer.java:64)
	at 
org.apache.commons.jxpath.ri.model.beans.PropertyPointer.getImmediateValuePointer(PropertyPointer.java:127)
	at 
org.apache.commons.jxpath.ri.model.NodePointer.getValuePointer(NodePointer.java:238)
	at 
org.apache.commons.jxpath.ri.JXPathContextReferenceImpl.getValue(JXPathContextReferenceImpl.java:331)
	at 
org.apache.commons.jxpath.ri.JXPathCompiledExpression.getValue(JXPathCompiledExpression.java:57)
	at 
org.apache.cocoon.components.expression.jxpath.JXPathExpression.evaluate(JXPathExpression.java:54)
	at 
org.apache.cocoon.template.expression.JXTExpression.getValue(JXTExpression.java:248)
	at 
org.apache.cocoon.template.expression.Substitutions.toString(Substitutions.java:152)
	at 
org.apache.cocoon.template.script.event.StartElement.execute(StartElement.java:115)
	at org.apache.cocoon.template.script.Invoker.execute(Invoker.java:63)
	at 
org.apache.cocoon.template.JXTemplateGenerator.performGeneration(JXTemplateGenerator.java:122)


-- 
Reinhard Pötz           Independent Consultant, Trainer & (IT)-Coach 

{Software Engineering, Open Source, Web Applications, Apache Cocoon}

                                        web(log): http://www.poetz.cc
--------------------------------------------------------------------


Mime
View raw message