BlazeDS and Flex Client Deployed on Different Servers

Hi, I setup a BlazeDS AMF endpoint on a different server from the server where my Flex app is deployed. I get the following error from my Flex app when trying to use this endpoint:
   faultCode: Client.Error.MessageSend
   faultDetail: Channel.Security.Error error Error #2048 url: 'http://cafrfd1y5css50.itsdo.abc.com:7000/sfaflexservice/amf'
   faultString: Send failed
   rootCause:
       [ChannelFaultEvent
        faultCode="Channel.Security.Error"
        faultString="error"
        faultDetail="Error #2048 url: 'http://cafrfd1y5css50.itsdo.abc.com:7000/sfaflexservice/amf'"
        channelId="my-amf"
        type="channelFault"
        bubbles=false
        cancelable=false
        eventPhase=2]
Btw, this setup works fine when my Flex app runs on AIR or as a Flex app (in a browser) from Flex Builder.
This looks like a crossdomain policy issue, so I setup a crossdomain.xml file on the BlazeDS server. When I point my browser to http://cafrfd1y5css50.itsdo.abc.com:7000/crossdomain.xml, I see the following:
    <?xml version="1.0" encoding="UTF-8" ?>
    <cross-domain-policy>
       <allow-access-from domain="*.abc.com" />
    </cross-domain-policy>
Looks good, but I get the same error...
So I monitored the interaction with Fiddler to see if the crossdomain.xml file is loaded. It is. When the service is activated, I see the following GET command in Fiddler:
     GET /crossdomain.xml HTTP/1.1
     Host: cafrfd1y5css50.itsdo.abc.com:7000
And the response contains the contents of the crossdomain.xml file, so I don't know what's going on.
My configuration is:
-- Browser: IE7 or FireFox v3.5 with Flash Player v10.
-- Flex app uses the 3.4 SDK and is deployed on a Tomcat v6 server.
-- BlazeDS server is WebLogic v9.
-- Endpoint definition from services-config.xml on the BlazeDS server is:
   <channel-definition id="my-amf" class="mx.messaging.channels.AMFChannel">
     <endpoint url="http://{server.name}:{server.port}/{context.root}/messagebroker/amf" class="flex.messaging.endpoints.AMFEndpoint"/>
   </channel-definition>
-- Endpoint in the Flex app is defined as follows:
   <channel alias="FlexBean">
      <channel_def>my-amf</channel_def>
      <endpoint>http://cafrfd1y5css50.itsdo.abc.com:7000/sfaflexservice/amf</endpoint>
      <destination>FlexService</destination>
   </channel>
Any ideas would be much appreciated...
thanks,
matt

Thanks for the reply, Alex.
I tried setting the domain in the crossdomain policy file to "*", but I got the same error, so I turned on client side logging. The error in the log was:
Error: [strict] Ignoring policy file at http://cafrfd1y5css50.itsdo.abc.com:7000/crossdomain.xml due to missing Content-Type.
See http://www.adobe.com/go/strict_policy_files to fix this problem.
Using Fiddler, I checked the content-type that WebLogic was using for crossdomain.xml. Much to my surprise, there wasn't a content-type in the response, only content-length. So in the web.xml file for this application, I added the following:
<mime-mapping>
    <extension>xml</extension>
    <mime-type>text/xml</mime-type>
</mime-mapping>
Now, the crossdomain.xml file is served with a content-type of "text/xml", and the call to the BlazeDS endpoint works.
Thanks for steering me in the right direction, Alex.
cheers!
matt

Similar Messages

  • Logical systems assignment when SRM and ECC are on 2 different servers

    Hi SRM guru's,
    What is the standard practice for Logical system creation and assignment when  ECC and SRM are on 2 different servers.
    I could not able to find which i created a logical system  in SRM server which i created in ECC
    Same for the ECC also.
    how do i assign logical system of SRM to ECC
    vice versa.
    your prompt response is appreciated.
    Regards

    Hi Sai,
    Logical System Naming/Creation procedure is not dependent on the servers but it is just a logical representation of a system.
    As you are trying to name logical systems for ECC & SRM, please follow the below procedure which is usually recommeded by SAP and followed.
    Logical System : <SID>CLNT<Client Number>
    For Example if you have a client 300 in system DE0 (also called SID), the logical system name will be DE0CLNT300. And it will be same for SRM system.
    You can refer the below document which eplains the creation of logical system and RFC destinations etc
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/CABFAALEQS/CABFAALEQS.pdf
    Note: Only while configuring the RFC Destination, the servers will play a crucial role.
    Regards
    Kathirvel

  • Blazeds and Flex Mobile

    Hey guy! I need help on a project i'm working on. I just got into Blazeds Remoting for a Flex application because i wanted to use the publish/subscribe model. Coming from a java background this is no problem for me. I've got a Producer component which happens to be in a mobile application and a consumer component which resides on the webser. The Mobile app is meant to publish a mobile phone's GPS details as an object to a server using blazeds messaging capabilities in which a consumer application reads this data and uses it to display the device's location on google maps. The Consumer side seems to be working fine but anytime the producer sends a message i get fault error like so:
    Channel.Connect.Failed error Net Connection.Failed :HTTP Status 503:URL: http://cmeunit.swf.<webappname>/messagebroker/amfpolling
    Notice the incomplete hostname which is supposed to be acmeunit.swf. I dont know what i'm doing wrong, is there anyway around this.
    Any form of help will be appreciated! thanks!

    Hi l33tian, I'm running into the same problem. Did you find the solution to this? Any help would be appreciated.
    Thank you!    

  • I have AD and Exchange 2010 installed on different servers. can I control both with powershell from the AD server?

    Hi all,
    I have a lab env that include: 2 server 2012 with AD DS, 1 server 2012 with Exchange 2010, 1 server 2012 that I will install later Edge server.
    I have a script that can build all my AD and Exchange infrastructure . This script was tested on single server that hosted both AD DS and Exchange. 
    My question is how to run the script let say from one of the AD DS servers and do his magic also on the Exchange server?
    momu

    Hi,
    Take a look at this:
    https://gallery.technet.microsoft.com/office/Create-a-new-implicit-5fdafe45
    Don't retire TechNet! -
    (Don't give up yet - 13,085+ strong and growing)

  • BlazeDS and FLEX

    Just a very simple question to ask, I'm trying to create a search function. But I have totally no idea that how can i get the parameter from FLEX to the .js in my blazeds service.
    Example: from the project.mxml, textbox1.text data to my javascript.
    Can somebody enlighten me

    Can somebody help me regarding this? Thanks

  • ODI repository and Java EE agent on different servers

    Hi all,
    I ahd created ODI repository on one data server(172.18.59.67) through RCU. Now due to some memory issues i ahd to install the ODI software on another server (172.18.41.44) and also configured the java ee agent on this second server. Will that be a problem while invoking web service through ODI?
    Thanks and Regards,
    Sourav

    Hi SH
    But while testing a web service through ODI web service (my agent is connecting successfully)... i am getting this error:-
    1#Error in ODI invocation WS ODIInvoke. ODI-1274: Agent Exception
    Caused by: oracle.odi.core.config.WorkRepositoryResourceFailureException:
    oracle.odi.core.exception.OdiRuntimeException:
    oracle.odi.core.exception.OdiRuntimeException:
    Failed to lookup dataSource from JNDI for name {java:comp/env/jdbc/odiWorkRepository
    where am i going wrong?
    Regards,
    Sourav

  • Installing Workspace and Financial Reporting on two different servers

    Hello Gurus,
    I was wondering if anyone can help me with an issue I am having.
    I want to install Workspace on Server 1 and Financial Reporting on Server 2. Is it possible to configure Financial Reporting components which is on Server 2 with Workspace on Server 1..? Shared service is installed on Server 1.
    Regards,
    Saurabh

    Hi Memmet,
    Yesterday we tried setting up an environment similar to the doubt that I had and here are the results.
    Components in Server 1 : Database, Shared Services, Workspace and Financial Reporting Components
    Components in Server 2: Only Financial Reporting Components[Configured with the Database for Workspace on Server1].
    Now FR studio on Server 1 works absolutely fine without any errors, but when we try to login to the FR studio that is on Server 2 it gives error that I am not authorized to access.
    I referred the document which is in My Oracle support but that did not help much and also provisioned the user with all the required rights in Shared service.
    I would like to know if we can have Financial Reporting from Server 1 and Server 2 configured with the same Workspace simultaneously, so that if someone updates any report from the workspace the same are reflected in both the FR studio.
    Regards,
    Saurabh
    Edited by: Saurabh on Mar 7, 2012 12:07 AM

  • May DTR and NWDI be installed on different servers?

    We have a need to seperate DTR and NWDI.
    However we dont know if this is possible.
    Please advise. I'll give points.

    This information of which system has DTR and which has CBS is required when you are creating a TRACk.
    check the link below,
    http://help.sap.com/saphelp_nw04s/helpdata/en/36/a9de3f68d48f15e10000000a155106/frameset.htm
    when you define a trach you are askled for DTR url , where in you can specify the complete address of the system where DTR is installed.
    Regards,
    Yomesh

  • Urgent: Same BPEL code, different servers, different results in deployment

    Hi everybody,
    I need some urgent assistance as I am nearing a Go-live deadline.
    I have some BPEL code (10.1.3.3) which I attempt to deploy from JDeveloper (10.1.3.4).
    When I deploy to development environment it deploys fine.
    When I try to deploy to test environment I get the following error:
    [Error ORABPEL-10902]: compilation failed
    [Description]: in "bpel.xml", XML parsing failed because "undefined part element.
    In WSDL at "file:/oradata/OracleAS_1/bpel/domains/outboundnoterepository/tmp/.bpel_RealWSDL_1.0_75ea24906b156b639e4531aa3ef007fb.tmp/nrwsdl/nr/RCMR_AR000002NR01.wsdl", message part element "{urn:hl7-org:v3}MCCI_IN002200NR01" is not defined in any of the schemas.
    Please make sure the spelling of the element QName is correct and the WSDL import is complete.
    This makes no sense to me. If there was a problem with the "{urn:hl7-org:v3}MCCI_IN002200NR01" element it should be the same whether I deploy to development or test environment.
    The only thing I have changed is the endpoint of an invokation from the process - and I even tried not changing that to no avail.
    Does anyone have any idea what is going on here?
    Your help is much appreciated!
    Kind regards,
    Mathias

    Hello f1fan,
    just to be sure, are you getting the same message stating
    {noformat}
    In WSDL at "file:/oradata/OracleAS_1/bpel/domains/outboundnoterepository/tmp/.bpel_RealWSDL_1.0_75ea24906b156b639e4531aa3ef007fb.tmp/nrwsdl/nr/RCMR_AR000002NR01.wsdl", message part element "{urn:hl7-org:v3}MCCI_IN002200NR01" is not defined in any of the schemas.
    {noformat}
    when deploying your process? Or is it just a different behavior when deploying to different servers?
    The first issue might arise from an import statement in the wsdl file having a location that could not be resolved on the BPEL server. Do you use imports and if so, are you using a URL or a local relative path?
    Cheers,
    Marco

  • Repository and data on different servers

    I look for information about installing HTML DB.
    Is it possible to instal HTML DB repository and application data on two different servers? If yes, how.
    Thanks,
    SL

    Yes, but you have to use db links which are a bit slow. Basically, think of HTML DB as working with only the data in the db in which it is installed. You can use the standard Oracle db techniques, such as Materialized Views over db links to get the data local, or again, use just db links. Your app will parse it's PL/SQL and SQL as a SCHEMA in the db in which HTML DB is installed.
    Tyler

  • BlazeDS and ActiveMQ ?

    Hi all,
         I read some things about ActiveMQ (version 5). I have been using Flex (version 3) and BlazeDS server and Java work together.
         Java client  (publish) send messages to ActiveMQ server and after that this messages send to BlazeDS (from ActiveMQ) and flex client (subscribe) show them
         Also, I search at google to found the connection style beetween ActiveMQ, BlazeDS, Flex and Java. Especially, how configure ActiveMQ contact with BlazeDS ?
         Can show me some link and examples about this problem ?
    Thanks.

    I would configure your application server to have a short HTTP session timeout. The issue is that when the client application is shutdown without unsubscribing the Consumer the server still thinks the Consumer is alive and queues up messages to be delivered to it. This can be a problem if messages are being pushed at too fast a rate or if you have a long HTTP session timeout because lots of undelivered messages will be hanging around in memory. When the client application is connected to the server it will keep the HTTP session alive so I don't think there is much point in using a long session timeout. Most app servers have a default of about 30 minutes for the session timeout I believe. I would try changing this to be just 1 or 2 minutes and see if it helps your memory problems.
    Setting message-time-to-live on the destination may not work if the messages have already been put in the queue of outbound messages to be sent to the Consumer. I would need to take a look at that more closely but I think in this case changing the HTTP session timeout is a better approach.
    Hope that helps.
    -Alex   

  • CFLOGIN works, but not simultaneously on different servers/broswers

    I'm using CFLOGIN with application.cfc which works great when I test it - I'll call it login session A in browser window 1.
    When I simultaneously log into the same app on a different server with a different username (login session B in browser window 2), I can't login - unless I log out out of session A/browser window 1 first. Something in my new code is preventing me from logging into my app more than one time, even when the apps are on separate servers and I'm using different usernames.
    We have the same app on various servers (test/development/production), and I used to be able to login on 2-3 browsers or servers at a time - and I never had a problem until recently when I made some changes to the application.cfc and login code.
    I updated the code because before the session scopes and login credentials were not being initiated and terminated together (upon login/logout). Before, a user was clicking 'logout' and it was clearing the session scopes without invoking CFLOGOUT. Now, I fixed that, but I have another problem, which is that I can't log into the application on two different browsers or servers at the same time (even if I'm using different login usernames). Any suggestions would be appreciated.
    <cfcomponent displayname="Application" output="false">
        <cfset this.name = 'SampleApp'>
        <cfset this.SessionManagement = true>
        <cfset this.SetClientCookies = true>
        <cfset this.SessionTimeout = CreateTimeSpan( 0, 0, 5, 0 ) />
    <cffunction name="onSessionStart" access="public" returntype="void" output="false">
        <cfset session.hostname = 'http://'&#CGI.HTTP_HOST#&'/'>
        <cfset session.dbase = 'localdb'>
        <cfset session.roles = ArrayNew(1)>
        <cfreturn>
    </cffunction>
    <cffunction name="onApplicationStart" access="public" returntype="boolean" output="false">
        <cflog file="SampleApp" type="information" text="Application started." />
        <cfreturn true>
    </cffunction>
    <cffunction name="onApplicationEnd" returntype="void" output="false" hint="Executes on session timeout or if server shuts down.">
        <cfcookie name="CFID" value="#CFID#" expires="now">
        <cfcookie name="CFTOKEN" value="#CFTOKEN#"  expires="now">
        <cfreturn>
    </cffunction>
    <cffunction name="onRequestStart" access="public" returntype="void" output="true" hint="Executes before each page processes.">
        <cfargument name="targetPage" type="String" required="true"/>
            <cfsilent>
            <cfif GetAuthUser() NEQ ''>
                <cfif NOT isDefined('session.uname')>
                    <cfif CGI.HTTP_REFERER DOES NOT CONTAIN "login.cfm">
                        <cfinclude template="expired.cfm">
                        <cfabort>
                    </cfif>
                </cfif>
            </cfif>
            <cflogin>  
                <!--- Flash Remoting setCredentials() passes cflogin.user and cflogin.password using checklogin.cfc --->
                <cfif IsDefined('cflogin')>        
                    <cfquery name="qValidateLogin" datasource="#session.dbase#" username="#cflogin.name#" password="#cflogin.password#">
                        SELECT    role
                        FROM    session_roles
                    </cfquery>
                    <cfif qValidateLogin.RecordCount GT 0>
                        <cfloginuser name="#cflogin.name#" password="#cflogin.password#" roles="#qValidateLogin.ROLE#">
                        <cflog text="User - #cflogin.name#" type="Information" file="Filename" date="yes" time="yes">
                    <cfelse>
                        <cfinclude template="login.cfm">
                        <cfabort>
                    </cfif>
                <cfelse>
                    <cfif right(arguments.targetPage,10) is "logout.cfm">
                        <cflocation url="index.cfm">
                        <cfabort>
                    <cfelse>              
                        <cfinclude template="login.cfm">
                        <cfabort>  
                    </cfif>          
                </cfif>
            </cflogin>
            </cfsilent>      
    </cffunction>
    </cfcomponent>

    Oh no, that was my mistake. Thank you for catching that! That query is currently not being used on my Application.cfc page, which is why I wasn't having problems with it, but I'm glad you pointed it out to me. I had that code in my Application.cfc file just incase I wanted to check login from somewhere else, but my login query is actually being called with Flash Remoting using setCredentials() to connect to login.cfc. This is the correct query in my login.cfc file:
                <cfquery name="qValidateLogin" username="#session.uname#" password="#session.pword#" datasource="#session.dbase#">
                    select role from session_roles where role like 'xxxxx%'     
                </cfquery>
    I do think I figured out a solution to my problem though. I found out how to use applicationToken, which I understand if it is not set, by default will be the value of application.Name. If you want users to be able to log into multiple instances of  your application at the same time, you would give the applicationToken the same value. This would be great for clustered servers or sites with sub-domains.
    If you wanted to force only one login for the three different sites, you could give this a different value. VERY useful. So I have:
    <cfcomponent displayname="Application" output="false">
        <cfset this.name = 'SampleApp'>
        <cfset this.SessionManagement = true>
        <cfset this.SetClientCookies = true>
        <cfset this.SessionTimeout = CreateTimeSpan( 0, 0, 5, 0 ) />
        <cfset this.loginStorgage = "session">
        <cfset this.applicationtoken = 'SampleAppSub'>
    Now, I can log into this site on my development machine with multiple browsers pointing to the same site hosted on different servers - with no problem. I never had an issue with this before, but something else I recently added into my code in Application.cfc made this not work. I should probably also mention that I work on many different applications that all use the same application.Name even though they are different sites - we do this so the same settings can be deployed on different servers.
    With the applicationToken settings, I have it working again. Perhaps what made it break was setting this.loginStorage = "session"? Before this was not set and was using the default value of  "cookies" which I didn't want - because my site is used by different people on the same box and we have clustered servers.

  • I need user management system in PHP recommendations to work with Flex client side

    Hi All,
    I have a very big project that involves PHP server side (That i have to develop) and Flex client side. I was wondering it there is a ready made PHP user management system that i can use to provide me:
    - user login/logout
    - forgot my password functionality
    - register (better with captcha)
    Does someone can recommend this kind of php system?

    Hi, guys
    Free and open source PHP User Management Scripts. These scripts  provide a solution of creating a membership system of a website.
    Some PHP user management scripts listed on PHPKode.com. which you can choose the right php user management to meet your demands!
    Hopefully can help you!
    Best regards!
    Anny

  • Distribution Monitor for 2 different servers from 2 different sites

    Hello all,
    We are trying to use Distribution Monitor during a parallel Unicode Conversion on a SAP 4.7 system.
    The source system and target system are 2 different servers located on 2 different sites (more than 500Kms distant).
    Questions:
    1. Can we use Distribution Monitor with 1 source server dedicated for the Export and 1 target server dedicated for the import of a package?
    2. If it is not possible, what are the constraints in fact?
    3. Can we have a scenario where Distribution Monitor is used on the source system in order to use the parallelism benefit and Migration Monitor used on the target system?
    Thanks for your help & feedback,
    Chris

    Hi Chris,
    1. Can we use Distribution Monitor with 1 source server dedicated for the Export and 1 target server dedicated for the import of a package? The Answer is No
    In order to use Distribution monitor, u need minimum two application servers on source systems  and correspondingly atleast minimum two application servers on target system 
    For example let us say Application server A  and Application server B on sources systems and Application Server C and Application server D on target ytem
    Then configure Distribution monitor properties to include two application servers as source systems and two application servers as target systems.  When u exeute distribution monitor preparation, first it scan database servers in source system nd target system  and then scan CI servers in source and target system. Then Packages will be distributed in two application servers A and B
    Run Export from Application server A  for first fifty packages  , at the same time Run import  these first fifty packages in Application Server C
    Run Export from Application Server B  for other remining packages and at the same time , run import the remaining packages into Application Server D.
    (that is one to one correspondence)
    2. If it is not possible, what are the constraints in fact? - There is no constraints. However there is lots of time consuming during Distribution monitor preparation and checking.
    3. Can we have a scenario where Distribution Monitor is used on the source system in order to use the parallelism benefit and Migration Monitor used on the target system? - The Answer is No.
    You cannot mix distribution monitor tool for source system and Migration tool used on target system.
    You have to use any one tool depending on the size of database used.
    if your database size used is very very large then  recommend to use distribution monitor where u in sou can have multiple R3load jobs in each application server. Say Application server A use 20 R3load jobs and Application server B use 15 r3load jobs).
    Thanks
    APR

  • Deploy BlazeDS services separately from Flex client app?

    Is it possible to deploy my BlazeDS services app separate
    from the Flex client app? I would like to manage the 2 deployments
    separately. Every example and the instructions seem to link
    everything into one deployment bundle.

    Hi Alex, thanks for your advice. I tried reading the client-side logs, but it just physically shows what I was saying earlier - that the consumer is connected and subscribed, but no messages are coming through to it.
    I've attached the output of the 'flashlog.txt' file. For the particular session shown, the flex application was sent 8 JMS messages, but as you can see nothing got through. I put a 'trace' message in the message handler function (for my consumer object), but it never gets called.
    'E2513351-75DA-0837-7263-3807B91D9630' consumer set destination to 'flextest-message-destination'.
    '7D784A40-DBBB-71F1-4029-3807B91D45E3' producer set destination to 'flextest-message-destination'.
    'consumer' consumer subscribe.
    'flextest-streaming-amf' channel endpoint set to http://localhost:8400/FLEXTEST/msgbroker/streaming-amf
    'flextest-streaming-amf' channel settings are:
    'flextest-streaming-amf' pinging endpoint.
    'flextest-streaming-amf' channel is connected.
    'flextest-streaming-amf' channel sending message:
    (mx.messaging.messages::CommandMessage)
      body=(Object)#0
      clientId=(null)
      correlationId=""
      destination="flextest-message-destination"
      headers=(Object)#0
      messageId="8A592005-3C8A-4C6C-B074-380857710C00"
      operation="subscribe"
      timeToLive=0
      timestamp=0
    'consumer' consumer connected.
    'consumer' consumer acknowledge for subscribe. Client id '37CC5DED-A019-7110-3C89-A9926835103E' new timestamp 1233595684954
    'consumer' consumer acknowledge of '8A592005-3C8A-4C6C-B074-380857710C00'.
    Seems to me there can only be two explanations: either my BlazeDS configuration is incorrect (which is unlikely given that everything works if I use a ActiveMQ as my JMS provider with only trivial changes to my configuration), or there is some bug within BlazeDS that is preventing it from working properly with FioranoMQ. What do you think?

Maybe you are looking for

  • Intermittent lock ups

    Any ideas as to why my computer locks up or freezes for a 10 seconds then it starts going again? What kind of clues should I be looking at?

  • JVM Coredump with libengine.so as the problematic frame

    Hi Experts, Our application is running over Tuxedo 9.0, and JVM 1.5.0_07-b03 mixed mode. We are experiencing coredumps frequently in production environment. The hs_err file shows the following information: # An unexpected error has been detected by H

  • Bad handshake

    Hi! I'm italian student (excuse me for my English ). Using MySql 4.1, how set up the connection string from a JSP page? I try in this mode: String URL="jdbc:mysql://localhost/prova"; Class.forName("com.mysql.jdbc.Driver"); Connection conn = null; con

  • Financial reports - Conditional suppression.

    Hi Grid1 & grid2===Col's=Months In HFReport there r 2 grids . In Grid1 Row 5 references Formulae Row Grid2.Row[10]===>> calculates division of 4 Rows of Grid2.... Grid2.Row[10] ...on this row im using Conditional suppression to suppress the cells if

  • Underlining in class diagrams

    Can anyone please explain the following? 1) I have a class diagram where two of the three operations are underlined. The third operation is not underlined. 2) In a second class diagram, all four attributes are underlined. None of the operations are u