Runtime Error: JWNLException

Help
M. Alyahya
2002-03-18
2002-03-20
  • M. Alyahya

    M. Alyahya - 2002-03-18

    Hi,
    I'm trying to run my program (Windows 2k) but i get this error:

    net.didion.jwnl.JWNLException: JWNL_EXCEPTION_002

    Can anyone help?

    Thanks,
    maly

     
    • M. Alyahya

      M. Alyahya - 2002-03-20

      to be appended to the previous message
      jdk1.4 wordnet1.6, wndows 2k

      Hi,

      I run my program on my computer at home with no problems, however at work-my computer is connected to a LAN-  I have this runtime error:

      Here is the exception trace:

      net.didion.jwnl.JWNLException: JWNL_EXCEPTION_002
        at net.didion.jwnl.JWNL.initialize(JWNL.java: 109)
        at wn.main(wn.java:18)
      Caused by: java.net.ConnectionException: Connection timed out: connect
        at org.apache.crimson.parser.Parser2.fatal(Parser2.java)
      ....
      at javax.xml.parsers.DocumentBuilderImpl.parse(...)
      at javax.xml.parsers.DocumentBuilder.parse(...)
      ....

      if I disconnect the network cable I have this error:
      net.didion.jwnl.JWNLException: JWNL_EXCEPTION_002
        at net.didion.jwnl.JWNL.initialize(JWNL.java: 109)
        at wn.main(wn.java:18)
      Caused by: java.net.UnknownHostException: jwordnet.sourceforge.net
        at org.apache.crimson.parser.Parser2.fatal(Parser2.java)
      ....
      at javax.xml.parsers.DocumentBuilderImpl.parse(...)
      at javax.xml.parsers.DocumentBuilder.parse(...)
      ...

      well, I don't understand why it is trying to connect or get something from jwordnet.sourceforge.net??

      Cheers,
      maly

       
    • M. Alyahya

      M. Alyahya - 2002-03-20

      Forgot to change the path of the dtd file in the DOCTYPE tag of my properties xml file.

      from this
      <!DOCTYPE jwnl_properties SYSTEM <http://jwordnet.sourceforge.net/jwnl_properties.dtd">

      to this:
      <!DOCTYPE jwnl_properties SYSTEM "file:///c:\jwnl\jwnl_properties.dtd">

       

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks