Skip to content

problem with DSC in ClassAliasRegistry #32

@winko

Description

@winko

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions