Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make Mule 3 display full stack traces

Tags:

mule

I had an exception where I got this shortened trace:

Root Exception stack trace:
java.sql.SQLException: Invalid column name
    at oracle.jdbc.driver.OracleStatement.getColumnIndex(OracleStatement.java:3677)
    at oracle.jdbc.driver.OracleResultSetImpl.findColumn(OracleResultSetImpl.java:2749)
    at oracle.jdbc.driver.OracleResultSet.getString(OracleResultSet.java:494)
    + 3 more (set debug level logging or '-Dmule.verbose.exceptions=true' for everything)

I then put this in "log4j.properties" and it didn't help:

log4j.logger.org.mule=DEBUG

I also failed with the second suggestion (and I suspect I'm not doing it right):

$ ./mule -Dmule.verbose.exceptions=true
like image 588
tshepang Avatar asked Jan 19 '23 10:01

tshepang


1 Answers

As explained here, arguments are passed from the command line to Mule that way:

$ ./mule -M-Dmule.verbose.exceptions=true

ie. prefixed by -M.

like image 98
David Dossot Avatar answered Feb 15 '23 03:02

David Dossot