commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Ext-Mike.Ho...@nokia.com>
Subject [jxpath]
Date Fri, 08 Nov 2002 16:22:32 GMT
Hi,

When JXPath is setting a property, it first gets the properties value (computeValue()).  I
have an throwing an exception in the getter method in my class to show the stack trace, below.

Why does JXPath read the value before setting it, and is there any way to avoid it?

Thanks,
Mike.

java.lang.Exception: Reading field
	at com.nokia.b2t.dna.graphmap.MockDomainObject$MockNestedDomainObject.getStringField(MockDomainObject.java:76)
	at java.lang.reflect.Method.invoke(Native Method)
	at org.apache.commons.jxpath.util.ValueUtils.getValue(ValueUtils.java:287)
	at org.apache.commons.jxpath.ri.model.beans.BeanPropertyPointer.getNodeValue(BeanPropertyPointer.java:187)
	at org.apache.commons.jxpath.ri.model.beans.PropertyPointer.getValuePointer(PropertyPointer.java:152)
	at org.apache.commons.jxpath.ri.axes.SimplePathInterpreter.singleStep(SimplePathInterpreter.java:246)
	at org.apache.commons.jxpath.ri.axes.SimplePathInterpreter.interpretPath(SimplePathInterpreter.java:119)
	at org.apache.commons.jxpath.ri.compiler.Path.getSingleNodePointerForSteps(Path.java:162)
	at org.apache.commons.jxpath.ri.compiler.LocationPath.computeValue(LocationPath.java:137)
	at org.apache.commons.jxpath.ri.JXPathContextReferenceImpl.setValue(JXPathContextReferenceImpl.java:329)
	at org.apache.commons.jxpath.ri.JXPathContextReferenceImpl.createPathAndSetValue(JXPathContextReferenceImpl.java:320)
	at org.apache.commons.jxpath.ri.JXPathContextReferenceImpl.createPathAndSetValue(JXPathContextReferenceImpl.java:315)
	at com.nokia.b2t.dna.graphmap.ObjectGraphMapper.performMapping(ObjectGraphMapper.java:88)
	at com.nokia.b2t.dna.graphmap.ObjectGraphMapper.toDomainGraph(ObjectGraphMapper.java:57)
	at com.nokia.b2t.dna.graphmap.ObjectGraphMapperJUnitTest.main(ObjectGraphMapperJUnitTest.java:122)

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


Mime
View raw message