Hunspell exceptions in Applet
Posted: Fri Dec 21, 2012 2:39 pm
I've just added the following to the options.xml file in order to get the spell check to make sure we are using the right dictionary and automatic spell check is true. However we get the following exception. I believe I have the correct hunspell library and dictionaries on my class path. Any ideas as to what I'm missing?
Code: Select all
<entry>
<String>spell.check.options</String>
<spellCheckOptions>
<field name="automaticSpellCheck">
<Boolean>true</Boolean>
</field>
<field name="automaticSpellCheckContentTypes">
<String-array>
<String>text/xml</String>
</String-array>
</field>
<field name="spellCheckInComments">
<Boolean>false</Boolean>
</field>
<field name="spellCheckInAttributeValues">
<Boolean>false</Boolean>
</field>
<field name="spellCheckInText">
<Boolean>true</Boolean>
</field>
<field name="spellCheckInCDATA">
<Boolean>true</Boolean>
</field>
<field name="language">
<String>en_GB</String>
</field>
<field name="caseSensitive">
<Boolean>false</Boolean>
</field>
<field name="ignoreMixedCase">
<Boolean>false</Boolean>
</field>
<field name="ignoreAcronyms">
<Boolean>true</Boolean>
</field>
<field name="ignoreDigits">
<Boolean>true</Boolean>
</field>
<field name="ignoreDuplicates">
<Boolean>false</Boolean>
</field>
<field name="ignoreURL">
<Boolean>true</Boolean>
</field>
<field name="checkPunctuation">
<Boolean>false</Boolean>
</field>
<field name="allowCompound">
<Boolean>true</Boolean>
</field>
<field name="allowPrefixes">
<Boolean>false</Boolean>
</field>
<field name="allowFileExtensions">
<Boolean>true</Boolean>
</field>
<field name="obeyLangAttributes">
<Boolean>false</Boolean>
</field>
<field name="langAttrMissingUseDefault">
<Boolean>true</Boolean>
</field>
<field name="ignoreSpellCheckElements">
<String-array/>
</field>
<field name="preferredChecker">
<Integer>1</Integer>
</field>
</spellCheckOptions>
</entry>
Code: Select all
ERROR: ro.sync.ecss.component.f.c - java.io.FileNotFoundException: The Hunspell library was not created.
java.io.FileNotFoundException: The Hunspell library was not created.
at ro.sync.azcheck.ui.spellcontrol.hunspell.c$_c.<init>(Unknown Source)
at ro.sync.azcheck.ui.spellcontrol.hunspell.c.k(Unknown Source)
at ro.sync.azcheck.ui.spellcontrol.hunspell.d$_c.<init>(Unknown Source)
at ro.sync.azcheck.ui.spellcontrol.hunspell.d.eb(Unknown Source)
at ro.sync.azcheck.ui.spellcontrol.f.p(Unknown Source)
at ro.sync.azcheck.ui.n.w(Unknown Source)
at ro.sync.azcheck.ui.n.j(Unknown Source)
at ro.sync.ecss.component.f.c.vb(Unknown Source)
at ro.sync.ecss.component.f.c.pb(Unknown Source)
at ro.sync.ecss.component.f.c.cb(Unknown Source)
at ro.sync.ecss.component.bb$_b.actionPerformed(Unknown Source)
at javax.swing.Timer.fireActionPerformed(Timer.java:312)
at javax.swing.Timer$DoPostEvent.run(Timer.java:244)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:701)
at java.awt.EventQueue.access$000(EventQueue.java:102)
at java.awt.EventQueue$3.run(EventQueue.java:662)
at java.awt.EventQueue$3.run(EventQueue.java:660)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:671)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:244)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:147)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:139)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:97)