myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Leonardo Uribe (JIRA)" <...@myfaces.apache.org>
Subject [jira] Resolved: (ORCHESTRA-52) ConversationManager.getInstance throws ClassCastException comparing DUMMY object
Date Fri, 09 Jul 2010 05:10:50 GMT

     [ https://issues.apache.org/jira/browse/ORCHESTRA-52?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Leonardo Uribe resolved ORCHESTRA-52.
-------------------------------------

    Fix Version/s: 1.5
       Resolution: Fixed

> ConversationManager.getInstance throws ClassCastException comparing DUMMY object
> --------------------------------------------------------------------------------
>
>                 Key: ORCHESTRA-52
>                 URL: https://issues.apache.org/jira/browse/ORCHESTRA-52
>             Project: MyFaces Orchestra
>          Issue Type: Bug
>          Components: Conversation
>    Affects Versions: 1.4
>         Environment: tomcat 6.0.16
>            Reporter: Leonardo Uribe
>            Assignee: Leonardo Uribe
>             Fix For: 1.5
>
>
> Doing some tests I saw this exception:
> java.lang.ClassCastException: java.lang.Integer cannot be cast to org.apache.myfaces.orchestra.conversation.ConversationManager
> 	org.apache.myfaces.orchestra.conversation.ConversationManager.getInstance(ConversationManager.java:137)
> 	org.apache.myfaces.orchestra.lib.jsf.ContextLockRequestHandler.init(ContextLockRequestHandler.java:68)
> 	org.apache.myfaces.orchestra.lib.jsf.OrchestraFacesContextFactory$1.<init>(OrchestraFacesContextFactory.java:122)
> 	org.apache.myfaces.orchestra.lib.jsf.OrchestraFacesContextFactory.getFacesContext(OrchestraFacesContextFactory.java:103)
> 	org.apache.myfaces.orchestra.requestParameterProvider.jsf.RequestParameterFacesContextFactory.getFacesContext(RequestParameterFacesContextFactory.java:93)
> 	org.apache.myfaces.webapp.filter.TomahawkFacesContextFactory.getFacesContext(TomahawkFacesContextFactory.java:107)
> 	com.sun.faces.context.InjectionFacesContextFactory.getFacesContext(InjectionFacesContextFactory.java:117)
> 	javax.faces.webapp.FacesServlet.service(FacesServlet.java:298)
> 	org.springframework.security.util.FilterChainProxy.doFilter(FilterChainProxy.java:169)
> 	org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:236)
> 	org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167)
> 	org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:392)
> The line that causes this error is this:
>         if (cmObj == DUMMY)
> It seems to be a workaround for Tomcat 6.0.16 at least, but by some unknown reason, after
some time this comparator stop working. This is a similar issue as the one we had with FacesCompositeELResolver.SCOPE.

> Note reproduce this one is difficult, but fortunately the solution is simple:
>         if (DUMMY.equals(cmObj))

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


Mime
View raw message