× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Lim Hock-Chai skrev:
Does anyone ever encounter java.lang.ExceptionInInitializerError when
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)

Try 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.



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.