0 Replies Latest reply on Mar 20, 2008 11:02 AM by hugop92

    no service to handle DataMessage

    hugop92
      Hi,

      I'm setting up Data Management Services, but got this exception:

      [MessagingError message='No service is configured to handle messages of type 'flex.data.messages.DataMessage'.']
      at mx.messaging.config::ServerConfig$/getServiceIdForMessage()
      at mx.data::Metadata$iinit()
      at mx.data::ConcreteDataService$iinit()
      at mx.data::ConcreteDataService$/getService()
      at mx.data::DataService$iinit()
      at com.cegedim.siga.delegate::EditrDelegate$iinit()
      at com.cegedim.siga.model::EditrModel/loadEditrsList()
      at com.cegedim.siga.view::Editeur/___VDividedBox1_creationComplete()
      at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
      at flash.events::EventDispatcher/dispatchEvent()
      at mx.core::UIComponent/dispatchEvent()
      at mx.core::UIComponent/set initialized()
      at mx.managers::LayoutManager/::doPhasedInstantiation()
      at Function/ http://adobe.com/AS3/2006/builtin::apply()
      at mx.core::UIComponent/::callLaterDispatcher2()
      at mx.core::UIComponent/::callLaterDispatcher()

      The data-management-config.xml is:

      <?xml version="1.0" encoding="UTF-8"?>
      <service id="data-service" class="flex.data.DataService"
      messageTypes="flex.data.messages.DataMessage">

      <default-channels>
      <channel ref="my-rtmp" />
      <channel ref="my-polling-amf" />
      </default-channels>

      <adapters>
      <adapter-definition id="actionscript" class="flex.data.adapters.ASObjectAdapter"
      default="true" />
      <adapter-definition id="java-dao" class="flex.data.adapters.JavaAdapter" />
      </adapters>

      <destination id="editrDms">
      <adapter ref="java-dao" />
      <properties>
      <source>editrAsm</source>
      <scope>application</scope>
      <metadata>
      <identity property="id" />
      </metadata>
      <factory>spring</factory>
      <network>
      <session-timeout>20</session-timeout>
      <paging enabled="false" pageSize="10" />
      <throttle-inbound policy="ERROR" max-frequency="500" />
      <throttle-outbound policy="REPLACE" max-frequency="500" />
      </network>
      <server>
      <fill-method>
      <name>loadEditrs</name>
      </fill-method>
      </server>
      </properties>
      </destination>
      </service>


      Is there something special to configure?

      Regards,
      Hugo