You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Mohit Anchlia <mo...@gmail.com> on 2010/01/12 03:10:29 UTC
Exception in localhost file
tomcat 6:
I am seeing following exception in localhost file with no stack trace.
There is no clue as to why this might be happening. How do I get the
full stack trace to narrow down the problem? We also have our
application log where our application specific exceptions get logged
with full stack trace but this is not being logged there.
Jan 11, 2010 4:12:57 PM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet SwchServlet threw exception
java.lang.ArrayIndexOutOfBoundsException
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
RE: Exception in localhost file
Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Mohit Anchlia [mailto:mohitanchlia@gmail.com]
> Subject: Re: Exception in localhost file
>
> There seems to be no code.
Obviously a false statement. You need to find the code for SwchServlet (it's not part of Tomcat) and determine why it is throwing (and possibly swallowing) the exception.
> I do have application specific log4j.xml but that's only for
> application logs that is working fine.
No, your log4j will be handling this logging as well, so it's not "working fine".
- Chuck
THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Exception in localhost file
Posted by Mohit Anchlia <mo...@gmail.com>.
Yes. I understand that. I was trying to understand why full stack
trace is not being logged in localhost
On Tue, Jan 12, 2010 at 8:11 AM, Joseph Morgan
<jo...@ignitesales.com> wrote:
> This isn't a Tomcat issue at all, just code in SwchServlet behaving badly or getting unexpected data.
>
> -----Original Message-----
> From: Mohit Anchlia [mailto:mohitanchlia@gmail.com]
> Sent: Tuesday, January 12, 2010 9:58 AM
> To: Tomcat Users List
> Subject: Re: Exception in localhost file
>
> There seems to be no code. This is logging properties. I am not sure
> why the exception is not getting logged. I do have application
> specific log4j.xml but that's only for application logs that is
> working fine.
>
> #org.apache.catalina.core.ContainerBase.[Catalina].[localhost].level = INFO
> org.apache.catalina.core.ContainerBase.[Catalina].[localhost].level = INFO
> org.apache.catalina.core.ContainerBase.[Catalina].[localhost].handlers
> = 2localhost.org.apache.juli.FileHandler
>
> org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/manager].level
> = INFO
> org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/manager].handlers
> = 3manager.org.apache.juli.FileHandler
>
> org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/admin].level
> = INFO
> org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/admin].handlers
> = 4admin.org.apache.juli.FileHandler
>
> org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/host-manager].level
> = INFO
> org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/host-manager].handlers
> = 5host-manager.org.apache.juli.FileHandler
>
> On Tue, Jan 12, 2010 at 5:29 AM, Joseph Morgan
> <jo...@ignitesales.com> wrote:
>>>> Jan 11, 2010 4:12:57 PM org.apache.catalina.core.StandardWrapperValve
>> invoke
>>>> SEVERE: Servlet.service() for servlet SwchServlet threw exception
>>>> java.lang.ArrayIndexOutOfBoundsException
>>
>>>> There is no clue as to why this might be happening.
>>
>> False, that IS the clue. SwchServlet code is using an index into an
>> array (or something ultimately treated as an array) and simply stepping
>> outside the bounds.
>>
>> Is the code using a logger? Check how that is used/configured, as that
>> might be why you're not seeing a full stack trace. Someone may have
>> written code to trap an exception and then issue their own message.
>>
>> -----Original Message-----
>> From: Mohit Anchlia [mailto:mohitanchlia@gmail.com]
>> Sent: Monday, January 11, 2010 8:10 PM
>> To: Tomcat Users List
>> Subject: Exception in localhost file
>>
>> tomcat 6:
>>
>> I am seeing following exception in localhost file with no stack trace.
>> There is no clue as to why this might be happening. How do I get the
>> full stack trace to narrow down the problem? We also have our
>> application log where our application specific exceptions get logged
>> with full stack trace but this is not being logged there.
>>
>> Jan 11, 2010 4:12:57 PM org.apache.catalina.core.StandardWrapperValve
>> invoke
>> SEVERE: Servlet.service() for servlet SwchServlet threw exception
>> java.lang.ArrayIndexOutOfBoundsException
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
RE: Exception in localhost file
Posted by Joseph Morgan <jo...@ignitesales.com>.
This isn't a Tomcat issue at all, just code in SwchServlet behaving badly or getting unexpected data.
-----Original Message-----
From: Mohit Anchlia [mailto:mohitanchlia@gmail.com]
Sent: Tuesday, January 12, 2010 9:58 AM
To: Tomcat Users List
Subject: Re: Exception in localhost file
There seems to be no code. This is logging properties. I am not sure
why the exception is not getting logged. I do have application
specific log4j.xml but that's only for application logs that is
working fine.
#org.apache.catalina.core.ContainerBase.[Catalina].[localhost].level = INFO
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].level = INFO
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].handlers
= 2localhost.org.apache.juli.FileHandler
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/manager].level
= INFO
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/manager].handlers
= 3manager.org.apache.juli.FileHandler
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/admin].level
= INFO
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/admin].handlers
= 4admin.org.apache.juli.FileHandler
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/host-manager].level
= INFO
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/host-manager].handlers
= 5host-manager.org.apache.juli.FileHandler
On Tue, Jan 12, 2010 at 5:29 AM, Joseph Morgan
<jo...@ignitesales.com> wrote:
>>> Jan 11, 2010 4:12:57 PM org.apache.catalina.core.StandardWrapperValve
> invoke
>>> SEVERE: Servlet.service() for servlet SwchServlet threw exception
>>> java.lang.ArrayIndexOutOfBoundsException
>
>>> There is no clue as to why this might be happening.
>
> False, that IS the clue. SwchServlet code is using an index into an
> array (or something ultimately treated as an array) and simply stepping
> outside the bounds.
>
> Is the code using a logger? Check how that is used/configured, as that
> might be why you're not seeing a full stack trace. Someone may have
> written code to trap an exception and then issue their own message.
>
> -----Original Message-----
> From: Mohit Anchlia [mailto:mohitanchlia@gmail.com]
> Sent: Monday, January 11, 2010 8:10 PM
> To: Tomcat Users List
> Subject: Exception in localhost file
>
> tomcat 6:
>
> I am seeing following exception in localhost file with no stack trace.
> There is no clue as to why this might be happening. How do I get the
> full stack trace to narrow down the problem? We also have our
> application log where our application specific exceptions get logged
> with full stack trace but this is not being logged there.
>
> Jan 11, 2010 4:12:57 PM org.apache.catalina.core.StandardWrapperValve
> invoke
> SEVERE: Servlet.service() for servlet SwchServlet threw exception
> java.lang.ArrayIndexOutOfBoundsException
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Exception in localhost file
Posted by Mohit Anchlia <mo...@gmail.com>.
There seems to be no code. This is logging properties. I am not sure
why the exception is not getting logged. I do have application
specific log4j.xml but that's only for application logs that is
working fine.
#org.apache.catalina.core.ContainerBase.[Catalina].[localhost].level = INFO
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].level = INFO
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].handlers
= 2localhost.org.apache.juli.FileHandler
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/manager].level
= INFO
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/manager].handlers
= 3manager.org.apache.juli.FileHandler
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/admin].level
= INFO
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/admin].handlers
= 4admin.org.apache.juli.FileHandler
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/host-manager].level
= INFO
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/host-manager].handlers
= 5host-manager.org.apache.juli.FileHandler
On Tue, Jan 12, 2010 at 5:29 AM, Joseph Morgan
<jo...@ignitesales.com> wrote:
>>> Jan 11, 2010 4:12:57 PM org.apache.catalina.core.StandardWrapperValve
> invoke
>>> SEVERE: Servlet.service() for servlet SwchServlet threw exception
>>> java.lang.ArrayIndexOutOfBoundsException
>
>>> There is no clue as to why this might be happening.
>
> False, that IS the clue. SwchServlet code is using an index into an
> array (or something ultimately treated as an array) and simply stepping
> outside the bounds.
>
> Is the code using a logger? Check how that is used/configured, as that
> might be why you're not seeing a full stack trace. Someone may have
> written code to trap an exception and then issue their own message.
>
> -----Original Message-----
> From: Mohit Anchlia [mailto:mohitanchlia@gmail.com]
> Sent: Monday, January 11, 2010 8:10 PM
> To: Tomcat Users List
> Subject: Exception in localhost file
>
> tomcat 6:
>
> I am seeing following exception in localhost file with no stack trace.
> There is no clue as to why this might be happening. How do I get the
> full stack trace to narrow down the problem? We also have our
> application log where our application specific exceptions get logged
> with full stack trace but this is not being logged there.
>
> Jan 11, 2010 4:12:57 PM org.apache.catalina.core.StandardWrapperValve
> invoke
> SEVERE: Servlet.service() for servlet SwchServlet threw exception
> java.lang.ArrayIndexOutOfBoundsException
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
RE: Exception in localhost file
Posted by Joseph Morgan <jo...@ignitesales.com>.
>> Jan 11, 2010 4:12:57 PM org.apache.catalina.core.StandardWrapperValve
invoke
>> SEVERE: Servlet.service() for servlet SwchServlet threw exception
>> java.lang.ArrayIndexOutOfBoundsException
>> There is no clue as to why this might be happening.
False, that IS the clue. SwchServlet code is using an index into an
array (or something ultimately treated as an array) and simply stepping
outside the bounds.
Is the code using a logger? Check how that is used/configured, as that
might be why you're not seeing a full stack trace. Someone may have
written code to trap an exception and then issue their own message.
-----Original Message-----
From: Mohit Anchlia [mailto:mohitanchlia@gmail.com]
Sent: Monday, January 11, 2010 8:10 PM
To: Tomcat Users List
Subject: Exception in localhost file
tomcat 6:
I am seeing following exception in localhost file with no stack trace.
There is no clue as to why this might be happening. How do I get the
full stack trace to narrow down the problem? We also have our
application log where our application specific exceptions get logged
with full stack trace but this is not being logged there.
Jan 11, 2010 4:12:57 PM org.apache.catalina.core.StandardWrapperValve
invoke
SEVERE: Servlet.service() for servlet SwchServlet threw exception
java.lang.ArrayIndexOutOfBoundsException
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Exception in localhost file
Posted by Mohit Anchlia <mo...@gmail.com>.
Using CATALINA_BASE: /usr/local/tomcat
Using CATALINA_HOME: /usr/local/tomcat
Using CATALINA_TMPDIR: /usr/local/tomcat/temp
Using JRE_HOME: /usr/local/java
Server version: Apache Tomcat/6.0.18
Server built: Jul 22 2008 02:00:36
Server number: 6.0.18.0
OS Name: Linux
OS Version: 2.6.9-42.0.10.ELhugemem
Architecture: i386
JVM Version: 1.5.0_08-b03
JVM Vendor: Sun Microsystems Inc.
On Wed, Jan 13, 2010 at 3:54 PM, Konstantin Kolinko
<kn...@gmail.com> wrote:
> I have asked already:
> what is your Tomcat version and your Java version?
>
> If you do not know, please run "catalina.sh version"
>
> org.apache.juli.FileHandler uses java.util.logging.SimpleFormatter by default,
> and you should look in your JDK sources to see how that class is implemented.
>
> As of 6u16 it calls printStackTrace(pw) on the exception.
>
>
>
> 2010/1/14 Mohit Anchlia <mo...@gmail.com>:
>> I am looking at file in "vi" and don't see stack trace
>> On Wed, Jan 13, 2010 at 11:02 AM, Christopher Schultz
>> <ch...@christopherschultz.net> wrote:
>>> -----BEGIN PGP SIGNED MESSAGE-----
>>> Hash: SHA1
>>>
>>> Mohit,
>>>
>>> On 1/11/2010 9:10 PM, Mohit Anchlia wrote:
>>>> I am seeing following exception in localhost file with no stack trace.
>>>
>>> [snip]
>>>
>>>> Jan 11, 2010 4:12:57 PM org.apache.catalina.core.StandardWrapperValve invoke
>>>> SEVERE: Servlet.service() for servlet SwchServlet threw exception
>>>> java.lang.ArrayIndexOutOfBoundsException
>>>
>>> As others have pointed out, /your/ servlet has a problem.
>>>
>>> It looks like StandardWrapperValve is catching the exception and logging
>>> it (see StandardWrapperValve.java:153 in Tomcat 6.0.20). The call to the
>>> logger includes the exception object, so a stack trace should be emitted
>>> to the log using a SEVERE level (which you can see above).
>>>
>>> There is no configuration that I know of that can optionally omit stack
>>> traces from the logs.
>>>
>>> Are you looking at the whole file, or are you just grepping for
>>> "Exception" and not seeing the exception's stack trace?
>>>
>>> - -chris
>>> -----BEGIN PGP SIGNATURE-----
>>> -----END PGP SIGNATURE-----
>>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Exception in localhost file
Posted by Konstantin Kolinko <kn...@gmail.com>.
I have asked already:
what is your Tomcat version and your Java version?
If you do not know, please run "catalina.sh version"
org.apache.juli.FileHandler uses java.util.logging.SimpleFormatter by default,
and you should look in your JDK sources to see how that class is implemented.
As of 6u16 it calls printStackTrace(pw) on the exception.
2010/1/14 Mohit Anchlia <mo...@gmail.com>:
> I am looking at file in "vi" and don't see stack trace
> On Wed, Jan 13, 2010 at 11:02 AM, Christopher Schultz
> <ch...@christopherschultz.net> wrote:
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> Mohit,
>>
>> On 1/11/2010 9:10 PM, Mohit Anchlia wrote:
>>> I am seeing following exception in localhost file with no stack trace.
>>
>> [snip]
>>
>>> Jan 11, 2010 4:12:57 PM org.apache.catalina.core.StandardWrapperValve invoke
>>> SEVERE: Servlet.service() for servlet SwchServlet threw exception
>>> java.lang.ArrayIndexOutOfBoundsException
>>
>> As others have pointed out, /your/ servlet has a problem.
>>
>> It looks like StandardWrapperValve is catching the exception and logging
>> it (see StandardWrapperValve.java:153 in Tomcat 6.0.20). The call to the
>> logger includes the exception object, so a stack trace should be emitted
>> to the log using a SEVERE level (which you can see above).
>>
>> There is no configuration that I know of that can optionally omit stack
>> traces from the logs.
>>
>> Are you looking at the whole file, or are you just grepping for
>> "Exception" and not seeing the exception's stack trace?
>>
>> - -chris
>> -----BEGIN PGP SIGNATURE-----
>> -----END PGP SIGNATURE-----
>>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Exception in localhost file
Posted by Mohit Anchlia <mo...@gmail.com>.
I am looking at file in "vi" and don't see stack trace
On Wed, Jan 13, 2010 at 11:02 AM, Christopher Schultz
<ch...@christopherschultz.net> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Mohit,
>
> On 1/11/2010 9:10 PM, Mohit Anchlia wrote:
>> I am seeing following exception in localhost file with no stack trace.
>
> [snip]
>
>> Jan 11, 2010 4:12:57 PM org.apache.catalina.core.StandardWrapperValve invoke
>> SEVERE: Servlet.service() for servlet SwchServlet threw exception
>> java.lang.ArrayIndexOutOfBoundsException
>
> As others have pointed out, /your/ servlet has a problem.
>
> It looks like StandardWrapperValve is catching the exception and logging
> it (see StandardWrapperValve.java:153 in Tomcat 6.0.20). The call to the
> logger includes the exception object, so a stack trace should be emitted
> to the log using a SEVERE level (which you can see above).
>
> There is no configuration that I know of that can optionally omit stack
> traces from the logs.
>
> Are you looking at the whole file, or are you just grepping for
> "Exception" and not seeing the exception's stack trace?
>
> - -chris
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.10 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iEYEARECAAYFAktOGMUACgkQ9CaO5/Lv0PDtpgCgkIAwz0xX7kGo5quDsD4/kDFi
> ApoAn2J1j4GZhEZEtgQ1nj82MUO/MG8D
> =Rp86
> -----END PGP SIGNATURE-----
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Exception in localhost file
Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Mohit,
On 1/11/2010 9:10 PM, Mohit Anchlia wrote:
> I am seeing following exception in localhost file with no stack trace.
[snip]
> Jan 11, 2010 4:12:57 PM org.apache.catalina.core.StandardWrapperValve invoke
> SEVERE: Servlet.service() for servlet SwchServlet threw exception
> java.lang.ArrayIndexOutOfBoundsException
As others have pointed out, /your/ servlet has a problem.
It looks like StandardWrapperValve is catching the exception and logging
it (see StandardWrapperValve.java:153 in Tomcat 6.0.20). The call to the
logger includes the exception object, so a stack trace should be emitted
to the log using a SEVERE level (which you can see above).
There is no configuration that I know of that can optionally omit stack
traces from the logs.
Are you looking at the whole file, or are you just grepping for
"Exception" and not seeing the exception's stack trace?
- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAktOGMUACgkQ9CaO5/Lv0PDtpgCgkIAwz0xX7kGo5quDsD4/kDFi
ApoAn2J1j4GZhEZEtgQ1nj82MUO/MG8D
=Rp86
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Exception in localhost file
Posted by Konstantin Kolinko <kn...@gmail.com>.
2010/1/12 Mohit Anchlia <mo...@gmail.com>:
> tomcat 6:
>
> I am seeing following exception in localhost file with no stack trace.
> There is no clue as to why this might be happening. How do I get the
> full stack trace to narrow down the problem? We also have our
> application log where our application specific exceptions get logged
> with full stack trace but this is not being logged there.
>
> Jan 11, 2010 4:12:57 PM org.apache.catalina.core.StandardWrapperValve invoke
> SEVERE: Servlet.service() for servlet SwchServlet threw exception
> java.lang.ArrayIndexOutOfBoundsException
>
What is your exact version of Tomcat, and what is your version of Java?
Is your conf\logging.properties file different from the default one?
Best regards,
Konstantin Kolinko
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org