public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* libgcj/8130: ERROR: Invalid encoding name / ClassNotFoundException
@ 2002-10-03 1:26 johannes
0 siblings, 0 replies; only message in thread
From: johannes @ 2002-10-03 1:26 UTC (permalink / raw)
To: gcc-gnats
>Number: 8130
>Category: libgcj
>Synopsis: ERROR: Invalid encoding name / ClassNotFoundException
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Oct 03 01:26:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator: myself
>Release: gcc-3.2
>Organization:
>Environment:
Debian Linux 3.0 / Kernel version 2.4.19-x75
>Description:
When invoking a Xerces DOM XML parser, from my Java code, I get the following runtime error:
ERROR: Invalid encoding name " (java.lang.ClassNotFoundException: gnu.gcj.convert.Input_)".
Exception in thread "main" java.lang.NullPointerException
at 0x4021bde2: _Jv_ThrowSignal (/pub/gcc-3.2/lib/libgcj.so.3)
I tried compiling the code with --encoding=ASCII, --encoding=UTF-8 and -Dfile.encoding=UTF-8.
But this has no effect.
>How-To-Repeat:
Below is a Java code fragment that invokes a Xerces DOM parser with an (ASCII) XML file.
import org.apache.xerces.parsers.DOMParser;
...
...
ErrorHandler errorHandler = new DomErrorHandler();
DOMParser parser = new DOMParser();
try
{
parser.setFeature("http://xml.org/sax/features/namespaces", true);
parser.setErrorHandler(errorHandler);
// DOM parse import spec. file
========> parser.parse(file); <============== triggers ERROR (1)
...
...
(1)
ERROR: Invalid encoding name " (java.lang.ClassNotFoundException: gnu.gcj.convert.Input_)".
Exception in thread "main" java.lang.NullPointerException
at 0x4021bde2: _Jv_ThrowSignal (/pub/gcc-3.2/lib/libgcj.so.3)
>Fix:
No fix yet.
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="ttt"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="ttt"
aW1wb3J0IG9yZy5hcGFjaGUueGVyY2VzLnBhcnNlcnMuRE9NUGFyc2VyOwoKLi4uCi4uLgogICAg
ICAgICAgICAgICAgRXJyb3JIYW5kbGVyIGVycm9ySGFuZGxlciA9IG5ldyBEb21FcnJvckhhbmRs
ZXIoKTsKICAgICAgICAgICAgICAgIERPTVBhcnNlciBwYXJzZXIgPSBuZXcgRE9NUGFyc2VyKCk7
CgogICAgICAgICAgICAgICAgdHJ5CiAgICAgICAgICAgICAgICB7CiAgICAgICAgICAgICAgICAg
ICAgICAgIHBhcnNlci5zZXRGZWF0dXJlKCJodHRwOi8veG1sLm9yZy9zYXgvZmVhdHVyZXMvbmFt
ZXNwYWNlcyIsIHRydWUpOwogICAgICAgICAgICAgICAgICAgICAgICBwYXJzZXIuc2V0RXJyb3JI
YW5kbGVyKGVycm9ySGFuZGxlcik7CgogICAgICAgICAgICAgICAgICAgICAgICAvLyBET00gcGFy
c2UgaW1wb3J0IHNwZWMuIGZpbGUKPT09PT09PT0+ICAgICAgICAgICAgICAgcGFyc2VyLnBhcnNl
KGZpbGUpOwkJPD09PT09PT09PT09PT09IHRyaWdnZXJzIEVSUk9SICgxKQoKCi4uLgouLi4KCgoK
KDEpCgpFUlJPUjogSW52YWxpZCBlbmNvZGluZyBuYW1lICIgKGphdmEubGFuZy5DbGFzc05vdEZv
dW5kRXhjZXB0aW9uOiBnbnUuZ2NqLmNvbnZlcnQuSW5wdXRfKSIuCkV4Y2VwdGlvbiBpbiB0aHJl
YWQgIm1haW4iIGphdmEubGFuZy5OdWxsUG9pbnRlckV4Y2VwdGlvbgogICBhdCAweDQwMjFiZGUy
OiBfSnZfVGhyb3dTaWduYWwgKC9wdWIvZ2NjLTMuMi9saWIvbGliZ2NqLnNvLjMpCg==
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-10-03 8:26 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-03 1:26 libgcj/8130: ERROR: Invalid encoding name / ClassNotFoundException johannes
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).