|
Hi there, I’m currently trying to use Flex Data Services
and Hibernate to link my web application with a MySQL database. All Java classes are written and mapped to the
database with hibernate. AS3 classes are written and mapped to Java classes with
[Managed] and [RemoteClass(…)]. The data-management-config file is filled with one
destination per class and the default-channel is polling-amf. The first class is the Client one and contains all
personal data. The second one is the User class. It contains special
data and a reference to a Client. The last class is the Contract one. This one contains
contract data, a reference to a Client and a collection of Users to indicate
which users are concerned by the current contract. The web application contains 2 states: -
the default one to
display client’s contracts in a custom component using a DataService to
retrieve data (destination = hibernate.Contract) -
the second one to display
client’s and users’ data in a custom component containing two
DataServices to retrieve data (destinations = hibernate.Client and hibernate.User So when a client visits the website, the default
state is displayed without any problem. An error is displayed when the client
changes the current state of the application but new data are well displayed.
Here is the error: Error #2044: NetStatusEvent non pris en charge :
level=error, code=Client.Data.UnderFlow at
mx.messaging.channels::NetConnectionChannel$iinit() at
mx.messaging.channels::AMFChannel$iinit() at mx.messaging.config::ServerConfig$/::createChannel() at
mx.messaging.config::ServerConfig$/getChannel() at mx.messaging::ChannelSet/::hunt() at mx.messaging::ChannelSet/send() at
mx.messaging::MessageAgent/mx.messaging:MessageAgent::internalSend() at mx.messaging::Consumer/subscribe() at
mx.data::ConcreteDataService/http://www.adobe.com/2006/flex/mx/internal::reconnect() at mx.data::ConcreteDataService/fill() at mx.data::DataService/fill() at assure_v3/getContract() at assure_v3/initAssureV3() at
assure_v3/___Application1_creationComplete() at
flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction() at
flash.events::EventDispatcher/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() I tried to disconnect the DataService, release the
collection but I have no idea on how to solve this problem. Does somebody
already encounter this problem or know how to solve it? Thanks. -- Aurélien BLOND -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___ |
- [flexcoders] Flex Data Services - Client.Data.UnderFlow Aurélien BLOND

