[jboss-user] [JBoss Portal] - Re: NPE using JSTL format

jupallis do-not-reply at jboss.com
Mon Oct 6 07:09:01 EDT 2008


I'm getting this NPE again.

I'm using the JBoss 2.6.6 with JBoss AS 4.2.3. 


Though the request.getHeaders("accept-language") is returning the header with browser langugage(en_us in my case). The request.getLocales()  is returning 'null' because of which the JSTL tag is throwing the NPE.


  | Please find the stack trace below:
  | 18:58:46,984 ERROR [[jsp]] Servlet.service() for servlet jsp threw exception
  | java.lang.NullPointerException
  |         at org.apache.taglibs.standard.tag.common.fmt.BundleSupport.findMatch(Bu
  | ndleSupport.java:250)
  |         at org.apache.taglibs.standard.tag.common.fmt.BundleSupport.getLocalizat
  | ionContext(BundleSupport.java:186)
  |         at org.apache.taglibs.standard.tag.common.fmt.BundleSupport.doStartTag(B
  | undleSupport.java:95)
  |         at org.apache.jsp.layouts.autodesk._2column_jsp._jspx_meth_fmt_005fbundl
  | e_005f0(_2column_jsp.java:563)
  |         at org.apache.jsp.layouts.autodesk._2column_jsp._jspService(_2column_jsp
  | .java:180)
  |         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
  |         at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
  |         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper
  | .java:373)
  |         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:3
  | 36)
  |         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
  |         at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
  |         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
  | icationFilterChain.java:290)
  |         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
  | ilterChain.java:206)
  | 



View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4180536#4180536

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4180536



More information about the jboss-user mailing list