Note that there are some explanatory texts on larger screens.

plurals
  1. POWhen using blazeDS's proxy-config throw faultDetail="Connection refused: connect"
    primarykey
    data
    text
    <p>I have created a XML file directly under the webroot, named index.jsp, the contents are as follow:</p> <pre><code>&lt;%@ page language="java" import="java.util.*" pageEncoding="ISO-8859-1"%&gt; &lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;catalog&gt; &lt;product&gt; &lt;name&gt;Product 1&lt;/name&gt; &lt;description&gt;Product 1 is good&lt;/description&gt; &lt;price&gt;5&lt;/price&gt; &lt;/product&gt; &lt;product&gt; &lt;name&gt;Product 2&lt;/name&gt; &lt;description&gt;Product 2 is good&lt;/description&gt; &lt;price&gt;15&lt;/price&gt; &lt;/product&gt; &lt;product&gt; &lt;name&gt;Product 2&lt;/name&gt; &lt;description&gt;Product 2 is good&lt;/description&gt; &lt;price&gt;25&lt;/price&gt; &lt;/product&gt; &lt;/catalog&gt; </code></pre> <p>And in proxy-config.xml under the WEB-INF/flex:</p> <pre><code>&lt;destination id="getXML"&gt; &lt;properties&gt; &lt;url&gt;http://localhost:8080/FlexTest/index.jsp&lt;/url&gt; &lt;/properties&gt; &lt;/destination&gt; </code></pre> <p>In the main.mxml, the httpservice as follow:</p> <pre><code>&lt;mx:HTTPService id="httpService" destination="getXML" useProxy="true" /&gt; </code></pre> <p>Corresponding DataGrid:</p> <pre><code> &lt;mx:DataGrid dataProvider="{httpService.lastResult.catalog.product}" x="405" y="130" width="329" height="166"/&gt; </code></pre> <p>But when I click the button to execute httpService.send(), some errors has been thrown up as follow:</p> <pre><code>[RPC Fault faultString="Error sending request" faultCode="Server.Proxy.Request.Failed" faultDetail="Connection refused: connect"] </code></pre> <p>at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::faultHandler()[C:\autobuild\3.5.0\frameworks\projects\rpc\src\mx\rpc\AbstractInvoker.as:290] at mx.rpc::Responder/fault()[C:\autobuild\3.5.0\frameworks\projects\rpc\src\mx\rpc\Responder.as:58] at mx.rpc::AsyncRequest/fault()[C:\autobuild\3.5.0\frameworks\projects\rpc\src\mx\rpc\AsyncRequest.as:103] at NetConnectionMessageResponder/statusHandler()[C:\autobuild\3.5.0\frameworks\projects\rpc\src\mx\messaging\channels\NetConnectionChannel.as:581] at mx.messaging::MessageResponder/status()[C:\autobuild\3.5.0\frameworks\projects\rpc\src\mx\messaging\MessageResponder.as:222]</p> <p>I hope someone could help me solve it out, thanks a lot.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload