Re: needed your help very urgent

2017-04-24 Thread Mark Thomas
On 24/04/17 17:38, calder wrote:

> When reading a stack trace, always look for any "Caused by" entries -
> if more than one exists, then find the last "Caused by" entry and that
> should clue you as to the issue.

Indeed it does.

> I draw your attention to the line below I marked with asterisks
> ** - that log entry suggests your -Xss setting is set to low.

But that is the wrong conclusion. There is no -Xss problem here.

Mark


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: needed your help very urgent

2017-04-24 Thread calder
On Mon, Apr 24, 2017 at 9:22 AM, Naga Ramesh  wrote:
> Tomcat Team,
>
> Always we are getting the below mentioned errors, please check ASAP and
> guide me if anything missing from our end, this is very urgent, please
> respond asap.
>
> Tomcat Version: apache-tomcat-8.0.33
> Java Version: "1.8.0_77"
>
> Setenv.sh file setting:
> export JAVA_OPTS="$JAVA_OPTS -DR_E_T_A_P_P"
> export CATALINA_OPTS="$CATALINA_OPTS -Xms1024m"
> export CATALINA_OPTS="$CATALINA_OPTS -Xmx4196m"

> #export CATALINA_OPTS="$CATALINA_OPTS -Xss64m"


When reading a stack trace, always look for any "Caused by" entries -
if more than one exists, then find the last "Caused by" entry and that
should clue you as to the issue.

I draw your attention to the line below I marked with asterisks
** - that log entry suggests your -Xss setting is set to low.
Now, look up at the last CATALINA_OPTS line in your setenv.sh - that
last entry is commented out.

Remove the leading pound-sign (#) and set it to a value appropriate
for your application.  Because that line is commented out, the JVM is
using the default value - the default value is different for 32 and 64
bit JVMs.

[snipped]

> Caused by: java.lang.IllegalStateException:
>   Unable to complete the scan for annotations for web application [] due to a 
> StackOverflowError.
>   Possible root causes include a


>** too low setting for -Xss and illegal cyclic inheritance 
> dependencies.


>   The class hierarchy being processed was 
> [org.bouncycastle.asn1.ASN1EncodableVector-org.bouncycastle
>   .asn1.DEREncodableVector-org.bouncycastle.asn1.ASN1EncodableVector]
>at
> org.apache.catalina.startup.ContextConfig.checkHandlesTypes(ContextConfig.java:2097)

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: needed your help very urgent

2017-04-24 Thread Konstantin Kolinko
2017-04-24 12:44 GMT+03:00 Naga Ramesh :
> We need solution for this issue, please guide to us.
>
> -Original Message-
> From: Mark Thomas [mailto:ma...@apache.org]
> Sent: Monday, April 24, 2017 3:11 PM
> To: Tomcat Users List
> Subject: Re: needed your help very urgent
>
> On 24/04/2017 10:22, Naga Ramesh wrote:
>
> 
>
>> Caused by: java.lang.IllegalStateException: Unable to complete the
>> scan for annotations for web application [] due to a
>> StackOverflowError. Possible root causes include a too low setting for
>> -Xss and illegal cyclic inheritance dependencies. The class hierarchy
>> being processed was
>> [org.bouncycastle.asn1.ASN1EncodableVector->org.bouncycastle.asn1.DERE
>> ncodab
>> leVector->org.bouncycastle.asn1.ASN1EncodableVector]
>
> What isn't clear?
>
> Where that cyclic dependency came from is a whole different questions. I
> don't see any hint of it in the bouncy castle source.
>
> Mark
>

Naga.

Read the rules:
http://tomcat.apache.org/lists.html#tomcat-users
-> Important -> 6. Top-posting is bad.

-> "How To Ask Questions The Smart Way".
http://www.catb.org/~esr/faqs/smart-questions.html#bespecific


For your question:
1. Check what jar libraries are packed in your war and what are
installed with Tomcat.

Ensure that there are no duplicates.

2. Check whether annotation scanning is important for you application.
Either
a) disable it and configure all servlets, listeners etc. discovered
with scanning in you WEB-INF/web.xml file,
or
b) configure the scanner to exclude unrelated jars from scanning.

https://wiki.apache.org/tomcat/HowTo/FasterStartUp

3. Current version of Tomcat 8.0 is 8.0.43

http://tomcat.apache.org/security-8.html

Best regards,
Konstantin Kolinko

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: needed your help very urgent

2017-04-24 Thread Naga Ramesh
We need solution for this issue, please guide to us.

-Original Message-
From: Mark Thomas [mailto:ma...@apache.org] 
Sent: Monday, April 24, 2017 3:11 PM
To: Tomcat Users List
Subject: Re: needed your help very urgent

On 24/04/2017 10:22, Naga Ramesh wrote:



> Caused by: java.lang.IllegalStateException: Unable to complete the 
> scan for annotations for web application [] due to a 
> StackOverflowError. Possible root causes include a too low setting for 
> -Xss and illegal cyclic inheritance dependencies. The class hierarchy 
> being processed was 
> [org.bouncycastle.asn1.ASN1EncodableVector->org.bouncycastle.asn1.DERE
> ncodab
> leVector->org.bouncycastle.asn1.ASN1EncodableVector]

What isn't clear?

Where that cyclic dependency came from is a whole different questions. I
don't see any hint of it in the bouncy castle source.

Mark

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: needed your help very urgent

2017-04-24 Thread Mark Thomas
On 24/04/2017 10:22, Naga Ramesh wrote:



> Caused by: java.lang.IllegalStateException: Unable to complete the scan for
> annotations for web application [] due to a StackOverflowError. Possible
> root causes include a too low setting for -Xss and illegal cyclic
> inheritance dependencies. The class hierarchy being processed was
> [org.bouncycastle.asn1.ASN1EncodableVector->org.bouncycastle.asn1.DEREncodab
> leVector->org.bouncycastle.asn1.ASN1EncodableVector]

What isn't clear?

Where that cyclic dependency came from is a whole different questions. I
don't see any hint of it in the bouncy castle source.

Mark

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org