|
Does anyone ever encounter java.lang.ExceptionInInitializerError whenTry wrapping the line in a try {} catch (Throwable e) { e.printStackTrace(System.out) } so you can get an idea what is actually the problem. I would suspect a ClassNotFoundException if you do not have log4j correctly in the classpath.
attempting to do logging using log4j:
The line of code that I'm having problem is
Log.category.debug("Lim. TestLog");
The error I'm getting is:
[6/24/09 13:54:41:831 CDT] 0000001a ExceptionUtil E CNTR0020E: EJB threw
an unexpected (non-declared) exception during invocation of method
"myCreateTimer_InitialDurationRepeatingInterval" on bean
"BeanId(USAMobility#USAMobility_ext.jar#TimedEjb, null)". Exception
data: java.lang.ExceptionInInitializerError
at java.lang.J9VMInternals.initialize(J9VMInternals.java:195)
at
com.usamobility.timer.TimedEjbBean.myCreateTimer_InitialDurationRepeatin
gInterval(TimedEjbBean.java:42)
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.