[flexcoders] Cairngorm ServiceLocator error - duplicate instantiation
I am using Cairngorm (Flex 2.0.1)...and if I put the cursor inside the text area and (holding down the "Ctrl" key) hit "Enter" really fast, I get this error below where the main application is trying to call the ServiceLocator constructor again. Any idea why? I can replicate it w/ a simple app. ## code ### http://www.adobe.com/2006/mxml"; layout="absolute" xmlns:business="com.communify.business.*"> Note: I commented out my code in my service locator Implementation so I know it is nothing on my side. Error: Only one ServiceLocator instance should be instantiated at org.nevis.cairngorm.business::ServiceLocator$iinit()[C:\kevin\pronto\communify-flex\org\nevis\cairngorm\business\ServiceLocator.as:111] at com.communify.business::Services$iinit()[C:\kevin\pronto\communify-flex\com\communify\business\Services.mxml:0] at mx.core::Container/createComponentFromDescriptor()[C:\dev\flex_201_ja\sdk\frameworks\mx\core\Container.as:3619] at mx.core::Container/createComponentsFromDescriptors()[C:\dev\flex_201_ja\sdk\frameworks\mx\core\Container.as:3533] at mx.core::Container/mx.core:Container::createChildren()[C:\dev\flex_201_ja\sdk\frameworks\mx\core\Container.as:2618] at mx.core::UIComponent/initialize()[C:\dev\flex_201_ja\sdk\frameworks\mx\core\UIComponent.as:4938] at mx.core::Container/initialize()[C:\dev\flex_201_ja\sdk\frameworks\mx\core\Container.as:2555] at mx.core::Application/initialize()[C:\dev\flex_201_ja\sdk\frameworks\mx\core\Application.as:829] at pronto/initialize()[C:\kevin\pronto\communify-flex\pronto.mxml:0] at mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::childAdded()[C:\dev\flex_201_ja\sdk\frameworks\mx\managers\SystemManager.as:1553] at mx.managers::SystemManager/mx.managers:SystemManager::initializeTopLevelWindow()[C:\dev\flex_201_ja\sdk\frameworks\mx\managers\SystemManager.as:2330] at mx.managers::SystemManager/mx.managers:SystemManager::docFrameHandler()[C:\dev\flex_201_ja\sdk\frameworks\mx\managers\SystemManager.as:2214]
RE: [flexcoders] Cairngorm ServiceLocator error
I always forget that part too :P Jay Proulx [EMAIL PROTECTED] From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Kevin Sent: January 15, 2007 11:09 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Cairngorm ServiceLocator error of course!!! Thanks. It's always something simple. I had commented that part out when i was testing some stuff and I forgot to uncomment it. - Kevin On Jan 15, 2007, at 10:44 AM, <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> > wrote: Make sure you have: in your main Application file. Jay Proulx [EMAIL PROTECTED] <mailto:[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 CairngormServiceLocator? 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) http://www.adobe.com/2006/mxml <http://www.adobe.com/2006/mxml> " xmlns:cairngorm="com.adobe.cairngorm.business.*"> I am not sure where I am going wrong. - Kevin
Re: [flexcoders] Cairngorm ServiceLocator error
of course!!! Thanks. It's always something simple. I had commented that part out when i was testing some stuff and I forgot to uncomment it. - Kevin On Jan 15, 2007, at 10:44 AM, <[EMAIL PROTECTED]> wrote: Make sure you have: 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 CairngormServiceLocator? 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) http://www.adobe.com/2006/mxml"; xmlns:cairngorm="com.adobe.cairngorm.business.*"> showBusyCursor="true" destination="amfphp" source="com.onefoot.dbocl.services.GetMyListService"> result="resultHandler(event)" /> I am not sure where I am going wrong. - Kevin
RE: [flexcoders] Cairngorm ServiceLocator error
Make sure you have: 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) http://www.adobe.com/2006/mxml <http://www.adobe.com/2006/mxml> " xmlns:cairngorm="com.adobe.cairngorm.business.*"> I am not sure where I am going wrong. - Kevin
[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) http://www.adobe.com/2006/mxml"; xmlns:cairngorm="com.adobe.cairngorm.business.*"> showBusyCursor="true" destination="amfphp" source="com.onefoot.dbocl.services.GetMyListService"> I am not sure where I am going wrong. - Kevin