This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes Servlets and the fly likes Illegal System Exit Exception Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Illegal System Exit Exception" Watch "Illegal System Exit Exception" New topic

Illegal System Exit Exception

Robert Wozniak

Joined: Mar 26, 2001
Posts: 5
My JSP returns this message to my servlet container's admin console everytime someone accesses the page.
The page itself doesn't do a whole lot. Mostly it declares a database connection bean and result set object, then returns some records from a database. Both objects have close() methods which take them out of memory.
If ayone recognizes this error and has some advice, it's much appreciated.
Sandeep Jain
Ranch Hand

Joined: Oct 25, 2000
Posts: 124
I dont think so ,I can help u much with just the description . Can u please put ur code here.
I think ,not very sure, when u make use of System.exit(0) in ur servlet u get such error. Such statement is not allowed in servlets.

Sandeep Jain

Try and Try Till u succeed<br /> <br />Sandeep Jain
Robert Wozniak

Joined: Mar 26, 2001
Posts: 5
Here's the code I am using:
<%@ page import="com.bplibf.servlet.*,java.sql.*,java.util.*,java.lang.*" errorPage="error.jsp" %>
<jsp:useBean id="conn" class="com.bplibf.servlet.ConnSQL" />
ResultSet rs = null;
<title>Custom Menu</title>
Request parameter names <BR>
<% String strRU = request.getRemoteUser(); %>
Remote User: <BR>
<%= strRU %> <BR>
<font face="Arial">
 <b><u><font size="4">Content Area Links</font></u></b>
<table border="0" cellpadding="3" width="40%" align="center" border="0" cellspacing="0">
<tr bgcolor="#3399FF">
<td width="23%"><font face="Arial">Area</font></td>
<td width="30%"><font face="Arial">Hyperlink</font></td>
I should say that I have no problem with the page functioning. It's just that the logs are filled up with this "Illegal System.Exit()" exception.
Input appreciated,
I agree. Here's the link:
subject: Illegal System Exit Exception
It's not a secret anymore!