Skip to Main Content

Integration

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to log stack trace of EJB exception cause

We need to log stack trace of exception we are getting from EJB call. We are trying to log it with slf4j with log4j backend:

EJBException ee; LOG.error("EJB exception details: ", ee.getCausedByException());

but this logs only exception type (NullPointerException) without stacktrace. What may be the problem with stacktrace? I tried -XX:-OmitStackTraceInFastThrow even though I don't know if it's valid parameter for our IBM J9 VM, but it didn't help. Our weblogic is in version 12c.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 2 2013
Added on Jun 4 2013
0 comments
599 views