0 Replies Latest reply on Sep 11, 2008 1:56 PM by duc_rider

    [Fixed]RemoteObject callback not being invoked

    duc_rider
      ========== This is no longer an issue ==============
      There was a typo in the SeamRemoteOperation setting the
      id attribute when it should have been the name attribute
      ===========================================

      My site runs on plain HTTP except one dialog that needs to be HTTPS. This dialog needs to send sensitive information over a seam remote
      call.

      I use SeamRemoteObject for communicating with a JBoss-Seam server backend. SeamRemoteObject is a subclass of RemoteObject that simply adds some additional headers to the outgoing AMF message.

      To make the SSL SeamRemoteObject call happen, i have the following in
      my mxml file:

      <flamingo:SeamRemoteObject id="editProfileSecure" endpoint="https://
      myhost.com/SharOn/seam/resource/amf" destination="EditProfile"
      showBusyCursor="true">
      <flamingo:SeamOperation id="addDataSource"
      result="addDataSourceCallback(event)"/> </
      flamingo:SeamRemoteObject>

      I have also placed a crossdomain.xml file in my web app root that
      contains the following:
      <?xml version="1.0"?>
      <cross-domain-policy>
      <allow-access-from domain="*.myhost.com" secure="false"/>
      </cross-domain-policy>

      With these changes, the following works over SSL:
      editProfileSecure.addDataSource(sUserId, sPassword, sType);

      and I see my Seam component being invoked.

      The problem is, my callback: addDataSourceCallback is not being
      invoked at all. I looked at a packet capture of the traffic (in the
      non-SSL leg between Apache and my JBoss) and I see the call returning
      data.

      Any idea why the callback is not being invoked? Any chance this is related to bug SDK-13646: http://bugs.adobe.com/jira/browse/SDK-13646?page=com.atlassian.jira.plugin.system.issuetab panels:all-tabpanel

      Thanks.

      -Raj

      Here is the packet capture:
      POST /SharOn/seam/resource/amf HTTP/1.1

      Host: 192.168.1.2:8080

      User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:
      1.9.0.1) Gecko/2008070208 Firefox/3.0.1

      Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/
      *;q=0.8

      Accept-Language: en-us,en;q=0.5

      Accept-Encoding: gzip,deflate

      Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7

      Cookie: org.jboss.seam.security.username=raj.tiwari;
      JSESSIONID=9B0B6ED6516E6BFA4839402E9C38E685

      Referer: http://myhost.com/SharOn/swf/SharOn.swf

      Content-type: application/x-amf

      Via: 1.1 WebShar

      X-Forwarded-For: 192.168.1.2

      X-Forwarded-Host: myhost.com

      X-Forwarded-Server: myhost

      Connection: Keep-Alive

      Content-Length: 277

      ........null../1....
      .....
      ..Mflex.messaging.messages.CommandMessage.operation.correlationId.destination.messageId.cl ientId.timeToLive.body.timestamp.headers.......I4CDA7A78-36A3-2B9A-3B12-500CC035CB58...
      .....
      .%DSMessagingVersion...DSId.ICCB04CBD-E5DD-4E7D-A81E-2187D27EAEC3.

      HTTP/1.1 200 OK

      Server: Apache-Coyote/1.1

      X-Powered-By: Servlet 2.4; JBoss-4.2.2.GA (build:
      SVNTag=JBoss_4_2_2_GA date=200710221139)/Tomcat-5.5

      Content-Type: application/x-amf

      Content-Length: 289

      Date: Thu, 11 Sep 2008 06:15:25 GMT

      ......../1/onResult.......
      ..Uflex.messaging.messages.AcknowledgeMessage.body.clientId.correlationId.destination.head ers.messageId.timeToLive.timestamp..I8583EB15-02FE-4212-9984-
      D89B2FA20FE0.I4CDA7A78-36A3-2B9A-3B12-500CC035CB58.
      ....I339DCA0B-FACD-4A95-BD84-586BCDC76AA5..........Bq....@.POST /
      SharOn/seam/resource/amf HTTP/1.1

      Host: 192.168.1.2:8080

      User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:
      1.9.0.1) Gecko/2008070208 Firefox/3.0.1

      Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/
      *;q=0.8

      Accept-Language: en-us,en;q=0.5

      Accept-Encoding: gzip,deflate

      Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7

      Cookie: org.jboss.seam.security.username=raj.tiwari;
      JSESSIONID=9B0B6ED6516E6BFA4839402E9C38E685

      Referer: http://myhost.com/SharOn/swf/SharOn.swf

      Content-type: application/x-amf

      Via: 1.1 WebShar

      X-Forwarded-For: 192.168.1.2

      X-Forwarded-Host: webshar.com

      X-Forwarded-Server: WebShar

      Connection: Keep-Alive

      Content-Length: 336

      ........null../2...<
      .....
      ..Oflex.messaging.messages.RemotingMessage.operation
      source.destination.messageId.clientId.timeToLive.body.timestamp.headers..addDataSource...E ditProfile.IC070257F-
      C24A-5838-D92A-500CC03562FC........rituraj.xxxxxx..xxxxxxxx.
      YYYYYY..
      ...conversationId...DSEndpoint..DSId.ICCB04CBD-E5DD-4E7D-
      A81E-2187D27EAEC3.

      HTTP/1.1 200 OK

      Server: Apache-Coyote/1.1

      X-Powered-By: Servlet 2.4; JBoss-4.2.2.GA (build:
      SVNTag=JBoss_4_2_2_GA date=200710221139)/Tomcat-5.5

      Content-Type: application/x-amf

      Content-Length: 342

      Date: Thu, 11 Sep 2008 06:15:33 GMT

      ......../2/onResult.......
      ..Uflex.messaging.messages.AcknowledgeMessage.body.clientId.correlationId.destination.head ers.messageId.timeToLive.timestamp.IA4611C77-9FD4-
      A533-CAEE-9B7744EE721C.I18A32100-6C9B-43F9-A28E-27906574532B.IC070257F-
      C24A-5838-D92A-500CC03562FC.
      ...conversationId...I4DF0F5CA-6D47-42C4-
      B0BA-9BC22F391A73..........Bq......