Menu

#1 Fix for parsing

open
nobody
None
5
2002-06-11
2002-06-11
Chris Nagy
No

Hi,

I was having problems with the connect plugin (ver
0.20) parsing xml. In eclipse (Version: 2.0, Build id:
20020610), a class not found exception was being thrown:

java.lang.NoClassDefFoundError:
org/apache/xerces/framework/XMLParser
at
org.sourceforge.ecldbtool.connect.ConnectionManager.getConnectionConfiguration(ConnectionManager.java:65)
at
org.sourceforge.ecldbtool.connect.ConnectionManager.getConnectionProfile(ConnectionManager.java:32)
at
org.sourceforge.ecldbtool.design.view.PageSelectionSchema.init(PageSelectionSchema.java:204)
at
org.sourceforge.ecldbtool.design.view.PageSelectionSchema.setVisible(PageSelectionSchema.java:235)
at
org.eclipse.jface.wizard.WizardDialog.showPage(WizardDialog.java:888)
at ....
org.eclipse.core.launcher.Main.main(Main.java:526)

I changed 2 files to use the standard jaxp parsing api
and this fixed the above problem:

- org.sourceforge.ecldbtool.model.io.DatabaseModelXMLReader
-
org.sourceforge.ecldbtool.connect.ConnectionProfileXMLReader

I'm attaching both files with the fixes. Hope that helps,

Chris Nagy

Discussion

  • Chris Nagy

    Chris Nagy - 2002-06-11

    Files using jaxp parsing api

     
  • Nobody/Anonymous

    Logged In: NO

    Hi see ^M at the end of each row in the configuration file
    <?xml version="1.0" encoding="UTF-8"?>^M
    use dos2unix command to purify the configuration file.

    dos2unix ConnectionConfiguration.xml

    I hope this will help without changing original source code.

    Bayoi ba Yinda

     
  • Chris Nagy

    Chris Nagy - 2002-06-26

    Logged In: YES
    user_id=138822

    I've removed the ^M files at the end of each line.

    Sorry about that,

    Chris Nagy

     

Log in to post a comment.