Make sure you have:

 

<business:Services id="serviceLocator" />

in your main Application file.

 

Jay Proulx

[EMAIL PROTECTED]

________________________________

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Kevin
Sent: January 15, 2007 9:26 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Cairngorm ServiceLocator error

 

has any one receieved this error when using the Cairngorm
ServiceLocator?

 

ReferenceError: Error #1069: Property myListService not found on
com.adobe.cairngorm.business.ServiceLocator and there is no default
value.

 

Here is my code:

 

(in Delegate file)

this.service =
ServiceLocator.getInstance().getRemoteObject("myListService");

 

(in Services.mxml)

<cairngorm:ServiceLocator

            xmlns:mx="http://www.adobe.com/2006/mxml
<http://www.adobe.com/2006/mxml> " 

            xmlns:cairngorm="com.adobe.cairngorm.business.*">

 

    <mx:RemoteObject id="myListService" fault="faultHandler(event)"
showBusyCursor="true" destination="amfphp"

 
source="com.onefoot.dbocl.services.GetMyListService">

                        <mx:method name="getMyList"
result="resultHandler(event)" />

    </mx:RemoteObject>

 

</cairngorm:ServiceLocator>

 

I am not sure where I am going wrong.

 

- Kevin

 

Reply via email to