public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
From: johannes@altium.nl
To: gcc-gnats@gcc.gnu.org
Subject: libgcj/8130: ERROR: Invalid encoding name / ClassNotFoundException
Date: Thu, 03 Oct 2002 01:26:00 -0000	[thread overview]
Message-ID: <20021003082107.10866.qmail@sources.redhat.com> (raw)


>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==


                 reply	other threads:[~2002-10-03  8:26 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20021003082107.10866.qmail@sources.redhat.com \
    --to=johannes@altium.nl \
    --cc=gcc-gnats@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).