sonar runner - Why does SonarQube not show results, although the analysis succeeded? -
i use sonar-runner analyse project , analysis succeeds:
14:30:34.813 info - analysis reports sent server in 160ms 14:30:34.813 info - analysis successful, can browse http://localhost:9000/dashboard/index/amlserverproj 14:30:34.813 info - note able access updated dashboard once server has processed submitted analysis report. 14:30:34.814 debug - post-jobs : 14:30:34.815 debug - release semaphore on project : org.sonar.api.resources.project@3335ebfc[id=1,key=amlserverproj,qualifier=trk], key batch-amlserverproj info: ------------------------------------------------------------------------ info: execution success info: ------------------------------------------------------------------------ total time: 53.958s final memory: 26m/788m info: ------------------------------------------------------------------------
but when navigate http://localhost:9000/dashboard/index/amlserverproj error message:
no analysis has been performed since creation. available section configuration.
this error log:
2015.08.03 20:47:01 info web[o.s.s.c.computationservice] analysis of project amlserverproj (report 2) (done) | time=7880ms 2015.08.03 20:47:01 error web[o.s.s.c.computationthread] failed process analysis report 2 of project amlserverproj org.apache.ibatis.exceptions.persistenceexception: ### error committing transaction. cause: org.apache.ibatis.executor.batchexecutorexception: org.sonar.core.issue.db.issuemapper.insert (batch index #2) failed. 1 prior sub executor(s) completed successfully, rolled back. cause: java.sql.batchupdateexception: incorrect string value: '\xf3\xa3\xba\xb1\xef\xbf...' column 'message' @ row 107 ### cause: org.apache.ibatis.executor.batchexecutorexception: org.sonar.core.issue.db.issuemapper.insert (batch index #2) failed. 1 prior sub executor(s) completed successfully, rolled back. cause: java.sql.batchupdateexception: incorrect string value: '\xf3\xa3\xba\xb1\xef\xbf...' column 'message' @ row 107 @ org.apache.ibatis.exceptions.exceptionfactory.wrapexception(exceptionfactory.java:26) ~[mybatis-3.2.7.jar:3.2.7] @ org.apache.ibatis.session.defaults.defaultsqlsession.commit(defaultsqlsession.java:177) ~[mybatis-3.2.7.jar:3.2.7] @ org.apache.ibatis.session.defaults.defaultsqlsession.commit(defaultsqlsession.java:169) ~[mybatis-3.2.7.jar:3.2.7] @ org.sonar.core.persistence.dbsession.commit(dbsession.java:61) ~[sonar-core-5.1.1.jar:na] @ org.sonar.core.persistence.batchsession.commit(batchsession.java:177) ~[sonar-core-5.1.1.jar:na] @ org.sonar.core.persistence.batchsession.increment(batchsession.java:214) ~[sonar-core-5.1.1.jar:na] @ org.sonar.core.persistence.batchsession.insert(batchsession.java:134) ~[sonar-core-5.1.1.jar:na] @ org.apache.ibatis.binding.mappermethod.execute(mappermethod.java:51) ~[mybatis-3.2.7.jar:3.2.7] @ org.apache.ibatis.binding.mapperproxy.invoke(mapperproxy.java:52) ~[mybatis-3.2.7.jar:3.2.7] @ com.sun.proxy.$proxy91.insert(unknown source) ~[na:na] @ org.sonar.server.computation.step.persistissuesstep.execute(persistissuesstep.java:79) ~[sonar-server-5.1.1.jar:na] @ org.sonar.server.computation.computationservice.process(computationservice.java:89) ~[sonar-server-5.1.1.jar:na] @ org.sonar.server.computation.computationcontainer.execute(computationcontainer.java:47) ~[sonar-server-5.1.1.jar:na] @ org.sonar.server.computation.computationthread.run(computationthread.java:58) ~[sonar-server-5.1.1.jar:na] @ java.util.concurrent.executors$runnableadapter.call(executors.java:471) [na:1.7.0_67] @ java.util.concurrent.futuretask.run(futuretask.java:262) [na:1.7.0_67] @ java.util.concurrent.scheduledthreadpoolexecutor$scheduledfuturetask.access$201(scheduledthreadpoolexecutor.java:178) [na:1.7.0_67] @ java.util.concurrent.scheduledthreadpoolexecutor$scheduledfuturetask.run(scheduledthreadpoolexecutor.java:292) [na:1.7.0_67] @ java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor.java:1145) [na:1.7.0_67] @ java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:615) [na:1.7.0_67] @ java.lang.thread.run(thread.java:745) [na:1.7.0_67] caused by: org.apache.ibatis.executor.batchexecutorexception: org.sonar.core.issue.db.issuemapper.insert (batch index #2) failed. 1 prior sub executor(s) completed successfully, rolled back. cause: java.sql.batchupdateexception: incorrect string value: '\xf3\xa3\xba\xb1\xef\xbf...' column 'message' @ row 107 @ org.apache.ibatis.executor.batchexecutor.doflushstatements(batchexecutor.java:127) ~[mybatis-3.2.7.jar:3.2.7] @ org.apache.ibatis.executor.baseexecutor.flushstatements(baseexecutor.java:114) ~[mybatis-3.2.7.jar:3.2.7] @ org.apache.ibatis.executor.baseexecutor.flushstatements(baseexecutor.java:109) ~[mybatis-3.2.7.jar:3.2.7] @ org.apache.ibatis.executor.baseexecutor.commit(baseexecutor.java:201) ~[mybatis-3.2.7.jar:3.2.7] @ org.apache.ibatis.executor.cachingexecutor.commit(cachingexecutor.java:104) ~[mybatis-3.2.7.jar:3.2.7] @ org.apache.ibatis.session.defaults.defaultsqlsession.commit(defaultsqlsession.java:174) ~[mybatis-3.2.7.jar:3.2.7] ... 19 common frames omitted caused by: java.sql.batchupdateexception: incorrect string value: '\xf3\xa3\xba\xb1\xef\xbf...' column 'message' @ row 107 @ com.mysql.jdbc.preparedstatement.executebatchedinserts(preparedstatement.java:1603) ~[mysql-connector-java-5.1.34.jar:5.1.34] @ com.mysql.jdbc.preparedstatement.executebatch(preparedstatement.java:1268) ~[mysql-connector-java-5.1.34.jar:5.1.34] @ org.apache.commons.dbcp.delegatingstatement.executebatch(delegatingstatement.java:297) ~[commons-dbcp-1.4.jar:1.4] @ org.apache.commons.dbcp.delegatingstatement.executebatch(delegatingstatement.java:297) ~[commons-dbcp-1.4.jar:1.4] @ org.apache.ibatis.executor.batchexecutor.doflushstatements(batchexecutor.java:103) ~[mybatis-3.2.7.jar:3.2.7] ... 24 common frames omitted caused by: java.sql.sqlexception: incorrect string value: '\xf3\xa3\xba\xb1\xef\xbf...' column 'message' @ row 107 @ com.mysql.jdbc.sqlerror.createsqlexception(sqlerror.java:996) ~[mysql-connector-java-5.1.34.jar:5.1.34] @ com.mysql.jdbc.mysqlio.checkerrorpacket(mysqlio.java:3887) ~[mysql-connector-java-5.1.34.jar:5.1.34] @ com.mysql.jdbc.mysqlio.checkerrorpacket(mysqlio.java:3823) ~[mysql-connector-java-5.1.34.jar:5.1.34] @ com.mysql.jdbc.mysqlio.sendcommand(mysqlio.java:2435) ~[mysql-connector-java-5.1.34.jar:5.1.34] @ com.mysql.jdbc.mysqlio.sqlquerydirect(mysqlio.java:2582) ~[mysql-connector-java-5.1.34.jar:5.1.34] @ com.mysql.jdbc.connectionimpl.execsql(connectionimpl.java:2530) ~[mysql-connector-java-5.1.34.jar:5.1.34] @ com.mysql.jdbc.preparedstatement.executeinternal(preparedstatement.java:1907) ~[mysql-connector-java-5.1.34.jar:5.1.34] @ com.mysql.jdbc.preparedstatement.executeupdate(preparedstatement.java:2141) ~[mysql-connector-java-5.1.34.jar:5.1.34] @ com.mysql.jdbc.preparedstatement.executeupdate(preparedstatement.java:2077) ~[mysql-connector-java-5.1.34.jar:5.1.34] @ com.mysql.jdbc.preparedstatement.executeupdate(preparedstatement.java:2062) ~[mysql-connector-java-5.1.34.jar:5.1.34] @ com.mysql.jdbc.preparedstatement.executebatchedinserts(preparedstatement.java:1564) ~[mysql-connector-java-5.1.34.jar:5.1.34] ... 28 common frames omitted
this sonar-project.properties
:
sonar.projectkey=amlserverproj sonar.projectname=amlserverproj5.1 sonar.projectversion=1.0 sonar.sources=src sonar.language=java sonar.sourceencoding=utf-8
there can 2 explanations this:
you browsed web application rapidly, server did not have time process analysis. log says:
"note able access updated dashboard once server has processed submitted analysis report."
if think you've waited long, maybe processing of analysis on server-side went wrong. in case, there 2 ways check this:
in "settings > system > analysis reports > past reports" administration page, should able see processing failed
in server logs, should have error message gives more details failure
Comments
Post a Comment