Opened 7 years ago

Last modified 6 years ago

#1048 closed defect

Release importer fails if the export contain integer enumerated annotation types — at Version 1

Reported by: Nicklas Nordborg Owned by:
Priority: critical Milestone: Relax v1.3
Component: net.sf.basedb.relax Keywords:
Cc:

Description (last modified by Nicklas Nordborg)

For example:

Error: Import of '/typedefs.json' failed: 
Value '98' is a 'class java.lang.Long' not a 'Integer'

Stack trace:

java.lang.RuntimeException: Import of '/typedefs.json' failed: Value '98' is a 'class java.lang.Long', not a 'Integer'
 at net.sf.basedb.relax.plugins.ReleaseImporterPlugin.doImport(ReleaseImporterPlugin.java:660)
 at net.sf.basedb.relax.plugins.ReleaseImporterPlugin.run(ReleaseImporterPlugin.java:323)
 at net.sf.basedb.core.PluginExecutionRequest.invoke(PluginExecutionRequest.java:117)
 at net.sf.basedb.core.InternalJobQueue$JobRunner.run(InternalJobQueue.java:573)
 at java.lang.Thread.run(Unknown Source) 
Caused by: net.sf.basedb.core.InvalidDataException: Value '98' is a 'class java.lang.Long', not a 'Integer'
 at net.sf.basedb.core.Type.validate(Type.java:595)
 at net.sf.basedb.core.AnnotationType.setValues(AnnotationType.java:1230)
 at net.sf.basedb.relax.plugins.ReleaseImporterPlugin$AnnotationTypeImporter.update(ReleaseImporterPlugin.java:1402) 
 at net.sf.basedb.relax.plugins.ReleaseImporterPlugin$AnnotationTypeImporter.update(ReleaseImporterPlugin.java:1357)
 at net.sf.basedb.relax.plugins.ReleaseImporterPlugin$ItemImporter.findOrCreateItem(ReleaseImporterPlugin.java:1085)
 at net.sf.basedb.relax.plugins.ReleaseImporterPlugin.importTypeDefs(ReleaseImporterPlugin.java:690)
 at net.sf.basedb.relax.plugins.ReleaseImporterPlugin.doImport(ReleaseImporterPlugin.java:599)
... 4 more

Change History (1)

comment:1 by Nicklas Nordborg, 7 years ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.