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