4 Replies Latest reply on Oct 21, 2004 11:25 AM by Shigeru Chiba

    problem with  xml  parser

    dex Newbie

       

      "dex" wrote:
      "dex" wrote:

      I have this problem when use DOM in

      return getDomBuilder().parse(new java.io.File(filename)).getDocumentElement();


      exception returned is:

      Exception in thread "main" java.lang.LinkageError: loader constraints violated when linking org/xml/sax/ErrorHandler class
      at com.altova.xml.Document.getDomBuilder(Document.java:36)
      at com.altova.xml.Document.load(Document.java:93)
      at knowledgebase.modelecontenu.FileIOManager.openFileAndParse(FileIOMana
      ger.java:74)
      at knowledgebase.modelecontenu.ContenuCore.loadFile(ContenuCore.java:331
      )
      at astus.interfacecommunication.components.Contenu.get_contenu(Contenu.j
      ava:40)
      at cyberscience.eventserver.server.ReflectClass.main(ReflectClass.java:2
      7)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at javassist.Loader.run(Loader.java:247)
      at javassist.Loader.run(Loader.java:233)
      at javassist.reflect.Loader.main(Loader.java:121)

      when use :



      return getDomBuilder().parse(new java.io.File(filename)).getDocumentElement();



      why?