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'
[...]
嗨,安裝哪些版本的Oracle和JDBC驅動程序? –
使用11g-JDK6驅動程序的Oracle 11g(最新版本) – dotsev
使用11g Express Edition版本11.2.0.2.0 64bit和ojdbc6.jar(v11.2.0.3.0)的默認設置進行測試。 什麼是列RULE_FAILURES.MANUAL_SEVERITY的類型? –