声纳从3.5.1升级到3.6.2失败

时间:2013-07-18 15:31:29

标签: upgrade sonarqube

从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' 
[...]

1 个答案:

答案 0 :(得分:0)

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

感谢您的耐心等待。