Error in CFC - message to Flex

Ask a Question related to Coldfusion Flash Integration, Design and Development.

  1. #1

    Default Error in CFC - message to Flex

    I am sending messages to a flex program via a CFC reading messages off of a
    socket (gateway is called asocket - the flex gateway is ows35_example4 via
    LCDM).
    The messages are getting to the flex program but errors are showing up in
    cfserver.log, eventgateway.log and exception.log that says:

    Error invoking CFC for gateway asocket: Unable to locate the body entry in the
    outgoing message structure..

    once for each message that is sent. The enclosed code shows the CFC running
    the asocket gateway - which definitely has a "body" entry.
    How do I stop this error ? Is there something wrong with the CFC ?
    Using Coldfusion 8.0.0.1786276

    -thank you

    <cfcomponent displayname="echo" hint="echo messages from the event gateway">
    <cffunction name="onIncomingMessage" output="no">
    <cfargument name="CFEvent" type="struct" required="yes">

    <cfset flexMessage = StructNew() >

    <cfset messageObject = StructNew() >
    <cfset messageObject.message = arguments.CFEvent.Data.MESSAGE >

    <cfset flexMessage.body = messageObject>

    <cfset flexMessage.Destination="ColdFusion_exam">

    <cfset ret = SendGatewayMessage( "ows35_example4", flexMessage)>

    </cffunction>

    </cfcomponent>

    Phred1 Guest

  2. Similar Questions and Discussions

    1. How To Supress Acrobat Error Message And Alert Message
      Is there any way to supress those pop up message? If can't, is there any way to catch it?
    2. flex httpservice post error 2032: iostream error
      When I use HttpService to send data by post method,I encounter a problem.I find if the length of the post data is over 1022,then flex rises the...
    3. error message: Microsoft JScript compilation error '800a03ec'
      Recieved following error message: Microsoft JScript compilation error '800a03ec' Expected ';' ...
    4. Error Message When Sending Message In Windows Mail
      Am I the only one getting an error message when replying to a posted message using Windows Mail. Every time I send a message I get a popup error...
    5. Error Message "A drawing error ocurrred which is probably due to an out-of-memory condition. Try qu
      I am running Acrobat Reader 5.0 on a Mac Powerbook running OS 9.2 and keep getting "A drawing error occurred which is probably due to an out of...
  3. #2

    Default Re: Error in CFC - message to Flex

    Ugh .... I figured this out.

    I was using HTTP comments "<!-- -->" (that I did not include in the source
    above) instead of the CF comments "<!--- --->".

    What you don't see is that there is another SendGatewayMessage that was (I
    thought) commented out using the messageObject Struct for the message. It
    doesn't have a body part so it makes sense that the error happened.

    I changed the HTTP comments to CF comments and the errors went away.

    Note to self ... be careful of your comments.


    Phred1 Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139