I'm getting the following exception from an activate method.

org.osgi.service.component.ComponentException: 
java.lang.IllegalArgumentException: No enum constant (Enumeration type name).

The activate method takes a Configuration Property Type that has a method that 
returns a value of the type but does NOT have a default defined. The activate 
method checks to see the method returns null. This is what I want but it seems 
like it's demanding that the Enum be non-null. Am I reading this correctly?  
Must CFPs that return enums always return a valid value for the type?

Scott


Reply via email to