Results 1 to 2 of 2

Thread: Error with CairngormServiceLocator

  1. #1
    Join Date
    Mar 2010
    Posts
    1

    Default Error with CairngormServiceLocator

    This is the error I'm getting:

    ReferenceError: The property 'service' on the definition of 'serviceLocator' could not be resolved. Original error:
    Cannot assign operations into an RPC Service (id)

    My configuration looks like this:

    Code:
    	<object id="serviceLocator" class="org.springextensions.actionscript.cairngorm.business.CairngormServiceLocator" factory-method="getInstance">
    		<!-- The CairngormServiceLocator is marked with the dynamic keyword, so new properties can be added at runtime: -->
    		<property name="service">
    			<ref>contactService</ref>
    		</property>
    	</object>
    	
    	<object id="contactService" class="mx.rpc.remoting.mxml.RemoteObject" scope="singleton">
    		<property name="id" value="contactService"/>
    		<property name="destination" value="ColdFusion"/>
    		<property name="source" value="com.shinynet.contactmanager.ContactService"/>
    	</object>
    Any ideas?

  2. #2
    Join Date
    Dec 2008
    Location
    Brussels
    Posts
    407

    Default not a spring error

    Hey there,

    from what Iread this isn't the ServiceLocator causing trouble, because of this:

    Original error:
    Cannot assign operations into an RPC Service (id)

    for some reason the remoteobject throws this error, apparently the id property could not be set (from what I understand here). Can you try deleting this bit: <property name="id" value="contactService"/>
    If things work after that it would mean the documentation has an error as well, so please let us know.

    cheers,

    Roland

Posting Permissions

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