错误[oracle.adfmf.framework.exception.AdfException] - 连接被拒绝(连接被拒绝)

时间:2018-03-21 04:04:22

标签: java rest web-services jdeveloper oracle-maf

我在启动应用时遇到错误。
我试图从我的WS获取数据,但我得到了这个:

enter image description here

以下是点击按钮获取数据时的日志:

D/Proxy Selector(31153): >>> Java_com_oracle_net_ProxySelectorImpl_getProxyForURL0

D/Proxy Selector(31153): >>> Call getProxyForURL

D/Proxy Selector(31153): >>> initDalvikPointers: 0x60d7ee31 0x60d7ee49 0x60d84030 0x60d8402c

D/Proxy Selector(31153): >>> attachCurrentThreadToDalvik: Attach returned JNIEnv=0x0x69167984

I/System.out(31153): DalvikProxySelector.getProxyForURL(): No proxy found

D/Proxy Selector(31153): >>> detachCurrentThreadFromDalvik: Detach current thread from dalvik VM

D/Proxy Selector(31153): proxy not found!

D/JVM     (31153): [SEVERE - oracle.adfmf.framework - RestTransportLayer - readResponse] Exception lors de la lecture de la réponse : java.io.IOException

D/JVM     (31153): java.lang.reflect.InvocationTargetException

D/JVM     (31153):  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

D/JVM     (31153):  at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

D/JVM     (31153):  at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

D/JVM     (31153):  at java.lang.reflect.Method.invoke(Unknown Source)

D/JVM     (31153):  at oracle.adfmf.framework.contract.adf.application.GenericInvokeRequestHandler.invoke(Unknown Source)

D/JVM     (31153):  at oracle.adfmf.framework.contract.adf.application.EmbeddedGenericInvokeRequestHandler.invoke(Unknown Source)

D/JVM     (31153):  at oracle.adfmf.framework.contract.adf.application.GenericInvokeRequestHandler.invoke(Unknown Source)

D/JVM     (31153):  at oracle.adfmf.framework.contract.adf.application.GenericInvokeRequestHandler.process(Unknown Source)

D/JVM     (31153):  at oracle.adfmf.framework.FeatureContext.handle(Unknown Source)

D/JVM     (31153):  at oracle.adfmf.framework.AdfChannel.handle(Unknown Source)

D/JVM     (31153):  at com.oracle.vm.channel.impl.VMChannelImpl.run(Unknown Source)

D/JVM     (31153):  at java.lang.Thread.run(Unknown Source)

D/JVM     (31153): Caused by: ERROR [oracle.adfmf.framework.exception.AdfInvocationRuntimeException] - Connection refused (Connection refused)

D/JVM     (31153):  at oracle.adfmf.dc.ws.rest.RestWebServiceOperation.invoke(Unknown Source)

D/JVM     (31153):  at oracle.adfmf.dc.JavaBeanOperation.lambda$execute$4(Unknown Source)

D/JVM     (31153):  at oracle.adfmf.util.MonitorUtil.monitorFunction(Unknown Source)

D/JVM     (31153):  at oracle.adfmf.dc.JavaBeanOperation.execute(Unknown Source)

D/JVM     (31153):  at oracle.adfmf.dc.ws.WebServiceDataControlAdapter.invokeOperation(Unknown Source)

D/JVM     (31153):  at oracle.adfmf.bindings.dbf.AmxMethodActionBinding.lambda$execute$10(Unknown Source)

D/JVM     (31153):  at oracle.adfmf.util.MonitorUtil.monitorFunction(Unknown Source)

D/JVM     (31153): 

D/JVM     (31153):  at oracle.adfmf.bindings.dbf.AmxMethodActionBinding.execute(Unknown Source)

D/JVM     (31153):  at oracle.adfmf.bindings.dbf.AmxMethodActionBinding.execute(Unknown Source)

D/JVM     (31153):  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

D/JVM     (31153):  at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

D/JVM     (31153):  at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

D/JVM     (31153):  at java.lang.reflect.Method.invoke(Unknown Source)

D/JVM     (31153):  at de.odysseus.el.tree.impl.ast.AstProperty.invoke(Unknown Source)

D/JVM     (31153):  at de.odysseus.el.tree.impl.ast.AstEval.invoke(Unknown Source)

D/JVM     (31153):  at de.odysseus.el.TreeMethodExpression.invoke(Unknown Source)

D/JVM     (31153):  at oracle.maf.api.amx.taghandler.UITagHandler._invokeListenerMethod(Unknown Source)

D/JVM     (31153):  at oracle.maf.api.amx.taghandler.UITagHandler.handleAmxEvent(Unknown Source)

D/JVM     (31153):  at oracle.maf.impl.amx.Dispatch.processAmxEvent(Unknown Source)

D/JVM     (31153):  ... 12 more

D/JVM     (31153): Caused by: ERROR [oracle.adfmf.framework.exception.AdfException] - Connection refused (Connection refused)

D/JVM     (31153):  at oracle.adfmf.dc.ws.rest.RestTransportLayer.sendReceiveBytes(Unknown Source)

D/JVM     (31153):  at oracle.adfmf.dc.ws.rest.RestWebServiceOperation.invokeHttpRequestRaw(Unknown Source)

D/JVM     (31153):  ... 31 more

D/JVM     (31153): Caused by: java.io.IOException: Connection refused (Connection refused)

D/JVM     (31153):  at oracle.microedition.io.HttpConnectionImpl.getResponseCode(Unknown Source)

D/JVM     (31153):  at oracle.adfmf.dc.ws.rest.RestTransportLayer.getInputStream(Unknown Source)

D/JVM     (31153):  at oracle.adfmf.dc.ws.rest.RestTransportLayer.readResponse(Unknown Source)

D/JVM     (31153):  ... 33 more

D/JVM     (31153): [SEVERE - oracle.adfmf.framework - GenericInvokeRequestHandler - invoke] InvocationTargetException Erreur : oracle.adfmf.framework.exception.AdfInvocationRuntimeException

D/JVM     (31153): [SEVERE - oracle.adfmf.framework - GenericInvokeRequestHandler - process] Exception AdfException de processus détectée : oracle.adfmf.framework.exception.AdfInvocationRuntimeException

I/System.out(31153): [SEVERE - oracle.adfmf.framework - ADFMobileShell - invokeJavaMethod] Exception : ERROR [oracle.adfmf.framework.exception.AdfInvocationRuntimeException] - Connection refused (Connection refused)

I/System.out(31153): [SEVERE - oracle.adfmf.framework - adf.mf.internal - logError] Une erreur est survenue au cours de la demande.

1 个答案:

答案 0 :(得分:0)

应该是评论而不是答案,但我还没有50rep。

我假设您在PC上运行WS,并且应用程序位于同一本地网络/ wifi中的真实Android设备上。 首先尝试在设备上的Web浏览器中访问资源(例如/ rest / employees)。如果连接也被拒绝,请检查您的电脑上的防火墙是否阻止访问。