I just checked in a fix for this, so that the outer most throwable trace is 
the first printed, then the nested is handled.

So continuing with the c, b, a example (run from jython) here is the trace:

org.jboss.util.NestedError: c; - nested throwable: 
(org.jboss.util.NestedError: b; - nested throwable: 
(org.jboss.util.NestedError: a))
        at java.lang.reflect.Constructor.newInstance(Native Method)
        at org.python.core.PyReflectedConstructor.__call__
(PyReflectedConstructor.java)
        at org.python.core.PyJavaInstance.__init__(PyJavaInstance.java)
        at org.python.core.PyJavaClass.__call__(PyJavaClass.java)
        at org.python.core.PyObject.__call__(PyObject.java)
        at org.python.pycode._pyx0.f$0(./test.py:5)
        at org.python.pycode._pyx0.call_function(./test.py)
        at org.python.core.PyTableCode.call(PyTableCode.java)
        at org.python.core.PyCode.call(PyCode.java)
        at org.python.core.Py.runCode(Py.java)
        at org.python.core.__builtin__.execfile_flags(__builtin__.java)
        at org.python.util.PythonInterpreter.execfile(PythonInterpreter.java)
        at org.python.util.jython.main(jython.java)
 + nested throwable: org.jboss.util.NestedError: b; - nested throwable: 
(org.jboss.util.NestedError: a)
        at java.lang.reflect.Constructor.newInstance(Native Method)
        at org.python.core.PyReflectedConstructor.__call__
(PyReflectedConstructor.java)
        at org.python.core.PyJavaInstance.__init__(PyJavaInstance.java)
        at org.python.core.PyJavaClass.__call__(PyJavaClass.java)
        at org.python.core.PyObject.__call__(PyObject.java)
        at org.python.pycode._pyx0.f$0(./test.py:4)
        at org.python.pycode._pyx0.call_function(./test.py)
        at org.python.core.PyTableCode.call(PyTableCode.java)
        at org.python.core.PyCode.call(PyCode.java)
        at org.python.core.Py.runCode(Py.java)
        at org.python.core.__builtin__.execfile_flags(__builtin__.java)
        at org.python.util.PythonInterpreter.execfile(PythonInterpreter.java)
        at org.python.util.jython.main(jython.java)
 + nested throwable: org.jboss.util.NestedError: a
        at java.lang.reflect.Constructor.newInstance(Native Method)
        at org.python.core.PyReflectedConstructor.__call__
(PyReflectedConstructor.java)
        at org.python.core.PyJavaInstance.__init__(PyJavaInstance.java)
        at org.python.core.PyJavaClass.__call__(PyJavaClass.java)
        at org.python.core.PyObject.__call__(PyObject.java)
        at org.python.pycode._pyx0.f$0(./test.py:3)
        at org.python.pycode._pyx0.call_function(./test.py)
        at org.python.core.PyTableCode.call(PyTableCode.java)
        at org.python.core.PyCode.call(PyCode.java)
        at org.python.core.Py.runCode(Py.java)
        at org.python.core.__builtin__.execfile_flags(__builtin__.java)
        at org.python.util.PythonInterpreter.execfile(PythonInterpreter.java)
        at org.python.util.jython.main(jython.java)

--jason

-------------------------------------------------
This mail sent through IMP: http://horde.org/imp/

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to