Hi,
I'm working on my first FDS app connecting to MySQL with Hibernate. I've managed to create all the necessary mapping files and deploy my app to JBOSS 4.0 server. I get no errors or warnings (with DEBUG enabled) from JBOSS when deploying the app and I get no compile errors when I build the app. I can see all the Hibernate files are being read by JBOSS successfully. It seems promising that the app should work. My hibernate.cfg.xml and hbm.xml's also are being read. MySQL connector is found.
When I run this simple app (it's just a 2 column datagrid using a data service I've configured in data-management-config.xml), I get the following:
[MessagingError message='Destination 'hibernateStates' has no channels defined and the application does not define any default channels.']
at mx.messaging.config::ServerConfig$/::internalGetChannelSet()
at mx.messaging.config::ServerConfig$/getChannelSet()
at mx.messaging::MessageAgent/mx.messaging:MessageAgent::initChannelSet( )
at mx.messaging::MessageAgent/mx.messaging:MessageAgent::internalSend()
at mx.messaging::Producer/mx.messaging:Producer::internalSend()
at mx.messaging::AbstractProducer/connect()
at mx.data::DataStore/http://www.adobe.com/2006/flex/mx/internal::initialize()
at mx.data::ConcreteDataService/fill()
at mx.data.mxml::DataService/fill()
at TFAppMain/___Button1_click()
What does this mean?
Here is my data-management-config.xml:
<?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="hibernateStates" channels="my-rtmp">
<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>TFHibernate.States</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>
I'm not sure what else I can check, seems like there are no errors until runtime. Any suggestions would be really helpful! :-)
I'm working on my first FDS app connecting to MySQL with Hibernate. I've managed to create all the necessary mapping files and deploy my app to JBOSS 4.0 server. I get no errors or warnings (with DEBUG enabled) from JBOSS when deploying the app and I get no compile errors when I build the app. I can see all the Hibernate files are being read by JBOSS successfully. It seems promising that the app should work. My hibernate.cfg.xml and hbm.xml's also are being read. MySQL connector is found.
When I run this simple app (it's just a 2 column datagrid using a data service I've configured in data-management-config.xml), I get the following:
[MessagingError message='Destination 'hibernateStates' has no channels defined and the application does not define any default channels.']
at mx.messaging.config::ServerConfig$/::internalGetChannelSet()
at mx.messaging.config::ServerConfig$/getChannelSet()
at mx.messaging::MessageAgent/mx.messaging:MessageAgent::initChannelSet( )
at mx.messaging::MessageAgent/mx.messaging:MessageAgent::internalSend()
at mx.messaging::Producer/mx.messaging:Producer::internalSend()
at mx.messaging::AbstractProducer/connect()
at mx.data::DataStore/http://www.adobe.com/2006/flex/mx/internal::initialize()
at mx.data::ConcreteDataService/fill()
at mx.data.mxml::DataService/fill()
at TFAppMain/___Button1_click()
What does this mean?
Here is my data-management-config.xml:
<?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="hibernateStates" channels="my-rtmp">
<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>TFHibernate.States</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>
I'm not sure what else I can check, seems like there are no errors until runtime. Any suggestions would be really helpful! :-)