Announcement

Collapse
No announcement yet.

DocumentBuilderFactory.newInstance() wirft ClassFormatError Ausnahme

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • DocumentBuilderFactory.newInstance() wirft ClassFormatError Ausnahme

    Hallo,<br>
    Ich hab da ein Problem: Ich möchte über ein Applet ein XML Dokument auslesen. Dazu benutze ich folgende Funktion:

    <PRE>
    .
    .
    .
    import javax.xml.parsers.DocumentBuilderFactory;
    .
    .
    .
    DocumentBuilderFactory dbf = new DocumentBuilderFactory.newInstance();
    DocumentBuilder db = DBF.newDocumentBuilder();
    Document document = db.parse(xmlDatei);
    <PRE>

    Allerdings bekomme ich bereits in der ersten Zeile eine Ausnahme: java.lang.ClassFormatError:

    Der Bytecode wird ohne Fehler erstellt.<br>
    Wenn ich das Applet lokal teste (nicht im Applet-Viewer) funktioniert es.<br>
    Wenn ich es hochlade und mir die Seite online ansehe, bekomme ich die Ausnahme.

    Hat jemand ne Ahnung, woran das liegen kann? Ich bin da doch etwas verwirrt. ;o)

    danke im Voraus tim
Working...
X