Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

problem [Ljava.lang.StackTraceElement;@26355060 when run tomcat 6

 
Angus Comber
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am running some servlet code in tomcat 6 via Eclipse.

In the log I see:

...
INFO: Server startup in 198 ms
problem [Ljava.lang.StackTraceElement;@26355060
Oct 13, 2012 6:54:47 PM org.apache.catalina.core.ApplicationContext log
...

Does @26355060 mean anything? Can I use that?

I can access the application via a jsp page and everything seems to work fine. But I am puzzled by the "problem [Ljava.lang.StackTraceElement;@26355060" error and wondering what to do about it???

I am running a 64 bit operating system and 64 bit Java but tomcat-6 is 32 bit. Would that cause this problem?

I ma looking at the Java api Class StackTraceElement docs but that doesn't seem to help.

 
Tim Holloway
Saloon Keeper
Pie
Posts: 18277
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"[Ljava.lang.StackTraceElement;@26355060 " is the signature and identify of an object. The object is an array of java.lang.StackTraceElement's and its internal JVM object ID is 26355060 (which is mostly useless for you other than to distinguish it for any other possible arrays of StackTraceElements you might encounter).

This looks like an app did a System.out.println in the attempt to display a stack trace for an exception instead of using the exception's own printStackTrace method. Unfortunately, since the app did a brute-force print instead of using a logger, it's going the be a "treasure hunt" to find which app it was and where in the app it was done.
 
Angus Comber
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tim Holloway wrote:"[Ljava.lang.StackTraceElement;@26355060 " is the signature and identify of an object. The object is an array of java.lang.StackTraceElement's and its internal JVM object ID is 26355060 (which is mostly useless for you other than to distinguish it for any other possible arrays of StackTraceElements you might encounter).

This looks like an app did a System.out.println in the attempt to display a stack trace for an exception instead of using the exception's own printStackTrace method. Unfortunately, since the app did a brute-force print instead of using a logger, it's going the be a "treasure hunt" to find which app it was and where in the app it was done.


Ah I wonder what idiot would have done that ;)

Thanks Tim, I will have a look at the code - looks quite likely the culprit.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic