Re: Facing problems while converting from Flex to Apache Royale
Hi, this maybe will be better asked in Royale list, or if possible in stackoverflow that we're trying to enhance (please check for "apache-royale" tag in SOF site and join us there We at Codeoscopic just migrated our first Spring-BlazeDS-Flex to Apache Royale. This is a complex one using Royale Jewel UI set and MX RemoteObject emulation. I can try to help you but I must know. We have as well flexmojos for flex and folders for "java", "flex" and now "royale" We put royale at the same level and exposed it vía Spring MVC to be available. Since Royale is designed with Maven from scratch it does not need flexmojos, that introduce a point of pain with flex since flex was not designed from scratch as Royale. So our experience is using Jewel UI set. This UI Set does not use ArrayCollection, instead we use ArrayList (and ArrayListView as ListCollectionView) So please use: registerClassAlias("flex.messaging.io.ArrayCollection", ArrayList); so when you get AC from server you map to AL instead. The target is to not change anything in java or its config. all your Blazeds config should be valid, even small-messages that are working in latest builds (remember to use latest 0.9.6 nightly build to get all of this, not latest release 0.9.4 that does not have all this) Now try to first start sending a simple string and getting it in Royale. That should mostly straight forward. Then try more complex communications with objects and let us know. But please do following communications in Royale mailing list and if you have concrete questions please do it in stack overflow so we can grow in SOF that will be of help to many people out there HTH -- Carlos Rovira http://about.me/carlosrovira
Facing problems while converting from Flex to Apache Royale
Hi everyone, Currently I am working on migration project from Flex+Spring with BlazeDS to Apache royale. I am very new to Flex and Apache Roayle. My Flex(spring+balzeDS) project architecture is We are using maven flexmojo plugin to convert flex package to .swf file then we are loading that file in .swf file whenever user is login in the app. Once that is done I can able to see that all action whatever I am doing in flex UI it going to backend service by using the "my-amf" channel and I can able to talk to my destination classes from UI. Here is my question in this architecture How Can I introduce Apache royale UI to get rid off Flex by using Maven. I created new project with in that I have just one text box with submit button on click event I am talking to My old Application where I have added one method but I am unable to get any response and it is giving me some erro. *http://ns.adobe.com/mxml/2009; xmlns:js="library://ns.apache.org/royale/basic" xmlns:mx="library://ns.apache.org/royale/mx" xmlns:local="*" initialize="iniApp(event)"> http://localhost:8081/STARS/messagebroker/amf; destination="reportService" result="handleLoadResult(event)" fault="handleFault(event)" showBusyCursor="true" /> http://localhost:8081/STARS/messagebroker/amf; result="handleLoadResult(event)" fault="handleFault(event)" showBusyCursor="true"/> * ERROR: Exception: java.lang.NullPointerException at java.util.concurrent.ConcurrentHashMap.get(ConcurrentHashMap.java:936) at flex.messaging.MessageBroker.routeMessageToService(MessageBroker.java:1373) at flex.messaging.endpoints.AbstractEndpoint.serviceMessage(AbstractEndpoint.java:1005) at flex.messaging.endpoints.amf.MessageBrokerFilter.invoke(MessageBrokerFilter.java:103) at flex.messaging.endpoints.amf.LegacyFilter.invoke(LegacyFilter.java:158) at flex.messaging.endpoints.amf.SessionFilter.invoke(SessionFilter.java:44) at flex.messaging.endpoints.amf.BatchProcessFilter.invoke(BatchProcessFilter.java:67) at flex.messaging.endpoints.amf.SerializationFilter.invoke(SerializationFilter.java:166) at flex.messaging.endpoints.BaseHTTPEndpoint.service(BaseHTTPEndpoint.java:291) at flex.messaging.MessageBrokerServlet.service(MessageBrokerServlet.java:353) at javax.servlet.http.HttpServlet.service(HttpServlet.java:742) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330) at org.springframework.security.web.authentication.preauth.AbstractPreAuthenticatedProcessingFilter.doFilter(AbstractPreAuthenticatedProcessingFilter.java:107) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342) at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:118) at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:84) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342) at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:113) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342) at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:103) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342) at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:154) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342) at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:45) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342) at org.springframework.security.web.authentication.www.BasicAuthenticationFilter.doFilter(BasicAuthenticationFilter.java:150) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342) at