Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / September 2006

Tip: Looking for answers? Try searching our database.

java.lang.AbstractMethodError:  at the org.apache.xerces.dom.DOMImplementationImpl.createLSOutput()

Thread view: 
poorichard@gmail.com - 15 Sep 2006 11:05 GMT
hello everybody,

I come to a strange error ,(which would works in another project under
the same eclipse workspace),
the exception as follows:

Exception in thread "AWT-EventQueue-0" java.lang.AbstractMethodError:
org.apache.xerces.dom.DOMImplementationImpl.createLSOutput()Lorg/w3c/dom/ls/LSOutput;

the caused source likes :

DocumentBuilder docBuilder =
DocumentBuilderFactory.newInstance().newDocumentBuilder();
DOMImplementation dom = docBuilder.getDOMImplementation();
((DOMImplementationLS)dom).createLSOutput();

the environment I used was Eclipse3.2.0 and JDK1.5,

I tried to find out the reason,but seems the class had implements
abstractMethod correctly,
and I had turn my IDE back to Eclipse3.1.2,but had the same the
problem.

as I tried,I directly used the DOMImplementation from JDK1.5,that is ,

DOMImplementation dom = (DOMImplementation)com.sun.org.apache.xerces
.internal.dom.DOMImplementationImpl.getDOMImplementation();
((DOMImplementationLS)dom).createLSOutput();

then It's ok now,but I'm still stupid to know why,or may just the bug
of IDE
anybody can explain it for me?

Best Regards.
Richard
Arne Vajhøj - 16 Sep 2006 00:26 GMT
> I come to a strange error ,(which would works in another project under
> the same eclipse workspace),
[quoted text clipped - 14 lines]
> I tried to find out the reason,but seems the class had implements
> abstractMethod correctly,

This error indicates that you are running against a different
class than the one you compiled again.

Obviously your usage of XML parser libraries at compile time
and runtime are not consistent.

Arne
poorichard@gmail.com - 18 Sep 2006 03:08 GMT
yes, just like you said,
when I set up a new project,
and copy the source to,
nothing happened.
May I should check the builders for it.

thank you very much,
Rihcard

Arne Vajhøj 写道:

> > I come to a strange error ,(which would works in another project under
> > the same eclipse workspace),
[quoted text clipped - 22 lines]
>
> Arne


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.