0 Replies Latest reply on Nov 17, 2009 3:06 PM by Nikhil D

    ClassCastException while seamtestportlet login

    Nikhil D Newbie
      Caused by: javax.faces.FacesException: #{identity.login}: java.lang.ClassCastException: org.jboss.portal.portlet.impl.jsr168.api.ActionResponseImpl cannot be cas
              at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:118)
              at javax.faces.component.UICommand.broadcast(UICommand.java:387)
              at org.ajax4jsf.component.AjaxViewRoot.processEvents(AjaxViewRoot.java:321)
              at org.ajax4jsf.component.AjaxViewRoot.broadcastEvents(AjaxViewRoot.java:296)
              at org.ajax4jsf.component.AjaxViewRoot.processPhase(AjaxViewRoot.java:253)
              at org.ajax4jsf.component.AjaxViewRoot.processApplication(AjaxViewRoot.java:466)
              at org.jboss.portletbridge.lifecycle.InvokeApplicationPhase.executePhase(InvokeApplicationPhase.java:57)
              at org.jboss.portletbridge.lifecycle.LifecyclePhase.execute(LifecyclePhase.java:72)
              ... 208 more
      Caused by: javax.faces.el.EvaluationException: java.lang.ClassCastException: org.jboss.portal.portlet.impl.jsr168.api.ActionResponseImpl cannot be cast to javax.
              at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:102)
              at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)
              ... 215 more
      Caused by: java.lang.ClassCastException: org.jboss.portal.portlet.impl.jsr168.api.ActionResponseImpl cannot be cast to javax.servlet.http.HttpServletResponse
              at org.jboss.seam.faces.Selector.setCookieValueIfEnabled(Selector.java:114)
              at org.jboss.seam.security.FacesSecurityEvents.postAuthenticate(FacesSecurityEvents.java:74)
              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 org.jboss.seam.util.Reflections.invoke(Reflections.java:21)
              at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:125)
              at org.jboss.seam.Component.callComponentMethod(Component.java:2086)
              at org.jboss.seam.core.Events.raiseEvent(Events.java:84)
              at org.jboss.seam.security.Identity.postAuthenticate(Identity.java:308)
              at org.jboss.seam.security.RuleBasedIdentity.postAuthenticate(RuleBasedIdentity.java:80)
              at org.jboss.seam.security.Identity.authenticate(Identity.java:260)
              at org.jboss.seam.security.Identity.authenticate(Identity.java:248)
              at org.jboss.seam.security.Identity.login(Identity.java:205)
              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 org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:329)
              at org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:342)
              at org.jboss.el.parser.AstPropertySuffix.invoke(AstPropertySuffix.java:58)
              at org.jboss.el.parser.AstValue.invoke(AstValue.java:96)
              at org.jboss.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:276)
              at com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:68)
              at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:88)
              ... 216 more
      19:39:47,568 ERROR [AjaxPortletBridge] Error processing execute lifecycle
      javax.faces.FacesException: javax.faces.FacesException: #{identity.login}: java.lang.ClassCastException: org.jboss.portal.portlet.impl.jsr168.api.ActionResponseI
              at org.jboss.portletbridge.lifecycle.LifecyclePhase.execute(LifecyclePhase.java:77)
              at org.jboss.portletbridge.lifecycle.UpdateModelPhase.executeNextPhase(UpdateModelPhase.java:49)
              at org.jboss.portletbridge.lifecycle.LifecyclePhase.execute(LifecyclePhase.java:96)
              at org.jboss.portletbridge.lifecycle.ProcessValidatorsPhase.executeNextPhase(ProcessValidatorsPhase.java:50)
              at org.jboss.portletbridge.lifecycle.LifecyclePhase.execute(LifecyclePhase.java:96)
              at org.jboss.portletbridge.lifecycle.ApplyValuesPhase.executeNextPhase(ApplyValuesPhase.java:50)
              at org.jboss.portletbridge.lifecycle.LifecyclePhase.execute(LifecyclePhase.java:96)
              at org.jboss.portletbridge.lifecycle.RestoreViewPhase.executeNextPhase(RestoreViewPhase.java:72)
              at org.jboss.portletbridge.lifecycle.LifecyclePhase.execute(LifecyclePhase.java:96)
              at org.jboss.portletbridge.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:62)
              at org.jboss.portletbridge.lifecycle.PortletLifecycle.execute(PortletLifecycle.java:114)
              at org.jboss.portletbridge.AjaxPortletBridge.execute(AjaxPortletBridge.java:587)
              at org.jboss.portletbridge.AjaxPortletBridge.doFacesRequest(AjaxPortletBridge.java:260)
              at javax.portlet.faces.GenericFacesPortlet.processAction(GenericFacesPortlet.java:316)
              at org.jboss.portal.portlet.impl.jsr168.PortletContainerImpl$Invoker.doFilter(PortletContainerImpl.java:557)
              at org.jboss.portal.portlet.impl.jsr168.api.FilterChainImpl.doFilter(FilterChainImpl.java:109)
              at org.jboss.portal.portlet.impl.jsr168.api.FilterChainImpl.doFilter(FilterChainImpl.java:72)
              at org.jboss.portal.portlet.impl.jsr168.PortletContainerImpl.dispatch(PortletContainerImpl.java:505)
              at org.jboss.portal.portlet.container.ContainerPortletDispatcher.invoke(ContainerPortletDispatcher.java:42)
              at org.jboss.portal.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:82)
              at org.jboss.portal.core.aspects.portlet.TransactionInterceptor.org$jboss$portal$core$aspects$portlet$TransactionInterceptor$invokeNotSupported$aop(Trans
              at org.jboss.portal.core.aspects.portlet.TransactionInterceptor$invokeNotSupported_N6922078035659651697.invokeNext(TransactionInterceptor$invokeNotSuppor
              at org.jboss.aspects.tx.TxPolicy.invokeInNoTx(TxPolicy.java:66)
              at org.jboss.aspects.tx.TxInterceptor$NotSupported.invoke(TxInterceptor.java:112)
              at org.jboss.portal.core.aspects.portlet.TransactionInterceptor$invokeNotSupported_N6922078035659651697.invokeNext(TransactionInterceptor$invokeNotSuppor
              at org.jboss.aspects.tx.TxPolicy.invokeInNoTx(TxPolicy.java:66)
              at org.jboss.aspects.tx.TxInterceptor$NotSupported.invoke(TxInterceptor.java:102)