RPC fault in HTTPService.

I have successfully deployed my application on a server that
hosts Flex Data Services. However during a HTTPService call from my
application I get the following error. Please can someone throw
some light as what needs to be done. I know am missing a link to
define a channel for RPC call. However I am not sure how to
configure that.
[RPC Fault faultString="Send failed"
faultCode="Client.Error.MessageSend"
faultDetail="Channel.Connect.Failed error
NetConnection.Call.Failed: HTTP: Status 500"]
at mx.rpc::AbstractInvoker/
http://www.adobe.com/2006/flex/mx/internal::faultHandler()
at mx.rpc::Responder/fault()
at mx.rpc::AsyncRequest/fault()
at mx.messaging::ChannelSet/::faultPendingSends()
at mx.messaging::ChannelSet/channelFaultHandler()
at
flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at
mx.messaging::Channel/mx.messaging:Channel::connectFailed()
at
mx.messaging.channels::PollingChannel/mx.messaging.channels:PollingChannel::connectFailed ()
at
mx.messaging.channels::AMFChannel/mx.messaging.channels:AMFChannel::statusHandler()
TIA
~Shishir

Hi Pete,
Thank for your reply. I have tried to answer the queries you
have put in as your reply.
>> In your HTTPService tag, have you set
useProxy="true"?
Yes,
>>If so, are you using your own destination, or are you
relying on the default destination for the proxy service, i.e.
>>DefaultHTTP?
Not Sure, but I guess the defualt destination , coz I have
not created any of my own destinations.
>>Have you looked at the default channels defined for
the proxy service (these are used if you have not explicity
referenced >> any channels in your destination)? Or perhaps
you do have channels referenced in your destination's config?
Am confused. :(. I have not defined anything of my own. No
channels, destinations, or end points.
>>Either way, these references point to a channel
definition in the top level /WEB-INF/flex/services-config.xml. Do
any of >>these channel definition enpoint uris have a
{context.root} token in them? If so, did you specify a
--context-root=/flex >>command line argument to the mxmlc
compiler or flex builder compiler when building your SWF? Did you
also specify a
>>--services=c:/path/to/your/services-config.xml command line
argument when compiling so that the channel definitions
>>make it into the SWF?
How do I specify these command line arguments to the compiler
, while compiling from within the flex builder.
>>Can you test browsing to the channel endpoints and
check they're alive?
No idea, how to do that.
>>Have you got the debug version of the Flash Player?
If so, have you tried adding a <mx:TraceTarget level="0" />
to ensure >>all connectivity information is reported in the
trace output?
No , I dont think I have the debug version, I just downloaded
the file available from the site.
>>Perhaps you're making changes to the configuration
files and forgetting to restart the server? Or perhaps Flex Builder
>>isn't really recompiling your SWF? Can you try forcing a
clean and recompile?
I have not made any changes to any of the config files, and
therefore I dont need to restart the server I guess. How do I know
if the Flex Builder is really compiling my SWF.
Even more so , with all these hindrances, I am really
baffeled by the fact that when I run my application directly from
the flex builder, the application can access the URLs and retrieve
data. However when I deploy the same onto my OC4J app server (which
has FDS) I start getting this errror. Can you please clarify why
this is so, that my application fails to access internet when I run
it from the server and also how different it is to run the
application from the flex builder than to run it from an
application server with FDS(flex data services).
In anticipation of your reply.
Thanks,
Shishir

Similar Messages

  • [RPC Fault faultString="HTTP/1.1 415 Unsupported Media Type" faultCode="Server.Proxy.Request.Failed"

    Hi,
    Posting in the 'General' forums as well. Did not yet get any response for the topic posted in the 'Configuration and Getting Started Discussion' forum.
    I am having nightmares to call the POST method of a REST service thru Flex. Initially tried with the HTTPService without any proxy server. Wasn't able to call POST, though the GET method was successfully called. Please see the post here (http://www.flexdeveloper.eu/forums/actionscript-3-0/how-to-acces-post-method-of-rest-web -service-thru-flex/)
    b THEN I tried with BlazeDS
    , but with the same results!
    I have set up BlazeDS with the integrated Tomcat option. I have also set up the Flex project as mentioned in the instructions. It is working fine when I run the sample projects.
    But the problem is that
    i when I try to access a
    b POST for a REST service,
    i I get the "HTTP/1.1 415 Unsupported Media Type" fault.
    b The complete fault I'm getting is: [RPC Fault faultString="HTTP/1.1 415 Unsupported Media Type" faultCode="Server.Proxy.Request.Failed" faultDetail="HTTP/1.1 415 Unsupported Media Type"]
    at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::faultHandler()[E:\dev \3.1.0\frameworks\projects\rpc\src\mx\rpc\AbstractInvoker.as:218]
    at mx.rpc::Responder/fault()[E:\dev\3.1.0\frameworks\projects\rpc\src\mx\rpc\Responder.as:53 ]
    at mx.rpc::AsyncRequest/fault()[E:\dev\3.1.0\frameworks\projects\rpc\src\mx\rpc\AsyncRequest .as:103]
    at HTTPMessageResponder/resultHandler()[E:\dev\3.1.0\frameworks\projects\rpc\src\mx\messagin g\channels\HTTPChannel.as:871]
    at HTTPMessageResponder/completeHandler()[E:\dev\3.1.0\frameworks\projects\rpc\src\mx\messag ing\channels\HTTPChannel.as:940]
    at ChannelRequestLoader/callEventCallback()[E:\dev\3.1.0\frameworks\projects\rpc\src\mx\mess aging\channels\HTTPChannel.as:1155]
    at ChannelRequestLoader/completeHandler()[E:\dev\3.1.0\frameworks\projects\rpc\src\mx\messag ing\channels\HTTPChannel.as:1191]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at flash.net::URLLoader/onComplete()
    I have added correct entry to the policy-config.xml (I know this because the GET for the same REST service is working).
    b Only the POST thing is giving me the fault!
    Appreciate any inputs. (am in need of 'em badly)
    thanks
    BJG

    My guess is that the Server/Rest service doesn't like the content type of the request. HTTPService uses a content type of application/x-www-form-urlencoded by default. Maybe the Rest service is expecting the request to be XML? If that's the case, you need to set the contentType property of the HTTPService to application/xml.
    Sometimes an HTTP sniffer/proxy such as Charles can be useful for debugging these kinds of issues. If my suggestion doesn't help, capture the HTTP request and response using a HTTP sniffer like Charles and post back to this thread with it and someone will take a look at it for you. Thanks.
    -Alex

  • I am getting  "RPC Fault" at Debugging

    I have attached the followings:
    1- My Flex src code
    2- My .xml data file code
    3- The RPC Fault exception that I am getting whenever I
    debug.
    I am incapable of sorting this out on my own. I need
    help.

    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="absolute"
    initialize="ilungaService.send()">
    <mx:Script>
    <![CDATA[
    import mx.rpc.events.ResultEvent;
    private function resultHandler(event:ResultEvent):void
    var test:XMLList = new XMLList();
    test = event.result.ilungas;
    ]]>
    </mx:Script>
    <mx:HTTPService id="ilungaService"
    url="c:\testfromweb.xml"
    result="resultHandler(event)" resultFormat="e4x" />
    </mx:Application>
    you need a path... that worked... once i set that..
    2.. if your doing xml give your returned format a "e4x"
    3.. you should have some fault handler....

  • RPC Fault at Transport level?

    One of our Flash programmers is receiving the following error in Flex when connecting to an external MS-SQL DB server.
    "[RPC Fault faultString="A Transport-level error has occurred when receiving results from the server. (provider: TCP Provider, error: 0 -- The specified network name is no longer available.)"  faultCode="Server.Processing" faultDetail="null"]
    Apparently my googlefu is no good today as I've not found anything remotely close yet.  Any assistance would be greatly apparectiated.
    Thanks

    Please see attached images which I have got,
    I am using:
    Latest BlazeDS + Flex 3.0 plugin.
    Server JBoss 4.0.2
    I am not getting exactly why this is working so?

  • RPC Fault faultString="HTTP request error"

    Hi I built a project from an existing fxp file.. But when I try to run it I receive tthis error.. What is wrong??
    [RPC Fault faultString="HTTP request error" faultCode="Server.Error.Request" faultDetail="Error: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032:
    I am sure that the fxp file is correct as I tested it to another computer.....
    Please it is urgent!!
    the whole error is this
    [RPC Fault faultString="HTTP request error" faultCode="Server.Error.Request" faultDetail="Error: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032: Stream Error. URL: http://localhost:8888/*/Applications/MAMP/htdocs/*/php/get_course.php"]. URL: http://localhost:8888/*/Applications/MAMP/htdocs/V3_tutor_for_CODE_2/php/get_course.php"]
              at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::faultHandler()[C:\autobuild\3.x\frameworks\projects\rpc\src\mx\rpc\AbstractInvoker.as:290]
              at mx.rpc::Responder/fault()[C:\autobuild\3.x\frameworks\projects\rpc\src\mx\rpc\Responder.a s:58]
              at mx.rpc::AsyncRequest/fault()[C:\autobuild\3.x\frameworks\projects\rpc\src\mx\rpc\AsyncReq uest.as:103]
              at DirectHTTPMessageResponder/errorHandler()[C:\autobuild\3.x\frameworks\projects\rpc\src\mx \messaging\channels\DirectHTTPChannel.as:368]
              at flash.events::EventDispatcher/dispatchEventFunction()
              at flash.events::EventDispatcher/dispatchEvent()
              at flash.net::URLLoader/onComplete()

    Maybe the URL you are accessing is not available from that computer.

  • RPC fault when calling a CFC from flex

    Hello there,
    I'm having some startup problems getting Flex and Colfusion 8
    to play nice with FDS. I'm using Flexbuilder 2.0.1 and Coldfusion 8
    developer edition on IIS on a windows box (XP professional).
    I use a very simple test CFC in my coldfusion site with just
    one function called 'getstring' which, surprise, surprise returns a
    string. I want to show this string on a label in my Flex frontend
    by using <mx:remoteobject>, the whole thing compiles
    perfectly, I use this mxml:
    <mx:RemoteObject id="TestService"
    source="cfc.DataTest"
    destination="ColdFusion"
    concurrency="multiple"
    makeObjectsBindable="true"
    showBusyCursor="true">
    <mx:method name="getString"
    result="doResult(event.result)" fault="doFault(event.fault)"/>
    </mx:RemoteObject>
    but after calling the remote method I get this error back:
    [RPC Fault faultString="coldfusion.xml.rpc.CFCServlet cannot
    be cast to coldfusion.runtime.CFPage" faultCode="Server.Processing"
    faultDetail="null"]
    Which is the same type of error I get when I call a CFC
    directly through the address bar in my browser, for example
    http://localhost/cfc/datatest.cfc
    I tried googling the error message but so far found nothing
    that indicated what I'm doing wrong...
    I'd really appreciate some help here, if you need more info
    let me know...
    thanx in advance

    Ok, nevermind, I figured out what I was doing wrong. I had
    accidentally setup my application.cfc in a wrong way, I had set all
    of the onrequest en onapplication event handlers to
    access="package" instead of "public", this generated an error
    ofcourse...
    I'll just go bang my head against a wall for a while
    now....

  • RPC Fault

    I built a simple RPC web service, deployed successfully on
    Tomcat/Axis2-1.3. I tested it and it is working.
    I built a "SimpleWeatherClient.mxml" that seems to send the
    request to the server, receive a response, but fail to process the
    result. I've attached the error message, the source code for the
    client, and the WSDL. Is this a bug?
    Error message:
    [RPC Fault faultString="Cannot find definition for type '
    http://data.pojo.sample/xsd::Weather'"
    faultCode="DecodingError" faultDetail="null"]
    at mx.rpc.soap::Operation/
    http://www.adobe.com/2006/flex/mx/internal::processResult()
    at mx.rpc::AbstractInvoker/
    http://www.adobe.com/2006/flex/mx/internal::resultHandler()
    at mx.rpc::Responder/result()
    at mx.rpc::AsyncRequest/acknowledge()
    at private::DirectHTTPMessageResponder/completeHandler()
    at
    flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at flash.net::URLLoader/flash.net:URLLoader::onComplete()
    at [io]

    Any chance you could try out a nightly build of the Flex 3
    SDK Beta from Adobe Labse?
    http://labs.adobe.com/technologies/flex/sdk/flex3sdk.html
    If you're using Flex 2.0.1, some fixes have been backported
    to the Flex 2.0.1 branch and are also available through the night
    builds on Labs:
    http://labs.adobe.com/technologies/flex/sdk/flex2sdk.html

  • RPC Fault in IE

    I've got a very complex ~9k lines of code front and back end
    that I've been developing over the past two months. I've done all
    of my development work using Firefox, and today when I went to show
    the client - guess what!
    [RPC Fault faultString="Send failed"
    faultCode="Client.Error.MessageSend"
    faultDetail="Channel.Connect.Failed error
    NetConnection.Call.Failed: HTTP: Status 200"]
    at mx.rpc::AbstractInvoker/
    http://www.adobe.com/2006/flex/mx/internal::faultHandler()[C:\dev\enterprise_gmc\framework s\mx\rpc\AbstractInvoker.as:192
    at
    mx.rpc::Responder/fault()[C:\dev\enterprise_gmc\frameworks\mx\rpc\Responder.as:56]
    at
    mx.rpc::AsyncRequest/fault()[C:\dev\enterprise_gmc\frameworks\mx\rpc\AsyncRequest.as:107]
    at
    mx.messaging::ChannelSet/mx.messaging:ChannelSet::faultPendingSends()[C:\dev\enterprise_g mc\frameworks\mx\messaging\ChannelSet.as:962]
    at
    mx.messaging::ChannelSet/channelFaultHandler()[C:\dev\enterprise_gmc\frameworks\mx\messag ing\ChannelSet.as:710]
    at
    flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at
    mx.messaging::Channel/mx.messaging:Channel::connectFailed()[C:\dev\enterprise_gmc\framewo rks\mx\messaging\Channel.as:736]
    at
    mx.messaging.channels::PollingChannel/mx.messaging.channels:PollingChannel::connectFailed ()[C:\dev\enterprise_gmc\frameworks\mx\messaging\channels\PollingChannel.as:203]
    at
    mx.messaging.channels::AMFChannel/mx.messaging.channels:AMFChannel::statusHandler()[C:\de v\enterprise_gmc\frameworks\mx\messaging\channels\AMFChannel.as:294]
    This is the first time I have run as complex an application
    as this in IE. The application uses a ColdFusion back end via
    RemoteObject method calls. As I've stated the compiled swf's run
    fine under Firefox, but I get the above error in IE.
    Anyone have any thoughts?

    It appears from reading your error message that the file is
    linked to a fixed location
    Flex can't access local file system resources so you're going
    to have to either supply a URL to the file or move it so it is in
    the same directory as the Flex files and remove the filepath to the
    file.

  • Error #1009: RPC Fault - (Really strung out here!)

    Did some searches on this but can't seem to find anything
    definitive. I have an ASP.NET Web Service that I have test via IE
    and it is working. I have FB2 and FDS, but just trying to call a
    simple WebService direcly like (extracts of the code below):
    ============================================
    <mx:WebService id="srv"
    useProxy="false"
    wsdl="
    http://localhost/RM_Starter/Find_Patterns.asmx?wsdl"
    >
    <mx:operation name="ShowMyPatterns" >
    <mx:request>
    <param1>
    param1
    </param1>
    <param2>
    param2
    </param2>
    </mx:request>
    </mx:operation>
    </mx:WebService>
    ================================
    And I fire off the send from a button like this. I know this
    gets fired off and works and I see IIS log the GET for it:
    private function initBtn():void
    srv.ShowMyDayPatterns.send();
    =======================================================
    But when that fires I get the following error message:
    [RPC Fault faultString="Error #1009: Cannot access a property
    or method of a null object reference." faultCode="EncodingError"
    faultDetail="null"]
    at mx.rpc.soap::Operation/
    http://www.adobe.com/2006/flex/mx/internal::invokePendingCall()[C:\dev\enterprise_gmc\fram eworks\mx\rpc\soap\Operation.as:582
    at mx.rpc.soap::Operation/
    http://www.adobe.com/2006/flex/mx/internal::invokeAllPending()[C:\dev\enterprise_gmc\frame works\mx\rpc\soap\Operation.as:428
    at
    mx.rpc.soap::WebService/mx.rpc.soap:WebService::unEnqueueCalls()[C:\dev\enterprise_gmc\fr ameworks\mx\rpc\soap\WebService.as:861]
    at mx.rpc.soap::WebService/
    http://www.adobe.com/2006/flex/mx/internal::wsdlHandler()[C:\dev\enterprise_gmc\frameworks \mx\rpc\soap\WebService.as:667
    at
    flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at
    mx.rpc.soap::WSDLParser/dispatchEvent()[C:\dev\enterprise_gmc\frameworks\mx\rpc\soap\WSDL Parser.as:788]
    at
    mx.rpc.soap::WSDLParser/mx.rpc.soap:WSDLParser::parseCompleted()[C:\dev\enterprise_gmc\fr ameworks\mx\rpc\soap\WSDLParser.as:305]
    at mx.rpc.soap::WSDLParser/
    http://www.adobe.com/2006/flex/mx/internal::httpResultHandler()[C:\dev\enterprise_gmc\fram eworks\mx\rpc\soap\WSDLParser.as:181
    at
    flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
    IT WASN"T THIS HARD BEFORE! Is there something in the FDS
    files that have to be configured? What am I missing here?

    FlashPlayer 9.0.124 has increased restrictions with its
    security model.
    For URL based access (FlashLoader) you need the
    crossdomain.xml in the server root. For socket based access you
    need a socket policy file and a policy file server (assumingly).
    I haven't been able to get the latter working. See my cry for
    help here:
    http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=60&catid=585&threadid =1360744
    Adobe has more info here:
    http://www.adobe.com/devnet/flashplayer/articles/fplayer9_security.html

  • RPC Fault - remote Object / cfc

    Hi,
    I have had a problem for a long time now. It happens when I  run applications from Flex Builder 3 that call remoteObjects that  again calls coldFusion cfc-files. The first time I run the applications after I have started Flex Builder, it always works ok. But after 5 - 10 minutes  of using Flex Builder without running the application in the browser… if I then run the appication, I get an error after the browser has loaded the swf-file. If I refresh the browser after the error occur , it works fine.
    This error only happens on my local coldFusion development server (built in). When I deploy the applications, everything works fine all the time.
    The error I get is as follows:
    An ActionScript error has occurred:
    [RPC Fault faultString="java.lang.NullPointerException" faultCode="Server.Processing" faultDetail="null"]
    at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::faultHandler()[C:\autobuild\3.2.0\frameworks\p rojects\rpc\src\mx\rpc\AbstractInvoker.as:220]
    at mx.rpc::Responder/fault()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\rpc\Responder .as:53]
    at mx.rpc::AsyncRequest/fault()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\rpc\AsyncR equest.as:103]
    at NetConnectionMessageResponder/statusHandler()[C:\autobuild\3.2.0\frameworks\projects\rpc\ src\mx\messaging\channels\NetConnectionChannel.as:569]
    at mx.messaging::MessageResponder/status()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx \messaging\MessageResponder.as:222]
    Can anybod help me on this one?
    Thanks

    Ok, nevermind, I figured out what I was doing wrong. I had
    accidentally setup my application.cfc in a wrong way, I had set all
    of the onrequest en onapplication event handlers to
    access="package" instead of "public", this generated an error
    ofcourse...
    I'll just go bang my head against a wall for a while
    now....

  • Cairngorm - RPC Fault Error

    I am calling a web service to update. If I click the very
    first time everything works fine. If I then click again I get the
    error below. All I am doing is passing one AS VO object and
    poulating it with fields from a page. Since this works the first
    time, I feel the issue is with the web service. I'm using the
    Cairngorm framework but based on the message it looks more like a
    RPC error than anything. Can anyone help?
    [RPC Fault faultString="Array of input arguments did not
    contain a required parameter at position 2"
    faultCode="Client.Input" faultDetail="null"]
    at
    mx.rpc.soap::Operation/mx.rpc.soap:Operation::createFaultEvent()
    at mx.rpc.soap::Operation/
    http://www.adobe.com/2006/flex/mx/internal::invokePendingCall()
    at mx.rpc.soap::Operation/send()
    at Function/
    http://adobe.com/AS3/2006/builtin::apply()
    at mx.rpc.soap.mxml::Operation/send()
    at Function/
    http://adobe.com/AS3/2006/builtin::apply()
    at mx.rpc::AbstractService/
    http://www.adobe.com/2006/actionscript/flash/proxy::callProperty()
    at aware.business::AwareDelegate/SaveGeneralUser()
    at aware.commands.user::UpdateGeneralUserCommand/execute()
    at
    carirngorm.control::FrontController/adobe.cairngorm.control:FrontController::executeComma nd()
    at
    flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at
    adobe.cairngorm.control::CairngormEventDispatcher/dispatchEvent()
    at
    aware.view.user::PreferencesViewViewHelper/updateAllGeneralUserInfo()
    at aware.view.user::PreferencesView/___Button1_click()

    I have not figured this out yet. I have searched everywhere
    and event posted the same question here
    http://renaun.com/blog/2007/01/20/178/
    This guy has the Cairngorm store example using web services,
    data services, etc. His code is the exact same as mine. He uses a
    Coldfusion web services though.
    Are you using the exact setup as me? Jrun 4 and calling the
    Axis web service from Flex? Surprised this issue hasnt been solved
    since there seems to be a lot of people building flex applications.
    Hopefully someone will help soon.
    thanks for responding

  • RPC Fault String

    Hai All
    I tried to Integrate Flex with Java Code .Will calling Java
    Method this type of Error throws . I am very New to Flex
    I dont knw why this type of Error Occurs . I am Using Flex 3
    and Tomcat Server 5.5
    [RPC Fault
    faultString="com/emc/documentum/fs/rt/ServiceInvocationException"
    faultCode="Server.Processing" faultDetail="null"]
    at mx.rpc::AbstractInvoker/
    http://www.adobe.com/2006/flex/mx/internal::faultHandler()[E:\dev\3.0.x\frameworks\project s\rpc\src\mx\rpc\AbstractInvoker.as:216
    at
    mx.rpc::Responder/fault()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\Responder.as:49 ]
    at
    mx.rpc::AsyncRequest/fault()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\AsyncRequest .as:103]
    at
    NetConnectionMessageResponder/statusHandler()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx \messaging\channels\NetConnectionChannel.as:523]
    at
    mx.messaging::MessageResponder/status()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\messa ging\MessageResponder.as:222]
    Thanks
    Madhu

    Hi,
    I have the similar problems as you have had, and although I
    don't know Java enough to tell you what problems you have, I can
    tell you that when you see RPC errors, it is usually nothing to do
    with Flex issues.
    There are some errors in your Java code, and you might want
    to debug it again to make sure that it is running properly without
    Flex. That is how I solved mine when I was running into this kind
    of problem using PHP.
    Does this help?
    Alice

  • RPC Fault faultString

    Hi ..
    I createad a simple test application with LCDS, and when I
    run the application with Tomcat 6 as target webserver from Eclipse,
    I am getting the following exception.
    I copied JTOM libraries into Tomcat/lib folder and defined
    the below line in application context.xml under META-INF folder
    <Transaction
    factory="org.objectweb.jotm.UserTransactionFactory" timeout="60"
    />
    I also defined the default channel on destination-config.xml
    with <channel ref="my-rtmp"/>
    [RPC Fault faultString="There was an unhandled failure on the
    server. javax/transaction/SystemException"
    faultCode="Server.Processing" faultDetail="null"]
    at mx.data::ConcreteDataService/
    http://www.adobe.com/2006/flex/mx/internal::dispatchFaultEvent()
    at DataListRequestResponder/fault()
    at mx.rpc::AsyncRequest/fault()
    at NetConnectionMessageResponder/statusHandler()
    at mx.messaging::MessageResponder/status()
    Please let me show some light where I am missing,
    Thanks
    V

    Hi
    I'm working withHi
    I get the same error and I don't know how fix it.
    I'm working with Tomcat 5.5.17 and LCDS using the following
    configuration:
    - JOTM libraries in myApp\WEB-INF\lib;
    - carol.properties file in myApp\WEB-INF\classes with the
    following properties:
    # JNDI (Protocol Invocation)
    carol.protocols=jrmp
    # Local RMI Invocation
    carol.jvm.rmi.local.call=true
    # do not use CAROL JNDI wrapper
    carol.start.jndi=false
    # do not start a name server
    carol.start.ns=false
    # Naming Factory
    carol.jndi.java.naming.factory.url.pkgs=org.apache.naming
    - context.xml file in myApp\META-INF like this:
    <Context reloadable="true" crossContext="true">
    <Resource name="jdbc/myDB" auth="Container"
    type="javax.sql.DataSource"
    factory="org.objectweb.jndi.DataSourceFactory"
    driverClassName="com.mysql.jdbc.Driver"
    username="root" password="openview"
    url="jdbc:mysql://localhost:3306/prova"/>
    <Transaction name="UserTransaction" auth="Container"
    type="javax.transaction.UserTransaction"
    factory="org.objectweb.jotm.UserTransactionFactory"
    jotm.timeout="60"/>
    </Context>
    - and the myApp\WEB-INF\flex\data_management_config.xml as
    follow:
    <?xml version="1.0" encoding="UTF-8"?>
    <service id="data-service"
    class="flex.data.DataService">
    <default-channels>
    <channel ref="my-rtmp"/>
    </default-channels>
    <destination id="dm_anagrafica">
    <adapter ref="java-dao"/>
    <properties>
    <source>openview.sn.AnagraficaAssembler</source>
    <scope>application</scope>
    <metadata>
    <identity property="codid"/>
    </metadata>
    <network>
    <session-timeout>30</session-timeout>
    <paging enabled="true" pageSize="50"/>
    <throttle-inbound policy="ERROR" max-frequency="500"/>
    <throttle-outbound policy="REPLACE"
    max-frequency="500"/>
    </network>
    </properties>
    </destination>
    <adapters>
    <adapter-definition id="actionscript"
    class="flex.data.adapters.ASObjectAdapter" default="true"/>
    <adapter-definition id="java-dao"
    class="flex.data.adapters.JavaAdapter"/>
    </adapters>
    </service>
    Please try to help me.
    Thanks

  • Error while calling HTTPService

    i am getting  [RPC Fault faultString="HTTP request error" faultCode="Server.Error.Request" faultDetail="Error: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032"] error while trying to call a htttpservice.
    the following is the code which i am using to call the httpservice. my flex app and the http service which i am trying to call is located on the same server. if i paste the URL in the browser and click enter i was able to retreive the data.
    but when i use the same URL in the flex its not working. i tried using an application called HTTPanalyzer which logs all the http requests
    made by all the applications.but i couldnt find the flex app making any call to the server at all. i.e. its not actually sending request at all.please help me
    <?xml version="1.0" encoding="utf-8"?>
    <mx:TitleWindow xmlns:mx="http://www.adobe.com/2006/mxml">
        <mx:Script>
            <![CDATA[
                import mx.controls.*;
                import mx.collections.*;
                import mx.managers.PopUpManager;
                import mx.core.Application;
                import mx.events.*;
                [Bindable]
                private function passKeys():void{
                    var params:Object={};
                    params["bu"]=bu.text.toUpperCase();
                    params["poid"]=poID.text.toUpperCase();
                    params["poget"]=Application.application.poadd.poMetaData.toXMLString();
                    Alert.show(http_createPO.url);
                    Application.application.mode="A";
                    http_createPO.send(params);
            ]]>
        </mx:Script>
        <mx:HTTPService id="http_createPO" showBusyCursor="true" url="http://xxxx.com/WEBLIB_FX_DOC.SM_FX_PO.FieldFormula.IScript_createPO" result="Application.application.getPO(event)" resultFormat="xml" fault="Alert.show(event.fault.toString())"/>
        <mx:Button x="134" y="68" label="Create PO" id="createPO" click="passKeys()"/>
           <mx:TextInput x="166" y="11" id="bu"  keyUp="autocomplete(this.bu,event)" fontWeight="bold"/>
        <mx:TextInput x="166" y="37" id="poID" text="Next" fontWeight="bold"  maxChars="8"/>
    </mx:TitleWindow>

    Thanks for the reply guys.
    i had it working.i have not changed anything from the code perspective i tried deleting browser cache and server cache.but its working only on some machines..any iddea guys?

  • Possible memory leak in e4x or HTTPService with e4x format

    Hello,
    I think I have found a memory leak in e4x.
    In very special cases (=xml) the player swallows the memory.
    The little test program connects to a web server for an xml
    file, and the result is converted to an array.
    The array is displayed in a DataGrid.
    There are two files:
    leaktest.xml doesn't leak in any cases (format: e4x or xml)
    pbentries.xml leaks when the format is e4x.
    Choose e4x format and check Use "Leak" file! Than the program
    leaks.
    For the whole test case (mxml file, html file and xml files)
    please contact me at
    [email protected]
    or
    [email protected]
    and I send a zip file as soon as possible.
    Probably there is a bug in my test program. If so than please
    send me a feedback.
    Thanks,
    Lacito
    ------ For the program cut here ------
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="absolute">
    <mx:Script>
    <![CDATA[
    import mx.managers.PopUpManager;
    import mx.core.Application;
    import mx.controls.Alert;
    import mx.rpc.events.FaultEvent;
    import mx.rpc.events.ResultEvent;
    import mx.rpc.http.mxml.HTTPService;
    protected var records_:Array = null;
    protected var httpService:HTTPService = null;
    [Bindable("recordsChange")]
    public function set records(_records:Array):void
    this.records_ = _records;
    var e:Event = new Event("recordsChange");
    dispatchEvent(e);
    public function get records():Array
    return records_;
    protected function getXML():void
    var resultFormat:String = cbResultFormat.selectedItem as
    String;
    var params:Object = new Object();
    httpService = new HTTPService();
    httpService.concurrency = "single";
    httpService.showBusyCursor = true;
    var lastIndex:int = url.lastIndexOf("/");
    var fileName:String = null;
    if(chbUseLeakFile.selected)
    // It leaks... :(
    fileName = "pbentries.xml";
    else
    // It doesn't leak... :)
    fileName = "leaktest.xml";
    var _url:String = url.substr(0, lastIndex+1) + fileName;
    httpService.url = _url;
    httpService.resultFormat = resultFormat;
    httpService.method = "POST";
    httpService.addEventListener(ResultEvent.RESULT,
    processResult);
    httpService.addEventListener(FaultEvent.FAULT,
    processFault);
    httpService.send(params);
    protected function processResult(e:ResultEvent):void
    var resultFormat:String = cbResultFormat.selectedItem as
    String;
    removeListeners();
    if(resultFormat==mx.rpc.http.HTTPService.RESULT_FORMAT_XML)
    setArrayFromXMLNode();
    else
    setArrayFromXML();
    destroyHttpService();
    // format= "e4x"
    protected function setArrayFromXML():void
    var xml_:XML = httpService.lastResult as XML;
    var ar:Array = new Array();
    var x:XML = null;
    var xl:XMLList = xml_.phonebookEntries[0].phonebookEntry;
    for each(x in xl)
    var record:Object = new Object();
    var prop:XML = null;
    var props:XMLList = x.children();
    for each(prop in props)
    record[prop.localName()] = prop.toString();
    ar.push(record);
    records = ar;
    // format= "xml"
    protected function setArrayFromXMLNode():void
    var xml_:XMLNode = httpService.lastResult as XMLNode;
    var ar:Array = new Array();
    var x:XMLNode = null;
    var xl:Array = xml_.lastChild.childNodes;
    for each(x in xl)
    var record:Object = new Object();
    var prop:XMLNode = null;
    var props:Array = x.childNodes;
    for each(prop in props)
    record[prop.localName] = prop.firstChild!=null ?
    prop.firstChild.nodeValue : null;
    ar.push(record);
    records = ar;
    protected function destroyHttpService():void
    httpService.clearResult(false);
    httpService.disconnect();
    httpService = null;
    protected function processFault(e:FaultEvent):void
    removeListeners();
    Alert.show(e.fault.faultString, e.fault.faultCode);
    destroyHttpService();
    protected function removeListeners():void
    httpService.removeEventListener(ResultEvent.RESULT,
    processResult);
    httpService.removeEventListener(FaultEvent.FAULT,
    processFault);
    protected function collect():void
    // Garbage Collection
    try
    new LocalConnection().connect('foo');
    new LocalConnection().connect('foo');
    catch(e:*)
    ]]>
    </mx:Script>
    <mx:ArrayCollection id="alRecords" source="{records}"
    />
    <mx:Label x="10" y="10" text="Result format:"
    id="lResultFormat"/>
    <mx:ComboBox x="104" y="8" id="cbResultFormat">
    <mx:Array>
    <mx:String>e4x</mx:String>
    <mx:String>xml</mx:String>
    </mx:Array>
    </mx:ComboBox>
    <mx:DataGrid id="dgRecords" x="10" y="36" width="936"
    height="437"
    dataProvider="{alRecords}"
    verticalScrollPolicy="auto"
    horizontalScrollPolicy="auto">
    </mx:DataGrid>
    <mx:Button x="355" y="496" label="Get xml" id="btnGetXML"
    click="{getXML();}" />
    <mx:Button x="155" y="496" label="GC" id="btnGC"
    click="{collect();}" />
    <mx:CheckBox x="276" y="10" label="Use
    &quot;LEAK&quot; file:" labelPlacement="left"
    id="chbUseLeakFile" selected="true"/>
    </mx:Application>

    Hello,
    After 3 months (and a new version of flex and flash player)
    my test program is still leaking.
    If somebody could confirm the leak it would be appreciated.
    Thanks,
    Lacito
    P.S.: I heard that Adobe had donated ActionScript 3 VM to
    Mozilla.org. Should I disturb them with my problem?

Maybe you are looking for

  • Service entry sheet quantities and UOM not flowing into accounting document

    Hi All, I have a problem at the moment where the quantities and unit of measure entered in a service entry sheet, are being changed to '1 ACT' for all line items in the accounting document. We would like the real quant /UOM to be transferred here. We

  • Random power off and screen blinking

    I've had my droid for almost a year now and am very happy with it, but recently i've been having a few issues. Today it turned itself off in the middle of a phone call, my fingers were not near any button to cause this, and when I turned it back on I

  • How to set Satuday/Sunday to NORM work?

    Hi Gurus, I am facing such problem,pls shed some light! Orginal WS Rule: 2008/12/29_2008/12/30_2008/12/31_2009/01/01_2009/01/02_2009/01/03_2009/01/04 MON______TUE_______WEN_____THU_______FRI_______SAT_______SUN_____ NORM_____NORM_____NORM____NORM____

  • Is HP Device Manager Supporting Apple Contacts (Address Book) in OS X Yosemite when computer faxing?

    Hi, I am trying to select best possible printer for our small office which will let us use os x's power and integritiy to do a lot with less effort. Hp Office Jet Pro X576 and 8630 look very promising to me. As a power user, recent mac switcher I was

  • Sync does not work- multiple desktop FF

    Sync does not allow adding more than one DESKTOP FF in order to sync multiple desktop FF (e.g: work, home, & friends , etc..) I do not like to use an add-on.