aspose file tools*
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 Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Illegal System Exit Exception" Watch "Illegal System Exit Exception" New topic
Author

Illegal System Exit Exception

Robert Wozniak
Greenhorn

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.
Rob
Sandeep Jain
Ranch Hand

Joined: Oct 25, 2000
Posts: 124
Hello,
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
Greenhorn

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;
%>
<html>
<head>
<title>Custom Menu</title>
</head>
<body>
Request parameter names <BR>
<% String strRU = request.getRemoteUser(); %>
Remote User: <BR>
<%= strRU %> <BR>
<BR>
<BR>
<font face="Arial">
 <b><u><font size="4">Content Area Links</font></u></b>
</font>
<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>
</tr>
</table>
</body>
</jsp:useBean>
</html>
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,
Rob
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Illegal System Exit Exception