RE: Limit catalina.out size

2005-03-29 Thread Michael Cornell
I would imagine that tomcat is logging using commons-logging, and that by
default it is outputting to Catalina.out

A suggested solution would be to include for example log4j.jar with a
log4j.properties in the classpath which should control how this log is
produced (consoleAppender output seems to go to Catalina.out)

Saying that, I too have problems not writing to Catalina.out in redhat linux
es3 with tomcat 5.0.25.  Maybe there is a general solution that someone who
has more intricate knowledge of how tomcat logs has??


/michael

-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED] 
Sent: 29 March 2005 16:11
To: Tomcat Users List
Subject: Re: Limit catalina.out size

There shouldn't be anything going to standard output (Unless your code is 
writing to System.out)

An overly simple way to rotate logs in unix ...
cd $tomcat_log_dir
cp -f catalina.out catalina.out.`date +%Y.%m.%d`
cat /dev/null  catalina.out

-Tim

Jimmy Ray wrote:
 Running on HPUX...SDK 1.4.2...the standard output is
 going to catlaina.out.  Is it possible to change the
 logger settings reduce the size of the catalina.out
 file and perform circular logging?  If so where are
 these settings?
 
 Regards,
 
 Jimmy Ray

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



tomcat 5 as service in redhat

2005-03-23 Thread Michael Cornell
Hi,

Just looking to deploy a customized tomcat 5.0.25 in a Redhat ES 3
environment.  According to the documentation
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/setup.html
The best course of action is to run it as a daemon using jsvc.  However, I
have seen possible other options such as simply editing
/etc/rc.d/init.d/httpd and adding in little commands in start() and stop().

Could you tell me what the ad/disadvantages of doing it either way are?


/michael


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Tomcat and JRockit

2005-03-03 Thread Michael Cornell
Hi,

Just wondering if there is some documentation w regards to what/which
virtual machines tomcat (5.0.x) has been tested on (ie does it work with BEA
Jrockit and if so what version) ?

Failing this, does anyone know if tomcat 5.0.25 does work (or there are
issues) with Jrockit SDK 1.4.2 (which appears to be the same as 7.0) as
featured here http://dev2dev.bea.com/products/wljrockit70/index.jsp


Thanks
Michael

--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.6.0 - Release Date: 02/03/2005


outOfMemory exception under high load

2005-02-07 Thread Michael Cornell
Hi,

Hi,

I am experiencing a problem many others seem to have had before, but
have found no answers.  I am running Tomcat 5.0.25 using jdk 1.4.2_06
hotspot vm on RedHat Linux ES with 4G Ram and twin Intel procs.

When load-testing, under high stress I receive the error below and the
thread dies.

04-Feb-2005 13:39:24 org.apache.coyote.tomcat5.CoyoteAdapter service
SEVERE: An exception or error occurred in the container during the
request processing
java.lang.OutOfMemoryError
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.init(ZipFile.java:112)
at java.util.jar.JarFile.init(JarFile.java:127)
..

I have adjusted the vm parameters to the below ( the perm space does not
get full and the Xint to not use the optimised settings..
-server -Xms1G -Xmx1G -Xmn384m -XX:SurvivorRatio=7 -XX:PermSize=64m
-XX:MaxPermSize=128m -Xint

In addition I have added the  reloading=false and development=false in
conf/web.xml.  as per instruction from this thread:
http://www.junlu.com/msg/78566.html

My connector is configured thus:
   Connector
   port=80
   maxThreads=1000
   minSpareThreads=1000
   maxSpareThreads=1000
   enableLookups=false
   redirectPort=8443
   acceptCount=3000
   debug=0
   connectionTimeout=2
   disableUploadTimeout=true /


However all of this is to no avail, and under high stress (80+
concurrent requests, tomcat dies and terminates the thread dumping a
hs_pid12345.log with  the above message

Is this a known hotspot 1.4.x problem (some threads have hinted at
this), or does someone have a solution for this??

Thanks,

M

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: outOfMemory exception under high load

2005-02-07 Thread Michael Cornell
Not exactly sure but by running vmstat, it look like I am nearing the 2G
limit .. maybe about 1.8G consumed..

/m

reynir wrote:

 how much memory is your process using when it crashes ?
 -r


 Michael Cornell wrote:

 Hi,

 Hi,

 I am experiencing a problem many others seem to have had before, but
 have found no answers.  I am running Tomcat 5.0.25 using jdk 1.4.2_06
 hotspot vm on RedHat Linux ES with 4G Ram and twin Intel procs.

 When load-testing, under high stress I receive the error below and the
 thread dies.

 04-Feb-2005 13:39:24 org.apache.coyote.tomcat5.CoyoteAdapter service
 SEVERE: An exception or error occurred in the container during the
 request processing
 java.lang.OutOfMemoryError
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.init(ZipFile.java:112)
at java.util.jar.JarFile.init(JarFile.java:127)
 ..

 I have adjusted the vm parameters to the below ( the perm space does not
 get full and the Xint to not use the optimised settings..
 -server -Xms1G -Xmx1G -Xmn384m -XX:SurvivorRatio=7 -XX:PermSize=64m
 -XX:MaxPermSize=128m -Xint

 In addition I have added the  reloading=false and development=false in
 conf/web.xml.  as per instruction from this thread:
 http://www.junlu.com/msg/78566.html

 My connector is configured thus:
   Connector
   port=80
   maxThreads=1000
   minSpareThreads=1000
   maxSpareThreads=1000
   enableLookups=false
   redirectPort=8443
   acceptCount=3000
   debug=0
   connectionTimeout=2
   disableUploadTimeout=true /


 However all of this is to no avail, and under high stress (80+
 concurrent requests, tomcat dies and terminates the thread dumping a
 hs_pid12345.log with  the above message

 Is this a known hotspot 1.4.x problem (some threads have hinted at
 this), or does someone have a solution for this??

 Thanks,

 M

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

  



 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: outOfMemory exception under high load

2005-02-07 Thread Michael Cornell

Sorry, that was a copy and paste typo :(  Its set at 2G (4G for the
whole machine)
/m

reynir wrote:

 well, your -Xmx1G set's the limit for memory usage at 1 gig.  ?
 -server -Xms1G -Xmx1G -Xmn384m -XX:SurvivorRatio=7 -XX:PermSize=64m
 -XX:MaxPermSize=128m -Xint

 you might want to set that a little higher.


 Michael Cornell wrote:

 Not exactly sure but by running vmstat, it look like I am nearing the 2G
 limit .. maybe about 1.8G consumed..

 /m

 reynir wrote:

  

 how much memory is your process using when it crashes ?
 -r


 Michael Cornell wrote:

   

 Hi,

 Hi,

 I am experiencing a problem many others seem to have had before, but
 have found no answers.  I am running Tomcat 5.0.25 using jdk 1.4.2_06
 hotspot vm on RedHat Linux ES with 4G Ram and twin Intel procs.

 When load-testing, under high stress I receive the error below and the
 thread dies.

 04-Feb-2005 13:39:24 org.apache.coyote.tomcat5.CoyoteAdapter service
 SEVERE: An exception or error occurred in the container during the
 request processing
 java.lang.OutOfMemoryError
   at java.util.zip.ZipFile.open(Native Method)
   at java.util.zip.ZipFile.init(ZipFile.java:112)
   at java.util.jar.JarFile.init(JarFile.java:127)
 ..

 I have adjusted the vm parameters to the below ( the perm space
 does not
 get full and the Xint to not use the optimised settings..
 -server -Xms1G -Xmx1G -Xmn384m -XX:SurvivorRatio=7 -XX:PermSize=64m
 -XX:MaxPermSize=128m -Xint

 In addition I have added the  reloading=false and
 development=false in
 conf/web.xml.  as per instruction from this thread:
 http://www.junlu.com/msg/78566.html

 My connector is configured thus:
  Connector
  port=80
  maxThreads=1000
  minSpareThreads=1000
  maxSpareThreads=1000
  enableLookups=false
  redirectPort=8443
  acceptCount=3000
  debug=0
  connectionTimeout=2
  disableUploadTimeout=true /


 However all of this is to no avail, and under high stress (80+
 concurrent requests, tomcat dies and terminates the thread dumping a
 hs_pid12345.log with  the above message

 Is this a known hotspot 1.4.x problem (some threads have hinted at
 this), or does someone have a solution for this??

 Thanks,

 M

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



 

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



   


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

  



 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: outOfMemory exception under high load

2005-02-07 Thread Michael Cornell
Hi,

RE Matt:
//
I am already running visualgc (jvmstat) on it... the behavior is just
that the heap fills up (no gc) and then at about 80% full it just bombs
out.  Perm Gen is only 20% full and none of the others are used..

RE reynir:
Why are you setting these paremeters :
-Xmn384m -XX:SurvivorRatio=7 -XX:PermSize=64m
-XX:MaxPermSize=128m -Xint

I usually only set the -Xmx and -server
//
The Permsize params have been put in in case that was the problem
(running out of perm space) and the -Xint as this makes it run without
any optimisations (I believe) ie all interpreted.
Xmn  is the New Generation= (eden) + (from + to) and survivor ratio is
just that.. the ratio of eden - survivors
I can see no reason why these should mess anything up sufficiently to
produce this error.




Dale, Matt wrote:

It could be your permanent generation that is running out of space. Get a hold 
of jvmstat to determine if this is the case.

Ta
Matt

-Original Message-
From: Michael Cornell [mailto:[EMAIL PROTECTED]
Sent: 07 February 2005 11:31
To: Tomcat Users List
Subject: Re: outOfMemory exception under high load



Sorry, that was a copy and paste typo :(  Its set at 2G (4G for the
whole machine)
/m

reynir wrote:

  

well, your -Xmx1G set's the limit for memory usage at 1 gig.  ?
-server -Xms1G -Xmx1G -Xmn384m -XX:SurvivorRatio=7 -XX:PermSize=64m
-XX:MaxPermSize=128m -Xint

you might want to set that a little higher.


Michael Cornell wrote:



Not exactly sure but by running vmstat, it look like I am nearing the 2G
limit .. maybe about 1.8G consumed..

/m

reynir wrote:

 

  

how much memory is your process using when it crashes ?
-r


Michael Cornell wrote:

  



Hi,

Hi,

I am experiencing a problem many others seem to have had before, but
have found no answers.  I am running Tomcat 5.0.25 using jdk 1.4.2_06
hotspot vm on RedHat Linux ES with 4G Ram and twin Intel procs.

When load-testing, under high stress I receive the error below and the
thread dies.

04-Feb-2005 13:39:24 org.apache.coyote.tomcat5.CoyoteAdapter service
SEVERE: An exception or error occurred in the container during the
request processing
java.lang.OutOfMemoryError
  at java.util.zip.ZipFile.open(Native Method)
  at java.util.zip.ZipFile.init(ZipFile.java:112)
  at java.util.jar.JarFile.init(JarFile.java:127)
..

I have adjusted the vm parameters to the below ( the perm space
does not
get full and the Xint to not use the optimised settings..
-server -Xms1G -Xmx1G -Xmn384m -XX:SurvivorRatio=7 -XX:PermSize=64m
-XX:MaxPermSize=128m -Xint

In addition I have added the  reloading=false and
development=false in
conf/web.xml.  as per instruction from this thread:
http://www.junlu.com/msg/78566.html

My connector is configured thus:
 Connector
 port=80
 maxThreads=1000
 minSpareThreads=1000
 maxSpareThreads=1000
 enableLookups=false
 redirectPort=8443
 acceptCount=3000
 debug=0
 connectionTimeout=2
 disableUploadTimeout=true /


However all of this is to no avail, and under high stress (80+
concurrent requests, tomcat dies and terminates the thread dumping a
hs_pid12345.log with  the above message

Is this a known hotspot 1.4.x problem (some threads have hinted at
this), or does someone have a solution for this??

Thanks,

M

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




  

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



  


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

 

  

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

  



Any opinions expressed in this E-mail may be those of the individual and not 
necessarily the company. This E-mail and any files transmitted with it are 
confidential and solely for the use of the intended recipient. If you are not 
the intended recipient or the person responsible for delivering to the 
intended recipient, be advised that you have received this E-mail in error and 
that any use or copying is strictly prohibited. If you have received this 
E-mail in error please notify the beCogent postmaster at [EMAIL PROTECTED]
Unless expressly stated, opinions in this email are those of the individual 
sender and not beCogent Ltd. You must

constricting context access

2004-12-10 Thread Michael Cornell
Hi

I am running tomcat 5.0.25 and jdk1.4.2 on winxp

On it I have different 3 different connectors, on ports 80, 8443, and 443..
In addition I have 3 ‘contexts’ or web-apps

My question is this:  Can I force all traffic coming through port 80 to
web-app1, 8443 to web-app2 etc…???
I believe the answer may lie with using a customised valve, but have found
no examples of this.

Thanks

/Michael

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.809 / Virus Database: 551 - Release Date: 09/12/2004


Asynchronous statistics logger

2004-12-02 Thread Michael Cornell
Hi,

I am trying to implement an asynchronous statistics logger that would load
on startup and be destroyed on shutdown of tomcat.  This logger then needs
to write to a log file / to disk / to log4j every x seconds with these
statistics.

Methods to add some statistic to it need to be accessible by all other
classes in the same context (eg public static void addPageHit(String
whatPage, int howBigWasIt); )

I have already tried writing an asynchronous Singleton, but this has caused
major havoc with threading issues (jdk1.4.2 tomcat 5.0.25 redhat linux 9.0).
In addition I know this is not good practice.  This singleton was using the
Timer and TimerTask for its implementation.

What is the best practice for implementing this sort of class ?

Thanks
 Michael

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.788 / Virus Database: 533 - Release Date: 01/11/2004


urls not conforming to the standards problem

2004-10-01 Thread Michael Cornell
I am having a problem with the way Tomcat handles urls that do not conform
to the standards regarding get parameters..
As we all know this looks like
http://www.myhost.com/someapp/jsp/index.jsp?name=fredage=10

My problem is that an incoming request url comes in as:
http://www.myhost.com/someapp/jsp/;jsessionid=VVNCLCVNTYOUUCRGAWCCFFAKEYCYKI
V0?_requestid=549
The api however simply removes a part of this and the HttpServletRequest
Object only has _requestid=549 as its get parameter.

So the solution I need is one that will transparently convert  ;jsessionid
into some variable (eg xyz) as the request comes in and then convert this
BACK into ;jessionid on the way out (so the user cannot see any difference,
but I can see the jsessionid variable)

I know there are some solutions using Apache's mod_rewrite, but I would like
to use Tomcat and jk2 (I think this is right).

Does anyone have any suggestions as to how I might approach this problem?

/m

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.770 / Virus Database: 517 - Release Date: 27/09/2004



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: urls not conforming to the standards problem

2004-10-01 Thread Michael Cornell
Precisely,

However I need to get at these parameters inside a Filter in tomcat to
determine the action taken..  Whatever tomcat uses to parse this url (JK2
??) simply wipes this ;jsessionid=2345345 and I can't see it

So to reiterate,

Client --- JK??---tomcat
Incoming nastyurl - changed to nice params here --do stuff
Outgoing nastyurl - changed back to nasty params here -

Any ideas?

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: 01 October 2004 13:22
To: Tomcat Users List
Subject: RE: urls not conforming to the standards problem


Hi,
I think what he's saying is that he has request parameters AFTER path
parameters, and that Tomcat stops evaluating the URL after encountering
the special ; delimiter ;)

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Ben Souther [mailto:[EMAIL PROTECTED]
Sent: Friday, October 01, 2004 7:55 AM
To: Tomcat Users List
Subject: Re: urls not conforming to the standards problem

Those are path parameters.

Here's an excerpt from the Servlet Specs (SRV 4.1) regarding path
parameters:


Path parameters that are part of a GET request (as defined by HTTP 1.1)
are not exposed by these APIs. They must be parsed from the String
values returned by the getRequestURI method or the getPathInfo method.






On Fri, 2004-10-01 at 05:26, Michael Cornell wrote:
 I am having a problem with the way Tomcat handles urls that do not
conform
 to the standards regarding get parameters..
 As we all know this looks like
 http://www.myhost.com/someapp/jsp/index.jsp?name=fredage=10

 My problem is that an incoming request url comes in as:

http://www.myhost.com/someapp/jsp/;jsessionid=VVNCLCVNTYOUUCRGAWCCFFAKE
YCYK
I
 V0?_requestid=549
 The api however simply removes a part of this and the
HttpServletRequest
 Object only has _requestid=549 as its get parameter.

 So the solution I need is one that will transparently convert
;jsessionid
 into some variable (eg xyz) as the request comes in and then convert
this
 BACK into ;jessionid on the way out (so the user cannot see any
difference,
 but I can see the jsessionid variable)

 I know there are some solutions using Apache's mod_rewrite, but I
would
like
 to use Tomcat and jk2 (I think this is right).

 Does anyone have any suggestions as to how I might approach this
problem?

 /m

 ---
 Outgoing mail is certified Virus Free.
 Checked by AVG anti-virus system (http://www.grisoft.com).
 Version: 6.0.770 / Virus Database: 517 - Release Date: 27/09/2004



 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential, proprietary
and/or privileged.  This e-mail is intended only for the individual(s) to
whom it is addressed, and may not be saved, copied, printed, disclosed or
used by anyone else.  If you are not the(an) intended recipient, please
immediately delete this e-mail from your computer system and notify the
sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.770 / Virus Database: 517 - Release Date: 27/09/2004

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.770 / Virus Database: 517 - Release Date: 27/09/2004



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



context sharing problems

2004-09-30 Thread Michael Cornell

Hi,

I am trying to share the same class files (and libraries) between two
different web-apps one running in ROOT/ and one is admin/

Basically, I want the first one to run from the default context ie
http://www.x.com/
And the second web-app to run as http://www.x.com/admin

However, all of the classes for both web-apps are situated in the first one
(ROOT).

This may seem a strange way of doing things, but I need to reflect the
changes made in admin (basically a collection of  jsps etc) in ROOT (a
series of filters etc).  I have actually got this to work using a tomcat
plugin in eclipse because of the way eclipse shares libraries and classpaths

Does anyone know how I could do this for a standalone tomcat (running in
windows)???

Just to clarify:

Web-apps\
ROOT\
WEB-INF\
Classes\

My\package\name\MyFilter.class

My\package\name\StrutsAction.class

My\package\name\ApplicationResources.properties

My\package\name\MySingletonIIWantTochangeViaTheGuiRealTime.class
Admin\
WEB-INF\
Web\index.jsp







Thanks for your help
M



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.770 / Virus Database: 517 - Release Date: 27/09/2004


RE: context sharing problems

2004-09-30 Thread Michael Cornell
Well, I could do (and this actually works) but the problem then is that the
web-apps are actually started up separately (in separate memory spaces) and
the 'admin' one cannot access the singleton in the 'ROOT' one that has been
initialised with some values..

I need some sort of context settings that point the classpath  (vm ??) to
the same place

Any ideas??

-Original Message-
From: Dov Rosenberg [mailto:[EMAIL PROTECTED]
Sent: 30 September 2004 18:10
To: Tomcat Users List
Subject: Re: context sharing problems

Why don't you put your shared classes into $CATALINA_HOME/shared/classes.
Then all of your web apps can see and use them



--
Dov Rosenberg
Conviveon Corporation
http://www.conviveon.com

On 9/30/04 10:58 AM, Michael Cornell [EMAIL PROTECTED] wrote:


 Hi,

 I am trying to share the same class files (and libraries) between two
 different web-apps one running in ROOT/ and one is admin/

 Basically, I want the first one to run from the default context ie
 http://www.x.com/
 And the second web-app to run as http://www.x.com/admin

 However, all of the classes for both web-apps are situated in the first
one
 (ROOT).

 This may seem a strange way of doing things, but I need to reflect the
 changes made in admin (basically a collection of  jsps etc) in ROOT (a
 series of filters etc).  I have actually got this to work using a tomcat
 plugin in eclipse because of the way eclipse shares libraries and
classpaths

 Does anyone know how I could do this for a standalone tomcat (running in
 windows)???

 Just to clarify:

 Web-apps\
   ROOT\
   WEB-INF\
   Classes\

 My\package\name\MyFilter.class

 My\package\name\StrutsAction.class

 My\package\name\ApplicationResources.properties

 My\package\name\MySingletonIIWantTochangeViaTheGuiRealTime.class
   Admin\
   WEB-INF\
   Web\index.jsp







 Thanks for your help
 M



 ---
 Outgoing mail is certified Virus Free.
 Checked by AVG anti-virus system (http://www.grisoft.com).
 Version: 6.0.770 / Virus Database: 517 - Release Date: 27/09/2004



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.770 / Virus Database: 517 - Release Date: 27/09/2004

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.770 / Virus Database: 517 - Release Date: 27/09/2004



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Nullpointer exception using ssl in tomcat 5.0

2004-09-17 Thread Michael Cornell
Hi folks,

I am getting a Null Pointer exception that I am finding hard to pinpoint,
and wonder whether you may have some insight into the matter.  Note that the
exception is being handled, but as I am using Eclipse, the nullpointer is
being displayed.

Below is my server.xml, a snippet of debug statement and two consecutive NP
exceptions that are thrown.  I am using tomcat 5.0.

A possible source of this problem could be my .keystore having only having
carried out the first part of generating a keystore on
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/ssl-howto.html and not
Installing a Certificate from a Certificate Authority

Server.xml:
Server port=8005 shutdown=SHUTDOWN debug=0
Service name=Catalina
Connector
port=80 maxThreads=150 minSpareThreads=25 
maxSpareThreads=75
   enableLookups=false redirectPort=8443 acceptCount=100
   debug=0 connectionTimeout=2
   disableUploadTimeout=true /

!-- Define a SSL Coyote HTTP/1.1 Connector on port 8443 --
Connector port=443
   maxThreads=150 minSpareThreads=25 maxSpareThreads=75
   enableLookups=false disableUploadTimeout=true
   acceptCount=100 debug=0 scheme=https secure=true
   clientAuth=false sslProtocol=TLS keystoreFile=.keystore
   keystorePass=[EMAIL PROTECTED] /

!-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 --
Connector port=8009
   enableLookups=false redirectPort=8443 debug=0
   protocol=AJP/1.3 /


!-- Define the top level container in our container hierarchy --
Engine name=Catalina defaultHost=ROOT debug=0
Host name=ROOT debug=0 appBase=webapps
   unpackWARs=true autoDeploy=true
   xmlValidation=false xmlNamespaceAware=false
  /Host
/Engine
  /Service
/Server


Debug trace:

INFO  13:27:43,578 [182 ] org.apache.coyote.http11.Http11Protocol  -
Starting Coyote HTTP/1.1 on http-80
INFO  13:27:44,109 [182 ] org.apache.coyote.http11.Http11Protocol  -
Starting Coyote HTTP/1.1 on http-443


Caught nullpointer:
System Thread [Finalizer] (Suspended (exception NullPointerException))
SSLSocketImpl.a(OutputRecord) line: not available [local variables
unavailable]
SSLSocketImpl.a(byte, byte) line: not available
SSLSocketImpl.a(byte) line: not available
SSLSocketImpl.b(boolean) line: not available
SSLSocketImpl.close() line: not available
SSLSocketImpl(BaseSSLSocketImpl).finalize() line: not available
Finalizer.invokeFinalizeMethod(Object) line: not available [native method]
Finalizer.runFinalizer() line: not available
Finalizer.access$100(Finalizer) line: not available
Finalizer$FinalizerThread.run() line: not available

(next one)
System Thread [Finalizer] (Suspended (exception NullPointerException))
SSLSocketImpl.b(boolean) line: not available [local variables unavailable]
SSLSocketImpl.close() line: not available
SSLSocketImpl(BaseSSLSocketImpl).finalize() line: not available
Finalizer.invokeFinalizeMethod(Object) line: not available [native method]
Finalizer.runFinalizer() line: not available
Finalizer.access$100(Finalizer) line: not available
Finalizer$FinalizerThread.run() line: not available


Thanks

/Michael Cornell

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.754 / Virus Database: 504 - Release Date: 06/09/2004



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]