User 952e1d9361
17-05-2011 12:46:17
Hello,
We have loaded the marvin.jar into an Oracle 10g (10.2.0.4) database using loadjava so we can parse and read content from SD files inside the database. This has worked well until we have a user reporting a problem.
The database in question is using the Japanese character set JA16SJIS and the NLS_LANGUAGE and NLS_TERRITORY values are set to JAPANESE / JAPAN respectively.
When they try to invoke the Java code an error is generated which after looking in the trace file seems to boil down to :
java.lang.ExceptionInInitializerError
at chemaxon.marvin.io.PositionedInputStream.init(Unknown Source)
at chemaxon.marvin.io.PositionedInputStream.<init>(Unknown Source)
at chemaxon.formats.MolInputStream.<init>(Unknown Source)
at chemaxon.formats.MolInputStream.<init>(Unknown Source)
at chemaxon.formats.MFileFormatUtil.createRecordReader(Unknown Source)
at ImportSDFile.ProcessFile(ImportSDFile:27)
Caused by: java.lang.RuntimeException: The default system encoding "MS932" is unsupported
at chemaxon.marvin.io.Encoding.<clinit>(Unknown Source)
... 6 more
This seems to imply that the character set MS932 is not supported? Is this an issue with the marvin library or is it a fault with Oracle's JVM (although we are using other Java stored procedures successfully).
Any help is gratefully received.
Thanks,
Steve H