Announcement Announcement Module
Collapse
No announcement yet.
Error with CairngormServiceLocator Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    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

    Comment

    Working...
    X