re: ClassCastException in 2.6.2

2004-07-15 Thread Lachlan Paterson
Sorry, ignore my post. I missed the obvious. I had just set the value to be schemaURL, not the "namespace schemaURL". That is strange error response though. -Lachlan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional co

RE: ClassCastException

2003-08-07 Thread Matt Cohen
kindly, Matt > -Original Message- > From: Sander Bos [mailto:[EMAIL PROTECTED] > Sent: Thursday, August 07, 2003 12:51 AM > To: [EMAIL PROTECTED] > Subject: RE: ClassCastException > > > > Dear Matt, > > > ClassCastException: com.apache.xerces.dom.Deferre

Re: ClassCastException

2003-08-07 Thread Jeff Greif
A DeferredTextImpl is a text node, not any kind of Element. This could happen if -- the document structure had changed and the code hadn't kept up -- more likely, the treatment of white space is different, so a text node is now appearing (and didn't on the other machines) between elements, e.g

RE: ClassCastException

2003-08-07 Thread Sander Bos
Dear Matt, > ClassCastException: com.apache.xerces.dom.DeferredTextImpl > > when I try to cast a Node to an Element: > > Element elem = (Element)sourceElem.getFirstChild(); > > Now, I have xercesImpl.jar at the front of the classpath so > no other class > copy could be picked up instead. And

Re: ClassCastException

2003-08-07 Thread Simon Kitching
On Thu, 2003-08-07 at 19:41, Simon Kitching wrote: > Are you perhaps running java 1.4 on your test machines? > > Java 1.4 bundles an (old) version of xerces in the system rt.jar, and > putting the latest jar in the classpath doesn't override "system" > classes. Damn. Always get mixed up between X

Re: ClassCastException

2003-08-07 Thread Simon Kitching
Are you perhaps running java 1.4 on your test machines? Java 1.4 bundles an (old) version of xerces in the system rt.jar, and putting the latest jar in the classpath doesn't override "system" classes. If this is the case, see the FAQs about how to use the "endorsed override" feature or similar.

Re: ClassCastException

2002-06-25 Thread Bryan Mulvihill
problem. - Original Message - From: Lopez, William To: [EMAIL PROTECTED] Sent: Tuesday, June 25, 2002 11:52 AM Subject: RE: ClassCastException Could it be the domparser.getDocument() (probably returns a Document and not a Node). There are methods that return

RE: ClassCastException

2002-06-25 Thread Lopez, William
Could it be the domparser.getDocument() (probably returns a Document and not a Node). There are methods that return Node type or use the methods that return NodeList- see api doc. Just a guess, I don't work with DOM.   HTH, -Will -Original Message-From: Bryan Mulvihill [mailto:[