2002 JI Open Discussion Posted August 17, 2006 Share Posted August 17, 2006 By: Erich Kilmer - ekilmer Getting null point exceptions in web app demo 2003-02-21 08:15 User ant to build jasper-webapp.war. Copied this into weblogic 7.0. Start up weblogic. I can bring up the index.html. When I try to run the PDF Output JSP example I get: java.lang.NullPointerException at java.io.File.(File.java:175) at jsp_servlet._jsp.__pdf._jspService(__pdf.java:96) at weblogic.servlet.jsp.JspBase.service(JspBase.java:27) at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1058) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:401) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:445) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:306) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:5445) at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:780) at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3105) at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2588) at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:213) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:189) When I try to run the PDF Output servlet example I get: java.lang.NullPointerException at java.io.File.<init>(File.java:175) at servlets.PdfServlet.service(PdfServlet.java:100) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run (ServletStubImpl.java:1058) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm pl.java:401) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm pl.java:306) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio n.run(WebAppServletContext.java:5445) at weblogic.security.service.SecurityServiceManager.runAs(SecurityServic eManager.java:780) at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe rvletContext.java:3105) at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm pl.java:2588) at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:213) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:189) Since this is the first time I have run this I am sure its something in setup that I have not done. Can anyone tell me what is missing? TIA By: Erich Kilmer - ekilmer RE: Getting null point exceptions in web app demo 2003-02-21 08:55 I restarted weblogic and then went to the index.html page. Then went into compile. Tried to execute the JSP example and I get this: java.lang.NullPointerException at java.util.Hashtable.put(Hashtable.java:375) at java.util.Properties.setProperty(Properties.java:97) at java.lang.System.setProperty(System.java:637) at jsp_servlet._jsp.__compile._jspService(__compile.java:97) at weblogic.servlet.jsp.JspBase.service(JspBase.java:27) at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1058) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:401) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:445) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:306) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:5445) at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:780) at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3105) at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2588) at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:213) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:189) I thought the jasper-webapp.war would be self contained. Is there something that I haven't put somewhere? By: Erich Kilmer - ekilmer RE: Getting null point exceptions in web app demo 2003-02-21 11:14 Fixed this by doing 2 things. First I extracted the jasper-webapp.war into a directory called jasper at the same level. When I restarted WebLogic I started getting ClassNotFound for SaxParser. Tried copying xercesImpl.jar to WEB-INF/lib under jasper but was still got same error. Copied xercesImpl,jar up to the lib under the domain. Restarted WebLogic and the compile sample works. Still getting errors in PDF demo. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now