Return-Path: Delivered-To: apmail-myfaces-dev-archive@www.apache.org Received: (qmail 65875 invoked from network); 29 Jan 2010 11:46:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 29 Jan 2010 11:46:56 -0000 Received: (qmail 14326 invoked by uid 500); 29 Jan 2010 11:46:55 -0000 Delivered-To: apmail-myfaces-dev-archive@myfaces.apache.org Received: (qmail 14229 invoked by uid 500); 29 Jan 2010 11:46:55 -0000 Mailing-List: contact dev-help@myfaces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "MyFaces Development" Delivered-To: mailing list dev@myfaces.apache.org Received: (qmail 14221 invoked by uid 99); 29 Jan 2010 11:46:55 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 Jan 2010 11:46:55 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 Jan 2010 11:46:54 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 96DB0234C4AC for ; Fri, 29 Jan 2010 03:46:34 -0800 (PST) Message-ID: <1096697612.127671264765594616.JavaMail.jira@brutus.apache.org> Date: Fri, 29 Jan 2010 11:46:34 +0000 (UTC) From: "Werner Punz (JIRA)" To: dev@myfaces.apache.org Subject: [jira] Issue Comment Edited: (MYFACES-2520) UnsupportedOperationException when launching Trinidad 2 w/ MyFaces2 in Jetty In-Reply-To: <1696719987.126921264761874924.JavaMail.jira@brutus.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/MYFACES-2520?page=3Dcom.atlassi= an.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D12= 806311#action_12806311 ]=20 Werner Punz edited comment on MYFACES-2520 at 1/29/10 11:44 AM: ---------------------------------------------------------------- Ok another analysis, trinidad probably uses the system event, but that one = is called outside of any real request (understandable since the destroy etc= ... is request independend) and getContentType then runs into this issue, u= nfortunately. One solution would be to delegate what is possible to the servlet context o= bject so that we at least can cover parts of the servlet functionality, In this case getRequestContentType is questionable since we probably dont e= ven have a request here since we still are in the init part of the system. It would be interesting to see how the RI behaves in this case so that we h= ave the same behavior here.. This is definitely one shady area of the sourc= e where we should absolutely behave the same as the RI. was (Author: werpu): Ok another analysis, trinidad probably uses the system event, but that = one is called outside of any real request (understandable since the destroy= etc... is request independend) and getContentType then runs into this issu= e, unfortunately. One solution would be to delegate what is possible to the servlet context o= bject so that we at least can cover parts of the servlet functionality, In this case getRequestContentType is questionable since we probably dont e= ven have a request here since we still are in the init part of the system. =20 > UnsupportedOperationException when launching Trinidad 2 w/ MyFaces2 in Je= tty > -------------------------------------------------------------------------= --- > > Key: MYFACES-2520 > URL: https://issues.apache.org/jira/browse/MYFACES-2520 > Project: MyFaces Core > Issue Type: Bug > Components: JSR-314 > Affects Versions: 2.0.0-beta-2 > Reporter: Matthias We=C3=9Fendorf > > SEVERE:=20 > java.lang.UnsupportedOperationException: This request class is an empty p= laceholder > =09at org.apache.myfaces.application._SystemEventServletRequest$1.invoke(= _SystemEventServletRequest.java:56) > =09at $Proxy0.getContentType(Unknown Source) > =09at javax.servlet.ServletRequestWrapper.getContentType(ServletRequestWr= apper.java:145) > =09at org.apache.myfaces.context.servlet.ServletExternalContextImpl.getRe= questContentType(ServletExternalContextImpl.java:322) > =09at org.apache.myfaces.trinidad.util.ExternalContextUtils.getContentTyp= e(ExternalContextUtils.java:341) > =09at org.apache.myfaces.trinidadinternal.share.util.MultipartFormHandler= .isMultipartRequest(MultipartFormHandler.java:57) > =09at org.apache.myfaces.trinidadinternal.config.upload.FileUploadConfigu= ratorImpl.beginRequest(FileUploadConfiguratorImpl.java:109) > =09at org.apache.myfaces.trinidadinternal.config.GlobalConfiguratorImpl._= startConfiguratorServiceRequest(GlobalConfiguratorImpl.java:532) > =09at org.apache.myfaces.trinidadinternal.config.GlobalConfiguratorImpl.b= eginRequest(GlobalConfiguratorImpl.java:211) > =09at org.apache.myfaces.trinidadinternal.config.GlobalConfiguratorImpl.g= etExternalContext(GlobalConfiguratorImpl.java:327) > =09at org.apache.myfaces.trinidadinternal.context.FacesContextFactoryImpl= $CacheRenderKit.(FacesContextFactoryImpl.java:90) > =09at org.apache.myfaces.trinidadinternal.context.FacesContextFactoryImpl= .getFacesContext(FacesContextFactoryImpl.java:68) > =09at org.apache.myfaces.webapp.AbstractFacesInitializer.dispatchInitDest= royEvent(AbstractFacesInitializer.java:140) > =09at org.apache.myfaces.webapp.AbstractFacesInitializer.initFaces(Abstra= ctFacesInitializer.java:109) > =09at org.apache.myfaces.webapp.StartupServletContextListener.contextInit= ialized(StartupServletContextListener.java:155) > =09at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandle= r.java:548) > =09at org.mortbay.jetty.servlet.Context.startContext(Context.java:136) > =09at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.j= ava:1250) > =09at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.jav= a:517) > =09at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:4= 67) > =09at org.mortbay.jetty.plugin.Jetty6PluginWebAppContext.doStart(Jetty6Pl= uginWebAppContext.java:115) > =09at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.jav= a:50) > =09at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollecti= on.java:152) > =09at org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextH= andlerCollection.java:156) > =09at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.jav= a:50) > =09at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollecti= on.java:152) > =09at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.jav= a:50) > =09at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.jav= a:130) > =09at org.mortbay.jetty.Server.doStart(Server.java:224) > =09at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.jav= a:50) > =09at org.mortbay.jetty.plugin.Jetty6PluginServer.start(Jetty6PluginServe= r.java:132) > =09at org.mortbay.jetty.plugin.AbstractJettyMojo.startJetty(AbstractJetty= Mojo.java:441) > =09at org.mortbay.jetty.plugin.AbstractJettyMojo.execute(AbstractJettyMoj= o.java:383) > =09at org.mortbay.jetty.plugin.AbstractJettyRunMojo.execute(AbstractJetty= RunMojo.java:210) > =09at org.mortbay.jetty.plugin.Jetty6RunMojo.execute(Jetty6RunMojo.java:1= 84) > =09at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlu= ginManager.java:490) > =09at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(De= faultLifecycleExecutor.java:694) > =09at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandalo= neGoal(DefaultLifecycleExecutor.java:569) > =09at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Def= aultLifecycleExecutor.java:539) > =09at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndH= andleFailures(DefaultLifecycleExecutor.java:387) > =09at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegm= ents(DefaultLifecycleExecutor.java:348) > =09at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(Default= LifecycleExecutor.java:180) > =09at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328) > =09at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138) > =09at org.apache.maven.cli.MavenCli.main(MavenCli.java:362) > =09at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java= :60) > =09at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > =09at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImp= l.java:39) > =09at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcc= essorImpl.java:25) > =09at java.lang.reflect.Method.invoke(Method.java:597) > =09at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) > =09at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) > =09at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:43= 0) > =09at org.codehaus.classworlds.Launcher.main(Launcher.java:375) > Jan 29, 2010 11:38:07 AM org.apache.myfaces.webapp.AbstractFacesInitializ= er initFaces > SEVERE: An error occured while initializing MyFaces: This request class i= s an empty placeholder > java.lang.UnsupportedOperationException: This request class is an empty p= laceholder > =09at org.apache.myfaces.application._SystemEventServletRequest$1.invoke(= _SystemEventServletRequest.java:56) > =09at $Proxy0.getHeader(Unknown Source) > =09at javax.servlet.http.HttpServletRequestWrapper.getHeader(HttpServletR= equestWrapper.java:91) > =09at org.apache.myfaces.trinidadinternal.context.external.ServletRequest= HeaderMap.getAttribute(ServletRequestHeaderMap.java:42) > =09at org.apache.myfaces.trinidadinternal.context.external.ServletRequest= HeaderMap.getAttribute(ServletRequestHeaderMap.java:30) > =09at org.apache.myfaces.trinidadinternal.context.external.AbstractAttrib= uteMap.get(AbstractAttributeMap.java:73) > =09at org.apache.myfaces.trinidadinternal.renderkit.core.CoreRenderKit.is= AjaxRequest(CoreRenderKit.java:148) > =09at org.apache.myfaces.trinidadinternal.renderkit.core.CoreRenderKit.is= PartialRequest(CoreRenderKit.java:163) > =09at org.apache.myfaces.trinidadinternal.config.xmlHttp.XmlHttpConfigura= tor.getExternalContext(XmlHttpConfigurator.java:61) > =09at org.apache.myfaces.trinidadinternal.config.GlobalConfiguratorImpl.g= etExternalContext(GlobalConfiguratorImpl.java:351) > =09at org.apache.myfaces.trinidadinternal.context.FacesContextFactoryImpl= $CacheRenderKit.(FacesContextFactoryImpl.java:90) > =09at org.apache.myfaces.trinidadinternal.context.FacesContextFactoryImpl= .getFacesContext(FacesContextFactoryImpl.java:68) > =09at org.apache.myfaces.webapp.AbstractFacesInitializer.dispatchInitDest= royEvent(AbstractFacesInitializer.java:140) > =09at org.apache.myfaces.webapp.AbstractFacesInitializer.initFaces(Abstra= ctFacesInitializer.java:109) > =09at org.apache.myfaces.webapp.StartupServletContextListener.contextInit= ialized(StartupServletContextListener.java:155) > =09at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandle= r.java:548) > =09at org.mortbay.jetty.servlet.Context.startContext(Context.java:136) > =09at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.j= ava:1250) > =09at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.jav= a:517) > =09at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:4= 67) > =09at org.mortbay.jetty.plugin.Jetty6PluginWebAppContext.doStart(Jetty6Pl= uginWebAppContext.java:115) > =09at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.jav= a:50) > =09at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollecti= on.java:152) > =09at org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextH= andlerCollection.java:156) > =09at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.jav= a:50) > =09at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollecti= on.java:152) > =09at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.jav= a:50) > =09at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.jav= a:130) > =09at org.mortbay.jetty.Server.doStart(Server.java:224) > =09at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.jav= a:50) > =09at org.mortbay.jetty.plugin.Jetty6PluginServer.start(Jetty6PluginServe= r.java:132) > =09at org.mortbay.jetty.plugin.AbstractJettyMojo.startJetty(AbstractJetty= Mojo.java:441) > =09at org.mortbay.jetty.plugin.AbstractJettyMojo.execute(AbstractJettyMoj= o.java:383) > =09at org.mortbay.jetty.plugin.AbstractJettyRunMojo.execute(AbstractJetty= RunMojo.java:210) > =09at org.mortbay.jetty.plugin.Jetty6RunMojo.execute(Jetty6RunMojo.java:1= 84) > =09at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlu= ginManager.java:490) > =09at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(De= faultLifecycleExecutor.java:694) > =09at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandalo= neGoal(DefaultLifecycleExecutor.java:569) > =09at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Def= aultLifecycleExecutor.java:539) > =09at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndH= andleFailures(DefaultLifecycleExecutor.java:387) > =09at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegm= ents(DefaultLifecycleExecutor.java:348) > =09at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(Default= LifecycleExecutor.java:180) > =09at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328) > =09at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138) > =09at org.apache.maven.cli.MavenCli.main(MavenCli.java:362) > =09at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java= :60) > =09at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > =09at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImp= l.java:39) > =09at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcc= essorImpl.java:25) > =09at java.lang.reflect.Method.invoke(Method.java:597) > =09at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) > =09at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) > =09at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:43= 0) > =09at org.codehaus.classworlds.Launcher.main(Launcher.java:375) --=20 This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.