Model Driven Development with Flex 4 and LCDS 3 Screencast

I recently presented a new “Model Driven Development with Flex 4” session at a few conferences and Flash Camps, so I figured I would record a screencast of the demo app for people who did not attend. If you saw a previous version of this demo, this screencast is still worth watching because I’m using the latest daily builds of Flash Builder 4 and LCDS 3 and we made really good progress!

You can watch it in the player below, however I recommend you click here to watch it in HD (go full screen for a better viewing experience. Also make sure HD is on).

A few things I’m not mentioning in the demo:

  • Value objects and service stubs are automatically generated based on the model
  • Data persistence occurs through JPA/Hibernate, but you don’t have to know that if you just want it to work
  • Code generation of form is template-based (you can modify the existing template or create new ones)
  • Pingback: Checkout this cool video about LCDS 3 and FlashBuilder4 from Christophe « Anil Channappa’s Blog()

  • Eric Ironside

    Christophe – Can’t wait to get my hands on this! How much of the functionality will work with BlazeDS?

  • Would have been nice, if files were downloadable, so a lot of use can watch it later or even share with our teams. Not sure vimeo allows that?

    -abdul

  • What version of BlazeDS is supported by Model Driven Development with Flex 4?

  • Christophe

    The Model Driven Development features demonstrated here are only available in LiveCycle Data Services v3. If you use BlazeDS, you’ll be able to point to existing services and import them into the Data Services Panel, drag functions into UI components, etc. But you won’t have the full blown MDD approach used in this demo.

  • Thanks for posting. I saw this in St. Louis. Great!!

  • Pingback: Application CRUD en 5 minutes « Code moi un mouton()

  • Pingback: 3D Modeling » Blog Archive » 3D Modeling for mobile phones()

  • vlad

    Exceptional!! Very good news with Flash Builder 4 and LCDS 3.
    Any requirement about what need as computer performance?

  • Hi Christophe,
    Great demo.
    Any chance we can see a BlazeDS based version of the demo?

    Thanks,
    Amichai

  • Michael

    Hi Christophe,

    I’ve noticed some differences in the version of (i think…) the fiber modeller you use in the demo and the one we’ve used so far. Our version of the modeller plugin (and the one still offered for download) is dated: 15 June 2009. In our version there are no relations visible in the .fml design view and also the generate model driven form does not work as well as you demonstrate. Is it possible you have a different version or are we just noobz?

    Thanks in advance,
    Michael

  • Very nice presentation. I´m exciting to use it.

  • Alex

    Will it be possible to modify the code generation patterns? For instance, will it be possible to generate the persistance layer with JPA/EJB instead of Hibernate or any other type of technology?

  • Ricardo

    Hello.

    One problem.
    Flash Builder/Data Model/RDS Dataview/
    message of Alert:

    “Unable to contact the RDS Server
    Connection refused:connect”

    And now?

  • Thank you admin goood

  • Wow this is what the community have really been waiting for !! The Model Driven Development features are a breath of fresh air when it comes to knocking up a skeleton for your application. This really does streamline some of the development and modelling tasks.

    Do Adobe plan on providing the same functionality for the other technologies like coldfusion and php etc.? If so, then this would really make flex stand out from the rest of the RIA development tools.

    For php I don’t see why not, as creating php classes, models etc. should be quite similar. it would probably tie the basic user into using one particular framework like ZendAMF, although anyone with a bit of experience could remodel the generated classes etc. to suit their framework or oop technique.

    Regarding your tutorial / demo video it would be great if you could demonstrate how to turn the objects returned in the data grid into usable entities like item renderers / editors. For example if you could demonstrate the following;

    An item renderer/item editor using a combo box for the IndustryId field
    An item renderer/item editor using a checkbox for the publicCompany field

    I know this is adds a little complication to the demo and its not your responsibility to show us how to do everything possible with flash builder but it would really be helpful as there are no concrete examples that I know of on the net showing this sort of functionality using a service orientated dataprovider (I have seen some which use inline static arrays or static array collections). And personally believe Adobe should be making lighter work of creating item renderers using combo boxes / dropdownlists within a datagrid or form.

    I believe the quicker developers can get up to speed using flash builder to do common tasks and ui interoperability the better the product will become and having persons like yourself doing an excellent job giving us developers an insight into the possibilities of the product is invaluable.

    Your Sales Builder App is awesome too and would recommend anyone interested in creating air or flex applications to take a look, beginners and experienced programmers alike as there are some excellent examples of how to model your app, mvc layout and integrating external libraries.

  • May I also add that it is great to see someone going that little bit further when creating a tutorial. Things like adding a search feature that doesn’t just filter the current array collection but instead utilises a call to the server and other bits like field validation and the use of model/class properties to only show a field based on a certain criteria.

  • Pingback: Quelques nouveautés Adobe | Blog Objet Direct()

  • Antony Jukes

    Hi Christophe, firstly thanks for a great tutorial..

    I have come across an issue using multiple model driven forms in the same application,
    (http://help.adobe.com/en_US/LiveCycleDataServicesES/3.0/Installing/lcds30_releasenotes.html) (bug LCDS-1119)

    In a nut shell, if you are editing a LCDS model driven form in one area of your application it will directly effect the other model driven forms within the same app, it makes no difference whether the the forms are located in different states or components etc.

    I understand that this is a bug but just wondering if you know of a workaround or if a new bug fix release of LCDS 3 is due anytime soon?? I am currently using release October 09. Any advice would be greatly appreciated.

  • Thanks for posting. I saw this in St. Louis. Great!!

  • Great demo, i can really see how useful it is.

  • For php I don’t see why not, as creating php classes, models etc. should be quite similar. it would probably tie the basic user into using one particular framework like ZendAMF, although anyone with a bit of experience could remodel the generated classes etc. to suit their framework or oop technique.

    Regarding your tutorial / demo video it would be great if you could demonstrate how to turn the objects returned in the data grid into usable entities like item renderers / editors. For example if you could demonstrate the following

  • annappa

    HI,

    I am new to this site and i want to connect flex to a database using
    LCDS but it is showing RDS server error i am not able to find why this
    is happening if any one knows pls reply me since last 3 days i am
    struggling with this problem help me out regarding this.

  • Kemal TURHAN

    Hi Christophe,

    I really appreciate you for your stuffs. I try to some simple example of LCDS but I’m about to lose my mind. I tried everything in my mind but i couldn’t . Plesae help me;
    I have developed my applicaqtion by using flex builder 4.o eclipse plug-in
    i have got the error when i run the aplication for three days.
    ——————————————————————–
    Error: Invalid configuration setting for reconnect. Valid options are IDENTITY or INSTANCE
    at mx.data::Metadata/checkReconnect()[C:\depot\DataServices\trunk\frameworks\projects\data\src\mx\data\Metadata.as:2178]
    at mx.data::Metadata/applyConfigSettings()[C:\depot\DataServices\trunk\frameworks\projects\data\src\mx\data\Metadata.as:2099]
    at Function/()[C:\depot\DataServices\trunk\frameworks\projects\data\src\mx\data\Metadata.as:119]
    at mx.data::Metadata/initialize()[C:\depot\DataServices\trunk\frameworks\projects\data\src\mx\data\Metadata.as:181]
    at Function/()[C:\depot\DataServices\trunk\frameworks\projects\data\src\mx\data\DataStore.as:3245]
    at Function/()[C:\depot\DataServices\trunk\frameworks\projects\data\src\mx\data\DataStore.as:3133]
    at mx.data::DataStore/getAllConfigCollections()[C:\depot\DataServices\trunk\frameworks\projects\data\src\mx\data\DataStore.as:3135]
    at Function/()[C:\depot\DataServices\trunk\frameworks\projects\data\src\mx\data\DataStore.as:3416]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at mx.messaging::MessageAgent/channelConnectHandler()[E:\dev\4.0.0\frameworks\projects\rpc\src\mx\messaging\MessageAgent.as:903]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at mx.messaging::ChannelSet/channelConnectHandler()[E:\dev\4.0.0\frameworks\projects\rpc\src\mx\messaging\ChannelSet.as:1091]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at mx.messaging::Channel/connectSuccess()[E:\dev\4.0.0\frameworks\projects\rpc\src\mx\messaging\Channel.as:1159]
    at mx.messaging.channels::RTMPChannel/setUpMainNC()[C:\depot\DataServices\trunk\frameworks\projects\data\src\mx\messaging\channels\RTMPChannel.as:468]
    at mx.messaging.channels::RTMPChannel/tempStatusHandler()[C:\depot\DataServices\trunk\frameworks\projects\data\src\mx\messaging\channels\RTMPChannel.as:610]

  • It’s good to see this info ave the link which i was looking for my research.

  • Kemal TURHAN

    Hi,
    I sent the post begining with “Error: Invalid configuration setting for reconnect. Valid options are IDENTITY or INSTANCE…” but no one answered yet.

    I have done the same things that i watched the screencast. But there weren’t compiled assempler classes in ..\tomcat\webapps\lcds\WEB-INF\classes. Flash Builder 4 generates java codes but i wonder whether automatically copying compiled classes to the LCDS server or not. If it doesn’t what should i do?

    I’ll be very happy if someone answer me.

  • Cob

    Hi I just follow the tutorial but no luck. I’m encountering the error below. Any idea. Thank you.

    TypeError: Error #1006: normalize is not a function.
    at mx.data::ConcreteDataService/http://www.adobe.com/2006/flex/mx/internal::normalize()[C:\depot\DataServices\trunk\frameworks\projects\data\src\mx\data\ConcreteDataService.as:4326]

    at mx.data::DataList/http://www.adobe.com/2006/flex/mx/internal::processSequence()[C:\depot\DataServices\trunk\frameworks\projects\data\src\mx\data\DataList.as:2510]
    at mx.data::DataList/http://www.adobe.com/2006/flex/mx/internal::processSequenceResult()[C:\depot\DataServices\trunk\frameworks\projects\data\src\mx\data\DataList.as:2881]

    at mx.data::DataListRequestResponder/result()[C:\depot\DataServices\trunk\frameworks\projects\data\src\mx\data\DataListRequestResponder.as:103]

    at mx.rpc::AsyncRequest/acknowledge()[E:\dev\4.x\frameworks\projects\rpc\src\mx\rpc\AsyncRequest.as:84]

    at NetConnectionMessageResponder/resultHandler()[E:\dev\4.x\frameworks\projects\rpc\src\mx\messaging\channels\NetConnectionChannel.as:547]

    at mx.messaging::MessageResponder/result()[E:\dev\4.x\frameworks\projects\rpc\src\mx\messaging\MessageResponder.as:235]

  • Kemal TURHAN

    Hi,

    I sent the post begining with “Error: Invalid configuration setting for reconnect. Valid options are IDENTITY or INSTANCE…” before.
    finally, i change the regional and language settings from Türkçe (Türkiye) to English (American)
    of windows 7, it works correctly.

    But this is a bug, it should be corrected.

  • Rupak Khurana

    Hello, I have a ClassCastException while deploying the model to LCDS server. I have Jboss 4.2.3 and Oracle 10g XE database. The RDS configuration is correct and I can drag the tables to the fml design layout but while deploying it , I get errors. I tried to create a new table called TestTable in the fml and deploy it too but no luck. Any ideas whats going in. The only config file I have provided is to define a datasource oracle-ds.xml with jboss. I have not changed any flex data config file or any other file. Here is the exception as posted by jboss :-

    13:21:09,076 INFO [STDOUT] [LCDS]Exception trying to build hibernate’s session factory: java.lang.ClassCastException: org.hibernate.validator.event.ValidateEventListener cannot be cast to org.hibernate.event.PreInsertEventListener
    at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:783)
    at flex.data.assemblers.HibernateManager.createSessionFactory(HibernateManager.java:80)
    at flex.data.assemblers.HibernateManager.(HibernateManager.java:58)
    at flex.data.assemblers.HibernateAssembler.setHibernateManager(HibernateAssembler.java:615)
    at flex.data.assemblers.HibernateAssembler.createHibernateType(HibernateAssembler.java:259)
    at flex.data.assemblers.HibernateAssembler.initialize(HibernateAssembler.java:247)
    at flex.data.assemblers.HibernateAnnotationsAssembler.initialize(HibernateAnnotationsAssembler.java:52)
    at fiber.data.assemblers.FiberAssembler.initialize(FiberAssembler.java:167)
    at flex.messaging.factories.JavaFactoryInstance.createInstance(JavaFactoryInstance.java:109)
    at flex.messaging.factories.JavaFactory.createFactoryInstance(JavaFactory.java:117)
    at flex.messaging.FactoryDestination.createFactoryInstance(FactoryDestination.java:255)
    at flex.messaging.FactoryDestination.getFactoryInstance(FactoryDestination.java:238)
    at flex.messaging.FactoryDestination.getFactoryInstance(FactoryDestination.java:226)
    at flex.data.DataDestination.getFactoryInstance(DataDestination.java:345)
    at flex.data.adapters.JavaAdapter.initializeFactoryInstance(JavaAdapter.java:211)
    at flex.data.adapters.JavaAdapter.initialize(JavaAdapter.java:193)
    at fiber.data.services.FiberDestinationManager.createDataManagementDestination(FiberDestinationManager.java:236)
    at fiber.data.services.FiberDestinationManager.createDataManagementDestinations(FiberDestinationManager.java:120)
    at fiber.data.services.ModelDeploymentService.deploy_internal(ModelDeploymentService.java:589)
    at fiber.data.services.ModelDeploymentService.deploy(ModelDeploymentService.java:347)
    at flex.rds.server.servlet.ModelServlet$DeployOperator.processCmd(ModelServlet.java:139)
    at flex.rds.server.servlet.ModelServlet.processCmd(ModelServlet.java:103)
    at flex.rds.server.RdsServlet.doPost(RdsServlet.java:128)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    at flex.rds.server.servlet.FrontEndServlet.doPost(FrontEndServlet.java:183)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
    at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)
    at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
    at java.lang.Thread.run(Thread.java:619)
    13:21:09,098 INFO [STDOUT] [LCDS]Error instantiating application scoped instance of type ‘fiber.data.assemblers.FiberAssembler’ for destination ‘UlltraWebServer.TestTable’.
    java.lang.ClassCastException: org.hibernate.validator.event.ValidateEventListener cannot be cast to org.hibernate.event.PreInsertEventListener
    at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:783)
    at flex.data.assemblers.HibernateManager.createSessionFactory(HibernateManager.java:80)
    at flex.data.assemblers.HibernateManager.(HibernateManager.java:58)
    at flex.data.assemblers.HibernateAssembler.setHibernateManager(HibernateAssembler.java:615)
    at flex.data.assemblers.HibernateAssembler.createHibernateType(HibernateAssembler.java:259)
    at flex.data.assemblers.HibernateAssembler.initialize(HibernateAssembler.java:247)
    at flex.data.assemblers.HibernateAnnotationsAssembler.initialize(HibernateAnnotationsAssembler.java:52)
    at fiber.data.assemblers.FiberAssembler.initialize(FiberAssembler.java:167)
    at flex.messaging.factories.JavaFactoryInstance.createInstance(JavaFactoryInstance.java:109)
    at flex.messaging.factories.JavaFactory.createFactoryInstance(JavaFactory.java:117)
    at flex.messaging.FactoryDestination.createFactoryInstance(FactoryDestination.java:255)
    at flex.messaging.FactoryDestination.getFactoryInstance(FactoryDestination.java:238)
    at flex.messaging.FactoryDestination.getFactoryInstance(FactoryDestination.java:226)
    at flex.data.DataDestination.getFactoryInstance(DataDestination.java:345)
    at flex.data.adapters.JavaAdapter.initializeFactoryInstance(JavaAdapter.java:211)
    at flex.data.adapters.JavaAdapter.initialize(JavaAdapter.java:193)
    at fiber.data.services.FiberDestinationManager.createDataManagementDestination(FiberDestinationManager.java:236)
    at fiber.data.services.FiberDestinationManager.createDataManagementDestinations(FiberDestinationManager.java:120)
    at fiber.data.services.ModelDeploymentService.deploy_internal(ModelDeploymentService.java:589)
    at fiber.data.services.ModelDeploymentService.deploy(ModelDeploymentService.java:347)
    at flex.rds.server.servlet.ModelServlet$DeployOperator.processCmd(ModelServlet.java:139)
    at flex.rds.server.servlet.ModelServlet.processCmd(ModelServlet.java:103)
    at flex.rds.server.RdsServlet.doPost(RdsServlet.java:128)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    at flex.rds.server.servlet.FrontEndServlet.doPost(FrontEndServlet.java:183)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
    at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)
    at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
    at java.lang.Thread.run(Thread.java:619)
    13:21:09,118 INFO [STDOUT] [LCDS]Exception trying to build hibernate’s session factory: java.lang.ClassCastException: org.hibernate.validator.event.ValidateEventListener cannot be cast to org.hibernate.event.PreInsertEventListener
    at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:783)
    at flex.data.assemblers.HibernateManager.createSessionFactory(HibernateManager.java:80)
    at flex.data.assemblers.HibernateManager.(HibernateManager.java:58)
    at flex.data.assemblers.HibernateAssembler.setHibernateManager(HibernateAssembler.java:615)
    at flex.data.assemblers.HibernateAssembler.createHibernateType(HibernateAssembler.java:259)
    at flex.data.assemblers.HibernateAssembler.initialize(HibernateAssembler.java:247)
    at flex.data.assemblers.HibernateAnnotationsAssembler.initialize(HibernateAnnotationsAssembler.java:52)
    at fiber.data.assemblers.FiberAssembler.initialize(FiberAssembler.java:167)
    at flex.messaging.factories.JavaFactoryInstance.createInstance(JavaFactoryInstance.java:109)
    at flex.messaging.factories.JavaFactory.createFactoryInstance(JavaFactory.java:117)
    at flex.messaging.FactoryDestination.createFactoryInstance(FactoryDestination.java:255)
    at flex.messaging.FactoryDestination.getFactoryInstance(FactoryDestination.java:238)
    at flex.messaging.FactoryDestination.getFactoryInstance(FactoryDestination.java:226)
    at flex.data.DataDestination.getFactoryInstance(DataDestination.java:345)
    at fiber.data.services.FiberDestinationManager.createDataManagementDestination(FiberDestinationManager.java:239)
    at fiber.data.services.FiberDestinationManager.createDataManagementDestinations(FiberDestinationManager.java:120)
    at fiber.data.services.ModelDeploymentService.deploy_internal(ModelDeploymentService.java:589)
    at fiber.data.services.ModelDeploymentService.deploy(ModelDeploymentService.java:347)
    at flex.rds.server.servlet.ModelServlet$DeployOperator.processCmd(ModelServlet.java:139)
    at flex.rds.server.servlet.ModelServlet.processCmd(ModelServlet.java:103)
    at flex.rds.server.RdsServlet.doPost(RdsServlet.java:128)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    at flex.rds.server.servlet.FrontEndServlet.doPost(FrontEndServlet.java:183)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
    at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)
    at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
    at java.lang.Thread.run(Thread.java:619)
    13:21:09,129 INFO [STDOUT] [LCDS]Error instantiating application scoped instance of type ‘fiber.data.assemblers.FiberAssembler’ for destination ‘UlltraWebServer.TestTable’.
    java.lang.ClassCastException: org.hibernate.validator.event.ValidateEventListener cannot be cast to org.hibernate.event.PreInsertEventListener
    at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:783)
    at flex.data.assemblers.HibernateManager.createSessionFactory(HibernateManager.java:80)
    at flex.data.assemblers.HibernateManager.(HibernateManager.java:58)
    at flex.data.assemblers.HibernateAssembler.setHibernateManager(HibernateAssembler.java:615)
    at flex.data.assemblers.HibernateAssembler.createHibernateType(HibernateAssembler.java:259)
    at flex.data.assemblers.HibernateAssembler.initialize(HibernateAssembler.java:247)
    at flex.data.assemblers.HibernateAnnotationsAssembler.initialize(HibernateAnnotationsAssembler.java:52)
    at fiber.data.assemblers.FiberAssembler.initialize(FiberAssembler.java:167)
    at flex.messaging.factories.JavaFactoryInstance.createInstance(JavaFactoryInstance.java:109)
    at flex.messaging.factories.JavaFactory.createFactoryInstance(JavaFactory.java:117)
    at flex.messaging.FactoryDestination.createFactoryInstance(FactoryDestination.java:255)
    at flex.messaging.FactoryDestination.getFactoryInstance(FactoryDestination.java:238)
    at flex.messaging.FactoryDestination.getFactoryInstance(FactoryDestination.java:226)
    at flex.data.DataDestination.getFactoryInstance(DataDestination.java:345)
    at fiber.data.services.FiberDestinationManager.createDataManagementDestination(FiberDestinationManager.java:239)
    at fiber.data.services.FiberDestinationManager.createDataManagementDestinations(FiberDestinationManager.java:120)
    at fiber.data.services.ModelDeploymentService.deploy_internal(ModelDeploymentService.java:589)
    at fiber.data.services.ModelDeploymentService.deploy(ModelDeploymentService.java:347)
    at flex.rds.server.servlet.ModelServlet$DeployOperator.processCmd(ModelServlet.java:139)
    at flex.rds.server.servlet.ModelServlet.processCmd(ModelServlet.java:103)
    at flex.rds.server.RdsServlet.doPost(RdsServlet.java:128)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    at flex.rds.server.servlet.FrontEndServlet.doPost(FrontEndServlet.java:183)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
    at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)
    at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
    at java.lang.Thread.run(Thread.java:619)
    13:21:09,249 INFO [STDOUT] [LCDS]Error creating and starting destinations while deploying model ‘UlltraWebServer’: Error instantiating application scoped instance of type ‘fiber.data.assemblers.FiberAssembler’ for destination ‘UlltraWebServer.TestTable’. Caused by: java.lang.ClassCastException: org.hibernate.validator.event.ValidateEventListener cannot be cast to org.hibernate.event.PreInsertEventListener
    fiber.data.services.FiberDeployException: Error creating and starting destinations while deploying model ‘UlltraWebServer’: Error instantiating application scoped instance of type ‘fiber.data.assemblers.FiberAssembler’ for destination ‘UlltraWebServer.TestTable’. Caused by: java.lang.ClassCastException: org.hibernate.validator.event.ValidateEventListener cannot be cast to org.hibernate.event.PreInsertEventListener
    at fiber.data.services.ModelDeploymentService.deploy_internal(ModelDeploymentService.java:596)
    at fiber.data.services.ModelDeploymentService.deploy(ModelDeploymentService.java:347)
    at flex.rds.server.servlet.ModelServlet$DeployOperator.processCmd(ModelServlet.java:139)
    at flex.rds.server.servlet.ModelServlet.processCmd(ModelServlet.java:103)
    at flex.rds.server.RdsServlet.doPost(RdsServlet.java:128)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    at flex.rds.server.servlet.FrontEndServlet.doPost(FrontEndServlet.java:183)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
    at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)
    at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
    at java.lang.Thread.run(Thread.java:619)
    Caused by: flex.messaging.config.ConfigurationException: Error instantiating application scoped instance of type ‘fiber.data.assemblers.FiberAssembler’ for destination ‘UlltraWebServer.TestTable’.
    at flex.messaging.factories.JavaFactory.createFactoryInstance(JavaFactory.java:143)
    at flex.messaging.FactoryDestination.createFactoryInstance(FactoryDestination.java:255)
    at flex.messaging.FactoryDestination.getFactoryInstance(FactoryDestination.java:238)
    at flex.messaging.FactoryDestination.getFactoryInstance(FactoryDestination.java:226)
    at flex.data.DataDestination.getFactoryInstance(DataDestination.java:345)
    at fiber.data.services.FiberDestinationManager.createDataManagementDestination(FiberDestinationManager.java:239)
    at fiber.data.services.FiberDestinationManager.createDataManagementDestinations(FiberDestinationManager.java:120)
    at fiber.data.services.ModelDeploymentService.deploy_internal(ModelDeploymentService.java:589)
    … 27 more
    Caused by: java.lang.ClassCastException: org.hibernate.validator.event.ValidateEventListener cannot be cast to org.hibernate.event.PreInsertEventListener
    at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:783)
    at flex.data.assemblers.HibernateManager.createSessionFactory(HibernateManager.java:80)
    at flex.data.assemblers.HibernateManager.(HibernateManager.java:58)
    at flex.data.assemblers.HibernateAssembler.setHibernateManager(HibernateAssembler.java:615)
    at flex.data.assemblers.HibernateAssembler.createHibernateType(HibernateAssembler.java:259)
    at flex.data.assemblers.HibernateAssembler.initialize(HibernateAssembler.java:247)
    at flex.data.assemblers.HibernateAnnotationsAssembler.initialize(HibernateAnnotationsAssembler.java:52)
    at fiber.data.assemblers.FiberAssembler.initialize(FiberAssembler.java:167)
    at flex.messaging.factories.JavaFactoryInstance.createInstance(JavaFactoryInstance.java:109)
    at flex.messaging.factories.JavaFactory.createFactoryInstance(JavaFactory.java:117)
    … 34 more

  • sb

    I appeared to be extremely pleased to search out this particular web-site.I want to to thank you for your precious time with this amazing study!! I ACTUALLY certainly loving every little bit of this and I’ve you saved to see new items you blog post.

  • ut5u t t jt j j

  • So you want instantly reliable eyewear that you can use

  • David Welden

    Total newbie with LCDS and Flash Builder.

    Running FB 4.5 with SDK 4.5.1 and Modeler 3.1.1 for a Flex Mobile Project. I installed lcds31 for Windows with integrated Tomcat server. Per the release notes for the Modeller plugin, I tried to update the fiber.swc file in LCDS. I did not find folder FB_INSTALL_DIR\eclipse\plugins\com.adobe.flexbuilder.project_4.5.0.30 8971\fiberSwcs\4.5\libs but did find what appears to be the equivalent (FB_INSTALL_DIR\eclipse\plugins\com.adobe.flexbuilder.project_4.5.1.313231\fiberSwcs\ 4.5\libs) so I copied in that folder’s fiber.swc to LCDS.

    My project is still getting the following errors:

    Unable to resolve resource bundle “data” for locale “en_US”. TBOB-POC Unknown Flex Problem
    Unable to resolve resource bundle “fiber” for locale “en_US”. TBOB-POC Unknown Flex Problem

    Google search reveals that this is not an unknown problem, but I have not found a definitive explanation of how I can resolve this. Are there updated SWCs that need to be copied into the WEB-INF/flex/locale/en_US folder or do I need to add another folder to my compile path or what?

    Any help is much appreciated as the POC for using Adobe for mobile development at my company depends on getting this working.

  • Nice work. Thanks for putting this post together and sharing with us. I appreciate it.

  • Just wanted to let you know that I really liked your blog. Thanks a lot for sharing this great piece of work with us.

  • I have read your blog it is very helpful for me. I want to say thanks to you. I have bookmark your site for future updates. Thanks!

  • I would like to congratulate the author for his brilliant efforts in putting this article together and sharing with us. He has done a great job. Thanks.

  • Thanks so much for providing people with such a terrific chance to discover critical secrets from this weblog. It seriously is so pleasing and too , packed with entertaining for me and my workplace peers to pay a visit to your internet site minimum 3 instances in 7 days to read via the fresh guidelines you’ll have. And naturally, I’m in any respect instances impressed thinking about the specific options you give. Specific two concepts in this post are unquestionably the most impressive I’ve had.

  • “This blog is really very interesting and easy to understand the information provided in it. It is very nice to view this blog and it’s nice to see the best information cited here.
    Thank you.”

  • usama

    world of warcraft hints is a Massively Multiplayer Game on The Web.
    I liked this game

  • Pablo

    Could you publish de database you used in this example? I’m having terrible problems with images and postgresql using byte array fields. I notice in you video you image field is in fact text. I’m sort of discovering how this works.

    If you could publish the db it would be a great help for me.

css.php