Annotation importer should detect non-existing column mappings
The detection should be done in the job configuration phase and displayed for the user so it can be corrected. Right now it is possible to enter \foo\ as the mapping for Name and the error message doesn't appear until the job is executed:
net.sf.basedb.core.BaseException: Column 'foo' not found in column headers.
at net.sf.basedb.util.parser.FlatFileParser.getMapper(FlatFileParser.java:968)
at net.sf.basedb.util.parser.FlatFileParser.getMapper(FlatFileParser.java:874)
at net.sf.basedb.plugins.AbstractFlatFileImporter.getMapper(AbstractFlatFileImporter.java:1236)
at net.sf.basedb.plugins.AnnotationFlatFileImporter.beginData(AnnotationFlatFileImporter.java:697)
at net.sf.basedb.plugins.AbstractFlatFileImporter.doImport(AbstractFlatFileImporter.java:691)
at net.sf.basedb.plugins.AbstractFlatFileImporter.run(AbstractFlatFileImporter.java:468)
at net.sf.basedb.core.PluginExecutionRequest.invoke(PluginExecutionRequest.java:106)
at net.sf.basedb.core.InternalJobQueue$JobRunner.run(InternalJobQueue.java:504)
at java.lang.Thread.run(Thread.java:619)
Change History
(3)
Owner: |
changed from everyone to Nicklas Nordborg
|
Status: |
new → assigned
|
Resolution: |
→ fixed
|
Status: |
assigned → closed
|
(In [4614]) Fixes #1159: Annotation importer should detect non-existing column mappings