我创建了一个mule进程API,通过mule <http:request>
标记使用HTTP请求调用mule系统API。系统API依次使用数据库调用处理请求。流程和系统API部署到云中心。我可以在本地和云中心成功测试系统API。过程API虽然给出了以下错误消息。
********************************************************************************
Message : Error sending HTTP request.
Element : /get:\/terms:api-config/processors/0/getTermsImpl/subprocessors/0 @ msu-test-p-sisinfo:implementation.xml:25 (httpSisInfoTerms)
--------------------------------------------------------------------------------
Exception stack is:
Error sending HTTP request. (org.mule.api.MessagingException)
org.glassfish.grizzly.connectionpool.SingleEndpointPool$ConnectCompletionHandler.cancelled(SingleEndpointPool.java:1284)
org.glassfish.grizzly.impl.SafeFutureImpl.notifyCompletionHandlers(SafeFutureImpl.java:185)
org.glassfish.grizzly.impl.SafeFutureImpl.done(SafeFutureImpl.java:277)
org.glassfish.grizzly.impl.SafeFutureImpl$Sync.innerCancel(SafeFutureImpl.java:389)
org.glassfish.grizzly.impl.SafeFutureImpl.cancel(SafeFutureImpl.java:247)
org.glassfish.grizzly.connectionpool.SingleEndpointPool$ConnectTimeoutWorker.doWork(SingleEndpointPool.java:1352)
org.glassfish.grizzly.connectionpool.SingleEndpointPool$ConnectTimeoutWorker.doWork(SingleEndpointPool.java:1344)
org.glassfish.grizzly.utils.DelayedExecutor$DelayedRunnable.run(DelayedExecutor.java:158)
org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:591)
org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:571)
java.lang.Thread.run(Thread.java:745)
(set debug level logging or '-Dmule.verbose.exceptions=true' for everything)
********************************************************************************
错误引用了流程API的文件implementation.xml中的第25行。该文件的内容如下所示。第25行是对global.xml中定义的http:request配置程序的调用。
<sub-flow name="getTermsImpl">
<http:request config-ref="httpRequestConfig-sisinfo" path="api/terms" method="GET" doc:name="httpSisInfoTerms">
</http:request>
</sub-flow>
非常感谢任何帮助!