<i id='dXVOo'><tr id='dXVOo'><dt id='dXVOo'><q id='dXVOo'><span id='dXVOo'><b id='dXVOo'><form id='dXVOo'><ins id='dXVOo'></ins><ul id='dXVOo'></ul><sub id='dXVOo'></sub></form><legend id='dXVOo'></legend><bdo id='dXVOo'><pre id='dXVOo'><center id='dXVOo'></center></pre></bdo></b><th id='dXVOo'></th></span></q></dt></tr></i><div id='dXVOo'><tfoot id='dXVOo'></tfoot><dl id='dXVOo'><fieldset id='dXVOo'></fieldset></dl></div>

    • <bdo id='dXVOo'></bdo><ul id='dXVOo'></ul>

  • <small id='dXVOo'></small><noframes id='dXVOo'>

  • <legend id='dXVOo'><style id='dXVOo'><dir id='dXVOo'><q id='dXVOo'></q></dir></style></legend>

    <tfoot id='dXVOo'></tfoot>

        SonarQube 5.2 出现重复键错误

        Duplicate key error with SonarQube 5.2(SonarQube 5.2 出现重复键错误)

          • <bdo id='pyASa'></bdo><ul id='pyASa'></ul>
            <tfoot id='pyASa'></tfoot>

            <small id='pyASa'></small><noframes id='pyASa'>

            <legend id='pyASa'><style id='pyASa'><dir id='pyASa'><q id='pyASa'></q></dir></style></legend>
                <i id='pyASa'><tr id='pyASa'><dt id='pyASa'><q id='pyASa'><span id='pyASa'><b id='pyASa'><form id='pyASa'><ins id='pyASa'></ins><ul id='pyASa'></ul><sub id='pyASa'></sub></form><legend id='pyASa'></legend><bdo id='pyASa'><pre id='pyASa'><center id='pyASa'></center></pre></bdo></b><th id='pyASa'></th></span></q></dt></tr></i><div id='pyASa'><tfoot id='pyASa'></tfoot><dl id='pyASa'><fieldset id='pyASa'></fieldset></dl></div>
                    <tbody id='pyASa'></tbody>

                1. 本文介绍了SonarQube 5.2 出现重复键错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我一直在试用 SonarQube 5.2,但遇到以下错误:

                  I've been trying out SonarQube 5.2, but I'm getting errors such as these:

                  org.apache.ibatis.exceptions.PersistenceException: 
                  ### Error updating database.  
                  Cause:com.microsoft.sqlserver.jdbc.SQLServerException: Cannot insert duplicate key row in object 'dbo.projects' with unique index 'projects_uuid'. The duplicate key value is (AVDTnvuxTcMzGBo2P2Fw).
                  ### The error may involve org.sonar.db.component.ComponentMapper.insert-Inline
                  ### The error occurred while setting parameters
                  ### Cause: com.microsoft.sqlserver.jdbc.SQLServerException: Cannot insert duplicate key row in object 'dbo.projects' with unique index 'projects_uuid'. The duplicate key value is (AVDTnvuxTcMzGBo2P2Fw).
                  at org.apache.ibatis.exceptions.ExceptionFactory.wrapException(ExceptionFactory.java:26) ~[mybatis-3.2.7.jar:3.2.7]
                  at org.apache.ibatis.session.defaults.DefaultSqlSession.update(DefaultSqlSession.java:154) ~[mybatis-3.2.7.jar:3.2.7]
                  at org.apache.ibatis.session.defaults.DefaultSqlSession.insert(DefaultSqlSession.java:141) ~[mybatis-3.2.7.jar:3.2.7]
                  at org.apache.ibatis.binding.MapperMethod.execute(MapperMethod.java:51) ~[mybatis-3.2.7.jar:3.2.7]
                  at org.apache.ibatis.binding.MapperProxy.invoke(MapperProxy.java:52) ~[mybatis-3.2.7.jar:3.2.7]
                  at com.sun.proxy.$Proxy65.insert(Unknown Source) ~[na:na]
                  at org.sonar.db.component.ComponentDao.insert(ComponentDao.java:282) ~[sonar-db-5.2.jar:na]
                  at org.sonar.server.computation.step.PersistComponentsStep$PersistComponentStepsVisitor.persistComponent(PersistComponentsStep.java:172) ~[sonar-server-5.2.jar:na]
                  at org.sonar.server.computation.step.PersistComponentsStep$PersistComponentStepsVisitor.persistAndPopulateCache(PersistComponentsStep.java:164) ~[sonar-server-5.2.jar:na]
                  at org.sonar.server.computation.step.PersistComponentsStep$PersistComponentStepsVisitor.visitModule(PersistComponentsStep.java:130) ~[sonar-server-5.2.jar:na]
                  at org.sonar.server.computation.component.PathAwareCrawler.visitNode(PathAwareCrawler.java:83) ~[sonar-server-5.2.jar:na]
                  at org.sonar.server.computation.component.PathAwareCrawler.visit(PathAwareCrawler.java:51) ~[sonar-server-5.2.jar:na]
                  at org.sonar.server.computation.component.PathAwareCrawler.visitChildren(PathAwareCrawler.java:71) ~[sonar-server-5.2.jar:na]
                  at org.sonar.server.computation.component.PathAwareCrawler.visit(PathAwareCrawler.java:54) ~[sonar-server-5.2.jar:na]
                  at org.sonar.server.computation.step.PersistComponentsStep.execute(PersistComponentsStep.java:77) ~[sonar-server-5.2.jar:na]
                  at org.sonar.server.computation.step.ComputationStepExecutor.execute(ComputationStepExecutor.java:39) ~[sonar-server-5.2.jar:na]
                  at org.sonar.server.computation.taskprocessor.report.ReportTaskProcessor.process(ReportTaskProcessor.java:53) ~[sonar-server-5.2.jar:na]
                  at org.sonar.server.computation.taskprocessor.CeWorkerRunnableImpl.executeTask(CeWorkerRunnableImpl.java:78) [sonar-server-5.2.jar:na]
                  at org.sonar.server.computation.taskprocessor.CeWorkerRunnableImpl.run(CeWorkerRunnableImpl.java:55) [sonar-server-5.2.jar:na]
                  at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [na:1.8.0_45]
                  at java.util.concurrent.FutureTask.runAndReset(Unknown Source) [na:1.8.0_45]
                  at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(Unknown Source) [na:1.8.0_45]
                  at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source) [na:1.8.0_45]
                  at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [na:1.8.0_45]
                  at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [na:1.8.0_45]
                  at java.lang.Thread.run(Unknown Source) [na:1.8.0_45]
                  

                  仅当我尝试分析的解决方案有多个项目时才会发生这种情况.SonarQube 5.1.2 可以很好地分析相同的项目.我有以下配置:

                  This only occurs if the solution I'm trying to analyse has more than one project. The same projects analyze just fine with SonarQube 5.1.2. I have the following configuration:

                  • SonarQube 5.2(带有 SQL Server 2012 数据库)
                  • C# 4.3
                  • Java 3.7
                  • LDAP 1.5
                  • Git 1.1
                  • SVN 1.2
                  • JavaScript 2.8

                  还有其他人遇到过这个问题吗?

                  Anyone else ran into this problem?

                  推荐答案

                  问题在于db和tables必须区分大小写.

                  The issue is coming from the fact that db and tables must be case sensitive.

                  这篇关于SonarQube 5.2 出现重复键错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Adding and removing users from Active Directory groups in .NET(在 .NET 中的 Active Directory 组中添加和删除用户)
                  set equality in linq(在 linq 中设置相等)
                  HashSet conversion to List(HashSet 转换为 List)
                  How to set timeout for webBrowser navigate event(如何为 webBrowser 导航事件设置超时)
                  Test whether two IEnumerablelt;Tgt; have the same values with the same frequencies(测试两个IEnumerablelt;Tgt;具有相同频率的相同值)
                  How do you determine if two HashSets are equal (by value, not by reference)?(您如何确定两个 HashSet 是否相等(按值,而不是按引用)?)
                    <bdo id='nYB9M'></bdo><ul id='nYB9M'></ul>
                    • <legend id='nYB9M'><style id='nYB9M'><dir id='nYB9M'><q id='nYB9M'></q></dir></style></legend>

                      <small id='nYB9M'></small><noframes id='nYB9M'>

                    • <tfoot id='nYB9M'></tfoot>
                      <i id='nYB9M'><tr id='nYB9M'><dt id='nYB9M'><q id='nYB9M'><span id='nYB9M'><b id='nYB9M'><form id='nYB9M'><ins id='nYB9M'></ins><ul id='nYB9M'></ul><sub id='nYB9M'></sub></form><legend id='nYB9M'></legend><bdo id='nYB9M'><pre id='nYB9M'><center id='nYB9M'></center></pre></bdo></b><th id='nYB9M'></th></span></q></dt></tr></i><div id='nYB9M'><tfoot id='nYB9M'></tfoot><dl id='nYB9M'><fieldset id='nYB9M'></fieldset></dl></div>
                          <tbody id='nYB9M'></tbody>