Request class is an empty placeholder
Hi there, I am trying to implement jsf in my existing java project. So I have added required jar files and update web.xml When I run server I found out error something like this java.lang.UnsupportedOperationException: This request class is an empty placeholder at org.apache.myfaces.application._SystemEventServletRequest$1.invoke(_SystemEventServletReq uest.java:56) at $Proxy0.getContentType(Unknown Source) at javax.servlet.ServletRequestWrapper.getContentType(ServletRequestWrapper.java:134) at org.apache.myfaces.context.servlet.ServletExternalContextImpl.getRequestContentType(Servl etExternalContextImpl.java:322) at org.apache.myfaces.trinidad.util.ExternalContextUtils.getContentType(ExternalContextUtils .java:341) at org.apache.myfaces.trinidadinternal.share.util.MultipartFormHandler.isMultipartRequest(Mu ltipartFormHandler.java:57) at org.apache.myfaces.trinidadinternal.config.upload.FileUploadConfiguratorImpl.beginRequest (FileUploadConfiguratorImpl.java:109) at org.apache.myfaces.trinidadinternal.config.GlobalConfiguratorImpl._startConfiguratorServi ceRequest(GlobalConfiguratorImpl.java:532) at org.apache.myfaces.trinidadinternal.config.GlobalConfiguratorImpl.beginRequest(GlobalConf iguratorImpl.java:211) at org.apache.myfaces.trinidadinternal.config.GlobalConfiguratorImpl.getExternalContext(Glob alConfiguratorImpl.java:327) at org.apache.myfaces.trinidadinternal.context.FacesContextFactoryImpl$CacheRenderKit.init (FacesContextFactoryImpl.java:90) at org.apache.myfaces.trinidadinternal.context.FacesContextFactoryImpl.getFacesContext(Faces ContextFactoryImpl.java:68) at org.apache.myfaces.webapp.AbstractFacesInitializer.dispatchInitDestroyEvent(AbstractFaces Initializer.java:140) at org.apache.myfaces.webapp.AbstractFacesInitializer.initFaces(AbstractFacesInitializer.jav a:109) at org.apache.myfaces.webapp.StartupServletContextListener.contextInitialized(StartupServlet ContextListener.java:155) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3934) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4429) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526) at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:987) at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:909) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:495) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1206) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:314) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053) at org.apache.catalina.core.StandardHost.start(StandardHost.java:722) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) at org.apache.catalina.core.StandardService.start(StandardService.java:516) at org.apache.catalina.core.StandardServer.start(StandardServer.java:710) at org.apache.catalina.startup.Catalina.start(Catalina.java:583) 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.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413) Feb 25, 2010 4:43:51 PM org.apache.myfaces.webapp.AbstractFacesInitializer initFaces SEVERE: An error occured while initializing MyFaces: This request class is an empty placeholder java.lang.UnsupportedOperationException: This request class is an empty placeholder at org.apache.myfaces.application._SystemEventServletRequest$1.invoke(_SystemEventServletReq uest.java:56) at $Proxy0.getHeader(Unknown Source) at javax.servlet.http.HttpServletRequestWrapper.getHeader(HttpServletRequestWrapper.java:80) at org.apache.myfaces.trinidadinternal.context.external.ServletRequestHeaderMap.getAttribute (ServletRequestHeaderMap.java:42) at org.apache.myfaces.trinidadinternal.context.external.ServletRequestHeaderMap.getAttribute (ServletRequestHeaderMap.java:30) at org.apache.myfaces.trinidadinternal.context.external.AbstractAttributeMap.get(AbstractAtt ributeMap.java:73) at
Re: Request class is an empty placeholder
Hi, Are you using the latest versions of MyFaces Core and Trinidad? There already has been some work on this issue (see MYFACES-2520 for details) and this should be fixed. Regards, Jakob 2010/2/25 navnath29 kumbhar.navn...@gmail.com Hi there, I am trying to implement jsf in my existing java project. So I have added required jar files and update web.xml When I run server I found out error something like this java.lang.UnsupportedOperationException: This request class is an empty placeholder at org.apache.myfaces.application._SystemEventServletRequest$1.invoke(_SystemEventServletReq uest.java:56) at $Proxy0.getContentType(Unknown Source) at javax.servlet.ServletRequestWrapper.getContentType(ServletRequestWrapper.java:134) at org.apache.myfaces.context.servlet.ServletExternalContextImpl.getRequestContentType(Servl etExternalContextImpl.java:322) at org.apache.myfaces.trinidad.util.ExternalContextUtils.getContentType(ExternalContextUtils .java:341) at org.apache.myfaces.trinidadinternal.share.util.MultipartFormHandler.isMultipartRequest(Mu ltipartFormHandler.java:57) at org.apache.myfaces.trinidadinternal.config.upload.FileUploadConfiguratorImpl.beginRequest (FileUploadConfiguratorImpl.java:109) at org.apache.myfaces.trinidadinternal.config.GlobalConfiguratorImpl._startConfiguratorServi ceRequest(GlobalConfiguratorImpl.java:532) at org.apache.myfaces.trinidadinternal.config.GlobalConfiguratorImpl.beginRequest(GlobalConf iguratorImpl.java:211) at org.apache.myfaces.trinidadinternal.config.GlobalConfiguratorImpl.getExternalContext(Glob alConfiguratorImpl.java:327) at org.apache.myfaces.trinidadinternal.context.FacesContextFactoryImpl$CacheRenderKit.init (FacesContextFactoryImpl.java:90) at org.apache.myfaces.trinidadinternal.context.FacesContextFactoryImpl.getFacesContext(Faces ContextFactoryImpl.java:68) at org.apache.myfaces.webapp.AbstractFacesInitializer.dispatchInitDestroyEvent(AbstractFaces Initializer.java:140) at org.apache.myfaces.webapp.AbstractFacesInitializer.initFaces(AbstractFacesInitializer.jav a:109) at org.apache.myfaces.webapp.StartupServletContextListener.contextInitialized(StartupServlet ContextListener.java:155) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3934) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4429) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526) at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:987) at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:909) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:495) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1206) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:314) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053) at org.apache.catalina.core.StandardHost.start(StandardHost.java:722) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) at org.apache.catalina.core.StandardService.start(StandardService.java:516) at org.apache.catalina.core.StandardServer.start(StandardServer.java:710) at org.apache.catalina.startup.Catalina.start(Catalina.java:583) 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.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413) Feb 25, 2010 4:43:51 PM org.apache.myfaces.webapp.AbstractFacesInitializer initFaces SEVERE: An error occured while initializing MyFaces: This request class is an empty placeholder java.lang.UnsupportedOperationException: This request class is an empty placeholder at org.apache.myfaces.application._SystemEventServletRequest$1.invoke(_SystemEventServletReq uest.java:56) at $Proxy0.getHeader(Unknown Source) at javax.servlet.http.HttpServletRequestWrapper.getHeader(HttpServletRequestWrapper.java:80) at org.apache.myfaces.trinidadinternal.context.external.ServletRequestHeaderMap.getAttribute
Re: Request class is an empty placeholder
Hi It is a known issue, so you can take a look at MYFACES-2434 too. http://issues.apache.org/jira/browse/MYFACES-2434 http://issues.apache.org/jira/browse/MYFACES-2520 regards, Leonardo Uribe 2010/2/25 Jakob Korherr jakob.korh...@gmail.com Hi, Are you using the latest versions of MyFaces Core and Trinidad? There already has been some work on this issue (see MYFACES-2520 for details) and this should be fixed. Regards, Jakob 2010/2/25 navnath29 kumbhar.navn...@gmail.com Hi there, I am trying to implement jsf in my existing java project. So I have added required jar files and update web.xml When I run server I found out error something like this java.lang.UnsupportedOperationException: This request class is an empty placeholder at org.apache.myfaces.application._SystemEventServletRequest$1.invoke(_SystemEventServletReq uest.java:56) at $Proxy0.getContentType(Unknown Source) at javax.servlet.ServletRequestWrapper.getContentType(ServletRequestWrapper.java:134) at org.apache.myfaces.context.servlet.ServletExternalContextImpl.getRequestContentType(Servl etExternalContextImpl.java:322) at org.apache.myfaces.trinidad.util.ExternalContextUtils.getContentType(ExternalContextUtils .java:341) at org.apache.myfaces.trinidadinternal.share.util.MultipartFormHandler.isMultipartRequest(Mu ltipartFormHandler.java:57) at org.apache.myfaces.trinidadinternal.config.upload.FileUploadConfiguratorImpl.beginRequest (FileUploadConfiguratorImpl.java:109) at org.apache.myfaces.trinidadinternal.config.GlobalConfiguratorImpl._startConfiguratorServi ceRequest(GlobalConfiguratorImpl.java:532) at org.apache.myfaces.trinidadinternal.config.GlobalConfiguratorImpl.beginRequest(GlobalConf iguratorImpl.java:211) at org.apache.myfaces.trinidadinternal.config.GlobalConfiguratorImpl.getExternalContext(Glob alConfiguratorImpl.java:327) at org.apache.myfaces.trinidadinternal.context.FacesContextFactoryImpl$CacheRenderKit.init (FacesContextFactoryImpl.java:90) at org.apache.myfaces.trinidadinternal.context.FacesContextFactoryImpl.getFacesContext(Faces ContextFactoryImpl.java:68) at org.apache.myfaces.webapp.AbstractFacesInitializer.dispatchInitDestroyEvent(AbstractFaces Initializer.java:140) at org.apache.myfaces.webapp.AbstractFacesInitializer.initFaces(AbstractFacesInitializer.jav a:109) at org.apache.myfaces.webapp.StartupServletContextListener.contextInitialized(StartupServlet ContextListener.java:155) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3934) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4429) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526) at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:987) at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:909) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:495) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1206) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:314) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053) at org.apache.catalina.core.StandardHost.start(StandardHost.java:722) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) at org.apache.catalina.core.StandardService.start(StandardService.java:516) at org.apache.catalina.core.StandardServer.start(StandardServer.java:710) at org.apache.catalina.startup.Catalina.start(Catalina.java:583) 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.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413) Feb 25, 2010 4:43:51 PM org.apache.myfaces.webapp.AbstractFacesInitializer initFaces SEVERE: An error occured while initializing MyFaces: This request class is an empty placeholder java.lang.UnsupportedOperationException: This request class is an empty
Re: Request class is an empty placeholder
yeah, is fixed in MyFaces 2.0.0-beta What is your Trinidad version ? On Thu, Feb 25, 2010 at 1:38 PM, Jakob Korherr jakob.korh...@gmail.com wrote: Hi, Are you using the latest versions of MyFaces Core and Trinidad? There already has been some work on this issue (see MYFACES-2520 for details) and this should be fixed. Regards, Jakob 2010/2/25 navnath29 kumbhar.navn...@gmail.com Hi there, I am trying to implement jsf in my existing java project. So I have added required jar files and update web.xml When I run server I found out error something like this java.lang.UnsupportedOperationException: This request class is an empty placeholder at org.apache.myfaces.application._SystemEventServletRequest$1.invoke(_SystemEventServletReq uest.java:56) at $Proxy0.getContentType(Unknown Source) at javax.servlet.ServletRequestWrapper.getContentType(ServletRequestWrapper.java:134) at org.apache.myfaces.context.servlet.ServletExternalContextImpl.getRequestContentType(Servl etExternalContextImpl.java:322) at org.apache.myfaces.trinidad.util.ExternalContextUtils.getContentType(ExternalContextUtils .java:341) at org.apache.myfaces.trinidadinternal.share.util.MultipartFormHandler.isMultipartRequest(Mu ltipartFormHandler.java:57) at org.apache.myfaces.trinidadinternal.config.upload.FileUploadConfiguratorImpl.beginRequest (FileUploadConfiguratorImpl.java:109) at org.apache.myfaces.trinidadinternal.config.GlobalConfiguratorImpl._startConfiguratorServi ceRequest(GlobalConfiguratorImpl.java:532) at org.apache.myfaces.trinidadinternal.config.GlobalConfiguratorImpl.beginRequest(GlobalConf iguratorImpl.java:211) at org.apache.myfaces.trinidadinternal.config.GlobalConfiguratorImpl.getExternalContext(Glob alConfiguratorImpl.java:327) at org.apache.myfaces.trinidadinternal.context.FacesContextFactoryImpl$CacheRenderKit.init (FacesContextFactoryImpl.java:90) at org.apache.myfaces.trinidadinternal.context.FacesContextFactoryImpl.getFacesContext(Faces ContextFactoryImpl.java:68) at org.apache.myfaces.webapp.AbstractFacesInitializer.dispatchInitDestroyEvent(AbstractFaces Initializer.java:140) at org.apache.myfaces.webapp.AbstractFacesInitializer.initFaces(AbstractFacesInitializer.jav a:109) at org.apache.myfaces.webapp.StartupServletContextListener.contextInitialized(StartupServlet ContextListener.java:155) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3934) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4429) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526) at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:987) at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:909) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:495) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1206) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:314) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053) at org.apache.catalina.core.StandardHost.start(StandardHost.java:722) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) at org.apache.catalina.core.StandardService.start(StandardService.java:516) at org.apache.catalina.core.StandardServer.start(StandardServer.java:710) at org.apache.catalina.startup.Catalina.start(Catalina.java:583) 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.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413) Feb 25, 2010 4:43:51 PM org.apache.myfaces.webapp.AbstractFacesInitializer initFaces SEVERE: An error occured while initializing MyFaces: This request class is an empty placeholder java.lang.UnsupportedOperationException: This request class is an empty placeholder at org.apache.myfaces.application._SystemEventServletRequest$1.invoke(_SystemEventServletReq uest.java:56) at $Proxy0.getHeader(Unknown Source) at
[TRINIDAD] SelectOneChoice preselection possible?
Hi, at first I was using the default JSF 1.2 ComboBox (selectOneMenu) but then switchted to the Trinidad equivalent (selectOneChoice) to get Ajax functionality. So far it's working fine, the only thing bothering me in comparison to the selectOneMenu is, that the default selection is an empty element but I'd like to have the first element of the bound list of SelectItems to be preselected. I tried it via setting the value of the selectOneChoice to the first element of the list in the constructor of the bean, but that didn't work. So is it even possible to make a preselection? And if so, how to achieve it? Cheers Simon -- View this message in context: http://old.nabble.com/-TRINIDAD--SelectOneChoice-preselection-possible--tp27714456p27714456.html Sent from the MyFaces - Users mailing list archive at Nabble.com.
AW: [TRINIDAD] SelectOneChoice preselection possible?
Hello Simon, Your approach is to give the Element in the backing bean the value, like this: The bean has the List with the Wrapped Items and one of the items you want to set with the List in it: private ListSelectItem indexTypesForSuche; private GeVoSuchtyp selectedIndexType; public ListSelectItem getIndexTypesForSuche() { return indexTypesForSuche; } public GeVoSuchtyp getSelectedIndexType() { return selectedIndexType; } public void setSelectedIndexType(GeVoSuchtyp pSelectedIndexType) { selectedIndexType = pSelectedIndexType; } Then, I would preselect the Object with a value from the List in the constructor: public DokumentSuchenBean() { indexTypesForSuche = new ArrayListSelectItem(); for (IteratorGeVoSuchtyp iterator = jFlowBean.getCodePool().getGeVoSuchtypListe().iterator(); iterator.hasNext();) { GeVoSuchtyp lSuchtyp = iterator.next(); indexTypesForSuche.add(new SelectItem(lSuchtyp, lSuchtyp .toString(), lSuchtyp.toString(), false)); } if(setSelectedIndexType.size0) { setSelectedIndexType(indexTypesForSuche.get(0).getValue()) } } The jspx would look like this: tr:selectOneChoice value=#{DokumentSuchenBean.selectedIndexType} f:selectItems value=#{DokumentSuchenBean.indexTypesForSuche}/ /tr:selectOneChoice Mit freundlichen Grüßen Tobias Eisenträger Softwareentwickler Dokumentenmanagement/Workflow/Internet, AKB 8125 ARAG IT GmbH ARAG Platz 1, 40472 Düsseldorf Tel.: +49 (0)211 964-1937 tobias.eisentrae...@arag.de www.ARAG.de Aufsichtsratsvorsitzender: Gerd Peskes Vorstand: Dr. Paul-Otto Faßbender (Vors.), Dr. Jan-Peter Horst, Dr. Johannes Kathan, Werner Nicoll, Hanno Petersen, Dr. Joerg Schwarze Sitz und Registergericht: Düsseldorf, HRB 1371 USt-ID-Nr.: DE 119 355 995 -Ursprüngliche Nachricht- Von: schneidc [mailto:simon.w...@gmx.de] Gesendet: Donnerstag, 25. Februar 2010 16:20 An: users@myfaces.apache.org Betreff: [TRINIDAD] SelectOneChoice preselection possible? Hi, at first I was using the default JSF 1.2 ComboBox (selectOneMenu) but then switchted to the Trinidad equivalent (selectOneChoice) to get Ajax functionality. So far it's working fine, the only thing bothering me in comparison to the selectOneMenu is, that the default selection is an empty element but I'd like to have the first element of the bound list of SelectItems to be preselected. I tried it via setting the value of the selectOneChoice to the first element of the list in the constructor of the bean, but that didn't work. So is it even possible to make a preselection? And if so, how to achieve it? Cheers Simon -- View this message in context: http://old.nabble.com/-TRINIDAD-- SelectOneChoice-preselection-possible--tp27714456p27714456.html Sent from the MyFaces - Users mailing list archive at Nabble.com.