Menu

jwnl 1.3 JWNL.initialize null pointer

Help
2004-02-17
2013-04-29
  • vanessa lopez

    vanessa lopez - 2004-02-17

    Hello,
    I have been using the previous version of jwnl without any problem but with 1.3 I cannot even run the Examples.java because I have an:

    java.lang.NullPointerException
        at net.didion.jwnl.JWNL.getParams(Unknown Source)

    in JWNL.initialize(new FileInputStream(propsFile));
    where my propsFile is "file_properties.xml"

    I have tried with all the versions of JWNL: rc1, rc2, rc3 and even with the src files.

    Can anyone helps?
    Thanks a lot.
    Vanessa

     
    • Holger Adelmann

      Holger Adelmann - 2004-02-19

      Vanessa,

      could it be that the new JWNL is requiring a newer Java runtime / sdk ?

      -Holger

       
    • vanessa lopez

      vanessa lopez - 2004-09-21

      Hi!
      I don't think so. I am using j2sdk 1.4.1_02
      Any other idea?

      Thanks!

       
    • Jon Cohen

      Jon Cohen - 2004-12-05

      Here's what fixed that for me:

              String propsFile = "/usr/local/jwnl13rc3/file_properties.xml";
              JWNL.initialize(new FileInputStream(propsFile));

      Just do a search for file_properties.xml and replace the above with your value.

      So while typing in that answer I answered my own question: how to fix the
      net.didion.jwnl.JWNLException: UTILS_EXCEPTION_005

      Answer: open up the file_properties.xml and fix the dictionary_path.

       

Log in to post a comment.