User 78821debe8
24-01-2005 17:19:01
Greetings,
I have two SDFiles I've exported from our chem office server. One of them is a nested SDFile where there are multiple entries for each structure (structures are unique) and the other one is the flat version of the data where there are multiple structures, but only one set of results per entry.
I'm trying to import into the database using jcman, and it the flat file seems to be ok. I have a problem if I try to add experimental results There are about 15 fields, corresponding to different experiments, so one entry could have data for one of the experiments, and no data for the other one.
I've set up the fields in the table creation as "Fieldname double NULL", etc. Since I can have nulls. The problem is that when it tries to import, I get (please excuse the typos, as I'm typing between computers )
java.lang.NumberFormatException empty String
at java.lang.FloatingDecimal.readJavaFormatString(floatingDecumal.java983)
at java.lang.Double.valueof(doble.java202)
at java.lang.double.<init>(Double.java277)
at chemaxon.jchem.db.sq.TypeConverter.convert(TypeConverter.java70)
at chemaxon.jchem.db.FieldInfo.setValue(FieldInfo.java163)
at chemaxon.jchem.db.FileToSQLHandler.setValues(FieltoSQLHandler.java147)
at chemaxon.jchem.db.FileToSQLHandler.ImportFile(FieltoSQLHandler.java261)
at chemaxon.jchem.gui.Importer.run(Importer.java136)
at java.lang.Thread.run(Thread.java136)
for almost every molecule (Some make it through, only those that have no empty values for all the fields)
Thanks!
Art
I have two SDFiles I've exported from our chem office server. One of them is a nested SDFile where there are multiple entries for each structure (structures are unique) and the other one is the flat version of the data where there are multiple structures, but only one set of results per entry.
I'm trying to import into the database using jcman, and it the flat file seems to be ok. I have a problem if I try to add experimental results There are about 15 fields, corresponding to different experiments, so one entry could have data for one of the experiments, and no data for the other one.
I've set up the fields in the table creation as "Fieldname double NULL", etc. Since I can have nulls. The problem is that when it tries to import, I get (please excuse the typos, as I'm typing between computers )
java.lang.NumberFormatException empty String
at java.lang.FloatingDecimal.readJavaFormatString(floatingDecumal.java983)
at java.lang.Double.valueof(doble.java202)
at java.lang.double.<init>(Double.java277)
at chemaxon.jchem.db.sq.TypeConverter.convert(TypeConverter.java70)
at chemaxon.jchem.db.FieldInfo.setValue(FieldInfo.java163)
at chemaxon.jchem.db.FileToSQLHandler.setValues(FieltoSQLHandler.java147)
at chemaxon.jchem.db.FileToSQLHandler.ImportFile(FieltoSQLHandler.java261)
at chemaxon.jchem.gui.Importer.run(Importer.java136)
at java.lang.Thread.run(Thread.java136)
for almost every molecule (Some make it through, only those that have no empty values for all the fields)
Thanks!
Art