0 Replies Latest reply on Aug 30, 2011 1:42 AM by vivek 007

    blazeds.Endpoint.AMF - Java heap space java.lang.OutOfMemory error

    vivek 007

      Java is able to fetch results but blazeds breaks in serialization(java.lang.OutOfMemory error) before result could be sent to flex client.

       

      Stack trace

       

      java.lang.OutOfMemoryError: Java heap space

       

              at java.lang.String.<init>(String.java:208)

       

              at java.lang.StringBuffer.toString(StringBuffer.java:586)

       

              at flex.messaging.util.ObjectTrace.toString(ObjectTrace.java:52)

       

              at flex.messaging.endpoints.amf.SerializationFilter.invoke(Serialization

       

      Filter.java:221)

       

              at flex.messaging.endpoints.BaseHTTPEndpoint.service(BaseHTTPEndpoint.ja

       

      va:278)

       

              at flex.messaging.endpoints.AMFEndpoint$$EnhancerByCGLIB$$fe9b84f8.servi

       

      ce(<generated>)

       

              at org.springframework.flex.servlet.MessageBrokerHandlerAdapter.handle(M

       

      essageBrokerHandlerAdapter.java:101)

       

              at org.springframework.web.servlet.DispatcherServlet.doDispatch(Dispatch

       

      erServlet.java:771)

       

              at org.springframework.web.servlet.DispatcherServlet.doService(Dispatche

       

      rServlet.java:716)

       

              at org.springframework.web.servlet.FrameworkServlet.processRequest(Frame

       

      workServlet.java:647)

       

              at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServ

       

      let.java:563)

       

      If it was bacause of recursive node. It should show same objects being called multiple times and then it should break but it is happening

      instantly.

       

      Instant help appreaciated