4 Replies Latest reply on Apr 29, 2009 1:43 PM by edre.py

    GetPreferences in jboss Portal cast exception

      Hi...
      Im get Preferences like

      PortletRequest req = (PortletRequest) FacesContext.getCurrentInstance().getExternalContext().getRequest();

      and im get te exception in cast

      org.jboss.seam.web.IdentityRequestWrapper

      HelpMe please...

        • 1. Re: GetPreferences in jboss Portal cast exception

          17:28:17,105 ERROR [LifecyclePhase] Error execute phase APPLY_REQUEST_VALUES 2
          javax.faces.el.EvaluationException: /uploadAction.xhtml @21,51 fileUploadListener="#{uploadAction.listener}": javax.ejb.EJBTransactionRolledbackException: org.jboss.seam.web.IdentityRequestWrapper cannot be cast to javax.portlet.PortletRequest
          at com.sun.facelets.el.LegacyMethodBinding.invoke(LegacyMethodBinding.java:73)
          at org.richfaces.component.UIFileUpload.broadcast(UIFileUpload.java:190)
          at org.ajax4jsf.component.AjaxViewRoot.processEvents(AjaxViewRoot.java:321)
          at org.ajax4jsf.component.AjaxViewRoot.broadcastEvents(AjaxViewRoot.java:294)
          at org.ajax4jsf.component.AjaxViewRoot.processPhase(AjaxViewRoot.java:253)

          • 2. Re: GetPreferences in jboss Portal cast exception

            the code is:

            PortletRequest req = (PortletRequest) FacesContext.getCurrentInstance().getExternalContext().getRequest();

            • 3. Re: GetPreferences in jboss Portal cast exception

              Caused by: java.lang.ClassCastException: org.jboss.seam.web.IdentityRequestWrapper cannot be cast to javax.portlet.PortletRequest
              at com.consulmatica.utmap.uploadfile.session.UploadActionBean.listener(UploadActionBean.java:38)

              • 4. Re: GetPreferences in jboss Portal cast exception

                I have no idea what the problem is!