Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Illegal System Exit Exception

 
Robert Wozniak
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 124
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Robert Wozniak
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic