[jboss-user] [Tomcat, HTTPD, Servlets & JSP] - ConverterException and StateHolder
f.ulbricht@qualitype.de
do-not-reply at jboss.com
Thu Jun 14 08:41:11 EDT 2007
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
|
That's very strange. Does anyone has any idea?
Regards,
Frank.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4054330#4054330
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4054330
More information about the jboss-user
mailing list