Hello there,
I have written a simple JSF converter. If the conversion fails a ConverterException is thrown by getAsObject() method. This works fine and I have done this a lot of times...
Now, by adding a property to my converter, I had to implement the StateHolder interface. As soon I do this I get a InvocationTargetException at the console every time my converter throws its ConverterException. Seams no one is expecting this exception if the converter implements StateHolder...
If I just remove StateHolder from the "implements" list everything works fine again...
Stacktrace:
java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at javassist.util.proxy.RuntimeSupport$DefaultMethodHandler.invoke(RuntimeSupport.java:37) at com.qualitype.qualitrail.web.converter.IdentificationNumberConverter_$$_javassist_85.getAsObject(IdentificationNumberConverter_$$_javassist_85.java) at com.sun.faces.renderkit.html_basic.HtmlBasicInputRenderer.getConvertedValue(HtmlBasicInputRenderer.java:152) at javax.faces.component.UIInput.getConvertedValue(UIInput.java:934) ... many more Caused by: javax.faces.convert.ConverterException: qualitrail.converter.IdentificationNumberConverter.summary at com.qualitype.qualitrail.web.converter.IdentificationNumberConverter.getAsObject(IdentificationNumberConverter.java:52) at com.qualitype.qualitrail.web.converter.IdentificationNumberConverter_$$_javassist_85._d15getAsObject(IdentificationNumberConverter_$$_javassist_85.java) ... many more