Re: AMF warning: AMF: Externalizable read object failed (369 Views)
Reply
Regular Visitor
Posts: 3
Registered: ‎07-18-2011
Message 1 of 5 (1,014 Views)

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

HP Expert
Posts: 661
Registered: ‎04-06-2011
Message 2 of 5 (993 Views)

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
Posts: 42
Registered: ‎07-21-2011
Message 3 of 5 (989 Views)

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
Posts: 3
Registered: ‎07-18-2011
Message 4 of 5 (984 Views)

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.

Member
Posts: 1
Registered: ‎04-04-2012
Message 5 of 5 (369 Views)

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.

 

The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.