Error " input stream already opened"

Started by mikezang, 04. August 2009, 04:39:41

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

mikezang

I modified source for my device that sopports a special JSR75, now dictionary can be loaded, but no any translation is displayed, the error message is showed if I click translate button two times.
I have closed some InputStream what I found in sources, but I am not sure how to solve this one.
Can you help me?

<code>
de.kugihan.dictionaryformids.general.CouldNotOpenFileException: java.io.IOException: input stream already opened
   at de.kugihan.dictionaryformids.dataaccess.fileaccess.JSR75InputStreamAccess.getInputStream(+93)
   at de.kugihan.dictionaryformids.dataaccess.CsvFile.readCsvFileComplete(+19)
   at de.kugihan.dictionaryformids.dataaccess.CsvFile.<init>(+32)
   at de.kugihan.dictionaryformids.translation.Translation.searchTranslationForNormatedWord(+97)
   at de.kugihan.dictionaryformids.translation.Translation.getTranslationResult(+130)
   at de.kugihan.dictionaryformids.translation.TranslationThread.doTranslation(+79)
   at de.kugihan.dictionaryformids.translation.TranslationThread.run(+4)
</code>

Gert

What is your source code at the position where this exception is thrown ?

Gert

mikezang

I just tested on my Japanese device, that is no problems to show Chinese Bitmap font even the encode is MS932.

so that I can avoid the error above, but I still don't know why the translation doesn't work, I will check again!