技术文章 - CS411319

方法服务器日志中充斥着大量数据库相关错误,例如 Windchill PDMLink 中的“连接已关闭”错误。

已修改: 27-Nov-2025   


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

适用于

  • Windchill PDMLink 11.0 to 13.0
  • Oracle JDBC Driver 12.2 or later

说明

  • MethodServer 日志中充斥着数据库连接错误:
2024-01-18 15:09:11,265 ERROR [com.ptc.core.components.dataUtilities.worker-16] com.ptc.core.components.beans.DataUtilityBean Org1User10 - Exception happened calling setModelData for DataUtility : com.ptc.windchill.enterprise.wip.datautilities.ShareStatusDataUtility@4e18191b (wt.pom.pomResource/0) wt.pom.PersistenceException: A persistence error occurred. System message follows:
Nested exception is: wt.pom.DatastoreException: A SQL error has occurred for the statement "SELECT ...". Database system message follows:
Nested exception is: java.sql.SQLRecoverableException: Closed Connection
  • 这似乎只会影响com.ptc.core.components.dataUtilities.worker-*线程
  • 线程在数据库连接错误发生之前就被中断了:
2024-01-18 15:09:09,669 WARN  [com.ptc.core.components.dataUtilities.worker-12] wt.method.server Org1User9 - Interrupting thread com.ptc.core.components.dataUtilities.worker-16
2024-01-18 15:09:09,669 WARN  [com.ptc.core.components.dataUtilities.worker-12] wt.pds.queryCancel Org1User9 - QueryContext.cancel(): cancelling
  • 以下是一个使用示例:
    • 在执行跳转到下一页的操作时,间歇性出现错误“状态/家庭共享”列显示“??? 符号”。
    • 用户在产品文件夹页面加载滚动时遇到“???”和红眼错误。
    • 错误堆栈跟踪:
2023-12-14 14:58:26,712 ERROR [com.ptc.core.components.dataUtilities.worker-60] com.ptc.core.components.beans.DataUtilityBean Z10736 - Exception happened calling setModelData for DataUtility : com.ptc.windchill.enterprise.wip.datautilities.ShareStatusDataUtility@62d326b1 (wt.pom.pomResource/0) wt.pom.PersistenceException: A persistence error occurred. System message follows:
Nested exception is: wt.pom.DatastoreException: A SQL error has occurred for the statement "SELECT A0.classnamekeyroleBObjectRef,A0.idA3B5,A0.classnamekeyroleAObjectRef,A0.idA3A5 FROM CheckoutLink A0 WHERE ((A0.idA3A5 IN (?,?,?,?,?,?,?,?,?,?,?,?,?,...,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)))". Database system message follows:
Nested exception is: java.sql.SQLRecoverableException: Closed Connection

或者

 Nested exception is: wt.pom.DatastoreException: A SQL error has occurred. Database system message follows: Nested exception is: java.sql.SQLRecoverableException: IO Error: Socket read interrupted
  • Task 表中的列值为空或显示乱码,带有问号“ ??? ”。
ava.lang.NullPointerException
at com.ptc.windchill.enterprise.work.assignmentslist.dataUtilities.AssignmentsSubjectNameDataUtility.getWorkItemSubjectDisplayName(AssignmentsSubjectNameDataUtility.java:186)
at com.ptc.windchill.enterprise.work.assignmentslist.dataUtilities.AssignmentsSubjectNameDataUtility.handleAssignmentSubject(AssignmentsSubjectNameDataUtility.java:144)
at com.ptc.windchill.enterprise.work.assignmentslist.dataUtilities.AssignmentsSubjectNameDataUtility.getDataValue(AssignmentsSubjectNameDataUtility.java:122)
image.png
  • 打开文件夹浏览器时,状态栏显示“???”,并出现警告“尝试获取字形时发生异常:null”。

这是文章 411319 的 PDF 版本,可能已过期。最新版本 CS411319