stack-trace

Why can I not view my Google App Engine cron admin page?

When I go to http://localhost:8080/_ah/admin/cron, as stated in Google's docs, I get the following: Traceback (most recent call last): File "C:\Program Files\Google\google_appengine\google\appengine\ext\webapp\__init__.py", line 501, in __call__ handler.get(*groups) File "C:\Program Files\Google\google_appengine\google\appengine\ext\adm...

Getting source code information from groovy stack trace

When exception generated I want to show some additional information (source code) for particular exception. But grails have very hairy exceptions (it's all about groovy dynamic nature). It's my problem where to get and how to display source code. All I need is file/line information. So... Is there any possibility to get file and line wh...

How to determine main class at runtime in threaded java application?

I want to determine the class name where my application started, the one with the main() method, at runtime, but I'm in another thread and my stacktrace doesn't go all the way back to the original class. I've searched System properties and everything that ClassLoader has to offer and come up with nothing. Is this information just not a...

Why does my servlet stacktrace show "Unknown Source" for my classes?

I'm currently using Apache Tomcat 5.5.16 to serve a Lucene-based search API. Lately I've been having some NullPointerExceptions inside my servlet class. The class is called com.my_company.search.servlet.SearchServlet. With certain types of input I can routinely create a NullPointerException, but I'm having trouble figuring out where e...

Perl: $SIG{__DIE__}, eval { } and stack trace

I have a piece of Perl code somewhat like the following (strongly simplified): There are some levels of nested subroutine calls (actually, methods), and some of the inner ones do their own exception handling: sub outer { middle() } sub middle { eval { inner() }; if ( my $x = $@ ) { # caught exception if (ref $x eq 'ARRA...

Stack unwinding on HP-UX and Linux

I need to get the stack information of my C application in certain points. I've read the documentation and searched the Net but still cannot figure out how I can do it. Can you point to a simple process explanation? Or, even better, to an example of stack unwinding. I need it for HP-UX (Itanium) and Linux. Thanks ...

What would the jvm have to sacrifice in order to implement tail call optimisation?

People say that the clojure implementation is excellent apart from the limitation of having no tail call optimisation - a limitation of the jvm not the clojure implementation. http://lambda-the-ultimate.org/node/2547 It has been said that to implement TCO into Python would sacrifice stack-trace dumps, and debugging regularity. h...

How can I rethrow an Inner Exception while maintaining the stack trace generated so far?

Duplicate of: http://stackoverflow.com/questions/57383/in-c-how-can-i-rethrow-innerexception-without-losing-stack-trace I have some operations that I invoke asynchronously on a background thread. Sometimes, things go bad. When this happens, I tend to get a TargetInvocationException, which, while appropriate, is quite useless. What I ...

Recreate stack trace with line numbers from user bug-report in .net?

First, the problem: I have several free projects, and as any software they contains bugs. Some fellow users when encounter bug send me a bug-reports with stack traces. In order to simplify finding fault place, I want to see line numbers in this stack traces. If application shipped without .pdb files, then all line information is lost, so...

Print full call stack on printStackTrace()?

I need to write small a log analyzer application to process some log files generated by a 3rd party closed source library (having custom logger inside) used in my project. In case of an exception entry in the log I need to collect aggregated information about the methods involved along the stack trace from the top to the actual place o...

How to log an application's entire stacktrace in .net

I've just started work on an existing .net application with about 40 active projects. While familiarizing myself with the project, I find myself constantly stepping through the application just to learn the structure and logic flow. It would make this process so much easier if I could let the application run and log every method call and...

Get current stack trace in Java

Something like Environment.StackTrace in .Net. BTW, Thread.dumpStack() is not what I want - I want to get the stacktrace back, not print it out. ...

NullPointerException stack trace not available without debug agent

Hi all, I have recently found a bug that causes a NullPointerException. The exception is caught and logged using a standard slf4j statement. Abridged code below: for(Action action : actions.getActions()) { try { context = action.execute(context); } catch (Exception e) { logger.error("...", e); break; ...

Get __name__ of calling function's module in Python

Suppose myapp/foo.py contains: def info(msg): caller_name = ???? print '[%s] %s' % (caller_name, msg) And myapp/bar.py contains: import foo foo.info('Hello') # => [myapp.foo] Hello I want caller_name to be set to the __name__ attribute of the calling functions' module (which is 'myapp.foo') in this case. How can this be don...

Find module name of the originating exception in Python

Example: >>> try: ... myapp.foo.doSomething() ... except Exception, e: ... print 'Thrown from:', modname(e) Thrown from: myapp.util.url In the above example, the exception was actually thrown at myapp/util/url.py module. Is there a way to get the __name__ of that module? My intention is to use this in logging.getLogger functio...

Runtime error stacktrace or location in VB6

I maintain an old application written in VB6. In client's environment it raises runtime errors which I can't reproduce under debugger. Is there any way to get the stacktrace or location of error? I mean, without putting trace statements all over the code like here or adding error handlers for logging to every procedure like here. It se...

getting strange stacktrace on compiling groovy class

I'm coding a small test app in Groovy. I have the following code. class Address { static constraints = { street(blank:false, maxSize:100) residencenumber(min:1, max:65000) addition() zip() city(blank:false, maxSize:100) county() country(blank:false, maxSize:50) } String street String zip int residencenumber...

Why does log4j disable stack trace after (lots of) repetition of the same exception?

At one of our customer installations we had thousands of occurrences of the same exception. After a lot of well logged stacktraces (9332) the occurrence of the exception is still logged, but without stacktrace. After restarting the java process, the same thing: This time we had 17858 stacktraces and then only the exception occurrence its...

Stacktrace to string in Java

Easiest way to convert the result of Throwable.getStackTrace() to a string that depicts the stacktrace? ...

Print current call stack in Python

In Python, how can I print the current call stack from within a method (for debugging purposes). ...