技术文章 - CS239982

ThingWorx 无法持久更新并返回错误“访问数据提供程序时发生错误”

已修改: 13-Mar-2024   


注意:本文已使用机器翻译软件翻译,以方便非英语客户阅读。但翻译内容可能包含语法错误或不准确之处。请注意, PTC对本文所含信息的翻译准确性及使用后果不承担任何责任。请在 此处 查看本文的英文原始版本以便参考。有关机器翻译的更多详情,请单击 此处
感谢您告诉我们。我们将尽快审阅此译文。

适用于

  • ThingWorx Platform 7.0 to 9.7

说明

  • 在 ThingWorx 中运行自定义服务时,访问ThingworxStorage/logs/ApplicationLog.log中返回的数据提供程序错误消息时出错
  • 迁移/升级后 ThingWorx 中的更新失败
  • ThingworxStorage/logs/ApplicationLog.log中运行DataTable服务AddDataTableEntries时出错:
Unable to Invoke Service AddDataTableEntries on <DataTableName>: com.tingworx.common.exceptions.DataAccessException:[1,018] Data store unknown error: [Error occurred while accessing the data provider.]
  • 由于ThingworxStorage/logs/ApplicationLog.log中出现错误,ThingWorx 服务器短暂无法运行:
[message: [1,018] Data store unknown error: [Error occurred while accessing the model provider.]]
Transactions could not be committed.
  • ThingWorx 每天都会遇到数百个数据库死锁
  • ThingworxStorage/logs/ErrorLog.log显示死锁主要在model_index_pkey索引上生成:
com.microsoft.sqlserver.jdbc.SQLServerException: Transaction (Process ID 60) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction
  • 重新启动 Tomcat 可以暂时解决模型提供程序问题
  • 应用程序日志中有很多BatchUpdateException错误:
[L: ERROR] [O: E.c.q.l.c.Logger] [I: ] [U: SuperUser] [S: ] [P: <HA_node_name>] [T: pool-31-thread-10] BatchUpdateException error occurred executing batch update of persistent properties 
[L: ERROR] [O: E.c.q.l.c.Logger] [I: ] [U: SuperUser] [S: ] [P: <HA_node_name>] [T: pool-31-thread-10] Could not commit the transaction. Rolling back... 
[L: ERROR] [O: E.c.q.l.c.Logger] [I: ] [U: SuperUser] [S: ] [P: <HA_node_name>] [T: pool-31-thread-10] Error occurred during commit for the ThingworxPersistenceProvider persistence provider. 
[L: ERROR] [O: E.c.t.p.p.PostgresModelExceptionTranslator] [I: ] [U: SuperUser] [S: ] [P: <HA_node_name>] [T: pool-19-thread-58] An I/O error occurred while sending to the backend. 
这是文章 239982 的 PDF 版本,可能已过期。最新版本 CS239982