技术文章 - CS308816

调用 Thingworx 中的内容加载器功能下可用的 GetJSON 服务时出现超时错误

已修改: 12-Oct-2023   


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

适用于

  • ThingWorx Platform 8.4

说明

  • 调用内容加载器功能下可用的 GetJSON 服务时出现超时错误
  • 错误日志的堆栈跟踪包含
    • [L:错误] [O:EctwBaseService] [I:] [U:管理员] [S:] [T:http-nio-80-exec-2] [上下文:com.thingworx.webservices.context.HttpExecutionContext@756c0b4c ][消息:服务脚本中执行错误 [事件] :: 连接到 <cust>.service-now.com:443 [<cust>.service-now.com/149.96.37.127] 失败:连接超时:连接] java.net.ConnectException:连接超时:连接
      在 java.net.DualStackPlainSocketImpl.waitForConnect(本机方法)
      在 java.net.DualStackPlainSocketImpl.socketConnect(来源未知)
      在 java.net.AbstractPlainSocketImpl.doConnect(来源未知)
      在 java.net.AbstractPlainSocketImpl.connectToAddress(来源未知)
      在 java.net.AbstractPlainSocketImpl.connect(来源未知)
      在 java.net.PlainSocketImpl.connect(来源未知)
      在 java.net.SocksSocketImpl.connect(来源未知)
      在 java.net.Socket.connect(来源未知)
      在 org.apache.http.conn.ssl.SSLConnectionSocketFactory.connectSocket(SSLConnectionSocketFactory.java:337)
      在org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:141)
      ... 84个常见帧省略
      包装者:org.apache.http.conn.HttpHostConnectException:连接到 <cust>.service-now.com:443 [<cust>.service-now.com/149.96.37.127] 失败:连接超时:连接
      在org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:158)
      在org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:353)
      在 org.apache.http.impl.execchain.MainClientExec.builtRoute(MainClientExec.java:380)
      在 org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:236)
      在 org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:184)
      在 org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:88)
      在 org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110)
      在 org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:184)
      在 org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82)
      在 com.thingworx.common.utils.HttpUtilities.LoadJSON(HttpUtilities.java:699)
      在 com.thingworx.common.utils.HttpUtilities.LoadJSON(HttpUtilities.java:653)
      在 com.thingworx.resources.content.ContentLoader.GetJSON(ContentLoader.java:362)
      在 sun.reflect.NativeMethodAccessorImpl.invoke0(本机方法)
      在 sun.reflect.NativeMethodAccessorImpl.invoke(来源未知)
      在 sun.reflect.DelegatingMethodAccessorImpl.invoke(来源未知)
      在 java.lang.reflect.Method.invoke(来源未知)
      在 com.thingworx.common.processors.ReflectionProcessor.processService(ReflectionProcessor.java:261)
      在 com.thingworx.handlers.ReflectionServiceHandler.processService(ReflectionServiceHandler.java:50)
      在 com.thingworx.handlers.ServiceHandlerBase.processServiceWithMetrics(ServiceHandlerBase.java:48)
      在 com.thingworx.entities.helpers.InternalServiceHelper.processServiceRequestDirect(InternalServiceHelper.java:117)
      在 com.thingworx.entities.helpers.InternalServiceHelper.processServiceRequest(InternalServiceHelper.java:73)
      在 com.thingworx.entities.ServiceProviderEntity.processServiceRequest(ServiceProviderEntity.java:53)
      在 com.thingworx.dsl.engine.adapters.VirtualFunction.call(VirtualFunction.java:145)
      ...省略62个常见帧
这是文章 308816 的 PDF 版本,可能已过期。最新版本 CS308816