flex.messaging.MessageException: Failed to set property 'headers' on type 'flex.messaging.messages.CommandMessage'.

Spring JIRA | Martin Gilday | 7 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Receiving the error 'Reason: Server error Failed to set property 'headers' on type 'flex.messaging.messages.RemotingMessage'. null' when invoking Test Operation from Flash Builder 4 Beta 2 Standalone. [code][BlazeDS]03/12/2010 14:45:47.214 [ERROR] [Endpoint.AMF] Failed to set property 'headers' on type 'flex.messaging.messages.CommandMessage'. flex.messaging.MessageException: Failed to set property 'headers' on type 'flex.messaging.messages.CommandMessage'. at flex.messaging.io.BeanProxy.setValue(BeanProxy.java:282) at flex.messaging.io.amf.Amf3Input.readScriptObject(Amf3Input.java:438) at flex.messaging.io.amf.Amf3Input.readObjectValue(Amf3Input.java:152) at flex.messaging.io.amf.Amf3Input.readObject(Amf3Input.java:130) at flex.messaging.io.amf.Amf3Input.readArray(Amf3Input.java:358) at flex.messaging.io.amf.Amf3Input.readObjectValue(Amf3Input.java:156) at flex.messaging.io.amf.Amf3Input.readObject(Amf3Input.java:130) at flex.messaging.io.amf.Amf0Input.readObjectValue(Amf0Input.java:123) at flex.messaging.io.amf.Amf0Input.readObject(Amf0Input.java:94) at flex.messaging.io.amf.AmfMessageDeserializer.readObject(AmfMessageDeserializer.java:227) at flex.messaging.io.amf.AmfMessageDeserializer.readBody(AmfMessageDeserializer.java:206) at flex.messaging.io.amf.AmfMessageDeserializer.readMessage(AmfMessageDeserializer.java:126) at flex.messaging.endpoints.amf.SerializationFilter.invoke(SerializationFilter.java:145) at flex.messaging.endpoints.BaseHTTPEndpoint.service(BaseHTTPEndpoint.java:291) at flex.messaging.endpoints.AMFEndpoint$$EnhancerByCGLIB$$64d33e29.service(<generated>) at org.springframework.flex.servlet.MessageBrokerHandlerAdapter.handle(MessageBrokerHandlerAdapter.java:101) at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:771) at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:716) at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:647) at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:563) at javax.servlet.http.HttpServlet.service(HttpServlet.java:727) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:502) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:378) at org.springframework.security.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:109) at org.springframework.security.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83) at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390) at org.springframework.security.ui.ExceptionTranslationFilter.doFilterHttp(ExceptionTranslationFilter.java:101) at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53) at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390) at org.springframework.security.providers.anonymous.AnonymousProcessingFilter.doFilterHttp(AnonymousProcessingFilter.java:105) at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53) at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390) at org.springframework.security.ui.rememberme.RememberMeProcessingFilter.doFilterHttp(RememberMeProcessingFilter.java:109) at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53) at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390) at org.springframework.security.wrapper.SecurityContextHolderAwareRequestFilter.doFilterHttp(SecurityContextHolderAwareRequestFilter.java:91) at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53) at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390) at org.springframework.security.ui.basicauth.BasicProcessingFilter.doFilterHttp(BasicProcessingFilter.java:174) at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53) at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390) at org.springframework.security.ui.webapp.DefaultLoginPageGeneratingFilter.doFilterHttp(DefaultLoginPageGeneratingFilter.java:86) at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53) at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390) at org.springframework.security.ui.AbstractProcessingFilter.doFilterHttp(AbstractProcessingFilter.java:277) at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53) at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390) at org.springframework.security.ui.logout.LogoutFilter.doFilterHttp(LogoutFilter.java:89) at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53) at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390) at org.springframework.security.context.HttpSessionContextIntegrationFilter.doFilterHttp(HttpSessionContextIntegrationFilter.java:235) at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53) at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390) at org.springframework.security.util.FilterChainProxy.doFilter(FilterChainProxy.java:175) at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:237) at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1148) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:387) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:417) at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230) at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) at org.mortbay.jetty.Server.handle(Server.java:324) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:535) at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:880) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:747) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409) at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:520) Caused by: java.lang.ClassCastException: [Ljava.lang.Object; cannot be cast to java.util.Map at flex.messaging.io.amf.translator.decoder.MapDecoder.decodeObject(MapDecoder.java:91) at flex.messaging.io.amf.translator.decoder.ActionScriptDecoder.decodeObject(ActionScriptDecoder.java:71) at flex.messaging.io.amf.translator.ASTranslator.convert(ASTranslator.java:77) at flex.messaging.io.BeanProxy.setValue(BeanProxy.java:263) ... 74 more [/code] With this is services-config.xml it fails [code] <serialization> <ignore-property-errors>false</ignore-property-errors> <log-property-errors>true</log-property-errors> </serialization> [/code] With this it works [code] <serialization> <ignore-property-errors>true</ignore-property-errors> <!--<log-property-errors>true</log-property-errors> --> </serialization> [/code]

    Spring JIRA | 7 years ago | Martin Gilday
    flex.messaging.MessageException: Failed to set property 'headers' on type 'flex.messaging.messages.CommandMessage'.
  2. 0

    Receiving the error 'Reason: Server error Failed to set property 'headers' on type 'flex.messaging.messages.RemotingMessage'. null' when invoking Test Operation from Flash Builder 4 Beta 2 Standalone. [code][BlazeDS]03/12/2010 14:45:47.214 [ERROR] [Endpoint.AMF] Failed to set property 'headers' on type 'flex.messaging.messages.CommandMessage'. flex.messaging.MessageException: Failed to set property 'headers' on type 'flex.messaging.messages.CommandMessage'. at flex.messaging.io.BeanProxy.setValue(BeanProxy.java:282) at flex.messaging.io.amf.Amf3Input.readScriptObject(Amf3Input.java:438) at flex.messaging.io.amf.Amf3Input.readObjectValue(Amf3Input.java:152) at flex.messaging.io.amf.Amf3Input.readObject(Amf3Input.java:130) at flex.messaging.io.amf.Amf3Input.readArray(Amf3Input.java:358) at flex.messaging.io.amf.Amf3Input.readObjectValue(Amf3Input.java:156) at flex.messaging.io.amf.Amf3Input.readObject(Amf3Input.java:130) at flex.messaging.io.amf.Amf0Input.readObjectValue(Amf0Input.java:123) at flex.messaging.io.amf.Amf0Input.readObject(Amf0Input.java:94) at flex.messaging.io.amf.AmfMessageDeserializer.readObject(AmfMessageDeserializer.java:227) at flex.messaging.io.amf.AmfMessageDeserializer.readBody(AmfMessageDeserializer.java:206) at flex.messaging.io.amf.AmfMessageDeserializer.readMessage(AmfMessageDeserializer.java:126) at flex.messaging.endpoints.amf.SerializationFilter.invoke(SerializationFilter.java:145) at flex.messaging.endpoints.BaseHTTPEndpoint.service(BaseHTTPEndpoint.java:291) at flex.messaging.endpoints.AMFEndpoint$$EnhancerByCGLIB$$64d33e29.service(<generated>) at org.springframework.flex.servlet.MessageBrokerHandlerAdapter.handle(MessageBrokerHandlerAdapter.java:101) at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:771) at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:716) at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:647) at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:563) at javax.servlet.http.HttpServlet.service(HttpServlet.java:727) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:502) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:378) at org.springframework.security.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:109) at org.springframework.security.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83) at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390) at org.springframework.security.ui.ExceptionTranslationFilter.doFilterHttp(ExceptionTranslationFilter.java:101) at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53) at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390) at org.springframework.security.providers.anonymous.AnonymousProcessingFilter.doFilterHttp(AnonymousProcessingFilter.java:105) at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53) at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390) at org.springframework.security.ui.rememberme.RememberMeProcessingFilter.doFilterHttp(RememberMeProcessingFilter.java:109) at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53) at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390) at org.springframework.security.wrapper.SecurityContextHolderAwareRequestFilter.doFilterHttp(SecurityContextHolderAwareRequestFilter.java:91) at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53) at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390) at org.springframework.security.ui.basicauth.BasicProcessingFilter.doFilterHttp(BasicProcessingFilter.java:174) at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53) at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390) at org.springframework.security.ui.webapp.DefaultLoginPageGeneratingFilter.doFilterHttp(DefaultLoginPageGeneratingFilter.java:86) at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53) at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390) at org.springframework.security.ui.AbstractProcessingFilter.doFilterHttp(AbstractProcessingFilter.java:277) at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53) at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390) at org.springframework.security.ui.logout.LogoutFilter.doFilterHttp(LogoutFilter.java:89) at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53) at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390) at org.springframework.security.context.HttpSessionContextIntegrationFilter.doFilterHttp(HttpSessionContextIntegrationFilter.java:235) at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53) at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390) at org.springframework.security.util.FilterChainProxy.doFilter(FilterChainProxy.java:175) at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:237) at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1148) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:387) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:417) at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230) at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) at org.mortbay.jetty.Server.handle(Server.java:324) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:535) at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:880) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:747) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409) at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:520) Caused by: java.lang.ClassCastException: [Ljava.lang.Object; cannot be cast to java.util.Map at flex.messaging.io.amf.translator.decoder.MapDecoder.decodeObject(MapDecoder.java:91) at flex.messaging.io.amf.translator.decoder.ActionScriptDecoder.decodeObject(ActionScriptDecoder.java:71) at flex.messaging.io.amf.translator.ASTranslator.convert(ASTranslator.java:77) at flex.messaging.io.BeanProxy.setValue(BeanProxy.java:263) ... 74 more [/code] With this is services-config.xml it fails [code] <serialization> <ignore-property-errors>false</ignore-property-errors> <log-property-errors>true</log-property-errors> </serialization> [/code] With this it works [code] <serialization> <ignore-property-errors>true</ignore-property-errors> <!--<log-property-errors>true</log-property-errors> --> </serialization> [/code]

    Spring JIRA | 7 years ago | Martin Gilday
    flex.messaging.MessageException: Failed to set property 'headers' on type 'flex.messaging.messages.CommandMessage'.
  3. 0

    when passing ArrayCollection as a parameter to Java method which is declared with a list i am getting the below exception, in one of our previous projects we used the same mechanism with Blazeds3.0, spring2.5.6 and spring flex integration 1.0.0 and this works fine, however when i tired the same with Spring 3, Blazeds4 and FlexSpring Integration 1.5.0, i get the below exception. Sep 15, 2011 11:14:07 PM org.springframework.flex.servlet.MessageBrokerHandlerAd apter handle INFO: Channel endpoint my-amf received request. [BlazeDS]Cannot create class of type 'mx.collections.ArrayCollection'. flex.messaging.MessageException: Cannot create class of type 'mx.collections.Arr ayCollection'. Type 'mx.collections.ArrayCollection' not found. at flex.messaging.util.ClassUtil.createClass(ClassUtil.java:70) at flex.messaging.io.AbstractProxy.getClassFromClassName(AbstractProxy.j ava:87) at flex.messaging.io.amf.AbstractAmfInput.createObjectInstance(AbstractA mfInput.java:160) at flex.messaging.io.amf.Amf3Input.readScriptObject(Amf3Input.java:409) at flex.messaging.io.amf.Amf3Input.readObjectValue(Amf3Input.java:152) at flex.messaging.io.amf.Amf3Input.readObject(Amf3Input.java:130) at flex.messaging.io.amf.Amf3Input.readScriptObject(Amf3Input.java:437) at flex.messaging.io.amf.Amf3Input.readObjectValue(Amf3Input.java:152) at flex.messaging.io.amf.Amf3Input.readObject(Amf3Input.java:130) at flex.messaging.io.amf.Amf3Input.readArray(Amf3Input.java:358) at flex.messaging.io.amf.Amf3Input.readObjectValue(Amf3Input.java:156) at flex.messaging.io.amf.Amf3Input.readObject(Amf3Input.java:130) at flex.messaging.io.amf.Amf3Input.readScriptObject(Amf3Input.java:437) at flex.messaging.io.amf.Amf3Input.readObjectValue(Amf3Input.java:152) at flex.messaging.io.amf.Amf3Input.readObject(Amf3Input.java:130) at flex.messaging.io.amf.Amf0Input.readObjectValue(Amf0Input.java:123) at flex.messaging.io.amf.Amf0Input.readArrayValue(Amf0Input.java:359) at flex.messaging.io.amf.Amf0Input.readObjectValue(Amf0Input.java:127) at flex.messaging.io.amf.Amf0Input.readObject(Amf0Input.java:94) at flex.messaging.io.amf.AmfMessageDeserializer.readObject(AmfMessageDes erializer.java:227) at flex.messaging.io.amf.AmfMessageDeserializer.readBody(AmfMessageDeser ializer.java:206) at flex.messaging.io.amf.AmfMessageDeserializer.readMessage(AmfMessageDe serializer.java:126) at flex.messaging.endpoints.amf.SerializationFilter.invoke(Serialization Filter.java:145) at flex.messaging.endpoints.BaseHTTPEndpoint.service(BaseHTTPEndpoint.ja va:291) at flex.messaging.endpoints.AMFEndpoint$$EnhancerByCGLIB$$8400fb26.servi ce(<generated>) at org.springframework.flex.servlet.MessageBrokerHandlerAdapter.handle(M essageBrokerHandlerAdapter.java:109) at org.springframework.web.servlet.DispatcherServlet.doDispatch(Dispatch erServlet.java:790) at org.springframework.web.servlet.DispatcherServlet.doService(Dispatche rServlet.java:719) at org.springframework.web.servlet.FrameworkServlet.processRequest(Frame workServlet.java:644) at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServ let.java:560) at javax.servlet.http.HttpServlet.service(HttpServlet.java:641) at javax.servlet.http.HttpServlet.service(HttpServlet.java:722) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl icationFilterChain.java:306) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF ilterChain.java:210) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV alve.java:240) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV alve.java:161) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j ava:164) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j ava:100) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java: 541) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal ve.java:118) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav a:383) at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcesso r.java:284) at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.pr ocess(Http11AprProtocol.java:322) at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoin t.java:1684) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExec utor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor .java:908) at java.lang.Thread.run(Thread.java:662)

    Spring JIRA | 6 years ago | AvinashReddy
    flex.messaging.MessageException: Cannot create class of type 'mx.collections.Arr ayCollection'. Type 'mx.collections.ArrayCollection' not found.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    when passing ArrayCollection as a parameter to Java method which is declared with a list i am getting the below exception, in one of our previous projects we used the same mechanism with Blazeds3.0, spring2.5.6 and spring flex integration 1.0.0 and this works fine, however when i tired the same with Spring 3, Blazeds4 and FlexSpring Integration 1.5.0, i get the below exception. Sep 15, 2011 11:14:07 PM org.springframework.flex.servlet.MessageBrokerHandlerAd apter handle INFO: Channel endpoint my-amf received request. [BlazeDS]Cannot create class of type 'mx.collections.ArrayCollection'. flex.messaging.MessageException: Cannot create class of type 'mx.collections.Arr ayCollection'. Type 'mx.collections.ArrayCollection' not found. at flex.messaging.util.ClassUtil.createClass(ClassUtil.java:70) at flex.messaging.io.AbstractProxy.getClassFromClassName(AbstractProxy.j ava:87) at flex.messaging.io.amf.AbstractAmfInput.createObjectInstance(AbstractA mfInput.java:160) at flex.messaging.io.amf.Amf3Input.readScriptObject(Amf3Input.java:409) at flex.messaging.io.amf.Amf3Input.readObjectValue(Amf3Input.java:152) at flex.messaging.io.amf.Amf3Input.readObject(Amf3Input.java:130) at flex.messaging.io.amf.Amf3Input.readScriptObject(Amf3Input.java:437) at flex.messaging.io.amf.Amf3Input.readObjectValue(Amf3Input.java:152) at flex.messaging.io.amf.Amf3Input.readObject(Amf3Input.java:130) at flex.messaging.io.amf.Amf3Input.readArray(Amf3Input.java:358) at flex.messaging.io.amf.Amf3Input.readObjectValue(Amf3Input.java:156) at flex.messaging.io.amf.Amf3Input.readObject(Amf3Input.java:130) at flex.messaging.io.amf.Amf3Input.readScriptObject(Amf3Input.java:437) at flex.messaging.io.amf.Amf3Input.readObjectValue(Amf3Input.java:152) at flex.messaging.io.amf.Amf3Input.readObject(Amf3Input.java:130) at flex.messaging.io.amf.Amf0Input.readObjectValue(Amf0Input.java:123) at flex.messaging.io.amf.Amf0Input.readArrayValue(Amf0Input.java:359) at flex.messaging.io.amf.Amf0Input.readObjectValue(Amf0Input.java:127) at flex.messaging.io.amf.Amf0Input.readObject(Amf0Input.java:94) at flex.messaging.io.amf.AmfMessageDeserializer.readObject(AmfMessageDes erializer.java:227) at flex.messaging.io.amf.AmfMessageDeserializer.readBody(AmfMessageDeser ializer.java:206) at flex.messaging.io.amf.AmfMessageDeserializer.readMessage(AmfMessageDe serializer.java:126) at flex.messaging.endpoints.amf.SerializationFilter.invoke(Serialization Filter.java:145) at flex.messaging.endpoints.BaseHTTPEndpoint.service(BaseHTTPEndpoint.ja va:291) at flex.messaging.endpoints.AMFEndpoint$$EnhancerByCGLIB$$8400fb26.servi ce(<generated>) at org.springframework.flex.servlet.MessageBrokerHandlerAdapter.handle(M essageBrokerHandlerAdapter.java:109) at org.springframework.web.servlet.DispatcherServlet.doDispatch(Dispatch erServlet.java:790) at org.springframework.web.servlet.DispatcherServlet.doService(Dispatche rServlet.java:719) at org.springframework.web.servlet.FrameworkServlet.processRequest(Frame workServlet.java:644) at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServ let.java:560) at javax.servlet.http.HttpServlet.service(HttpServlet.java:641) at javax.servlet.http.HttpServlet.service(HttpServlet.java:722) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl icationFilterChain.java:306) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF ilterChain.java:210) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV alve.java:240) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV alve.java:161) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j ava:164) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j ava:100) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java: 541) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal ve.java:118) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav a:383) at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcesso r.java:284) at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.pr ocess(Http11AprProtocol.java:322) at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoin t.java:1684) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExec utor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor .java:908) at java.lang.Thread.run(Thread.java:662)

    Spring JIRA | 6 years ago | AvinashReddy
    flex.messaging.MessageException: Cannot create class of type 'mx.collections.Arr ayCollection'. Type 'mx.collections.ArrayCollection' not found.

    Root Cause Analysis

    1. java.lang.ClassCastException

      [Ljava.lang.Object; cannot be cast to java.util.Map

      at flex.messaging.io.amf.translator.decoder.MapDecoder.decodeObject()
    2. BlazeDS Core Library
      AMFEndpoint$$EnhancerByCGLIB$$64d33e29.service
      1. flex.messaging.io.amf.translator.decoder.MapDecoder.decodeObject(MapDecoder.java:91)
      2. flex.messaging.io.amf.translator.decoder.ActionScriptDecoder.decodeObject(ActionScriptDecoder.java:71)
      3. flex.messaging.io.amf.translator.ASTranslator.convert(ASTranslator.java:77)
      4. flex.messaging.io.BeanProxy.setValue(BeanProxy.java:263)
      5. flex.messaging.io.amf.Amf3Input.readScriptObject(Amf3Input.java:438)
      6. flex.messaging.io.amf.Amf3Input.readObjectValue(Amf3Input.java:152)
      7. flex.messaging.io.amf.Amf3Input.readObject(Amf3Input.java:130)
      8. flex.messaging.io.amf.Amf3Input.readArray(Amf3Input.java:358)
      9. flex.messaging.io.amf.Amf3Input.readObjectValue(Amf3Input.java:156)
      10. flex.messaging.io.amf.Amf3Input.readObject(Amf3Input.java:130)
      11. flex.messaging.io.amf.Amf0Input.readObjectValue(Amf0Input.java:123)
      12. flex.messaging.io.amf.Amf0Input.readObject(Amf0Input.java:94)
      13. flex.messaging.io.amf.AmfMessageDeserializer.readObject(AmfMessageDeserializer.java:227)
      14. flex.messaging.io.amf.AmfMessageDeserializer.readBody(AmfMessageDeserializer.java:206)
      15. flex.messaging.io.amf.AmfMessageDeserializer.readMessage(AmfMessageDeserializer.java:126)
      16. flex.messaging.endpoints.amf.SerializationFilter.invoke(SerializationFilter.java:145)
      17. flex.messaging.endpoints.BaseHTTPEndpoint.service(BaseHTTPEndpoint.java:291)
      18. flex.messaging.endpoints.AMFEndpoint$$EnhancerByCGLIB$$64d33e29.service(<generated>)
      18 frames
    3. org.springframework.flex
      MessageBrokerHandlerAdapter.handle
      1. org.springframework.flex.servlet.MessageBrokerHandlerAdapter.handle(MessageBrokerHandlerAdapter.java:101)
      1 frame
    4. Spring MVC
      FrameworkServlet.doPost
      1. org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:771)
      2. org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:716)
      3. org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:647)
      4. org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:563)
      4 frames
    5. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
      2. javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
      2 frames
    6. Jetty Server
      ServletHandler$CachedChain.doFilter
      1. org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:502)
      2. org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
      2 frames
    7. spring-security-core
      FilterChainProxy$VirtualFilterChain.doFilter
      1. org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:378)
      1 frame
    8. org.springframework.security
      FilterSecurityInterceptor.doFilter
      1. org.springframework.security.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:109)
      2. org.springframework.security.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83)
      2 frames
    9. spring-security-core
      FilterChainProxy$VirtualFilterChain.doFilter
      1. org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
      1 frame
    10. org.springframework.security
      SpringSecurityFilter.doFilter
      1. org.springframework.security.ui.ExceptionTranslationFilter.doFilterHttp(ExceptionTranslationFilter.java:101)
      2. org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
      2 frames
    11. spring-security-core
      FilterChainProxy$VirtualFilterChain.doFilter
      1. org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
      1 frame
    12. org.springframework.security
      SpringSecurityFilter.doFilter
      1. org.springframework.security.providers.anonymous.AnonymousProcessingFilter.doFilterHttp(AnonymousProcessingFilter.java:105)
      2. org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
      2 frames
    13. spring-security-core
      FilterChainProxy$VirtualFilterChain.doFilter
      1. org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
      1 frame
    14. org.springframework.security
      SpringSecurityFilter.doFilter
      1. org.springframework.security.ui.rememberme.RememberMeProcessingFilter.doFilterHttp(RememberMeProcessingFilter.java:109)
      2. org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
      2 frames
    15. spring-security-core
      FilterChainProxy$VirtualFilterChain.doFilter
      1. org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
      1 frame
    16. org.springframework.security
      SpringSecurityFilter.doFilter
      1. org.springframework.security.wrapper.SecurityContextHolderAwareRequestFilter.doFilterHttp(SecurityContextHolderAwareRequestFilter.java:91)
      2. org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
      2 frames
    17. spring-security-core
      FilterChainProxy$VirtualFilterChain.doFilter
      1. org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
      1 frame
    18. org.springframework.security
      SpringSecurityFilter.doFilter
      1. org.springframework.security.ui.basicauth.BasicProcessingFilter.doFilterHttp(BasicProcessingFilter.java:174)
      2. org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
      2 frames
    19. spring-security-core
      FilterChainProxy$VirtualFilterChain.doFilter
      1. org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
      1 frame
    20. org.springframework.security
      SpringSecurityFilter.doFilter
      1. org.springframework.security.ui.webapp.DefaultLoginPageGeneratingFilter.doFilterHttp(DefaultLoginPageGeneratingFilter.java:86)
      2. org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
      2 frames
    21. spring-security-core
      FilterChainProxy$VirtualFilterChain.doFilter
      1. org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
      1 frame
    22. org.springframework.security
      SpringSecurityFilter.doFilter
      1. org.springframework.security.ui.AbstractProcessingFilter.doFilterHttp(AbstractProcessingFilter.java:277)
      2. org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
      2 frames
    23. spring-security-core
      FilterChainProxy$VirtualFilterChain.doFilter
      1. org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
      1 frame
    24. org.springframework.security
      SpringSecurityFilter.doFilter
      1. org.springframework.security.ui.logout.LogoutFilter.doFilterHttp(LogoutFilter.java:89)
      2. org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
      2 frames
    25. spring-security-core
      FilterChainProxy$VirtualFilterChain.doFilter
      1. org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
      1 frame
    26. Spring Security - Portlet support
      HttpSessionContextIntegrationFilter.doFilterHttp
      1. org.springframework.security.context.HttpSessionContextIntegrationFilter.doFilterHttp(HttpSessionContextIntegrationFilter.java:235)
      1 frame
    27. org.springframework.security
      SpringSecurityFilter.doFilter
      1. org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
      1 frame
    28. spring-security-core
      FilterChainProxy.doFilter
      1. org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
      2. org.springframework.security.util.FilterChainProxy.doFilter(FilterChainProxy.java:175)
      2 frames
    29. Spring
      DelegatingFilterProxy.doFilter
      1. org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:237)
      2. org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167)
      2 frames
    30. Jetty Server
      SelectChannelEndPoint.run
      1. org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1148)
      2. org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:387)
      3. org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
      4. org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
      5. org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
      6. org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:417)
      7. org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
      8. org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
      9. org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
      10. org.mortbay.jetty.Server.handle(Server.java:324)
      11. org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:535)
      12. org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:880)
      13. org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:747)
      14. org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218)
      15. org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
      16. org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
      16 frames
    31. Jetty Util
      QueuedThreadPool$PoolThread.run
      1. org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:520)
      1 frame