From: Jeremias M. <de...@je...> - 2011-05-04 08:20:52
|
Thanks, Ken! I didn't notice that. It's fixed now in CVS HEAD along with some problems showing the JSP page in modern browsers. I guess I haven't run that one for some time. On 30.04.2011 05:28:34 Ken Bowen wrote: > Hi, > > 1. Downloaded version 2.1.0 & unzipped > 2. Dropped build/barcode4j.war in webapps on a Tomcat 6.0.29 running on a MacBook Pro OS X 10.6.7 > 3. Used Safari to go to http://localhost:8080/barcode4j > 4. Got the Exception shown below. > --- Thanks in advance for any help getting this working > -- Ken Bowen > > Exception: > org.apache.jasper.JasperException: An exception occurred processing JSP page /index.jsp at line 15 > > 12: <h1>Barcode4J Servlet</h1> > 13: <p>This page demostrates the usage of the BarcodeServlet.</p> > 14: <% > 15: final String genbc = bcrequest.toURL(); > 16: if (bcrequest.isSVG()) { > 17: %> > 18: <p>The generated barcode in SVG format (only displayed if SVG is supported in your browser):</p> > > > Stacktrace: > org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:510) > org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:419) > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313) > org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260) > javax.servlet.http.HttpServlet.service(HttpServlet.java:717) > > root cause > > java.lang.NullPointerException > java.net.URLEncoder.encode(URLEncoder.java:188) > org.krysalis.barcode4j.webapp.BarcodeRequestBean.encode(BarcodeRequestBean.java:295) > org.krysalis.barcode4j.webapp.BarcodeRequestBean.toURL(BarcodeRequestBean.java:192) > org.apache.jsp.index_jsp._jspService(index_jsp.java:82) > org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) > javax.servlet.http.HttpServlet.service(HttpServlet.java:717) > org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377) > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313) > org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260) > javax.servlet.http.HttpServlet.service(HttpServlet.java:717) > > > Jeremias Maerki |