tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eduardo Salvador Godoy Vega" <ego...@tekchile.cl>
Subject RE: Error 500
Date Tue, 08 Aug 2000 20:59:36 GMT
Here is my code ...

There is a html page
Author.html
-----
<HTML>
<HEAD>
<title>Enterprise Web Administrator</title>
<HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">
</HEAD>
<FRAMESET rows="50%,*">
        <FRAME src="RAuthor.jsp" name="titlepool">
        <FRAME src="RAuthor_full.jsp" name="detailpool">
</FRAMESET>
</HTML>
-----
RAuthor.jsp
<%@ page language = "java" errorPage="errorpage.jsp" import = "java.util.*,
oracle.jbo.*, javax.naming.*, oracle.jdeveloper.html.*,
oracle.jbo.html.databeans.*" contentType="text/html;charset=ISO-8859-1"%>

<%
	// make sure the application is registered

oracle.jbo.html.jsp.JSPApplicationRegistry.registerApplicationFromPropertyFi
le(session , "eprise_admin_AdminModule");
%>
<html>
<head>
<META NAME="GENERATOR" CONTENT="Oracle JDeveloper">
<LINK REL=STYLESHEET TYPE="text/css" HREF="<%=session.getValue("CSSURL")%>">
<SCRIPT LANGUAGE="JavaScript">
function ReloadFrame() {
  parent.detailpool.location="RAuthor_full.jsp";
}
</script>
</head>
<body onLoad="ReloadFrame();">
<table width="600">
<tr>
<td><h2>Authors</h2> </td>
<td rowspan="2" width="150">
<%
  String sFilter = null;
  if (request.getParameter("D1") == null)
  {
    sFilter = (String)session.getValue("Filter");
  }else
  {
    sFilter = request.getParameter("D1");
  }
%>
<jsp:useBean class="eprise.bco.FindComboBox" id="test" scope="request" >
<%
test.initialize(application,session,
request,response,out,"eprise_admin_AdminModule.RCustomersFindView");
test.setTitle("View");
test.setDefaultValue(sFilter);
test.setURLTarget("RAuthor.jsp");
test.render();
%>
</jsp:useBean>
 </td>
</tr>
<tr>
<td>
<jsp:useBean   class="oracle.jbo.html.databeans.NavigatorBar"  id="tb"
scope="request" >
<%
 tb.setTargetUrl("RAuthor.jsp");
tb.initialize(application,session,
request,response,out,"eprise_admin_AdminModule.RAuthorView");
String sImageBase = (String)session.getValue("ImageBase");
 tb.setImageDir(sImageBase);
 tb.addSeparator();
 tb.addButton(tb.NAVIGATE_FINDFORM , "VPool_Query.jsp");
 tb.render();
%>
</jsp:useBean>
<a href="RAuthor_Create.jsp" target="contentsFrame">Add</a>
<a href="RAuthor_Edit.jsp" target="contentsFrame">Edit</a>
<a href="RAuthor_Destroy.jsp" target="contentsFrame">Delete</a>
</td>
</tr>
</table>
<jsp:useBean id="RowSetBrowser" class="eprise.bco.RowSetSortBrowser"
scope="page">
<%
	RowSetBrowser.setSortBy(request.getParameter("SortBy"));
  RowSetBrowser.initialize(application, session , request, response, out,
"eprise_admin_AdminModule.RAuthorView");
  RowSetBrowser.SortBy();

RowSetBrowser.setHiddenFields("Gender,RAuthorEntityId,RCustomersId,TDepartme
ntId,TSpecialtyId,TMethodId,TDialectId,TTranscriptionMethodId,Evaluated,Eval
uatedDate,TVoiceadaptationId,TLanguageadaptationId,TDictionaryadaptationId,T
raining,Id1,Id2,Id3,Description2,Description,Description1,Id4,Description3,H
ospitalId");
  RowSetBrowser.setShowRecordNumbers(true);
  RowSetBrowser.setRowUrl("RAuthor.jsp");
  if (sFilter == null)
  {
      RowSetBrowser.setCleanFilter();
      session.removeValue("Filter");
  }
  else
  {
      RowSetBrowser.setFilterBy("RAuthor.R_CUSTOMERS_ID",sFilter);
      session.putValue("Filter",sFilter);
  }
  RowSetBrowser.setSortTarget("RAuthor.jsp");
  RowSetBrowser.setSortTitle("Id","Id","ID");
  RowSetBrowser.setSortTitle("FirstName","First_Name","First Name");
  RowSetBrowser.setSortTitle("LastName","Last_Name","Last Name");
  RowSetBrowser.FilterBy();
	RowSetBrowser.setReleaseApplicationResources(true);
	RowSetBrowser.render();
%>
</jsp:useBean>
</body>
</html>
--------
RAuthor_full.jsp
<%@ page language = "java" errorPage="errorpage.jsp" import = "java.util.*,
oracle.jbo.*, javax.naming.*, oracle.jdeveloper.html.*,
oracle.jbo.html.databeans.*" contentType="text/html;charset=ISO-8859-1"%>

<%
	// make sure the application is registered

oracle.jbo.html.jsp.JSPApplicationRegistry.registerApplicationFromPropertyFi
le(session , "eprise_admin_AdminModule");
%>

<html>
<head>
<META NAME="GENERATOR" CONTENT="Oracle JDeveloper">
<LINK REL=STYLESHEET TYPE="text/css" HREF="<%=session.getValue("CSSURL")%>">
</head>
<body>
<h3>Author Detail</h3>
<jsp:useBean id="RowSetBrowser" class="eprise.bco.ViewCurrentRecord"
scope="request">
<%
	RowSetBrowser.initialize(application, session , request, response, out,
"eprise_admin_AdminModule.RAuthorView");

RowSetBrowser.setHiddenFields("TAgentId,Id1,TDepartmentId,RAuthorEntityId,Id
2,TSpecialtyId,Id3,TTranscriptionMethodId,Id4,TMethodId,TDialectId");
  RowSetBrowser.setAttributeTitle("Description","Departmet");
  RowSetBrowser.setAttributeTitle("Description1","Specialty");
  RowSetBrowser.setAttributeTitle("Description2","Dialect");
  RowSetBrowser.setAttributeTitle("Description3","Transcription Method");
	RowSetBrowser.setReleaseApplicationResources(true);
	RowSetBrowser.render();
%>
</jsp:useBean>
</body>
</html>



Any Help ?



Eduardo.
-----Original Message-----
From: David M. Holmes [mailto:david_m_holmes@yahoo.com]
Sent: Tuesday, August 08, 2000 4:53 PM
To: tomcat-user@jakarta.apache.org; egodoy@tekchile.cl
Subject: Re: Error 500


Difficult to say without the source. Illegal state exeption can be caused by
calling
getOutputStream after some response has already been committed.

--- Eduardo Salvador Godoy Vega <egodoy@tekchile.cl> wrote:
> Hi ...
> I'm using JDev3.1 and in my dev. env. my jsp work fine ... but when I
deploy
> them to Tomcat3.1 I have this error ... (below)
>
> Any Idea ?
> I need help !
>
> Thanks!
> Eduardo.
> ---------------------ERROR CODE----------------------------
> Location: /eprise/jsp/RAuthor.jsp
> Internal Servlet Error:
>
> java.lang.IllegalStateException: Response has already been committed
> 	at
>
org.apache.tomcat.core.HttpServletResponseFacade.sendError(HttpServletRespon
> seFacade.java, Compiled Code)
> 	at org.apache.jasper.runtime.JspServlet.unknownException(JspServlet.java,
> Compiled Code)
> 	at org.apache.jasper.runtime.JspServlet.service(JspServlet.java, Compiled
> Code)
>


__________________________________________________
Do You Yahoo!?
Kick off your party with Yahoo! Invites.
http://invites.yahoo.com/


Mime
View raw message