2013-07-18 89 views
0

从3.5.1升级到3.6.2时出现此错误。 我们使用的是Oracle-DB。Sonar从3.5.1升级到3.6.2失败

我能做些什么来解决这个问题? 我没有找到谷歌,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' 
[...] 
+0

嗨,安装哪些版本的Oracle和JDBC驱动程序? –

+0

使用11g-JDK6驱动程序的Oracle 11g(最新版本) – dotsev

+0

使用11g Express Edition版本11.2.0.2.0 64bit和ojdbc6.jar(v11.2.0.3.0)的默认设置进行测试。 什么是列RULE_FAILURES.MANUAL_SEVERITY的类型? –

回答