[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xmlbeans-dev
Subject:    RE: ArrayStoreException error while invoking XmlObject.selectPath()
From:       "Radu Preotiuc-Pietro" <radup () bea ! com>
Date:       2005-12-22 23:59:18
Message-ID: 99479F4D39C9244F8E17E688193A3DD805D797 () repbex02 ! amer ! bea ! com
[Download RAW message or body]

I don't know, but I have opened http://issues.apache.org/jira/browse/XMLBEANS-240 to \
track this. However, it would help to have a little more details about the exact \
exception etc. There's only so much one can do by just staring at the code.

Thanks,
Radu

-----Original Message-----
From: Celso Pinto (ext) [mailto:Celso.Pinto.ext@siemens.com] 
Sent: Wednesday, December 14, 2005 9:24 AM
To: dev@xmlbeans.apache.org
Subject: ArrayStoreException error while invoking XmlObject.selectPath()


Hi everyone,

I've been getting some ArrayStoreException errors when invoking the selectPath() \
method in an XmlObject subclass. Tracking the traceback exception I noticed that this \
occurs in the XmlObjectBase._typedArray() method, when the input array argument has a \
XmlAnyTypeImpl object and the System.arraycopy is invoked.

I'm failing to understand what's the need of having a _typedArray() because \
apparently it can't handle XmlAnyTypeImpl classes and every class (including the \
XmlAnyTypeImpl class) implements the XmlObject interface. 

Given that both selectPath(String,XmlOptions) and execQuery(String,XmlOptions) return \
a XmlObject[] and these are invokers of the _typedArray() method, what is the need \
for a method that crashes and apparently is redundant?

Cheers,
Celso


_______________________________________________ 
SIEMENS 
Celso Pinto
Siemens S.A. - Siemens Communications Portugal
R&D Center 1
Network Management Systems
(COM RD1 SW2 A2)

Rua Irmãos Siemens, 1 - Edif. Alfravip, Piso 1 
2720-093 Amadora, 
Portugal

Phone: +351 21 416 7551 
Fax: +351 21 416 7501 _______________________________________________

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


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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic