commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dmitri Plotnikov <dplot...@yahoo.com>
Subject Re: entity beans and jxPath
Date Mon, 02 Dec 2002 20:48:04 GMT
Thorsten,

I recently made some changes in JXPath that are supposed to make this
issue you are reportin go away.  When you have a chance, could you try
and let me know?

Thanks,

- Dmitri

--- Thorsten Mauch <mauch@imkenberg.de> wrote:
> Hi
> I try to create dynamic value objects for a entity bean useing
> jxPath.
> I want to iterate all propertys and call the getValue for
> each property. 
> 
> I tried:
> Iterator i=context.iteratePointers("child::*");
> and
> Iterator i=context.iteratePointers("child::*[local-name() !=
> 'EJBLocalHome']");
> while(i.hasNext()){
>           p=(NodePointer)i.next();
> }
> 
> in both cases I got a exception:
>  org.apache.commons.jxpath.JXPathException: Cannot access property:
> EJBLocalHome; java.lang.reflect.InvocationTargetException
>     at
>
org.apache.commons.jxpath.util.ValueUtils.getValue(ValueUtils.java:290)
>     at
>
org.apache.commons.jxpath.ri.model.beans.BeanPropertyPointer.getBaseValue(Be
> anPropertyPointer.java:161)
>     at
>
org.apache.commons.jxpath.ri.model.beans.BeanPropertyPointer.getLength(BeanP
> ropertyPointer.java:149)
>     at
>
org.apache.commons.jxpath.ri.model.beans.PropertyIterator.setPositionAllProp
> erties(PropertyIterator.java:
> 
> How can i avoit this exception ? For me is unclear why the Iteration
> of
> the pointer let to a getValue call.
> 
> Thanx Thorsten
> 
> --
> To unsubscribe, e-mail:  
> <mailto:commons-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
> <mailto:commons-user-help@jakarta.apache.org>
> 


__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

Mime
View raw message