flex.messaging.MessageException: Cannot create class of type 'mx.collections.Arr ayCollection'. Type 'mx.collections.ArrayCollection' not found.

Spring JIRA | AvinashReddy | 5 years ago
  1. 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 | 5 years ago | AvinashReddy
    flex.messaging.MessageException: Cannot create class of type 'mx.collections.Arr ayCollection'. Type 'mx.collections.ArrayCollection' not found.
  2. 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 | 5 years ago | AvinashReddy
    flex.messaging.MessageException: Cannot create class of type 'mx.collections.Arr ayCollection'. Type 'mx.collections.ArrayCollection' not found.
  3. 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'.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 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'.

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. flex.messaging.MessageException

      Cannot create class of type 'mx.collections.Arr ayCollection'. Type 'mx.collections.ArrayCollection' not found.

      at flex.messaging.util.ClassUtil.createClass()
    2. BlazeDS Core Library
      AMFEndpoint$$EnhancerByCGLIB$$8400fb26.service
      1. flex.messaging.util.ClassUtil.createClass(ClassUtil.java:70)
      2. flex.messaging.io.AbstractProxy.getClassFromClassName(AbstractProxy.java:87)
      3. flex.messaging.io.amf.AbstractAmfInput.createObjectInstance(AbstractAmfInput.java:160)
      4. flex.messaging.io.amf.Amf3Input.readScriptObject(Amf3Input.java:409)
      5. flex.messaging.io.amf.Amf3Input.readObjectValue(Amf3Input.java:152)
      6. flex.messaging.io.amf.Amf3Input.readObject(Amf3Input.java:130)
      7. flex.messaging.io.amf.Amf3Input.readScriptObject(Amf3Input.java:437)
      8. flex.messaging.io.amf.Amf3Input.readObjectValue(Amf3Input.java:152)
      9. flex.messaging.io.amf.Amf3Input.readObject(Amf3Input.java:130)
      10. flex.messaging.io.amf.Amf3Input.readArray(Amf3Input.java:358)
      11. flex.messaging.io.amf.Amf3Input.readObjectValue(Amf3Input.java:156)
      12. flex.messaging.io.amf.Amf3Input.readObject(Amf3Input.java:130)
      13. flex.messaging.io.amf.Amf3Input.readScriptObject(Amf3Input.java:437)
      14. flex.messaging.io.amf.Amf3Input.readObjectValue(Amf3Input.java:152)
      15. flex.messaging.io.amf.Amf3Input.readObject(Amf3Input.java:130)
      16. flex.messaging.io.amf.Amf0Input.readObjectValue(Amf0Input.java:123)
      17. flex.messaging.io.amf.Amf0Input.readArrayValue(Amf0Input.java:359)
      18. flex.messaging.io.amf.Amf0Input.readObjectValue(Amf0Input.java:127)
      19. flex.messaging.io.amf.Amf0Input.readObject(Amf0Input.java:94)
      20. flex.messaging.io.amf.AmfMessageDeserializer.readObject(AmfMessageDeserializer.java:227)
      21. flex.messaging.io.amf.AmfMessageDeserializer.readBody(AmfMessageDeserializer.java:206)
      22. flex.messaging.io.amf.AmfMessageDeserializer.readMessage(AmfMessageDeserializer.java:126)
      23. flex.messaging.endpoints.amf.SerializationFilter.invoke(SerializationFilter.java:145)
      24. flex.messaging.endpoints.BaseHTTPEndpoint.service(BaseHTTPEndpoint.java:291)
      25. flex.messaging.endpoints.AMFEndpoint$$EnhancerByCGLIB$$8400fb26.service(<generated>)
      25 frames
    3. org.springframework.flex
      MessageBrokerHandlerAdapter.handle
      1. org.springframework.flex.servlet.MessageBrokerHandlerAdapter.handle(MessageBrokerHandlerAdapter.java:109)
      1 frame
    4. Spring MVC
      FrameworkServlet.doPost
      1. org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:790)
      2. org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:719)
      3. org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:644)
      4. org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:560)
      4 frames
    5. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:641)
      2. javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
      2 frames
    6. Glassfish Core
      CoyoteAdapter.service
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:306)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      3. org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:240)
      4. org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)
      5. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
      6. org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
      7. org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:541)
      8. org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
      9. org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:383)
      9 frames
    7. Grizzly HTTP
      AprEndpoint$SocketProcessor.run
      1. org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:284)
      2. org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:322)
      3. org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:1684)
      3 frames
    8. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      3. java.lang.Thread.run(Thread.java:662)
      3 frames