myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Carew (JIRA)" <...@myfaces.apache.org>
Subject [jira] Updated: (MYFACES-1673) JSF Core tag convertNumber causing NPE
Date Sun, 01 Jul 2007 16:13:04 GMT

     [ https://issues.apache.org/jira/browse/MYFACES-1673?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

David Carew updated MYFACES-1673:
---------------------------------

    Status: Patch Available  (was: Open)

> JSF Core tag convertNumber causing NPE
> --------------------------------------
>
>                 Key: MYFACES-1673
>                 URL: https://issues.apache.org/jira/browse/MYFACES-1673
>             Project: MyFaces Core
>          Issue Type: Bug
>          Components: JSR-252
>    Affects Versions: 1.2.0-SNAPSHOT
>         Environment: Geronimo 2.0 M6 or Tomcat 6.0.13 Ubuntu 7.0.4 with Sun JDK 1.5.0_11
>            Reporter: David Carew
>
> Using the JSF core tag <f:convertNumber /> in a page like this (where the amount
property is an instance of java.math.BigDecimal)
> <h:outputText value="#{moneyBean.amount}">
> <f:convertNumber type="currency" />
> </h:outputText>
> causes the following stack trace
> HTTP Status 500 -
> type Exception report
> message
> description The server encountered an internal error () that prevented it from fulfilling
this request.
> exception
> javax.servlet.ServletException: An exception occurred processing JSP page /index.jsp
at line 16
> 13: <f:view>
> 14: You owe me &nbsp; 
> 15: <h:outputText value="#{moneyBean.amount}">
> 16:  <f:convertNumber type="currency" /> 
> 17: </h:outputText>
> 18: </f:view>
> 19: </body>
> Stacktrace:
> 	javax.faces.webapp.FacesServlet.service(FacesServlet.java:152)
> root cause
> javax.faces.FacesException: An exception occurred processing JSP page /index.jsp at line
16
> 13: <f:view>
> 14: You owe me &nbsp; 
> 15: <h:outputText value="#{moneyBean.amount}">
> 16:  <f:convertNumber type="currency" /> 
> 17: </h:outputText>
> 18: </f:view>
> 19: </body>
> Stacktrace:
> 	org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:340)
> 	org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:254)
> 	org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:41)
> 	org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:132)
> 	javax.faces.webapp.FacesServlet.service(FacesServlet.java:138)
> root cause
> org.apache.jasper.JasperException: An exception occurred processing JSP page /index.jsp
at line 16
> 13: <f:view>
> 14: You owe me &nbsp; 
> 15: <h:outputText value="#{moneyBean.amount}">
> 16:  <f:convertNumber type="currency" /> 
> 17: </h:outputText>
> 18: </f:view>
> 19: </body>
> Stacktrace:
> 	org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:524)
> 	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:435)
> 	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
> 	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
> 	javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
> 	org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:334)
> 	org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:254)
> 	org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:41)
> 	org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:132)
> 	javax.faces.webapp.FacesServlet.service(FacesServlet.java:138)
> root cause
> java.lang.NullPointerException
> 	org.apache.myfaces.taglib.core.ConvertNumberTag.createConverter(ConvertNumberTag.java:136)
> 	javax.faces.webapp.ConverterELTag.doStartTag(ConverterELTag.java:59)
> 	org.apache.jsp.index_jsp._jspx_meth_f_005fconvertNumber_005f0(index_jsp.java:184)
> 	org.apache.jsp.index_jsp._jspx_meth_h_005foutputText_005f0(index_jsp.java:153)
> 	org.apache.jsp.index_jsp._jspx_meth_f_005fview_005f0(index_jsp.java:111)
> 	org.apache.jsp.index_jsp._jspService(index_jsp.java:74)
> 	org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
> 	javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
> 	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393)
> 	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
> 	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
> 	javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
> 	org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:334)
> 	org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:254)
> 	org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:41)
> 	org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:132)
> 	javax.faces.webapp.FacesServlet.service(FacesServlet.java:138)

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


Mime
View raw message