Adobe Dreamweaver Forums



Last 10 THreads :         Suddenly can't see files on remote server (Last Post : GDrink9085 - Replies : 9 - Views : 10 )           »          how do I add a table to a preformed template that I got? (Last Post : Murray *ACE* - Replies : 8 - Views : 13 )           »          Adobe Flash 10 kills Wimpy (Last Post : midiwriter - Replies : 42 - Views : 259 )           »          swapping images using AS3 only (Last Post : guestonian - Replies : 0 - Views : 1 )           »          passing data from Coldfusion to Flash (Last Post : macanimation - Replies : 1 - Views : 3 )           »          Publishing 16000 frames (Last Post : NedWebs - Replies : 5 - Views : 6 )           »          Flash CS4 3D Spray Brush Tool (Last Post : poodyglitz - Replies : 0 - Views : 1 )           »          Changing platforms (Last Post : Murray *ACE* - Replies : 1 - Views : 2 )           »          Purple border around my link!! (Last Post : Murray *ACE* - Replies : 3 - Views : 4 )           »          DW CS3 won't work on Vista Business (Last Post : Murray *ACE* - Replies : 3 - Views : 4 )           »         


Home Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
User Info Statistics
Go Back   Adobe Dreamweaver Forums > Other Macromedia/Adobe Products > Flex
 
Tags: , ,



Reply
  #1 (permalink)  
Old 07-24-2008, 02:56 PM
alice_data
 
Posts: n/a
Diggs:
Default RPC Fault String

Hi, Guys:

I am completely new to Flex, and I started using the HTTPService to extract
information using the trial version until I started using the non-trial version
one. When I run the program, it now gives me this:

[RPC Fault faultString="Security error accessing url"
faultCode="Channel.Security.Error" faultDetail="Destination: DefaultHTTP"]
at
mx.rpc::AbstractInvoker/http://www.adobe.com/2006/ flex/mx/internal::faultHandler
()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\Ab stractInvoker.as:216]
at
mx.rpc::Responder/fault()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\Re spon
der.as:49]
at
mx.rpc::AsyncRequest/fault()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\As y
ncRequest.as:103]
at
DirectHTTPMessageResponder/securityErrorHandler()[E:\dev\3.0.x\frameworks\projec
ts\rpc\src\mx\messaging\channels\DirectHTTPChannel .as:368]
at flash.events::EventDispatcher/dispatchEventFunctio n()
at flash.events::EventDispatcher/dispatchEvent()
at flash.net::URLLoader/redirectEvent()

I have installed my Flex on my C drive, and therefore I am a little confused
with the message here.
Does anyone know how I can fix this?

Alice

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"
creationComplete="rssRequest.send()">
<mx:Script><![CDATA[
private function lfnGeneral(item:Object, columnataGridColumn):String
{
var sLabel:String = ""
var sHeaderText:String = column.headerText; //so we can handle the
specific column we are working with
switch (sHeaderText) {
case "OIS ID":
sLabel = item.ois_id;
break;
case "Name":
sLabel = item.name;
break;
case "Physician First Name":
sLabel = item.physician_name.first_name;
break;
case "Physician Last Name":
sLabel = item.physician_name.last_name;
break;
}
return sLabel;
}//lfGeneral

]]></mx:Script>
<mx:HTTPService id="rssRequest" url="http://www.test.com/test/test_flex.php"/>
<!--<mx:Tile id="myFlow"
direction="horizontal"
borderStyle="solid"
paddingTop="10" paddingBottom="10"
paddingRight="10" paddingLeft="10"
verticalGap="15" horizontalGap="10">-->
<mx:Panel id="panel" title="student Information" status="Active"
paddingTop="10" paddingLeft="10" paddingRight="10"
paddingBottom="10">
<mx:Form id="studentinfo" width="600">
<mx:FormHeading label="student nformation"/>
<mx:FormItem label="student ID">
<mx:TextInput id="ois_id" width="100%"/>
</mx:FormItem>

<mx:FormItem label="student Name">
<mx:TextInput id="pname" width="100%"/>
</mx:FormItem>

<mx:FormItem label="Gender" direction="horizontal">
<mx:RadioButton groupName="gendertype"
id="male" label="Male"/>
<mx:RadioButton groupName="gendertype"
id="female" label="Female"/>
</mx:FormItem>

<mx:FormItem label="Age">
<mx:TextInput id="age"/>
</mx:FormItem>

<mx:FormItem>
<mx:Button label="Submit" labelPlacement="right" enabled="true"/>
</mx:FormItem>
</mx:Form>
<mx:VBox width="500">
<mxataGrid id="student_info" width="100%"
dataProvider="{rssRequest.lastResult.students.stud ent}">
<mx:columns>
<mxataGridColumn headerText="OIS ID" />
<mxataGridColumn headerText="Name" />
<mxataGridColumn headerText="Physician FName" />
<mxataGridColumn headerText="Physician LName" />
</mx:columns>
</mxataGrid>
</mx:VBox>
<mx:LinkButton label="Go to BeamData File" click="navigateToURL(new
URLRequest('http://www.test.com/TPU/students/10/be amdata/BeamGeometry.dat'));"/>
</mx:Panel>
<!--</mx:Tile>-->
</mx:Application>



Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 07-24-2008, 09:31 PM
ntsiii
 
Posts: n/a
Diggs:
Default Re: RPC Fault String

If you run the app from under Flex builder, you shouldn't get this error. Are
you? Or are you running it from a web server?

If from a web server, (and sooner or later you will be) then you nee a
crossdomain.xml file on the server serving the data:
http://www.test.com/crossdomain.xml

See the docs, the archive and google for details on the crossdomain.xml file.

Tracy

Reply With Quote
  #3 (permalink)  
Old 07-24-2008, 09:31 PM
alice_data
 
Posts: n/a
Diggs:
Default Re: RPC Fault String

Hi,

Thanks for replying. Yes, I am not running this on the web server, and it
turns out that the RPC appeared because I was importing extra controls that I
don't need.

I will definitely check out this article.
Thanks for the tip.

Alice

Reply With Quote


Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



© Camley Interactive (camley.info) 2008 - all logos and images are copywrite their respective owners.
Proud member of the Camley Interactive Network
All times are GMT. The time now is 10:11 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
Inactive Reminders By Mished.co.uk