Quantcast
Viewing all articles
Browse latest Browse all 12134

Issue with Flex Protocol based scripts

Hi ,

 

While running a scenario in LR Controller , I am getting errors for one of the script.

I have ran the same scenario many times, the exception never appeared. I am not sure it is because of the Application or is it because of the Controller.

Error :

 

vuser_init.c(1600): Error:Decoding of AMF message failed. Error is : Externalizable parsing failed: com.thoughtworks.xstream.converters.ConversionException: Could not call flex.messaging.io.amf.ASObject.writeObject() : Could not call flex.messaging.io.amf.ASObject.writeObject() : Java heap space
---- Debugging information ----
message             : Could not call flex.messaging.io.amf.ASObject.writeObject()
cause-exception     : java.lang.OutOfMemoryError
cause-message       : Java heap space
-------------------------------
message             : Could not call flex.messaging.io.amf.ASObject.writeObject()
cause-exception     : com.thoughtworks.xstream.converters.ConversionException
cause-message       : Could not call flex.messaging.io.amf.ASObject.writeObject() : Java heap space
-------------------------------
 at com.thoughtworks.xstream.converters.reflection.SerializationMethodInvoker.callWriteObject(SerializationMethodInvoker.java:103)
 at com.thoughtworks.xstream.converters.reflection.SerializableConverter.doMarshal(SerializableConverter.java:205)
 at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.marshal(AbstractReflectionConverter.java:54)
 at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:65)
 at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:78)
 at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:63)
 at com.thoughtworks.xstream.converters.reflection.ExternalizableConverter$1.writeToStream(ExternalizableConverter.java:59)
 at com.thoughtworks.xstream.core.util.CustomObjectOutputStream.writeObjectOverride(CustomObjectOutputStream.java:84)
 at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:322)
 at flex.messaging.messages.AbstractMessage.writeExternal(AbstractMessage.java:352)
 at flex.messaging.messages.AsyncMessage.writeExternal(AsyncMessage.java:140)
 at flex.messaging.messages.AcknowledgeMessage.writeExternal(AcknowledgeMessage.java:92)
 at flex.messaging.messages.AcknowledgeMessageExt.writeExternal(AcknowledgeMessageExt.java:57)
 at com.thoughtworks.xstream.converters.reflection.ExternalizableConverter.marshal(ExternalizableConverter.java:81)
 at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:65)
 at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:78)
 at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:63)
 at com.thoughtworks.xstream.core.TreeMarshaller.start(TreeMarshaller.java:98)
 at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.marshal(AbstractTreeMarshallingStrategy.java:38)
 at com.thoughtworks.xstream.XStream.marshal(XStream.java:845)
 at com.thoughtworks.xstream.XStream.marshal(XStream.java:834)
 at hp.flex.HPExternalizableWrapper.ReadObject(HPExternalizableWrapper.java:537)
Caused by: com.thoughtworks.xstream.converters.ConversionException: Could not call flex.messaging.io.amf.ASObject.writeObject() : Java heap space
---- Debugging information ----
message             : Could not call flex.messaging.io.amf.ASObject.writeObject()
cause-exception     : java.lang.OutOfMemoryError
cause-message       : Java heap space
-------------------------------
 at com.thoughtworks.xstream.converters.reflection.SerializationMethodInvoker.callWriteObject(SerializationMethodInvoker.java:103)
 at com.thoughtworks.xstream.converters.reflection.SerializableConverter.doMarshal(SerializableConverter.java:205)
 at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.marshal(AbstractReflectionConverter.java:54)
 at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:65)
 at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:78)
 at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:63)
 at com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter.writeItem(AbstractCollectionConverter.java:63)
 at com.thoughtworks.xstream.converters.collections.ArrayConverter.marshal(ArrayConverter.java:45)
 at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:65)
 at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:78)
 at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:63)
 at com.thoughtworks.xstream.converters.reflection.ExternalizableConverter$1.writeToStream(ExternalizableConverter.java:59)
 at com.thoughtworks.xstream.core.util.CustomObjectOutputStream.writeObjectOverride(CustomObjectOutputStream.java:84)
 at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:322)
 at flex.messaging.io.ArrayCollection.writeExternal(ArrayCollection.java:97)
 at com.thoughtworks.xstream.converters.reflection.ExternalizableConverter.marshal(ExternalizableConverter.java:81)
 at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:65)
 at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:78)
 at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:63)
 at com.thoughtworks.xstream.converters.reflection.SerializableConverter$1.writeToStream(SerializableConverter.java:100)
 at com.thoughtworks.xstream.core.util.CustomObjectOutputStream.writeObjectOverride(CustomObjectOutputStream.java:84)
 at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:322)
 at java.util.HashMap.writeObject(HashMap.java:1001)
 at sun.reflect.GeneratedMethodAccessor26.invoke(Unknown Source)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)
 at com.thoughtworks.xstream.converters.reflection.SerializationMethodInvoker.callWriteObject(SerializationMethodInvoker.java:99)
 ... 21 more
Caused by: java.lang.OutOfMemoryError: Java heap space
 at java.util.Arrays.copyOf(Arrays.java:2786)
 at java.io.ByteArrayOutputStream.write(ByteArrayOutputStream.java:94)
 at sun.nio.cs.StreamEncoder.writeBytes(StreamEncoder.java:202)
 at sun.nio.cs.StreamEncoder.implFlushBuffer(StreamEncoder.java:272)
 at sun.nio.cs.StreamEncoder.implFlush(StreamEncoder.java:276)
 at sun.nio.cs.StreamEncoder.flush(StreamEncoder.java:122)
 at java.io.OutputStreamWriter.flush(OutputStreamWriter.java:212)
 at com.thoughtworks.xstream.core.util.QuickWriter.flush(QuickWriter.java:71)
 at com.thoughtworks.xstream.core.util.QuickWriter.write(QuickWriter.java:37)
 at com.thoughtworks.xstream.io.xml.PrettyPrintWriter.endNode(PrettyPrintWriter.java:283)
 at com.thoughtworks.xstream.io.WriterWrapper.endNode(WriterWrapper.java:37)
 at com.thoughtworks.xstream.io.path.PathTrackingWriter.endNode(PathTrackingWriter.java:48)
 at com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter.writeItem(AbstractCollectionConverter.java:64)
 at com.thoughtworks.xstream.converters.collections.ArrayConverter.marshal(ArrayConverter.java:45)
 at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:65)
 at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:78)
 at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:63)
 at com.thoughtworks.xstream.converters.reflection.ExternalizableConverter$1.writeToStream(ExternalizableConverter.java:59)
 at com.thoughtworks.xstream.core.util.CustomObjectOutputStream.writeObjectOverride(CustomObjectOutputStream.java:84)
 at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:322)
 at flex.messaging.io.ArrayCollection.writeExternal(ArrayCollection.java:97)
 at com.thoughtworks.xstream.converters.reflection.ExternalizableConverter.marshal(ExternalizableConverter.java:81)
 at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:65)
 at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:78)
 at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:63)
 at com.thoughtworks.xstream.converters.reflection.SerializableConverter$1.writeToStream(SerializableConverter.java:100)
 at com.thoughtworks.xstream.core.util.CustomObjectOutputStream.writeObjectOverride(CustomObjectOutputStream.java:84)
 at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:322)
 at java.util.HashMap.writeObject(HashMap.java:1001)
 at sun.reflect.GeneratedMethodAccessor26.invoke(Unknown Source)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)

 

 

Please Help !!

 

Regards,

Era


Viewing all articles
Browse latest Browse all 12134

Trending Articles