Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to Catch Invocation Target Exception?
    primarykey
    data
    text
    <p>I have following piece of code:</p> <pre><code>try { glogger.debug("Calling getReportData (BudgetInBriefDAO)"); lHashData = objBudgetInBriefDAO.getReportData(lStrFinYrId, lStrLangId, lStrContextPath, lStrFinYrDesc); glogger.debug("Returning from getReportData (BudgetInBriefDAO)"); } // catch( InvocationTargetException ie ) // { // glogger.error("InvocationTargetException !!!"); // glogger.error("InvocationTargetException in calling BudgetInBriefBean -&gt; getReportData"); // glogger.error("Target Exception is : " + ie.getTargetException()); // glogger.error("Cause is : " + ie.getCause()); // ie.printStackTrace(); // } catch( Exception e ) { glogger.error("Exception !!!"); glogger.error( "Error in calling BudgetInBriefBean -&gt; getReportData. Error is :- " + e ); e.printStackTrace(); } </code></pre> <p>I am getting following Error:</p> <blockquote> <p>FATAL : AJPRequestHandler-ApplicationServerThread-25 com.tcs.sgv.common.util.GenericEJBObject - InvocationTargetException :java.lang.reflect.InvocationTargetException - 14 Feb 2012 12:36:00,155 - 5210474 milliseconds</p> </blockquote> <p>It is not printing Stack Trace. How would I know the Cause of the Exception ?</p> <p>I have uncommented code &amp; still not getting the Stack Trace printed.</p> <p>Between, my BudgetInBriefDAO Implementation (BudgetInBriefDAOImpl) contains 4 classes.</p> <blockquote> <p>BudgetInBriefDAOImpl &amp; 3 other Thread classes</p> </blockquote> <p>I have decompiled all the class file successfullly without corruption.</p> <p>Please help to find out Actual Cause of Exception.</p> <p>Thanks in advance.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload