You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Andrej Konkow (JIRA)" <de...@myfaces.apache.org> on 2008/12/30 22:50:44 UTC

[jira] Created: (TOMAHAWK-1383) NullPointerException in HTML-Renderer

NullPointerException in HTML-Renderer
-------------------------------------

                 Key: TOMAHAWK-1383
                 URL: https://issues.apache.org/jira/browse/TOMAHAWK-1383
             Project: MyFaces Tomahawk
          Issue Type: Bug
          Components: UISaveState
    Affects Versions: 1.1.8
         Environment: tomcat 6.0.18, myfaces 1.2.5, tomahawk 1.1.8 for jsf 1.2
            Reporter: Andrej Konkow


Migrating from jsf1.1 to 1.2 I had the following issue:


Caused by: java.lang.NullPointerException
	at org.apache.myfaces.custom.htmlTag.HtmlTagRenderer.encodeBegin(HtmlTagRenderer.java:78)
	at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:596)
	... 49 more
[2008-12-30 22:43:01,640] [http-8080-2] [WARN ] org.apache.myfaces.renderkit.html.util.ReducedHTMLParser - Invalid tag found: unexpected input while looking for attr name or '/>' at line 42. Surroundings: '<!DOCTYPE html PUBLIC "-//W3C/'.


Reason:

Worked in jsf1.1:
...
  <t:saveState value="#{projectsBean}"/>
  <h:form>	
...

Now causes a NPE. So I had to exchange the directives to:
...
  <h:form>	
  <t:saveState value="#{projectsBean}"/>
...

Took me 1 full day... :-(

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (TOMAHAWK-1383) NullPointerException in HTML-Renderer

Posted by "Leonardo Uribe (JIRA)" <de...@myfaces.apache.org>.
     [ https://issues.apache.org/jira/browse/TOMAHAWK-1383?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Leonardo Uribe resolved TOMAHAWK-1383.
--------------------------------------

       Resolution: Fixed
    Fix Version/s: 1.1.9-SNAPSHOT
         Assignee: Leonardo Uribe

A simple check for null param value is enough to solve this issue

> NullPointerException in HTML-Renderer
> -------------------------------------
>
>                 Key: TOMAHAWK-1383
>                 URL: https://issues.apache.org/jira/browse/TOMAHAWK-1383
>             Project: MyFaces Tomahawk
>          Issue Type: Bug
>          Components: UISaveState
>    Affects Versions: 1.1.8
>         Environment: tomcat 6.0.18, myfaces 1.2.5, tomahawk 1.1.8 for jsf 1.2
>            Reporter: Andrej Konkow
>            Assignee: Leonardo Uribe
>             Fix For: 1.1.9-SNAPSHOT
>
>
> Migrating from jsf1.1 to 1.2 I had the following issue:
> Caused by: java.lang.NullPointerException
> 	at org.apache.myfaces.custom.htmlTag.HtmlTagRenderer.encodeBegin(HtmlTagRenderer.java:78)
> 	at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:596)
> 	... 49 more
> [2008-12-30 22:43:01,640] [http-8080-2] [WARN ] org.apache.myfaces.renderkit.html.util.ReducedHTMLParser - Invalid tag found: unexpected input while looking for attr name or '/>' at line 42. Surroundings: '<!DOCTYPE html PUBLIC "-//W3C/'.
> Reason:
> Worked in jsf1.1:
> ...
>   <t:saveState value="#{projectsBean}"/>
>   <h:form>	
> ...
> Now causes a NPE. So I had to exchange the directives to:
> ...
>   <h:form>	
>   <t:saveState value="#{projectsBean}"/>
> ...
> Took me 1 full day... :-(

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.