Top "Stack-trace" questions

A report of the active stack frames at a certain point in time during the execution of a program.

(Unknown Source) in Exception stack trace

Background This question is related to Why does String.valueOf(null) throw a NullPointerException? Consider the following snippet: public class …

java exception stack-trace
How to read and understand the java stack trace?

For example, I got a stack trace like this: java.lang.NullPointerException abc.investxa.presentation.controllers.UnixServerJobController.handleRequest(UnixServerJobController.java:66) …

java debugging exception stack-trace
Oracle PL/SQL: how to get the stack trace, package name and procedure name

Sometimes the exception returns something like: "ORA-06502: PL/SQL: numeric or value error: character string buffer too small". It's not …

oracle exception-handling plsql stack-trace
Is there a way to dump a stack trace without throwing an exception in java?

I am thinking of creating a debug tool for my Java application. I am wondering if it is possible to …

java debugging exception logging stack-trace
How to get a stack trace for C++ using gcc with line number information?

We use stack traces in proprietary assert like macro to catch developer mistakes - when error is caught, stack trace …

c++ linux gcc stack-trace
Java logger that automatically determines caller's class name

public static Logger getLogger() { final Throwable t = new Throwable(); final StackTraceElement methodCaller = t.getStackTrace()[1]; final Logger logger = Logger.getLogger(methodCaller.…

java logging stack-trace
Getting stacktrace in logger

I am using log4j to log my exceptions. I want to log whatever I get in e.printStackTrace(); My …

java log4j stack-trace
How do I log a stacktrace using java's Logger class

I am using Java's Logger class. I want to pass ex.printStackTrace() into Logger.log(loglevel, String), but printStackTrace() returns …

java logging stack-trace java.util.logging
How to get result of console.trace() as string in javascript with chrome or firefox?

console.trace() outputs its result on console. I want to get the results as string and save them to a …

javascript firefox google-chrome console stack-trace
How to display stack trace on a caught exception?

I have a generic function that prints exceptions (using log4j): private void _showErrorMessage(Exception e) { log.error(e.getClass() + ": " + …

java tomcat stack-trace