<small id='4r6mw'></small><noframes id='4r6mw'>

      1. <legend id='4r6mw'><style id='4r6mw'><dir id='4r6mw'><q id='4r6mw'></q></dir></style></legend>
        • <bdo id='4r6mw'></bdo><ul id='4r6mw'></ul>
        <i id='4r6mw'><tr id='4r6mw'><dt id='4r6mw'><q id='4r6mw'><span id='4r6mw'><b id='4r6mw'><form id='4r6mw'><ins id='4r6mw'></ins><ul id='4r6mw'></ul><sub id='4r6mw'></sub></form><legend id='4r6mw'></legend><bdo id='4r6mw'><pre id='4r6mw'><center id='4r6mw'></center></pre></bdo></b><th id='4r6mw'></th></span></q></dt></tr></i><div id='4r6mw'><tfoot id='4r6mw'></tfoot><dl id='4r6mw'><fieldset id='4r6mw'></fieldset></dl></div>
      2. <tfoot id='4r6mw'></tfoot>

        WSO2 API Manager 身份验证违反 UNIQUE KEY 约束错误

        时间:2023-06-06
        <legend id='qh1Pu'><style id='qh1Pu'><dir id='qh1Pu'><q id='qh1Pu'></q></dir></style></legend>

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

              <tbody id='qh1Pu'></tbody>

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

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

                1. 本文介绍了WSO2 API Manager 身份验证违反 UNIQUE KEY 约束错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  限时送ChatGPT账号..

                  我们已经在分布式架构中实现了 WSO2 API Manager (v1.10.0),如在线文档中所述

                  我试过谷歌搜索这个,但找不到最新的答案.

                  我尚未将密钥管理器配置为具有主节点和工作节点(如此处),因为文档似乎表明不需要这样做.

                  如有任何帮助,将不胜感激!

                  解决方案

                  我使用 mysql 并面临同样的问题.更改池大小也不是一个完整的解决方案.然后我注意到 idn_oauth2_access_token 表有些奇怪.有一列time_created,但内容不是创建的时间.这是最后一次更新时间戳.我在 time_created 列中的几列上读到了系统命令.我检查了我的 sql 脚本,看到数据库在触发更新时更新了此列.我删除了这个规则,我没有更多的错误.

                  We have implemented WSO2 API Manager (v1.10.0) in a distributed architecture as outlined in the online documentation here.

                  This consists of the following (on 5 separate servers):

                  • Gateway (x2)
                  • Publisher & Store (on a single server)
                  • Key Manager (x2)

                  These are wired-up to the 3 normal API Manager databases (Registry, User Manager & API Manager), which are on a SQL Server 2014 instance.

                  We are using the Key Managers for the authentication (login, forgotten password, etc.) of the website users, as well as for authenticating API calls.

                  However, when trying to log in to the site I'm seeing the following (Violation of UNIQUE KEY constraint) error on the Key Manager:

                  TID: [-1] [] [2016-10-06 00:36:47,842] ERROR {org.wso2.carbon.identity.oauth2.dao.TokenPersistenceTask} - Error occurred while persisting access token :c5a0a11e63388dCHANGEDea34b0533445 {org.wso2.carbon.identity.oauth2.dao.TokenPersistenceTask} org.wso2.carbon.identity.oauth2.IdentityOAuth2Exception: Error when storing the access token for consumer key : fpA6AhOfbVCHANGEDgH0WzBDOga at org.wso2.carbon.identity.oauth2.dao.TokenMgtDAO.storeAccessToken(TokenMgtDAO.java:246) at org.wso2.carbon.identity.oauth2.dao.TokenMgtDAO.persistAccessToken(TokenMgtDAO.java:284) at org.wso2.carbon.identity.oauth2.dao.TokenPersistenceTask.run(TokenPersistenceTask.java:52) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745) Caused by: com.microsoft.sqlserver.jdbc.SQLServerException: Violation of UNIQUE KEY constraint 'CON_APP_KEY'. Cannot insert duplicate key in object 'dbo.IDN_OAUTH2_ACCESS_TOKEN'. The duplicate key value is (15, williams.j2@CHANGED.org.uk, -1234, , APPLICATION_USER, 369db21a386ae4CHANGED0ff34d35708d, ACTIVE, NONE). at com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDatabaseError(SQLServerException.java:216) at com.microsoft.sqlserver.jdbc.SQLServerStatement.getNextResult(SQLServerStatement.java:1515) at com.microsoft.sqlserver.jdbc.SQLServerPreparedStatement.doExecutePreparedStatement(SQLServerPreparedStatement.java:404) at com.microsoft.sqlserver.jdbc.SQLServerPreparedStatement$PrepStmtExecCmd.doExecute(SQLServerPreparedStatement.java:350) at com.microsoft.sqlserver.jdbc.TDSCommand.execute(IOBuffer.java:5696) at com.microsoft.sqlserver.jdbc.SQLServerConnection.executeCommand(SQLServerConnection.java:1715) at com.microsoft.sqlserver.jdbc.SQLServerStatement.executeCommand(SQLServerStatement.java:180) at com.microsoft.sqlserver.jdbc.SQLServerStatement.executeStatement(SQLServerStatement.java:155) at com.microsoft.sqlserver.jdbc.SQLServerPreparedStatement.execute(SQLServerPreparedStatement.java:332) at org.wso2.carbon.identity.oauth2.dao.TokenMgtDAO.storeAccessToken(TokenMgtDAO.java:224) ... 5 more

                  This is resulting in the following .NET error on the website:

                  I've tried Googling this, but cannot find an up-to-date answer.

                  I have not configured the Key Managers to have master and worked nodes (as outlined here) as the documentation seems to suggest that this isn't needed.

                  Any help would be much appreciated please!

                  解决方案

                  I use mysql and was facing the same problem. Changing the poolsize was also not a full solution. Then I noticed something strange about the idn_oauth2_access_token table. There is a column time_created, but the contents was not the time created. It was the last update timestamp. I read somewhere the systems orders on several columns among the time_created column. I inspected my sql script and saw that the database updated this column when a update was fired. I removed this rule and I have no more errors.

                  这篇关于WSO2 API Manager 身份验证违反 UNIQUE KEY 约束错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:将图像从 WPF 控件保存到 SQL Server DB 下一篇:Xamarin SQLite“这是‘诱饵’"

                  相关文章

                  最新文章

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

                    <bdo id='ho2HF'></bdo><ul id='ho2HF'></ul>

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

                      <tfoot id='ho2HF'></tfoot>