Null pointer exception in java.awt.Window
We have a JSP application using Tomcat 3.2.1. We are getting a Null Pointer Exception inside the java.awt.Window constructor (stack trace below) in one machine where this application is deployed. The error doesn't seem easily reproducible, though. The line which triggers the error is: JFrame frame = new JFrame(); Does anyone has a suggestion on what to do ??? Thanks, Wesley PS: Machine has W2K and JRE 1.3.1 Error: 500 Location: /RFITPrintFileDownload.jsp Internal Servlet Error: javax.servlet.ServletException at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:459) at _0002fRFITPrintFileDownload_0002ejspRFITPrintFileDownload_jsp_0._jspService(_0002fRFITPrintFileDownload_0002ejspRFITPrintFileDownload_jsp_0.java:210) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:177) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404) at org.apache.tomcat.core.Handler.service(Handler.java:286) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:210) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498) at java.lang.Thread.run(Unknown Source) Root cause: java.lang.NullPointerException at java.awt.Window.(Unknown Source) at java.awt.Frame.(Unknown Source) at java.awt.Frame.(Unknown Source) at javax.swing.JFrame.(Unknown Source) at com.nortel.nsm.rfinterference.PDFGenerator.includeChartInFlow(PDFGenerator.java:425) at com.nortel.nsm.rfinterference.PDFGenerator.locateChartInFlow(PDFGenerator.java:649) at com.nortel.nsm.rfinterference.PDFGenerator.fillBody(PDFGenerator.java:334) at com.nortel.nsm.rfinterference.PDFGenerator.generatePDF(PDFGenerator.java:126) at com.nortel.nsm.rfinterference.RFITPrintBean.generateReport(RFITPrintBean.java:50) at _0002fRFITPrintFileDownload_0002ejspRFITPrintFileDownload_jsp_0._jspService(_0002fRFITPrintFileDownload_0002ejspRFITPrintFileDownload_jsp_0.java:164) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:177) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404) at org.apache.tomcat.core.Handler.service(Handler.java:286) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:210) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498) at java.lang.Thread.run(Unknown Source) __ Do You Yahoo!? Send your FREE holiday greetings online! http://greetings.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Jakarta NT SERVICE--- logout USER
Use the -Xrs option when starting the JVM. Wesley -Original Message- From: Catalin [mailto:[EMAIL PROTECTED]] Sent: Monday, December 10, 2001 2:55 PM To: [EMAIL PROTECTED] Subject: Jakarta NT SERVICE--- logout USER Hello to everybody! I have a jakarta-tomcat-3.3m4 on a Win2k system and I have a problem: every times one user of Operating System logout, the service it stoppes. :-( Where do I need to modify the config so that will not be happens any more?? Thanks!! __ Do You Yahoo!? Send your FREE holiday greetings online! http://greetings.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
NS 6.2 crash (off-topic)
First of all, sorry for the off-topic question. But since we are using Tomcat, I though someone here might have seen this issue before. Our main page has two frames: the left frame is like a table of contents, and the right frame shows the actual data. The left frame has an applet. When the user clicks on a label inside the applet, it calls getAppletContext().showDocument(url, main) to show the page in the right frame. If the user clicks on a special label in the applet, instead of showing the page in the right frame, it loads a page in the base frame (getAppletContext().showDocument(url, _top)). This new page also has two frames, and the one in the left also acts like a table of contents (with different links, of course). Now, on some machines, if you click on a label inside this second applet (to load another page), NS 6.2 crashes. All url's loaded by the applets have parameters passed in the url name (like ?p1=p2=), and I discovered if the number of parameters is greater than 1, NS always crashes in these machines. If it's equal to 1, the crash doesn't always happens. IE works fine. Environment: JRE 1.3.1, Tomcat 3.2.1, WinNT 4.0 So, does any one have a clue ? TIA, Wesley __ Do You Yahoo!? Send your FREE holiday greetings online! http://greetings.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Toncat as service on Win2K
We had this problem. We have solved it by adding the option '-Xrs' as a startup parameter for the JVM in the wrapper.properties file. Wesley --- Marciu Liviu [EMAIL PROTECTED] wrote: Hello tomcat-users, I have registred Tomcat3.2.3 as a service on Win2K, under LocalSystem and under ./Administrator. I set it up to start automaticly. All works fine, I start the computer and the service is working, I log on and the service is working Ok, but when I log off (not shutdown) the service stops. Why isn't the service running after I log off ? Thank you. -- Best regards, Liviu mailto:[EMAIL PROTECTED] __ Do You Yahoo!? Listen to your Yahoo! Mail messages from any phone. http://phone.yahoo.com
Re: Re[2]: Toncat as service on Win2K
Supposing you have used the jk_nt_service utility to install TomCat as a service in Win2K, you'll have a file called wrapper.properties in the conf directory of the TomCat installation directory. In this file, you'll have a line like this: wrapper.cmd_line=$(wrapper.javabin)-classpath $(wrapper.class_path) $(wrapper.startup_class) -config $(wrapper.server_xml) -home $(wrapper.tomcat_home) All you have to do is add '-Xrs': wrapper.cmd_line=$(wrapper.javabin)-Xrs -classpath $(wrapper.class_path) $(wrapper.startup_class) -config $(wrapper.server_xml) -home $(wrapper.tomcat_home) Even if you didn't use jk_nt_service, whatever the utility you have used you'll have a point where the JVM is called. This is where you should put the '-Xrs' option. Regards, Wesley --- Marciu Liviu [EMAIL PROTECTED] wrote: Hello Wesley E. Ribeiro, Sorry but I don't know how to set the '-Xrs' option as a startup parameter. Please tell me. Thank you. WER We had this problem. We have solved it by adding WER the option '-Xrs' as a startup parameter for the JVM WER in the wrapper.properties file. WER Wesley WER --- Marciu Liviu [EMAIL PROTECTED] wrote: Hello tomcat-users, I have registred Tomcat3.2.3 as a service on Win2K, under LocalSystem and under ./Administrator. I set it up to start automaticly. All works fine, I start the computer and the service is working, I log on and the service is working Ok, but when I log off (not shutdown) the service stops. Why isn't the service running after I log off ? Thank you. -- Best regards, Liviu mailto:[EMAIL PROTECTED] __ Do You Yahoo!? Listen to your Yahoo! Mail messages from any phone. http://phone.yahoo.com
RE: Tomcat crashes after some requests
Ok, thank you all who answered. I'll try a new driver and see if it makes a difference. I've seen the driver list on Sun's page, but since we have a limited time to try and decide, which product do you (or anyone else with experience in this field) recommend ? I'm particularly interested in success stories accessing MS-Access. Best regards, Wesley --- Barney Hamish [EMAIL PROTECTED] wrote: I had a similar problem but it was due to the ODBC:JDBC bridge. As has been pointed out numerous times on the list the ODBC:JDBC bridge is not production ready. I replaced it with a production quality driver and it hasn't crashed since. It's worth a try. Hamish -Original Message- From: Wesley E. Ribeiro [mailto:[EMAIL PROTECTED]] Sent: Friday, September 28, 2001 3:16 PM To: [EMAIL PROTECTED] Subject: Tomcat crashes after some requests Hi ! We are using Tomcat 3.2.1 (stand-alone) in our project, and after some number of requests (this number is variable, but usually low, like 50 or so), Tomcat just crashes. There seems to be no useful information about the crash in the logs, and we could not identify a page (or sequence of pages), which could reproduce the crash. Also, when most crashes happen there is just one client browser accessing Tomcat. We are using WinNT 4.0, and Tomcat is being used as a NT service (created using the jk_nt_service utility). The JVM used is the one in the JDK1.3.1. The code in the jsp pages access Oracle and MS-Access databases (Oracle's JDBC driver and the JDBC-ODBC driver for Access), and the pages contents are very common: some tables, a few applets. I know this is little to work with, but any help is appreciated. Thanks, Wesley __ Do You Yahoo!? Listen to your Yahoo! Mail messages from any phone. http://phone.yahoo.com