I have some guesses about what you might be talking about but it doesn’t all make sense yet.This is a DS component, right? Could you be a lot more specific, showing at least the activate method signature, whatever you mean by configuration property type, the enum, and the stack trace? If you’ve used any extra annotations on the component please show them too.
thanks david jencks > On Sep 6, 2016, at 11:52 AM, Leschke, Scott <[email protected]> wrote: > > 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
