Issue Type: Bug Bug
Assignee: Simon Brandhof
Created: 24/Jul/13 11:04 AM
Description:

*I am sorry, this is the wrong project, but SonarQube/Sonar/etc. is not available in "Create Issue" project dropdown*

During upgrade from 3.4.1 to 3.6.2:

"can't infer the sql type to use for an instance of java.util.date" on "select id from rule_failures".

French localized log:

<...>
INFO   | jvm 1    | 2013/07/24 17:29:09 | Caused by: java.sql.SQLException: Impossible de déduire le type SQL à utiliser pour unenstance de java.util.Date. Utilisez setObject() avec une valeur de type explicite pour spécifier le type à utiliser. Query: INST INTO issues(kee, component_id, root_component_id, rule_id, severity, manual_severity, message, line, effort_to_fix, status, r
esolution,  checksum, reporter, assignee, action_plan_key, issue_attributes, issue_creation_date, issue_update_date, created_at,
updated_at)  VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) Parameters: [[3bc0621d-5d60-4cc5-bfe0-1840eed702
0e, 3352, 3304, 427, INFO, false, Method 'getId' is not designed for extension - needs to be abstract, final or empty., 22, null,
 OPEN, null, ed7ab596c27e76f81214b41f24665171, null, null, null, null, 2011-04-13 12:56:19.677, 2011-04-13 12:56:19.677, 2011-04-
13 12:56:19.677, 2011-04-13 12:56:19.677], [1bf69b64-0619-4387-8e29-ff10995c52c1
<...a lot of elements...>
ull, null, null, null, Tue Jul 24 17:31:48 CEST 2012, Tue Jul 24 17:31:48 CEST 2012, Tue Jul 24 17:31:48 CEST 2012, Tue Jul 24 17:31:48 CEST 2012]] Query: select id from rule_failures Parameters: []
INFO   | jvm 1    | 2013/07/24 17:31:49 |       at org.apache.commons.dbutils.AbstractQueryRunner.rethrow(AbstractQueryRunner.java:363)
INFO   | jvm 1    | 2013/07/24 17:31:49 |       at org.apache.commons.dbutils.QueryRunner.query(QueryRunner.java:350)
INFO   | jvm 1    | 2013/07/24 17:31:49 |       at org.apache.commons.dbutils.QueryRunner.query(QueryRunner.java:225)
INFO   | jvm 1    | 2013/07/24 17:31:49 |       at org.sonar.server.db.migrations.ConvertViolationsToIssues.convertViolations(ConvertViolationsToIssues.java:77)
INFO   | jvm 1    | 2013/07/24 17:31:49 |       at org.sonar.server.db.migrations.ConvertViolationsToIssues.execute(ConvertViolationsToIssues.java:60)
INFO   | jvm 1    | 2013/07/24 17:31:49 |       ... 504 more
2013.07.24 17:31:49 ERROR o.s.s.ui.JRubyFacade  Fail to render: http://[XXX]:9000/setup/setup_database
An error has occurred, all later migrations canceled:

java.lang.IllegalStateException: Fail to execute database migration: org.sonar.server.db.migrations.ConvertViolationsToIssues
        org/sonar/server/db/DatabaseMigrator.java:81:in `executeMigration'
        /opt/sonar-3.6.2/war/sonar-server/WEB-INF/db/migrate/401_migrate_violations_to_issues.rb:28:in `up'
        org/jruby/RubyKernel.java:2105:in `send'
<...>
Environment: Debian Squeeze, PostgreSQL 8.4, Java 6
Tested both with Tomcat 6 and Jetty (bundled)
Project: Mojo's Sonar Maven Plugin
Priority: Blocker Blocker
Reporter: Sylvain Veyrie
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
--------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email

Reply via email to