LoadRunner Practitioners Forum
Showing results for 
Search instead for 
Do you mean 

AMF warning: AMF: Externalizable read object failed

Regular Visitor

AMF warning: AMF: Externalizable read object failed

I am getting the following warning when trying to generate a script with VuGen 9.52.  The class SnapshotType is an enum that does not allow public, no argument constructor.  Is there a workaround for this type of warnings?

Thanks.

 

AMF warning: AMF: Externalizable read object failed: Exception Occurred while invoking TestObject method - java.lang.reflect.InvocationTargetException
at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at hp.flex.HPExternalizableWrapper.TestObject(HPExternalizableWrapper.java:59)
Caused by: flex.messaging.MessageException: Unable to create a new instance of type '....SnapshotType'. Types cannot be instantiated without a public, no arguments constructor.
at flex.messaging.util.ClassUtil.createDefaultInstance(ClassUtil.java:144)
at flex.messaging.io.amf.Amf3Input.readScriptObject(Amf3Input.java:435)
at flex.messaging.io.amf.Amf3Input.readObjectValue(Amf3Input.java:153)
at flex.messaging.io.amf.Amf3Input.readObject(Amf3Input.java:132)
at flex.messaging.io.amf.Amf3Input.readScriptObject(Amf3Input.java:473)
at flex.messaging.io.amf.Amf3Input.readObjectValue(Amf3Input.java:153)
at flex.messaging.io.amf.Amf3Input.readObject(Amf3Input.java:132)
at flex.messaging.io.amf.Amf3Input.readArray(Amf3Input.java:371)
at flex.messaging.io.amf.Amf3Input.readObjectValue(Amf3Input.java:157)
at flex.messaging.io.amf.Amf3Input.readObject(Amf3Input.java:132)
at flex.messaging.io.amf.Amf3Input.readScriptObject(Amf3Input.java:473)
at flex.messaging.io.amf.Amf3Input.readObjectValue(Amf3Input.java:153)
at flex.messaging.io.amf.Amf3Input.readObject(Amf3Input.java:132)
... 4 more

4 REPLIES
HPE Expert

Re: AMF warning: AMF: Externalizable read object failed

[ Edited ]

Please open a case with support, this require extensive investigation and  a propper answer is not likely to come form the forum.

 

regards

Valued Contributor

Re: AMF warning: AMF: Externalizable read object failed

in LoadRunner 11 Patch 2 we have Better Support for Externalizable Objects,

 

please refer to this version and see if this problem resolve.

 

thanks.

LoadRunner DEV Eng.
LoadRunner - your performance, our passion!
Regular Visitor

Re: AMF warning: AMF: Externalizable read object failed

Yes, I contacted technical support and they said they have fixed it in version 11.

For now, I found a workaround.  I replaced the .class file in the jar used for custom serialization with a class that have a public default constructor.  It seems working.

Highlighted
Established Member

Re: AMF warning: AMF: Externalizable read object failed

[ Edited ]

please explain us how you did that as we have the same issue.  I don't understand as you said I change .class to . jar.