If you have an Enum argument in a Java method, you need to send it a String. During method invocation, BlazeDS will use Enum.valueOf(desiredClass, yourStringValue) to create an enum on your behalf.
-----Original Message----- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of moonusamy Sent: Wednesday, December 19, 2007 3:45 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] BlazeDS and Java 5 Enum Support - works only one way? If I have a Java method that returns an Enum, it seems to be serialized ok as a String, but if I have a Java method that takes an Enum argument, I get the same error I used to get before with LCDS 2.5.1: faultDetail = "Types cannot be instantiated without a public, no arguments constructor." Java 5 Enums don't have public no-arg constructors. Unless I am missing something, Enum support in BlazeDS works only one way. Anyone hit this? Vijay -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links