1 Reply Latest reply on Jan 10, 2008 5:36 AM by arboeh

    Configuration Problem

    Iced_Slayer
      Hi everybody!

      I'm developing a java-flex based application, with Hibernate on the persitence layer, LifeCycle Data Services for the data management bridge, Flex 3 and Tomcat.
      I'm having the following problem: I configured the data-management-config.xml for using hibernate, as it look like this:

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

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

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

      <destination id="cliente.hibernate">
      <adapter ref="java-dao" />
      <properties>
      <use-transactions>true</use-transactions>
      <source>flex.data.assemblers.HibernateAssembler</source>
      <scope>application</scope>
      <metadata>
      <!--This is the unique identifier from the hibernate-entity bean -->
      <identity property="id"/>
      </metadata>
      <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>
      <hibernate-entity>Cliente</hibernate-entity>
      <fill-method>
      <name>fill</name>
      <params>java.util.List</params>
      </fill-method>
      <fill-configuration>
      <use-query-cache>false</use-query-cache>
      <allow-hql-queries>true</allow-hql-queries>
      </fill-configuration>
      </server>
      </properties>
      </destination>
      </service>

      and on my main application file, I configured my Data Service like this:

      <mx:DataService id="hibernate" destination="cliente.hibernate" fault="handleFault(event)" autoCommit="true" />

      When I run the app, I get the following error:

      (mx.messaging.messages::ErrorMessage)#0
      body = (null)
      clientId = "88A7286C-B62A-6234-34EB-1D36CD867103"
      correlationId = "8957022A-3A2D-A41D-8E54-1D36CEBE9CEC"
      destination = "cliente.hibernate"
      extendedData = (null)
      faultCode = "Server.Processing"
      faultDetail = (null)
      faultString = "No destination with id 'cliente.hibernate' is registered with any service."
      headers = (Object)#1
      messageId = "6E52CF57-AD38-379D-43E8-A96E55258626"
      rootCause = (null)
      timestamp = 1198786006781
      timeToLive = 0

      Trying to do some test, I realized that if I change the destination on the mxml, pointing to something that doesn't exists, I get this error:

      [MessagingError message='Destination 'clienteT.hibernate' has no channels defined and the application does not define any default channels.'][...](and all the stack trace)

      It appears like they are linked, but there's something missing.

      Any ideas?