Issue1435

classification
Title: traceback doesn't include Java stack trace in user functions
Type: Severity: normal
Components: Versions:
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: fwierzbicki Nosy List: bpedman, cgroves, draghuram, fwierzbicki
Priority: high Keywords: patch

Created on 2009-08-15.19:57:30 by cgroves, last changed 2013-02-27.17:50:12 by fwierzbicki.

Files
File name Uploaded Description Edit Remove
javatrace.patch draghuram, 2009-09-14.18:17:01
Messages
msg5026 (view) Author: Charlie Groves (cgroves) Date: 2009-08-15.19:57:29
See Raghu's email at 
http://article.gmane.org/gmane.comp.lang.jython.user/7989.  Essentially, 
traceback.print_exc() should print the Java exception as Jython's regular 
exception printer does.  This would be really nice for when things break 
in the Jython regression tests as well.
msg5157 (view) Author: Raghuram Devarakonda (draghuram) Date: 2009-09-14.14:35:50
I will try to work up a patch as the lack of java stack trace
complicates debugging. The process will be much quicker if some one can
give me pointers on how best to proceed.
msg5164 (view) Author: Raghuram Devarakonda (draghuram) Date: 2009-09-14.18:17:01
The attached javatrace.patch solved the problem for me. Basically, I
have added a function called "java_trace" to sys module and called it in
traceback._format_final_exc_line. Even though this works, I am not sure
that this is the right way to go about it. Hopefully, this patch works
as a basis for the final solution.
msg6193 (view) Author: Brandon (bpedman) Date: 2010-10-21.18:18:09
Can't you just set the options in org.python.core.Options like:
Options.showJavaExceptions
Options.showPythonProxyExceptions
Options.includeJavaStackInExceptions

Maybe set some of these to true?
msg6213 (view) Author: Raghuram Devarakonda (draghuram) Date: 2010-10-29.20:34:27
I have set the following in registry file but that didn't help.

-----
python.options.showJavaExceptions = true
python.options.includeJavaStackInExceptions = true
python.options.showPythonProxyExceptions = true
-----

I tested with the latest jython available for download (2.5.1) on Linux.
msg7840 (view) Author: Frank Wierzbicki (fwierzbicki) Date: 2013-02-27.17:50:12
Cranking this up to high to get my later attention. This would be a big help for all of the core devs.
History
Date User Action Args
2013-02-27 17:50:12fwierzbickisetpriority: normal -> high
assignee: fwierzbicki
messages: + msg7840
2010-10-29 20:34:28draghuramsetmessages: + msg6213
2010-10-21 18:18:10bpedmansetnosy: + bpedman
messages: + msg6193
2010-08-25 06:00:28zyasoftsetpriority: normal
2009-09-14 18:17:02draghuramsetfiles: + javatrace.patch
keywords: + patch
messages: + msg5164
2009-09-14 14:35:50draghuramsetmessages: + msg5157
2009-08-17 14:07:24draghuramsetnosy: + draghuram
2009-08-16 20:16:19fwierzbickisetnosy: + fwierzbicki
2009-08-15 19:57:30cgrovescreate