Article - CS274920

Windchill PDMLink : Error "StringIndexOutOfBoundsException: String index out of range: -1" is printed in methodserver logs due to various Windchill File System (WFS) operations

Modified: 22-Aug-2025   


Applies To

  • 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

Description

  • What is the functional impact of Error StringIndexOutOfBoundsException: String index out of range: -1 which is logged in MethodServer logs ?
  • Retrieval of Solidworks / Inventor assembly containing toolbox components via  File > Open from Software interface results in the error , however retrieval is successful
  • Following is logged in methodserver console :
ERROR [ajp-bio-127.0.0.1-8012-exec-7] com.ptc.windchill.uwgm.proesrv.StandardRequestDispatcher <user> - StandardRequestDispatcher.dispatchRequest :: Runtime failure(s)
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
                  at java.lang.String.substring(String.java:1927)
                  at com.ptc.windchill.uwgm.proesrv.cache.FolderRequestCacheAdapter.validateFolder(FolderRequestCacheAdapter.java:203)
                  at com.ptc.windchill.uwgm.proesrv.cache.FolderRequestCacheAdapter.validateFolder(FolderRequestCacheAdapter.java:98)
                  at com.ptc.windchill.uwgm.proesrv.cache.FolderRequestCacheAdapter.validateRequestData(FolderRequestCacheAdapter.java:92)
                  at com.ptc.windchill.uwgm.proesrv.cache.RequestCacheAdapter.validate(RequestCacheAdapter.java:61)
                  at com.ptc.windchill.uwgm.proesrv.request.GetFolderContentRequestCache.validate(GetFolderContentRequestCache.java:74)
  • Following error has been observer for Inventor:
ERROR [ajp-nio-127.0.0.1-8010-exec-8] com.ptc.windchill.uwgm.proesrv.cache.FolderRequestCacheAdapter user01 - FolderRequestCacheAdapter.validateFolder :: Exception occurred during folder validation: com.ptc.windchill.uwgm.common.conflict.UwgmErrorException: Invalid folder path: "/Produits/Product 01/REN_TESTALEX.newVer.ipt". at com.ptc.windchill.uwgm.proesrv.cache.FolderRequestCacheAdapter.throwException(FolderRequestCacheAdapter.java:353) at com.ptc.windchill.uwgm.proesrv.cache.FolderRequestCacheAdapter.validateFolder(FolderRequestCacheAdapter.java:222) at com.ptc.windchill.uwgm.proesrv.cache.FolderRequestCacheAdapter.validateFolder(FolderRequestCacheAdapter.java:98)
This is a printer-friendly version of Article 274920 and may be out of date. For the latest version click CS274920