jira导入错误。
现象:1、提示导入失败。在在导入自定义字段时失败。2.实际问题导入了,但提示错误的客户字段都为空。
3.后来发现手工录入也有错。不能新增问题。
2009-04-07 10:25:36,750 Thread-39 INFO [imports.importer.impl.ImportLogger] Importing issue number 1 : Issue {summary=由于添加了新表,在商家基础资料各种操作时应关联新表,请检查代码,目前已经发现删除功能没有关联删除新表的数据。, type=24} (0.0s)
2009-04-07 10:25:37,484 Thread-39 INFO [imports.importer.impl.DefaultJiraDataImporter] Successfully imported issue 1 (1 unindexed issues): Issue {summary=由于添加了新表,在商家基础资料各种操作时应关联新表,请检查代码,目前已经发现删除功能没有关联删除新表的数据。, type=24}
2009-04-07 10:25:37,843 Thread-39 ERROR [ofbiz.core.entity.SequenceUtil] [SequenceUtil.SequenceBank.fillBank] maxTries (5) reached, giving up.
2009-04-07 10:25:38,187 Thread-39 ERROR [ofbiz.core.entity.SequenceUtil] [SequenceUtil.SequenceBank.fillBank] maxTries (5) reached, giving up.
2009-04-07 10:25:38,187 Thread-39 ERROR [ofbiz.core.entity.SequenceUtil] [SequenceUtil.SequenceBank.getNextSeqId] Fill bank failed, returning null
2009-04-07 10:25:38,203 Thread-39 INFO [imports.importer.impl.ImportLogger] FAILED: An error occurred while attempting to import value 'zrf' into the Custom Field '跟进人员'. (1.453s)
2009-04-07 10:25:38,203 Thread-39 INFO [imports.importer.impl.ImportLogger] com.atlassian.jira.exception.DataAccessException: org.ofbiz.core.entity.GenericEntityException: while inserting: [GenericEntity:CustomFieldValue][issue,27090][customfield,10155][parentkey,null][stringvalue,zrf][id,null] (SQL Exception while executing the following:INSERT INTO customfieldvalue (ID, ISSUE, CUSTOMFIELD, PARENTKEY, STRINGVALUE, NUMBERVALUE, TEXTVALUE, DATEVALUE, VALUETYPE) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) (Column 'ID' cannot be null))
问题原因查找。首先以为数据库从HSQL转为MYSQL导致的问题,但转到MYSQL后有一段时间是可以录入并导入的。
然后GOOGLE了一把,说是ofbcore-entity-2.1.1-atlassian-2007-05-07.jar有问题,要下载3.7后的版本。但我用的是3.12的版本,不过还是下载了,问题没有解决。
再查这个包,是和数据表序列号相关的,怀疑序列号生成有问题,到数据库查了序列表,发现sequence_value_item表中的customerfield 和 issuelink两个字段为空。
确认,同事在数据库中执行了存储过程,但没有修改成功,比较奇怪,看到是执行了吧,难道没有提交?还是有其它的原因,就不太清楚了。