Sybase NNTP forums - End Of Life (EOL)

The NNTP forums from Sybase - forums.sybase.com - are now closed.

All new questions should be directed to the appropriate forum at the SAP Community Network (SCN).

Individual products have links to the respective forums on SCN, or you can go to SCN and search for your product in the search box (upper right corner) to find your specific developer center.

Error using Jaguar CTS 3.0 to host Java Servlet

4 posts in General Discussion (old) Last posting was on 2000-03-23 16:50:08.0Z
Scott Bluman Posted on 2000-02-18 19:12:10.0Z
Newsgroups: sybase.public.easerver
Date: Fri, 18 Feb 2000 14:12:10 -0500
From: Scott Bluman <sbluman@witsys.com>
X-Mailer: Mozilla 4.7 [en] (WinNT; U)
X-Accept-Language: en
MIME-Version: 1.0
Subject: Error using Jaguar CTS 3.0 to host Java Servlet
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 32
NNTP-Posting-Host: user97.witsys.com 208.237.239.106
Message-ID: <347_38AD998A.6EF64ADA@witsys.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:28365
Article PK: 160390

I am using Jaguar to host servlets however the Jaguar server
consistently crashes after I access the servlet a few times. I have
created a "Hello World" servlet and tried it on two different jaguar CTS
3.0 servers with the same results. I have also changed the servlet
properties to single threaded in the Jaguar Manager with no improvement.

The error I get in the Jaguar server window before it dies is as
follows:
"The instruction at 0x0060b3be referenced memory at 0x6b746574.
The memory could not be read."

Below is the source of the servlet which was compiled and deployed using
PowerJ 3.0 Enterprise:

import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;

public class ServletTest extends javax.servlet.http.HttpServlet
{
public synchronized void doGet(HttpServletRequest request,
HttpServletResponse response) throws ServletException, IOException
{
response.setContentType("text/html");
response.getWriter().println("<HTML><HEAD><TITLE>");
response.getWriter().println("ServletTest");
response.getWriter().println("</TITLE></HEAD><BODY>");
response.getWriter().println("<H3>Test Servlet
Request</H3><BR>");
response.getWriter().println("</BODY></HTML>");
}
}


Dave Wolf [Sybase] Posted on 2000-02-22 01:58:37.0Z
Newsgroups: sybase.public.easerver
From: "Dave Wolf [Sybase]" <dwolf@sybase.com>
Subject: Re: Error using Jaguar CTS 3.0 to host Java Servlet
Date: Mon, 21 Feb 2000 20:58:37 -0500
Lines: 63
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2314.1300
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
NNTP-Posting-Host: 158.159.8.19
Message-ID: <347_vapFZjNf$GA.65@forums.sybase.com>
References: <347_38AD998A.6EF64ADA@witsys.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:28254
Article PK: 160296

If you change the below to grab the PrintWriter subclass only once does it
then work? THis worked for me:

public class ServletTest extends javax.servlet.http.HttpServlet
{
public synchronized void doGet(HttpServletRequest request,
HttpServletResponse response) throws ServletException, IOException
{
response.setContentType("text/html");
PrintWriter out = response.getWriter()
out.println("<HTML><HEAD><TITLE>");
out.println("ServletTest");
out.println("</TITLE></HEAD><BODY>");
out.println("<H3>Test Servlet Request</H3><BR>");
out.println("</BODY></HTML>");
out.flush();
out.close()
}
}

If the above works and your doesnt pls open a case, although, My way would
be much faster and safer. Yours might actually leak.

Dave Wolf
Internet Applications Division

Scott Bluman <sbluman@witsys.com> wrote in message
news:38AD998A.6EF64ADA@witsys.com...
> I am using Jaguar to host servlets however the Jaguar server
> consistently crashes after I access the servlet a few times. I have
> created a "Hello World" servlet and tried it on two different jaguar CTS
> 3.0 servers with the same results. I have also changed the servlet
> properties to single threaded in the Jaguar Manager with no improvement.
>
> The error I get in the Jaguar server window before it dies is as
> follows:
> "The instruction at 0x0060b3be referenced memory at 0x6b746574.
> The memory could not be read."
>
> Below is the source of the servlet which was compiled and deployed using
> PowerJ 3.0 Enterprise:
>
> import java.io.*;
> import javax.servlet.*;
> import javax.servlet.http.*;
>
> public class ServletTest extends javax.servlet.http.HttpServlet
> {
> public synchronized void doGet(HttpServletRequest request,
> HttpServletResponse response) throws ServletException, IOException
> {
> response.setContentType("text/html");
> response.getWriter().println("<HTML><HEAD><TITLE>");
> response.getWriter().println("ServletTest");
> response.getWriter().println("</TITLE></HEAD><BODY>");
> response.getWriter().println("<H3>Test Servlet
> Request</H3><BR>");
> response.getWriter().println("</BODY></HTML>");
> }
> }


Daniel Montero Posted on 2000-02-23 16:38:38.0Z
Newsgroups: sybase.public.easerver
Date: Wed, 23 Feb 2000 10:38:38 -0600
From: Daniel Montero <danim@gruposoin.com.mx>
Organization: Grupo SOIN, S.A. de C.V.
X-Mailer: Mozilla 4.7 [en] (WinNT; U)
X-Accept-Language: en
MIME-Version: 1.0
Subject: Re: Error using Jaguar CTS 3.0 to host Java Servlet
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 73
NNTP-Posting-Host: na-28-221.na.avantel.net.mx 148.245.28.221
Message-ID: <347_38B40D0E.4C6DA438@gruposoin.com.mx>
References: <347_38AD998A.6EF64ADA@witsys.com> <347_vapFZjNf$GA.65@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:28060
Article PK: 159953

Dave,
is it ok to do the final out.close()?
I had some servlets that made Jaguar 3.0 crash because they were closing
this writer.
I thought it was incorrect to close the writer, but now I unsure if it
must be closed.

danim

"Dave Wolf [Sybase]" wrote:

> If you change the below to grab the PrintWriter subclass only once does it
> then work? THis worked for me:
>
> public class ServletTest extends javax.servlet.http.HttpServlet
> {
> public synchronized void doGet(HttpServletRequest request,
> HttpServletResponse response) throws ServletException, IOException
> {
> response.setContentType("text/html");
> PrintWriter out = response.getWriter()
> out.println("<HTML><HEAD><TITLE>");
> out.println("ServletTest");
> out.println("</TITLE></HEAD><BODY>");
> out.println("<H3>Test Servlet Request</H3><BR>");
> out.println("</BODY></HTML>");
> out.flush();
> out.close()
> }
> }
>
> If the above works and your doesnt pls open a case, although, My way would
> be much faster and safer. Yours might actually leak.
>
> Dave Wolf
> Internet Applications Division
>
> Scott Bluman <sbluman@witsys.com> wrote in message
> news:38AD998A.6EF64ADA@witsys.com...
> > I am using Jaguar to host servlets however the Jaguar server
> > consistently crashes after I access the servlet a few times. I have
> > created a "Hello World" servlet and tried it on two different jaguar CTS
> > 3.0 servers with the same results. I have also changed the servlet
> > properties to single threaded in the Jaguar Manager with no improvement.
> >
> > The error I get in the Jaguar server window before it dies is as
> > follows:
> > "The instruction at 0x0060b3be referenced memory at 0x6b746574.
> > The memory could not be read."
> >
> > Below is the source of the servlet which was compiled and deployed using
> > PowerJ 3.0 Enterprise:
> >
> > import java.io.*;
> > import javax.servlet.*;
> > import javax.servlet.http.*;
> >
> > public class ServletTest extends javax.servlet.http.HttpServlet
> > {
> > public synchronized void doGet(HttpServletRequest request,
> > HttpServletResponse response) throws ServletException, IOException
> > {
> > response.setContentType("text/html");
> > response.getWriter().println("<HTML><HEAD><TITLE>");
> > response.getWriter().println("ServletTest");
> > response.getWriter().println("</TITLE></HEAD><BODY>");
> > response.getWriter().println("<H3>Test Servlet
> > Request</H3><BR>");
> > response.getWriter().println("</BODY></HTML>");
> > }
> > }

--
------
Make a free donation of food
Haga una donacion sin costo de comida

http://www.thehungersite.com
------
Daniel Montero
danim@gruposoin.com.mx
http://www.gruposoin.com.mx/


Dave Wolf [Sybase] Posted on 2000-03-23 16:50:08.0Z
Newsgroups: sybase.public.easerver
From: "Dave Wolf [Sybase]" <dwolf@sybase.com>
Subject: Re: Error using Jaguar CTS 3.0 to host Java Servlet
Date: Thu, 23 Mar 2000 11:50:08 -0500
Lines: 100
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2919.6600
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600
NNTP-Posting-Host: dwolf-nt.sybase.com 157.133.41.127
Message-ID: <347_EVysN6hf$GA.274@forums.sybase.com>
References: <347_38AD998A.6EF64ADA@witsys.com> <347_vapFZjNf$GA.65@forums.sybase.com> <347_38B40D0E.4C6DA438@gruposoin.com.mx>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:28057
Article PK: 159950

Hmmm I always close() any streams when Im done with them. I dont see
anywhere in the contract of a Writer subclass that says I shouldnt do this.

Dave Wolf
Internet Applications Division

"Daniel Montero" <danim@gruposoin.com.mx> wrote in message
news:38B40D0E.4C6DA438@gruposoin.com.mx...
> Dave,
> is it ok to do the final out.close()?
> I had some servlets that made Jaguar 3.0 crash because they were
closing
> this writer.
> I thought it was incorrect to close the writer, but now I unsure if it
> must be closed.
>
> danim
>
> "Dave Wolf [Sybase]" wrote:
>
> > If you change the below to grab the PrintWriter subclass only once does
it
> > then work? THis worked for me:
> >
> > public class ServletTest extends javax.servlet.http.HttpServlet
> > {
> > public synchronized void doGet(HttpServletRequest request,
> > HttpServletResponse response) throws ServletException, IOException
> > {
> > response.setContentType("text/html");
> > PrintWriter out = response.getWriter()
> > out.println("<HTML><HEAD><TITLE>");
> > out.println("ServletTest");
> > out.println("</TITLE></HEAD><BODY>");
> > out.println("<H3>Test Servlet Request</H3><BR>");
> > out.println("</BODY></HTML>");
> > out.flush();
> > out.close()
> > }
> > }
> >
> > If the above works and your doesnt pls open a case, although, My way
would
> > be much faster and safer. Yours might actually leak.
> >
> > Dave Wolf
> > Internet Applications Division
> >
> > Scott Bluman <sbluman@witsys.com> wrote in message
> > news:38AD998A.6EF64ADA@witsys.com...
> > > I am using Jaguar to host servlets however the Jaguar server
> > > consistently crashes after I access the servlet a few times. I have
> > > created a "Hello World" servlet and tried it on two different jaguar
CTS
> > > 3.0 servers with the same results. I have also changed the servlet
> > > properties to single threaded in the Jaguar Manager with no
improvement.
> > >
> > > The error I get in the Jaguar server window before it dies is as
> > > follows:
> > > "The instruction at 0x0060b3be referenced memory at 0x6b746574.
> > > The memory could not be read."
> > >
> > > Below is the source of the servlet which was compiled and deployed
using
> > > PowerJ 3.0 Enterprise:
> > >
> > > import java.io.*;
> > > import javax.servlet.*;
> > > import javax.servlet.http.*;
> > >
> > > public class ServletTest extends javax.servlet.http.HttpServlet
> > > {
> > > public synchronized void doGet(HttpServletRequest request,
> > > HttpServletResponse response) throws ServletException, IOException
> > > {
> > > response.setContentType("text/html");
> > > response.getWriter().println("<HTML><HEAD><TITLE>");
> > > response.getWriter().println("ServletTest");
> > > response.getWriter().println("</TITLE></HEAD><BODY>");
> > > response.getWriter().println("<H3>Test Servlet
> > > Request</H3><BR>");
> > > response.getWriter().println("</BODY></HTML>");
> > > }
> > > }
>
> --
> ------
> Make a free donation of food
> Haga una donacion sin costo de comida
>
> http://www.thehungersite.com
> ------
> Daniel Montero
> danim@gruposoin.com.mx
> http://www.gruposoin.com.mx/
>
>