The code and comments in file AmfXmlConverter.java beginning with row 145 says:
// Class aliases for deserialization, mimics registerClassAlias in Flex
// Generally only used in rendering as it can cause serious problems for proxy sampling
if (useAliasRegistry) {
ClassAliasRegistry aliases = ClassAliasRegistry.getRegistry();
aliases.registerAlias("DSC", "flex.messaging.messages.CommandMessageExt"); // This causes errors in XStream during proxy sampling (cannot cast byte to string)
aliases.registerAlias("DSK", "flex.messaging.messages.AcknowledgeMessageExt");
}
When useAliasRegistry is false I got:
- ERROR - jmeter.protocol.amf.util.AmfXmlConverter: An exception was encountered while deserializing response. flex.messaging.MessageException: Cannot create class of type 'DSC'. Type 'DSC' not found.
When useAliasRegistry is true I got:
- com.thoughtworks.xstream.converters.ConversionException: java.lang.Byte cannot be cast to java.lang.String : java.lang.Byte cannot be cast to java.lang.String
Does anybody an idea how to solve this problem?
The code and comments in file AmfXmlConverter.java beginning with row 145 says:
When useAliasRegistry is false I got:
When useAliasRegistry is true I got:
Does anybody an idea how to solve this problem?