myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kennard Consulting (JIRA)" <>
Subject [jira] Commented: (MYFACES-3010) 2.0.3 REGRESSION: javax.faces.component._ClassUtils.convertToType
Date Mon, 10 Jan 2011 22:37:51 GMT


Kennard Consulting commented on MYFACES-3010:

The IllegalArgumentException is below. Note it appears to be specific to my app, but does
not occur with previous versions of MyFaces (2.0.2, JSF 1.2 and JSF 1.1) or with Mojarra:

javax.faces.FacesException: java.lang.IllegalArgumentException: Cannot convert Personal of
type class org.metawidget.example.shared.addressbook.model.ContactType$1 to class org.metawidget.example.shared.addressbook.model.ContactType$2
	at org.apache.myfaces.shared_impl.context.ExceptionHandlerImpl.wrap(
	at org.apache.myfaces.shared_impl.context.ExceptionHandlerImpl.handle(
	at org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(
	at org.apache.myfaces.lifecycle.LifecycleImpl.execute(
	at javax.faces.webapp.FacesServlet.service(
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(
	at org.apache.catalina.core.StandardWrapperValve.invoke(
	at org.apache.catalina.core.StandardContextValve.invoke(
	at org.apache.catalina.core.StandardHostValve.invoke(
	at org.apache.catalina.valves.ErrorReportValve.invoke(
	at org.apache.catalina.core.StandardEngineValve.invoke(
	at org.apache.catalina.connector.CoyoteAdapter.service(
	at org.apache.coyote.http11.Http11Processor.process(
	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(
Caused by: java.lang.IllegalArgumentException: Cannot convert Personal of type class org.metawidget.example.shared.addressbook.model.ContactType$1
to class org.metawidget.example.shared.addressbook.model.ContactType$2
	at org.apache.el.lang.ELSupport.coerceToType(
	at org.apache.el.ExpressionFactoryImpl.coerceToType(
	at javax.faces.component._ClassUtils.convertToType(
	at javax.faces.component._SelectItemsUtil._convertOrCoerceValue(
	at javax.faces.component._SelectItemsUtil.matchValue(
	at javax.faces.component.UISelectOne.validateValue(
	at javax.faces.component.UIInput.validate(
	at javax.faces.component.UIInput.processValidators(
	at javax.faces.component.UIComponentBase.processValidators(
	at javax.faces.component.UIForm.processValidators(
	at javax.faces.component.UIComponentBase.processValidators(
	at javax.faces.component.UIViewRoot._processValidatorsDefault(
	at javax.faces.component.UIViewRoot.access$500(
	at javax.faces.component.UIViewRoot$ProcessValidatorPhaseProcessor.process(
	at javax.faces.component.UIViewRoot._process(
	at javax.faces.component.UIViewRoot.processValidators(
	at org.apache.myfaces.lifecycle.ProcessValidationsExecutor.execute(
	at org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(
	... 14 more

> 2.0.3 REGRESSION: javax.faces.component._ClassUtils.convertToType
> -----------------------------------------------------------------
>                 Key: MYFACES-3010
>                 URL:
>             Project: MyFaces Core
>          Issue Type: Bug
>          Components: General
>    Affects Versions: 2.0.3
>            Reporter: Kennard Consulting
>            Priority: Critical
>         Attachments:
> Hi guys,
> Thanks again for the great work you do on MyFaces and your fantastic JIRA response times!
> I attach a small app that comes from the Metawidget ( distribution.
I had you do MYFACES-2935 for me for MyFaces 2.0.3, and my app was working great with the
2.0.3-impl-SNAPSHOT.jar and the 2.0.2-api.jar. However now that 2.0.3 is out for real I have
tried to upgrade my app, and it fails. To reproduce, please:
> 1. Unzip the attached app and deploy as an exploded WAR into Tomcat
> 2. Run Tomcat and hit http://localhost:8080/addressbook-faces2
> 3. In the Type dropdown, choose 'Business' and click Search
> You will see an IllegalArgumentException. Now:
> 4. Stop Tomcat
> 5. Inside the exploded WAR, rename to myfaces-api-2.0.2.jar
(and delete/rename myfaces-api-2.0.3.jar)
> 6. Restart Tomcat and repeat steps 1-3
> This time you will see no such error.
> So something appears to have broken between myfaces-api-2.0.2.jar and myfaces-api-2.0.3.jar?
Hopefully you can reproduce this and it is enough for you to debug the issue. The source code
for the small app can be viewed here:
> Of course, this could well be a case of 2.0.3 being stricter about something and therefore
exposing a bug in my code. But my code worked in 2.0.2, JSF 1.2 and JSF 1.1, so hopefully
> Regards,
> Richard

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message