No matter what I try, this keeps failing. What am I doing wrong, here?
package com.example
class ClassToMarshall{
SomeEnum myEnum
}
enum SomeEnum{
A,
B
}
resources.xml:
<dwr:configuration>
<dwr:convert type="bean" class="com.example.**">
<dwr:exclude method="metaClass"/>
</dwr:convert>
<dwr:convert type="enum" class="com.example.SomeEnum">
<dwr:exclude method="metaClass"/>
</dwr:convert>
</dwr:configuration>
However, when I call MyService.myMethod({myEnum: "A"}), I’m receiving Throwable throwable. What’s going on?
That’s all correct. If you have some other exception, you’ll get the generic
Error errorprompt unless you enable marshalling of exceptions.If you add this to your configuration:
You’ll probably see an error that isn’t marshalling related.