myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sylvain Vieujot (JIRA)" <myfaces-...@incubator.apache.org>
Subject [jira] Commented: (MYFACES-376) HTML Renderkit doesn't choose correct ContentType
Date Wed, 14 Sep 2005 19:12:56 GMT
    [ http://issues.apache.org/jira/browse/MYFACES-376?page=comments#action_12329342 ] 

Sylvain Vieujot commented on MYFACES-376:
-----------------------------------------

I had the bug in one of my applications.
The reason is : ContentTypeList does not contain a supported content type: text/*, application/javascript,...
Maybe on accept text/*, we should choose text/html

Error Report
HTTP Status : 500
Date : 2005-09-13 07:31:26
Remote Servlet user : null
Application User : [null]
User IP Address : 206.183.1.74 ?
URL : http://www.platres.net/platre/forum/index-jsf.jsf

Request Parameters
None.
Headers
connection: Keep-Alive
user-agent: Mozilla/4.0 (compatible; T-H-U-N-D-E-R-S-T-O-N-E)
host: www.platres.net
accept: text/*, application/javascript, application/x-javascript
cookie: JSESSIONID=08672136E6B8AAFD08B8181790585DF7; JSESSIONID=EDD6F695A1BA0B8CE31D3E24527FA823

Attributes
Request attributes
javax.servlet.forward.request_uri: /platre/forum/index-jsf.jsf
javax.servlet.forward.context_path: /platre
javax.servlet.forward.servlet_path: /forum/index-jsf.jsf
javax.servlet.forward.path_info: /slib/errorPages/default.jsp
com.seanergie.web.util.SecureRedirect: false
javax.servlet.error.message: 
javax.servlet.error.exception: javax.servlet.ServletException: ContentTypeList does not contain
a supported content type: text/*, application/javascript,...
javax.servlet.error.request_uri: /platre/forum/index-jsf.jsf
javax.servlet.error.status_code: 500
class org.apache.myfaces.renderkit.html.util.JavascriptUtils.OLD_VIEW_ID: /forum/index-jsf.jsp
javax.servlet.error.servlet_name: Faces Servlet
org.apache.myfaces.component.html.util.ExtensionFilter.doFilterCalled: true

Session attributes
currentAdNumber: 1

Exception
ContentTypeList does not contain a supported content type: text/*, application/javascript,
application/x-javascript
javax.servlet.ServletException: ContentTypeList does not contain a supported content type:
text/*, application/javascript, application/x-javascript
	at javax.faces.webapp.FacesServlet.service(FacesServlet.java:109)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
	at org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:122)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
	at com.seanergie.filter.authentication.LoginInterceptorFilter.doFilter(LoginInterceptorFilter.java:36)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
	at com.seanergie.filter.persistence.SessionsManagerFilter.doFilter(SessionsManagerFilter.java:44)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:407)
	at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:526)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
	at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
	at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
	at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
	at java.lang.Thread.run(Thread.java:595)
Caused by:
java.lang.IllegalArgumentException: ContentTypeList does not contain a supported content type:
text/*, application/javascript, application/x-javascript
	at org.apache.myfaces.renderkit.html.HtmlRenderKitImpl.createResponseWriter(HtmlRenderKitImpl.java:176)
	at javax.faces.webapp.UIComponentTag.setupResponseWriter(UIComponentTag.java:622)
	at javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:217)
	at org.apache.myfaces.taglib.core.ViewTag.doStartTag(ViewTag.java:71)
	at org.apache.jsp.forum.index_002djsf_jsp._jspx_meth_f_view_0(index_002djsf_jsp.java:328)
	at org.apache.jsp.forum.index_002djsf_jsp._jspService(index_002djsf_jsp.java:295)
	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
	at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
	at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
	at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
	at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
	at org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:415)
	at org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:234)
	at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:300)
	at javax.faces.webapp.FacesServlet.service(FacesServlet.java:95)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
	at org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:122)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
	at com.seanergie.filter.authentication.LoginInterceptorFilter.doFilter(LoginInterceptorFilter.java:36)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
	at com.seanergie.filter.persistence.SessionsManagerFilter.doFilter(SessionsManagerFilter.java:44)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:407)
	at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:526)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
	at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
	at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
	at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
	at java.lang.Thread.run(Thread.java:595)

> HTML Renderkit doesn't choose correct ContentType
> -------------------------------------------------
>
>          Key: MYFACES-376
>          URL: http://issues.apache.org/jira/browse/MYFACES-376
>      Project: MyFaces
>         Type: Bug
>   Components: Implementation
>     Versions: 1.0.9m9
>  Environment: Tomcat, FireFox/Mozilla Browser
>     Reporter: Jacob Hookom
>     Assignee: Martin Marinschek
>     Priority: Critical
>      Fix For: 1.0.10m10

>
> The contract between ViewHandler and RenderKit for creating a ResponseWriter is that
the ViewHandler should suggest a list of supported contentTypes.  It is the RenderKit's job
to pick the appropriate one based on it's output-- not just any of them.
> In the case of Firefox, the first item it sends is 'text/xml, ....', the HtmlRenderKit
in MyFaces just says, use the first item returned, so the response is set to be contentType
of 'text/xml'.
> This causes issues since the browser gets a response, renders it, but treats the content
with comments <!-- --> as XML-- so that means the css isn't used, and commented JavaScript
isn't seen.
> This is a major blocker.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message