#7 Crash when running DictionaryToMap in 1.2

closed
None
5
2003-01-27
2003-01-16
No

$ java -server -Xmx1000m -cp jwnl.jar\;utilities.jar
DictionaryToMap d:/jwnl1.2
/mapdict file_properties.xml
Converting [POS: noun] [DictionaryFile: index] file...
Counted and cached word 10000...
Counted and cached word 20000...
Counted and cached word 30000...
Counted and cached word 40000...
Counted and cached word 50000...
Counted and cached word 60000...
Counted and cached word 70000...
Counted and cached word 80000...
Counted and cached word 90000...
Counted and cached word 100000...
total mem: 75504K free mem: 50227K
Successfully serialized...
Converting [POS: verb] [DictionaryFile: index] file...
Counted and cached word 10000...
total mem: 75504K free mem: 50626K
Successfully serialized...
Converting [POS: adjective] [DictionaryFile: index] file...
Counted and cached word 10000...
Counted and cached word 20000...
total mem: 75504K free mem: 42571K
Successfully serialized...
Converting [POS: adverb] [DictionaryFile: index] file...
total mem: 75504K free mem: 41632K
Successfully serialized...
Converting [POS: noun] [DictionaryFile: data] file...
Counted and cached word 10000...
Counted and cached word 20000...
Counted and cached word 30000...
Counted and cached word 40000...
Counted and cached word 50000...
Counted and cached word 60000...
Counted and cached word 70000...
total mem: 154792K free mem: 152353K
Successfully serialized...
Converting [POS: verb] [DictionaryFile: data] file...
Counted and cached word 10000...
total mem: 140284K free mem: 137853K
Successfully serialized...
Converting [POS: adjective] [DictionaryFile: data] file...
Counted and cached word 10000...
total mem: 88712K free mem: 85651K
Successfully serialized...
Converting [POS: adverb] [DictionaryFile: data] file...
total mem: 11292K free mem: 8249K
Successfully serialized...
Exception in thread "main"
java.lang.NullPointerException
at
net.didion.jwnl.dictionary.AbstractCachingDictionary$Dict
ionaryCacheS
et.clearCache(Unknown Source)
at
net.didion.jwnl.dictionary.AbstractCachingDictionary.clea
rCache(Unkno
wn Source)
at DictionaryToMap.convert(Unknown Source)
at DictionaryToMap.main(Unknown Source)

Discussion

  • Michele Lamarca

    Michele Lamarca - 2003-01-17

    Logged In: YES
    user_id=680499

    I experienced the same bug. This is a workaround: get the
    source file DictionaryToMap.java and change (at line 40)

    boolean canClearCache = (Dictionary.getInstance() instanceof
    AbstractCachingDictionary) &&
    ((AbstractCachingDictionary)Dictionary.getInstance()).isCachingEnabled();

    with

    boolean canClearCache = false;

     
  • John Didion

    John Didion - 2003-01-21
    • assigned_to: nobody --> jdidion
     
  • John Didion

    John Didion - 2003-01-27

    Logged In: YES
    user_id=295135

    fixed in jwnl 1.2.1

     
  • John Didion

    John Didion - 2003-01-27
    • status: open --> closed
     

Log in to post a comment.

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

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks