Opened 18 years ago

Closed 18 years ago

#432 closed defect (fixed)

Migration fails if the input field with is invalid in Base 1

Reported by: Nicklas Nordborg Owned by: Nicklas Nordborg
Priority: minor Milestone: BASE 2.1.1
Component: migrate Version:
Keywords: Cc:

Description

17:09:28,677  INFO migration:77 - AnnotationTypeTransfer: run: Number out of range. 
The 'width' must be greater than or equal to 1. The supplied value, 0, is lower.
run
net.sf.basedb.core.NumberOutOfRangeException: Number out of range. The 'width' must be 
greater than or equal to 1. The supplied value, 0, is lower.
 at net.sf.basedb.core.IntegerUtil.checkMin(IntegerUtil.java:98)
 at net.sf.basedb.core.AnnotationType.setWidth(AnnotationType.java:407)
 at net.sf.basedb.clients.migrate.AnnotationTypeTransfer.createItem(AnnotationTypeTransfer.java:96)
 at net.sf.basedb.clients.migrate.AnnotationTypeTransfer.createItem(AnnotationTypeTransfer.java:49)
 at net.sf.basedb.clients.migrate.Transfer.run(Transfer.java:346)
 at net.sf.basedb.clients.migrate.AnnotationTypeTransfer.start(AnnotationTypeTransfer.java:69)
 at net.sf.basedb.clients.migrate.Migrater.startTransfer(Migrater.java:218)
 at net.sf.basedb.clients.migrate.Migrater.run(Migrater.java:103)
 at net.sf.basedb.clients.migrate.Migrater.main(Migrater.java:477)

A better approach would be to only set the width if it contains a valid value.

Change History (2)

comment:1 by Nicklas Nordborg, 18 years ago

Status: newassigned

comment:2 by Nicklas Nordborg, 18 years ago

Resolution: fixed
Status: assignedclosed

(In [2895]) Fixes #432: Migration fails if the input field with is invalid in Base 1

Note: See TracTickets for help on using tickets.