User 8688ffe688
18-10-2011 15:27:53
jcman fails on loading date column types on PostgreSQL 9.1.1. Date is ISO format (YYYY-MM-DD). Direct database insert via psql prompt works fine. Stack Trace below:
WARNING: Unexpected error during DB import
java.sql.SQLException: 2007-03-29 can not be converted to date
at chemaxon.jchem.db.sql.TypeConverter.convert(TypeConverter.java:95)
at chemaxon.jchem.db.FieldInfo.setValue(FieldInfo.java:235)
at chemaxon.jchem.db.ParallelStructTableUpdater.setValues(ParallelStructTableUpdater.java:186)
at chemaxon.jchem.db.ParallelStructTableUpdater.importFile(ParallelStructTableUpdater.java:402)
at chemaxon.jchem.db.FileToSQLHandler.importFile(FileToSQLHandler.java:136)
at chemaxon.jchem.gui.Importer.run(Importer.java:166)
at java.lang.Thread.run(Thread.java:662)
java.util.concurrent.ExecutionException: chemaxon.jchem.db.TransferException: Unexpected error during DB import: 2007-03-29 can not be converted to date
at chemaxon.jchem.db.ParallelStructTableUpdater.importFile(ParallelStructTableUpdater.java:491)
at chemaxon.jchem.db.FileToSQLHandler.importFile(FileToSQLHandler.java:136)
at chemaxon.jchem.gui.Importer.run(Importer.java:166)
at java.lang.Thread.run(Thread.java:662)
Caused by: chemaxon.jchem.db.TransferException: Unexpected error during DB import: 2007-03-29 can not be converted to date
at chemaxon.jchem.db.ParallelStructTableUpdater.importFile(ParallelStructTableUpdater.java:481)
Caused by: java.sql.SQLException: 2007-03-29 can not be converted to date
at chemaxon.jchem.db.sql.TypeConverter.convert(TypeConverter.java:95)
at chemaxon.jchem.db.FieldInfo.setValue(FieldInfo.java:235)
at chemaxon.jchem.db.ParallelStructTableUpdater.setValues(ParallelStructTableUpdater.java:186)
at chemaxon.jchem.db.ParallelStructTableUpdater.importFile(ParallelStructTableUpdater.java:402)