技术文章 - CS274920

Windchill PDMLink:由于各种 Windchill 文件系统 (WFS) 操作,方法服务器日志中打印错误“StringIndexOutOfBoundsException:字符串索引超出范围:-1”

已修改: 22-Aug-2025   


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

适用于

  • Windchill PDMLink 10.2 to 12.0
  • Windchill ProjectLink 10.2 to 11.1
  • Windchill PDM Essentials 10.1 to 11.1
  • Solidworks
  • Windchill Workgroup Manager
  • Windchill File System (WFS)
  • Inventor

说明

  • 方法服务器日志中记录的错误 StringIndexOutOfBoundsException:字符串索引超出范围:-1 的功能影响是什么?
  • 通过软件界面中的“文件”>“打开”检索包含工具箱组件的 Solidworks / Inventor 组件会导致错误,但检索成功
  • 以下是方法服务器控制台中记录的内容:
错误 [ajp-bio-127.0.0.1-8012-exec-7] com.ptc.windchill.uwgm.proesrv.StandardRequestDispatcher <用户> - StandardRequestDispatcher.dispatchRequest :: 运行时失败
java.lang.StringIndexOutOfBoundsException:字符串索引超出范围:-1
在 java.lang.String.substring(String.java:1927)
在 com.ptc.windchill.uwgm.proesrv.cache.FolderRequestCacheAdapter.validateFolder(FolderRequestCacheAdapter.java:203)
在 com.ptc.windchill.uwgm.proesrv.cache.FolderRequestCacheAdapter.validateFolder(FolderRequestCacheAdapter.java:98)
在 com.ptc.windchill.uwgm.proesrv.cache.FolderRequestCacheAdapter.validateRequestData(FolderRequestCacheAdapter.java:92)
在 com.ptc.windchill.uwgm.proesrv.cache.RequestCacheAdapter.validate(RequestCacheAdapter.java:61)
在 com.ptc.windchill.uwgm.proesrv.request.GetFolderContentRequestCache.validate(GetFolderContentRequestCache.java:74)
  • Inventor 已观察到以下错误:
错误 [ajp-nio-127.0.0.1-8010-exec-8] com.ptc.windchill.uwgm.proesrv.cache.FolderRequestCacheAdapter user01 - FolderRequestCacheAdapter.validateFolder :: 文件夹验证期间发生异常:com.ptc.windchill.uwgm.common.conflict.UwgmErrorException:无效文件夹路径:“/Produits/Product 01/REN_TESTALEX.newVer.ipt”。在 com.ptc.windchill.uwgm.proesrv.cache.FolderRequestCacheAdapter.throwException(FolderRequestCacheAdapter.java:353)在 com.ptc.windchill.uwgm.proesrv.cache.FolderRequestCacheAdapter.validateFolder(FolderRequestCacheAdapter.java:222)在 com.ptc.windchill.uwgm.proesrv.cache.FolderRequestCacheAdapter.validateFolder(FolderRequestCacheAdapter.java:98)
这是文章 274920 的 PDF 版本,可能已过期。最新版本 CS274920