Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Later
-
Adobe Flex SDK 3.2 (Release)
-
None
-
None
-
Affected OS(s): All OS Platforms
Language Found: English
Description
Steps to reproduce:
1. Install LCDS and start the tomcat server and the samples database.
2. Create an application that loads the DataService sample from LCDS:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical">
<mx:TextInput />
<mx:SWFLoader id="swf1" source="http://10.132.64.72:8400/lcds-samples/testdrive-dataservice/SampleDataService.swf" />
<mx:SWFLoader id="swf2" source="http://10.132.64.72:8400/lcds-samples/testdrive-dataservice/SampleDataService.swf" />
</mx:Application>
3. Run this application from another server (not 10.132.64.72:8400)
4. In one of the applications, click the button to get data.
Actual Results: Runtime error
If you change the application to load applications from different domains, then you can use the DataService.
ArgumentError: Error #2004: One of the parameters is invalid.
at flash.net::NetConnection/invokeWithArgsArray()
at flash.net::NetConnection/call()
at mx.messaging.channels::NetConnectionChannel/internalSend()
at mx.messaging::Channel/send()
at mx.messaging.channels::PollingChannel/send()
at mx.messaging::ChannelSet/send()
at mx.messaging::MessageAgent/internalSend()
at mx.messaging::Producer/internalSend()
at mx.messaging::AbstractProducer/send()
at mx.rpc::AsyncRequest/invoke()
at mx.data::DataStore/http://www.adobe.com/2006/flex/mx/internal::invoke()
at MethodInfo-4500()
at mx.data::DataStore/http://www.adobe.com/2006/flex/mx/internal::fill()
at mx.data::ConcreteDataService/internalFill()
at MethodInfo-4756()
at mx.data::ConcreteDataService/fill()
at mx.data.mxml::DataService/fill()
at SampleDataService/___SampleDataService_Button1_click()
Expected Results: No error.
Workaround (if any):