技术文章 - CS328190

使用 PingFederate 单点登录 (SSO) 时,通过 OAuth 2.0 从 Windchill PDMLink 检索数据“访问被拒绝。您不是注册的 Windchill 用户。”

已修改: 29-Jul-2025   


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

适用于

  • Windchill Navigate (formerly ThingWorx Navigate) 1.5.0 to 9.5
  • ThingWorx Platform 7.4 to 9.3
  • Windchill PDMLink 11.2 to 13.1

说明

  • 在 ThingWorx Navigate SSO 中,用户无法从 Windchill 检索数据并出现错误
wt.licenseusage.licensing.LicensingException: Access is denied. You are not a registered Windchill user.
  • 当用户访问“我的任务”应用程序时,他们会看到错误弹出/红色条
  • 无法从第三方工具提取具有有效 OAuth 令牌的数据
  • ThingWorx Navigate 无法正确从 Windchill 加载数据
  • 无法通过ptc-windchill-integration-connectorptc-windchill-OData-connector或自定义集成连接器从 Windchill PDMLink 获取数据
  • 启用的 SSO 和 ThingWorx Navigate 和/或集成连接器不再起作用
  • 用户同时存在于 ThingWorx Platform 和 Windchill PDMLink 中,且具有正确的权限,但在尝试从 ThingWorx Platform 访问数据时出现权限错误
  • 从自定义集成连接器手动执行服务将产生以下结果:
Execution error in service script [<Service>] :: The server sent HTTP status code 500: 500]
  • <ThingworxStorage>\logs\ApplicationLog.log 中出现错误:
[L: ERROR] [O: c.p.n.w.e.p.WindchillEntityProvider] [I: ] [U: <username>] [S: ] [P: ] [T: https-openssl-nio-443-exec-1] Unable to invoke service WorkItem_GET_ByID on connector ptc-windchill-OData-connector. Error message: Your route exchange has failed.  HTTP operation failed with status [500 - 500]
[L: ERROR] [O: c.p.n.WCAdapterInstance] [I: ] [U: <username>] [S: ] [P: ] [T: https-openssl-nio-443-exec-1] Error in getActionsForItem - Unable to invoke service WorkItem_GET_ByID on connector ptc-windchill-OData-connector. Error message: Your route exchange has failed.  HTTP operation failed with status [500 - 500]
[L: ERROR] [O: c.p.n.c.u.ServiceUtilities] [I: ] [U: <username>] [S: ] [P: ] [T: https-openssl-nio-443-exec-1] Unable to execute service GetActionsForItem: Error in getActionsForItem - Unable to invoke service WorkItem_GET_ByID on connector ptc-windchill-OData-connector. Error message: Your route exchange has failed.  HTTP operation failed with status [500 - 500]
[L: ERROR] [O: c.p.n.c.p.b.ProgressBusinessLogic] [I: ] [U: <username>] [S: ] [P: ] [T: https-openssl-nio-443-exec-1] Unable to fetch user event list from backend system Unable to execute service GetActionsForItem: Error in getActionsForItem - Unable to invoke service WorkItem_GET_ByID on connector ptc-windchill-OData-connector. Error message: Your route exchange has failed.  HTTP operation failed with status [500 - 500] 
[L: ERROR] [O: c.p.n.c.t.TaskProgressBusinessLogic] [I: ] [U: <username>] [S: ] [P: ] [T: https-openssl-nio-443-exec-1] Unable to fetch user event list from backend system Unable to execute service GetActionsForItem: Error in getActionsForItem - Unable to invoke service WorkItem_GET_ByID on connector ptc-windchill-OData-connector. Error message: Your route exchange has failed.  HTTP operation failed with status [500 - 500] 
[L: ERROR] [O: c.p.n.c.p.b.ProgressBusinessLogic] [I: ] [U: <username>] [S: ] [P: ] [T: https-openssl-nio-443-exec-1] Unable to calculate progress for Task progress : Unable to fetch user event list from backend system Unable to execute service GetActionsForItem: Error in getActionsForItem - Unable to invoke service WorkItem_GET_ByID on connector ptc-windchill-OData-connector. Error message: Your route exchange has failed.  HTTP operation failed with status [500 - 500] 
[L: ERROR] [O: c.p.n.c.t.TaskProgressBusinessLogic] [I: ] [U: <username>] [S: ] [P: ] [T: https-openssl-nio-443-exec-1] Unable to calculate progress for Task progress : Unable to fetch user event list from backend system Unable to execute service GetActionsForItem: Error in getActionsForItem - Unable to invoke service WorkItem_GET_ByID on connector ptc-windchill-OData-connector. Error message: Your route exchange has failed.  HTTP operation failed with status [500 - 500]

  • IRLogs\ IntegrationRuntime.log 中的错误:
[ClientProcessor-2] ERROR c.t.i.r.IntegrationEngine - Exchange process failed with exception thrown : Your route exchange has failed.  HTTP operation failed with status [500 - 500]
java.lang.RuntimeException: Your route exchange has failed.  HTTP operation failed with status [500 - 500]
    at com.twx.integration.route.exceptions.ExceptionHelper.convertToRuntimeException(ExceptionHelper.java:77)
    at com.twx.integration.route.IntegrationEngine.dispatchRoute(IntegrationEngine.java:159)
    at com.twx.integration.client.things.IntegrationRuntimeServer.Invoke(IntegrationRuntimeServer.java:72)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at com.thingworx.common.processors.ReflectionProcessor.processService(ReflectionProcessor.java:261)
    at com.thingworx.communications.client.things.VirtualThing.invokeService(VirtualThing.java:1120)
    at com.thingworx.communications.client.things.VirtualThing.handleServiceRequest(VirtualThing.java:1028)
    at com.thingworx.communications.client.ConnectedThingClient.handleRequest(ConnectedThingClient.java:315)
    at com.thingworx.communications.client.processor.ClientProcessorTask.run(ClientProcessorTask.java:55)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    at java.lang.Thread.run(Thread.java:748)

  • <Windchill>\logs\MethodServer 日志中出现错误:
ERROR [ajp-nio-127.0.0.1-8010-exec-8] wt.licenseusage.StandardLicenseUsageService  - (wt.licenseusage.licenseUsageResource/INVALID_USER_LOGIN) wt.licenseusage.licensing.LicensingException: Access is denied. You are not a registered Windchill user.
ERROR [ajp-nio-127.0.0.1-8010-exec-8] wt.servlet.ServletRequestMonitor.request  - 2020-07-27 12:09:26.169 +0100, 4eiibp7k;kd4ene5e;2780;cqjtxn;2023, <name> , 10.10.10.100, /Windchill/oauth/servlet/odata/v2/Workflow/WorkItems('OR%3Awt.workflow.work.WorkItem%3A125646'), %24select=ID%2CRole%2FDisplay%2CStatus%2FDisplay%2CStatus%2FValue&%24expand=Activity%28%24select%3DDeadline%2CName%29%2CSubject%28%24select%3DSubjectName%29, GET, 500, 0.03125, 0.0750976
wt.session.SessionUsers$PreLoginException: wt.licenseusage.licensing.LicensingException: Access is denied. You are not a registered Windchill user.
    at wt.session.SessionUsers.put(SessionUsers.java:622)
    at wt.session.SessionUsers.cacheSessionUser(SessionUsers.java:580)
    at wt.session.SessionUsers.auditUser(SessionUsers.java:510)
    at wt.session.TransientSessionAuthenticator.<init>(TransientSessionAuthenticator.java:42)


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