0

从 3.5.1 升级到 3.6.2 时出现此错误。我们正在使用 Oracle-DB。

我能做些什么来解决这个问题?我没有找到关于 google、stackoverflow 或 codehaus-jira 的信息。

 ==  MigrateViolationsToIssues: migrating ======================================
INFO   | jvm 1    | 2013/07/18 16:58:17 | java.lang.IllegalStateException: Fail to convert violations to issues
INFO   | jvm 1    | 2013/07/18 16:58:17 |       at org.sonar.server.db.migrations.ConvertViolationsToIssues.execute(ConvertViolationsToIssues.java:62)
INFO   | jvm 1    | 2013/07/18 16:58:17 |       at org.sonar.server.db.DatabaseMigrator.executeMigration(DatabaseMigrator.java:77)
INFO   | jvm 1    | 2013/07/18 16:58:17 |       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
INFO   | jvm 1    | 2013/07/18 16:58:17 |       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
INFO   | jvm 1    | 2013/07/18 16:58:17 |       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
INFO   | jvm 1    | 2013/07/18 16:58:17 |       at java.lang.reflect.Method.invoke(Method.java:597)
INFO   | jvm 1    | 2013/07/18 16:58:17 |       at org.jruby.javasupport.JavaMethod.invokeDirectWithExceptionHandling(JavaMethod.java:450)
INFO   | jvm 1    | 2013/07/18 16:58:17 |       at org.jruby.javasupport.JavaMethod.invokeDirect(JavaMethod.java:311)
[...]
Caused by: java.sql.SQLException: Invalid column type Query: INSERT INTO issues(id, kee, component_id, root_component_id, rule_id, severity, manual_severity, message, line, effort_to_fix, status, resolution,  checksum, reporter, assignee, action_plan_key, issue_attributes, issue_creation_date, issue_update_date, created_at, updated_at)  VALUES (issues_seq.nextval, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) Parameters: [[4d4eb093-1843-4f4c-b175-beca9f9c6eb3, 11750, 11699, 10286, INFO, false, '32' 
[...]
4

1 回答 1

0

我们终于重现了迁移问题。它将在 3.7 版中修复:http: //jira.codehaus.org/browse/SONAR-4542

谢谢你的耐心。

于 2013-07-30T12:46:17.787 回答