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

    Mapping Action Script objects to Java objects | Sujit Reddy G - The Evangelist

    wordpress.com | 3 weeks ago
    java.io.IOException: flex.messaging.MessageException: Cannot create class of type ‘DSK’. Type ‘DSK’ not found.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Cannot create class of type 'flex.samples.facto... | Adobe Community

    adobe.com | 11 months ago
    ApplicationMgrImpl.java: 950) at com.ibm.ws.runtime.component.ApplicationMgrImpl$AppInitializer.run(ApplicationMgrImpl.jav a:2131) at com.ibm.wsspi.runtime.component.WsComponentImpl$_AsynchInitializer.run(WsComponentImpl.ja va:342)
  6. 0

    Channel.Connect.Failed error & flex.samples.fac... | Adobe Community

    adobe.com | 11 months ago
    flex.messaging.MessageException: Cannot create class of type 'flex.samples.factories.SpringFactory'. Type 'flex.samples.factories.SpringFactory' not found.

    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