[kaffe] Eclipse and strange ClassCastException
Helmer Krämer
hkraemer@freenet.de
Mon Jul 7 02:22:02 2003
This is a multi-part message in MIME format.
--Multipart_Mon__7_Jul_2003_11:25:16_+0200_098f6de0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
On 07 Jul 2003 10:11:56 +0200
Mark Wielaard <mark@klomp.org> wrote:
Hi,
> When trying to run the eclipse-SDK-2.1-linux-gtk release (make sure that
> your java.version in System.csays "1.3" otherwise it won't try to run at
> all) I get a strange ClassCastException (workspace/.metainfo/.log file):
>
> java.lang.ExceptionInInitializerError: [exception was java.lang.ClassCastException: can't cast `org/apache/xerces/parsers/StandardParserConfiguration' to `org/apache/xerces/xni/parser/XMLParserConfiguration']
> at org.eclipse.core.internal.plugins.RegistryLoader.processManifestFile(RegistryLoader.java:89)
> [ ... ]
> The StandardParserConfiguration class implements the
> XMLPullParserConfiguration interface which extends the
> XMLParserConfiguration interface.
the problem is that 'StandardParserConfiguration' is loaded by a
PluginClassLoader and 'XMLParserConfiguration' is loaded by the
PlatformClassLoader (the attached patch includes this info in the
message of the ClassCastException).
>From what I know about eclipse, I would assume that the
PlatformClassLoader should not be able to find that class,
should it?
HTH,
Helmer
--Multipart_Mon__7_Jul_2003_11:25:16_+0200_098f6de0
Content-Type: application/octet-stream;
name="checkcast-patch"
Content-Disposition: attachment;
filename="checkcast-patch"
Content-Transfer-Encoding: base64
SW5kZXg6IGthZmZlL2thZmZldm0vc29mdC5jCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KUkNTIGZpbGU6IC9jdnMva2Fm
ZmUva2FmZmUva2FmZmUva2FmZmV2bS9zb2Z0LmMsdgpyZXRyaWV2aW5nIHJldmlzaW9uIDEuNTIK
ZGlmZiAtdSAtcjEuNTIgc29mdC5jCi0tLSBrYWZmZS9rYWZmZXZtL3NvZnQuYwkyOCBKdW4gMjAw
MyAxMDoyOTozOSAtM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