技术文章 - CS416540

在 ThingWorx Navigate 中从 ptc-windchill-integration-connector 执行 GetEndpoingList 时,出现错误“您的路由交换失败。HTTP 操作失败,状态为 [401 - 未授权]”

已修改: 26-Apr-2024   


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

适用于

  • Windchill Navigate (formerly ThingWorx Navigate) 9.1

说明

  • 收到错误您的路由交换失败。ptc-windchill-integration-connector执行GetEndpoingList时,HTTP 操作失败,状态为 [401 - 未授权]
  • ThingWorx Navigate 功能运行不佳。例如,
    • 访问PARTS TASKS COLLECTION编辑集合显示错误图标
  • IR日志报告以下错误:
[ClientProcessor-1] DEBUG o.a.c.c.h.HttpProducer - Http responseCode: 401
[ClientProcessor-1] DEBUG o.a.c.p.Pipeline - Message exchange has failed: so breaking out of pipeline for exchange: Exchange[ID-XXXXX-XXXXXXX-1714103112817-0-2] Exception: org.apache.camel.http.common.HttpOperationFailedException: HTTP operation failed invoking https://xxxxxx.xxxxx.xxx/Windchill/servlet/rest/swagger.json?wt.effectiveUid=xxx with statusCode: 401
[ClientProcessor-1] ERROR c.t.i.r.IntegrationEngine - Exchange process failed with exception thrown : Your route exchange has failed.  HTTP operation failed with status [401 - Unauthorized]
java.lang.RuntimeException: Your route exchange has failed.  HTTP operation failed with status [401 - Unauthorized]
	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 java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
	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.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
	at java.base/java.lang.Thread.run(Thread.java:834)
  • ThingWorx 应用程序日志报告以下错误:
[L: ERROR] [O: c.t.w.Things] [I: ] [U: xxx] [S: ] [P: ] [T: https-openssl-nio-8443-exec-1] Unable to Invoke Service GetEndpointList on ptc-windchill-integration-connector : Your route exchange has failed.  HTTP operation failed with status [401 - Unauthorized]




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