Hi Brendan,

 

That message is being generated from the server.   I take it the error is actually:

 

“No destination ‘CF_SFProdServer’ exists in service flex.messaging.services.RemotingService”

 

If that is the case, take a look at the <destination name=”CF_SFProdServer”> tag in your services-config.xml file.  That should exist inside of a tag that looks like:

 

<service id="remoting-service"

    class="flex.messaging.services.RemotingService"

    messageTypes="flex.messaging.messages.RemotingMessage">

 

   … your <destination> tag should be here ….

 

</service>

 

The class and messageTypes attributes should match exactly… the “id” is not important.  Destination names are scoped both by the class of message(s) they receive as well as the type of service that is defining that destination.  Both of those are going to have to match what the server expects or the message is not going to get delivered.  It looks like your destination is just being defined as part of the wrong service, or maybe it has the wrong messageTypes?

 

I hope this helps.

 

Jeff

 


From: [email protected] [mailto:[email protected]] On Behalf Of Brendan Meutzner
Sent: Friday, September 22, 2006 12:05 PM
To: [email protected]
Subject: Re: [flexcoders] Re: services-config.xml No Destination Found

 

Hi Jeff,

I'm getting "No destination 'detinationName' exists in service flex.messaging.services.RemotingService"

Here's a snippet of the TraceTarget output...


'14A6969C-42E5-E3CA-9BA4-D6D63C8631BA' producer sending message 'A48825BE-FD16-7223-221D-D6D674320226'
'SFProdServer' channel endpoint set to http:// SFProdServer.xxx.com/flex2gateway/
'SFProdServer' channel settings are:
<channel id="SFProdServer" type="mx.messaging.channels.AMFChannel">
  <endpoint uri="http:// SFProdServer.xxx.com/flex2gateway/"/>
  <properties>
    <polling-enabled>false</polling-enabled>
  </properties>
</channel>
' SFProdServer' pinging endpoint.
' SFProdServer' channel is connected.
'SFProdServer' channel sending message:
(mx.messaging.messages::RemotingMessage)#0
  body = (Array)#1
    [0] "<reportXML></reportXML>"
  clientId = (null)
  destination = " CF_SFProdServer"
  headers = (Object)#2
  messageId = "A48825BE-FD16-7223-221D-D6D674320226"
  operation = "saveXML"
  source = " reports.cf.cfc.metricXML"
  timestamp = 0
  timeToLive = 0
'14A6969C-42E5-E3CA-9BA4-D6D63C8631BA' producer connected.
'14A6969C-42E5-E3CA-9BA4-D6D63C8631BA' producer acknowledge of 'A48825BE-FD16-7223-221D-D6D674320226'.
'14A6969C-42E5-E3CA-9BA4-D6D63C8631BA' producer fault for 'A48825BE-FD16-7223-221D-D6D674320226'.


Everything is in order as far as I can tell.


Thanks,

Brendan


On 9/21/06, Jeff Vroom <[EMAIL PROTECTED]com> wrote:

Can you provide the exact error you are seeing?   We have "Unknown destination 'x' and 'x' is not a valid destination.   It also might help to turn on debug logging on the client… you do this by adding the MXML tag:  <mx:TraceTarget/> then look in your flashlog.txt file.

 

Jeff

 


From: [EMAIL PROTECTED] ups.com [mailto:[EMAIL PROTECTED] ups.com] On Behalf Of Brendan Meutzner
Sent: Thursday, September 21, 2006 2:46 PM
To: [EMAIL PROTECTED]ups.com
Subject: [flexcoders] Re: services-config.xml No Destination Found

 

Sorry... maybe some code might help elicit a response...

My call:

<mx:RemoteObject id="metricXML" destination="CF_SFProdServer" source="com.cnet.reports.cfc.config.metricXML">
<mx:method name="saveXML" result="saveXMLResult(event)" fault="saveXMLFault(event)" />
</mx:RemoteObject>


My services-config.xml (snippet):

            <destination id="CF_SFProdServer">
                <channels>
                    <channel ref="SFProdServer"/>
                </channels>
                <properties>
                    <source>*</source>
                    <!-- define the resolution rules and access level of the cfc being invoked -->
                    <access>
                        <!-- Use the ColdFusion mappings to find CFCs, by default only CFC files under your webroot can be found. -->
                        <use-mappings>false</use-mappings>
                        <!-- allow "public and remote" or just "remote" methods to be invoked -->
                        <method-access-level>remote</method-access-level>
                    </access>

                    <property-case>
                        <!-- cfc property names -->
                        <force-cfc-lowercase>false</force-cfc-lowercase>
                        <!-- Query column names -->
                        <force-query-lowercase>false</force-query-lowercase>
                        <!-- struct keys -->
                        <force-struct-lowercase>false</force-struct-lowercase>
                    </property-case>
                </properties>
            </destination>

            <channel-definition id="SFProdServer" class="mx.messaging.channels.AMFChannel ">
            <endpoint uri="http://SFProdServer.xxx.com/flex2gateway/" class="flex.messaging.endpoints.AMFEndpoint"/>
            <properties>
                <polling-enabled>false</polling-enabled>
                <serialization>
                    <instantiate-types>false</instantiate-types>
                </serialization>
            </properties>
        </channel-definition>


and to add to my previous list...

6) Browsing to http://SFProdServer.xxx.com/flex2gateway/ gives me the usual blank page, so I assume it's working...


Thanks,

Brendan

On 9/21/06, Brendan Meutzner < [EMAIL PROTECTED]com> wrote:

I'm seriously at my wits end... I love CF, but I hate CF...

I have my services-config.xml file setup with 2 destinations, one pointing to my local dev CF server and the other to a production server.  I can get my local dev connection to work, but continue to receive the No Destination Found error for my production server.

I am 100% positive on the following:

1) My test CFC file I'm trying to reach exists, and I'm referencing it in the right location.
2) My local and production servers are configured and installed identically...
3) The destination and chanel definitions exist in my services-config.xml file, and the most recent file is getting compiled with my app (I've traced the ServerConfig.xml content)
4) I had this working just fine with CF 7.01 and the B4 updated for cf_flex connectivity (i'm moving my production environment which is why i'm re-installing).
5) I've read all the threads on this issue, and nothing has helped thus far.

I may have missed some points, but I'm 100% positive on them too (whatever they are).

Please God (aka the appropriate Adobe employee) help...

Brendan

Also, I haven't gotten to this point yet because of the difficulties above, but does anybody have an example of how to use CF mapping in the destination reference (so I can avoid figuring it out via trial and error)... thx

 

 

__._,_.___

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





SPONSORED LINKS
Software development tool Software development Software development services
Home design software Software development company

Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___

Reply via email to