0 Replies Latest reply on Oct 6, 2006 2:38 PM by Gomi Enu

    CFC returning no data via Flex Gateway

    Gomi Enu






      I finally have a few minutes to tinker with my new Flex 2 software. Everey goes on well, no problems, everything seems to work. I connect to a web service, how snazzy.

      I followed the HelloWorld / CFC tutorial here-
      http://www.adobe.com/devnet/flex/articles/helloworld.html

      Figuring I'd get basic connectivity established. Seems to work, but I am not getting any results back. After a day of using Mike Nimers debug component, enabling verbose loging in the Flex Gateway, I am stuck. Help!

      I have the services-gateway service in builder, CFC has been verified by the test page. It IS talking to the CFC< because if I move it or delete it the app throws an error. According the Mike Neimer's Debug component it is successful- the event object contains a result, no errors - the only problem is that the result is Null, no matter what.

      At this point my code is Identical to the article. I have pasted what the gateway debug spits out from ym server console. I am running CFMX j2ee 7.02 under its own Tomcat 5.5 instance locally right now.

      Any insight, oh wise developer community?

      -rj



      [Flex] HttpFlexSession has not been registered as a listener in web.xml for this
      application so no events will be dispatched to FlexSessionAttributeListeners or
      FlexSessionBindingListeners. To correct this, register flex.messaging.HttpFlexS
      ession as a listener in web.xml.
      [Flex] Channel endpoint my-cfamf received request.
      [Flex] Deserializing AMF/HTTP request
      Version: 3
      (Message #0 targetURI=null, responseURI=/1)
      (Array #0)
      [0] = (Typed Object #0 'flex.messaging.messages.CommandMessage')
      operation = 5
      messageRefType = null
      correlationId = ""
      destination = ""
      body = (Object #1)
      messageId = "F0B5962E-86D1-C103-25AD-1F86AE5FA01E"
      clientId = null
      timeToLive = 0
      headers = (Object #2)
      timestamp = 0

      [Flex] Executed command: (default service)
      commandMessage: Flex Message (flex.messaging.messages.CommandMessage)
      operation = cluster_request
      messageRefType = null
      clientId = 7AF8105C-3A0B-84FB-C925-4FE9D62771A4
      correlationId =
      destination =
      messageId = F0B5962E-86D1-C103-25AD-1F86AE5FA01E
      timestamp = 1160170096858
      timeToLive = 0
      body = {}
      replyMessage: Flex Message (flex.messaging.messages.AcknowledgeMessage)
      clientId = 7AF8105C-3A0B-84FB-C925-4FE9D62771A4
      correlationId = F0B5962E-86D1-C103-25AD-1F86AE5FA01E
      destination = null
      messageId = 7AF8105C-3A1A-E476-485C-7C1ED2C6D788
      timestamp = 1160170096858
      timeToLive = 0
      body = null

      [Flex] Serializing AMF/HTTP response
      Version: 3
      (Message #0 targetURI=/1/onResult, responseURI=)
      (Typed Object #0 'flex.messaging.messages.AcknowledgeMessage')
      destination = null
      headers = (Object #1)
      correlationId = "F0B5962E-86D1-C103-25AD-1F86AE5FA01E"
      messageId = "7AF8105C-3A1A-E476-485C-7C1ED2C6D788"
      timestamp = 1.160170096858E12
      clientId = "7AF8105C-3A0B-84FB-C925-4FE9D62771A4"
      timeToLive = 0.0
      body = null

      [Flex] Channel endpoint my-cfamf received request.
      [Flex] Deserializing AMF/HTTP request
      Version: 3
      (Message #0 targetURI=null, responseURI=/2)
      (Array #0)
      [0] = (Typed Object #0 'flex.messaging.messages.RemotingMessage')
      operation = "sayHelloString"
      source = "HelloWorld"
      destination = "ColdFusion"
      body = (Array #1)
      messageId = "9A66F41D-B0EC-EBA0-278B-1F86AE5F4864"
      clientId = null
      timeToLive = 0
      headers = (Object #2)
      DSEndpoint = "my-cfamf"
      timestamp = 0

      [Flex] Before invoke service: coldfusion-flashremoting-service
      incomingMessage: Flex Message (flex.messaging.messages.RemotingMessage)
      operation = sayHelloString
      clientId = 7AF81168-C80D-CCAF-0CA1-6D226BA5DF36
      destination = ColdFusion
      messageId = 9A66F41D-B0EC-EBA0-278B-1F86AE5F4864
      timestamp = 1160170096968
      timeToLive = 1160170096968
      body = null
      hdr(DSEndpoint) = my-cfamf

      10/06 17:28:21 Information [http-9000-Processor24] - Unable to load library
      10/06 17:28:22 Information [http-9000-Processor24] - Unable to load library
      10/06 17:28:22 Information [http-9000-Processor24] - Unable to load library
      10/06 17:28:22 Information [http-9000-Processor24] - Unable to load library
      10/06 17:28:22 Information [http-9000-Processor24] - Unable to load library
      10/06 17:28:22 Information [http-9000-Processor24] - Unable to load library
      [Flex] Adapter 'cf-object' called 'HelloWorld.sayHelloString(java.util.Arrays$Ar
      rayList (Collection size:0)
      )'
      [Flex] Result: 'Flex Message (flex.messaging.messages.AcknowledgeMessage)
      clientId = null
      correlationId = null
      destination = null
      messageId = 7AF84930-910E-88E8-31B5-16563C93E7C1
      timestamp = 1160170102817
      timeToLive = 0
      body = null'
      [Flex] After invoke service: coldfusion-flashremoting-service
      reply: Flex Message (flex.messaging.messages.AcknowledgeMessage)
      clientId = null
      correlationId = null
      destination = null
      messageId = 7AF84930-910E-88E8-31B5-16563C93E7C1
      timestamp = 1160170102817
      timeToLive = 0
      body = null

      [Flex] Serializing AMF/HTTP response
      Version: 3
      (Message #0 targetURI=/2/onResult, responseURI=)
      (Typed Object #0 'flex.messaging.messages.AcknowledgeMessage')
      destination = null
      headers = (Object #1)
      correlationId = "9A66F41D-B0EC-EBA0-278B-1F86AE5F4864"
      messageId = "7AF84930-910E-88E8-31B5-16563C93E7C1"
      timestamp = 1.160170102817E12
      clientId = "7AF81168-C80D-CCAF-0CA1-6D226BA5DF36"
      timeToLive = 0.0
      body = null