Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: XML error



I use the standard JDK 5 and I cannot find any references to xerces in my code (no third part libraries). The imports are org.w3c.dom but the user get an error stating that the problem (on the very same line) is caused by org.apache.xerces. How is it possible that a 2-3 users seems to use a different library with their JRE than 6000 others even though it is set to Java 5 on their Mac. 

Could this be old settings coming from older version of OSX - Java? Or what can it be?


On 26 Sep 2008, at 00:38, Ralf Taugerbeck wrote:

Hi Geoffrey,

I guess that you are using an old/incompatible Xerces implementation with your JDK. 
The exception occurs if a class does not implement a method defined by one of it's interfaces or by an abstract super class.
In your case this seems to be org.w3c.dom.Node#getTextContent(). (http://java.sun.com/javase/6/docs/api/org/w3c/dom/Node.html)

Regards,
Ralf

On Thu, Sep 25, 2008 at 11:04 PM, Geoffrey Rekier <email@hidden> wrote:
Hi all.

I wanted to check the list if someone has an idea about how to solve my problem. Some of our users get Exception in thread "AWT-EventQueue-0" java.lang.AbstractMethodError: org.apache.xerces.dom.DeferredElementImpl.getTextContent()Ljava/lang/String; in one of our program. It is usually people that upgraded to leopard on older Mac (not 64 bit). The error never occurs on Tiger nor on Leopard 64 bit (not on PC either). 

I checked the code several times and the error seems to be that these users are using another Class. The class used in our code is org.w3c.dom.Node not xerces. Anyone has an idea where this can come from? I'm lost. I don't know how the import can be overridden. I've never seen anything like that. 

I'm stuck. Any help would be great. Thanks in advance.


Best Regards

Geoffrey

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to email@hidden

References: 
 >XML error (From: Geoffrey Rekier <email@hidden>)
 >Re: XML error (From: "Ralf Taugerbeck" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.