技术文章 - CS368606
尝试在 Windchill Navigate 和 ThingWorx 平台上显示 Windchill 的 PDF 文件,但无法正常工作
已修改: 01-Oct-2025
适用于
- Windchill Navigate (formerly ThingWorx Navigate) 9.2 to 9.4
- ThingWorx Platform 9.4
说明
- 尝试在Windchill Navigate中的ThingView小部件中显示Windchill中的 PDF 表示文件,但无法正常工作
- ThingView可以直接显示 PDF(参见文章352469 )
- 尝试在ThingWorx的Webframe小部件中显示Windchill的 PDF 文件表示,但无法正常工作
- 在ThingView > ProductToView中测试了如下链接(始终在 Web 浏览器中打开 PDF)
- URL 1:
https://<WINDCHILL>/Windchill/servlet/WindchillGW/wt.fv.master.StandardMasterService/doDirectDownload/0000000022_drw.pdf?folderId=158390&ft=FF&userid=12&adId=222221&fileName=00000000008836&refsize=60100&mime=application/pdf&mk=wt.fv.master.StandardMasterService&ofn=0000000022_drw.pdf&c=31&riid=-1&sT=1641912346&sign=%2F0gdyT3BTYiYY%2Bc0Vcdw9w%3D%3D&site=https%3A%2F%2F<host>.ptc.com%2FWindchill%2Fservlet%2FWindchillGW&AUTH_CODE=HmacMD5&isProxy=true
- URL 1:
Windchill 端的 HTTP 状态代码为 200,但重定向到另一个调用,其 URL 为:
https://<WINDCHILL>/Windchill/servlet/WindchillGW/wt.fv.master.StandardMasterService/doDirectDownload/0000000022_drw.pdf?folderId=158390&ft=FF&userid=12&adId=222221&fileName=00000000008836&refsize=60100&mime=application/pdf&mk=wt.fv.master.StandardMasterService&ofn=0000000022_drw.pdf&c=32&riid=-1&sT=1641912649&sign=p7owl5yJqFdQmhu4Lt2yzg%3D%3D&site=https%3A%2F%2F<host>. ptc.etb它在 URL 中添加: ptc.etb ,但在 Windchill 端失败并出现错误:
ERROR [ajp-nio-127.0.0.1-8010-exec-5] wt.method.client.httpgw wcadmin - MethodRequestHandler Exception: An exception occured while processing the request. (wt.fc.fcResource/18) wt.util.WTException: Malformed URL: "wt.viewmarkup.etb". Format must be: "classname:idValue" Nested exception is: java.lang.StringIndexOutOfBoundsException: String index out of range: -1 at java.lang.String.substring(String.java:1967) at wt.fc.ObjectIdentifier.initialize(ObjectIdentifier.java:400) at wt.fc.ObjectIdentifier.<init>(ObjectIdentifier.java:538) at wt.content.ContentHttp.viewContent(ContentHttp.java:1094)
Thingview 没有显示任何内容,并且 Thingview 日志显示:
INFO - Structure Loaded INFO - Model loaded
- URL 2:
https://<WINDCHILL_SERVER>/Windchill/servlet/WindchillAuthGW/com.ptc.windchill.enterprise.wvs.saveWVSObject.utils.SaveWVSObjectHelper/saveWVSObject/0000000022_drw.pdf?annotations=true&oid=OR%3Awt.content.ApplicationData%3A222221&fileType=pdf&u8=1- 出现 401 错误(但可以使用 Web 浏览器)
- Thingview 失败:
ERROR - Failed to load structure with Windchill URL ERROR - Load Model error [0] LoadStructureEvent - Failed to load StructNodeLoadSource
这是文章 368606 的 PDF 版本,可能已过期。最新版本 CS368606