You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Harkan Langbaard (JIRA)" <de...@myfaces.apache.org> on 2011/01/01 20:35:45 UTC
[jira] Created: (TRINIDAD-1991) Example's bad faces-config.xml
causes NullPointerException in ContentTypeAndCharacterSet
Example's bad faces-config.xml causes NullPointerException in ContentTypeAndCharacterSet
----------------------------------------------------------------------------------------
Key: TRINIDAD-1991
URL: https://issues.apache.org/jira/browse/TRINIDAD-1991
Project: MyFaces Trinidad
Issue Type: Bug
Affects Versions: 2.0.0-alpha-2
Reporter: Harkan Langbaard
The file trinidad-2.0.0-alpha-2-example.tar.gz\trinidad-2.0.0-alpha-2\trinidad-blank-2.0.0-alpha-2.war\WEB-INF\faces-config.xml starts like this:
<!DOCTYPE faces-config PUBLIC
"-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
"http://java.sun.com/dtd/web-facesconfig_1_0.dtd" >
<faces-config>
Which causes an error like this:
java.lang.NullPointerException
at org.apache.myfaces.trinidadinternal.config.dispatch.ContentTypeAndCharacterSet.<init>(ContentTypeAndCharacterSet.java:42)
at org.apache.myfaces.trinidadinternal.config.dispatch.DispatchServletResponse.setContentType(DispatchServletResponse.java:39)
at javax.servlet.ServletResponseWrapper.setContentType(ServletResponseWrapper.java:133)
When i start faces-config.xml like this:
<faces-config xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-facesconfig_2_0.xsd"
version="2.0">
it works
Tested on appengine dev environment with jsf-api.jar and jsf-impl-gae.jar from oracle
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (TRINIDAD-1991) Example's bad faces-config.xml
causes NullPointerException in ContentTypeAndCharacterSet
Posted by "Matthias Weßendorf (JIRA)" <de...@myfaces.apache.org>.
[ https://issues.apache.org/jira/browse/TRINIDAD-1991?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Matthias Weßendorf resolved TRINIDAD-1991.
------------------------------------------
Resolution: Fixed
Fix Version/s: 2.0.0.4-core
> Example's bad faces-config.xml causes NullPointerException in ContentTypeAndCharacterSet
> ----------------------------------------------------------------------------------------
>
> Key: TRINIDAD-1991
> URL: https://issues.apache.org/jira/browse/TRINIDAD-1991
> Project: MyFaces Trinidad
> Issue Type: Bug
> Affects Versions: 2.0.0-alpha-2
> Reporter: Harkan Langbaard
> Fix For: 2.0.0.4-core
>
>
> The file trinidad-2.0.0-alpha-2-example.tar.gz\trinidad-2.0.0-alpha-2\trinidad-blank-2.0.0-alpha-2.war\WEB-INF\faces-config.xml starts like this:
> <!DOCTYPE faces-config PUBLIC
> "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
> "http://java.sun.com/dtd/web-facesconfig_1_0.dtd" >
> <faces-config>
> Which causes an error like this:
> java.lang.NullPointerException
> at org.apache.myfaces.trinidadinternal.config.dispatch.ContentTypeAndCharacterSet.<init>(ContentTypeAndCharacterSet.java:42)
> at org.apache.myfaces.trinidadinternal.config.dispatch.DispatchServletResponse.setContentType(DispatchServletResponse.java:39)
> at javax.servlet.ServletResponseWrapper.setContentType(ServletResponseWrapper.java:133)
> When i start faces-config.xml like this:
> <faces-config xmlns="http://java.sun.com/xml/ns/javaee"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
> http://java.sun.com/xml/ns/javaee/web-facesconfig_2_0.xsd"
> version="2.0">
> it works
> Tested on appengine dev environment with jsf-api.jar and jsf-impl-gae.jar from oracle
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.