×

Good News Everybody!

The new search engine is LIVE!

Please report any problems to david (at) midrange.com.




It looks like the problem is cause by Malformed \uxxxx encoding. Not sure what that mean, I'm assuming something is not right in my log4j.properties.



Caused by: java.lang.IllegalArgumentException: Malformed \uxxxx encoding.
at java.util.Properties.loadConvert(Properties.java:531)
at java.util.Properties.load(Properties.java:370)
at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:424)
at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:456)
at org.apache.log4j.LogManager.<clinit>(LogManager.java:145)
at java.lang.J9VMInternals.initializeImpl(Native Method)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:177)
at com.usamobility.boss.log.Log.setCategory(Log.java:62)
at com.usamobility.boss.log.Log.<clinit>(Log.java:37)
at java.lang.J9VMInternals.initializeImpl(Native Method)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:177)
at com.usamobility.timer.TimedEjbBean.myCreateTimer_InitialDurationRepeatingInterval(TimedEjbBean.java:42)
at com.usamobility.timer.EJSRemoteStatelessTimedEjb_3783febc.myCreateTimer_InitialDurationRepeatingInterval(EJSRemoteStatelessTimedEjb_3783febc.java:99)
at com.usamobility.timer._TimedEjb_Stub.myCreateTimer_InitialDurationRepeatingInterval(_TimedEjb_Stub.java:314)
at com.usamobility.servlet.TimerManager.contextInitialized(TimerManager.java:55)

"Thorbjoern Ravn Andersen" <ravn@xxxxxxxxxx> wrote in message news:<mailman.14252.1245872535.23468.java400-l@xxxxxxxxxxxx>...
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.


--
Thorbjørn Ravn Andersen "...plus... Tubular Bells!"


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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

This mailing list archive is Copyright 1997-2026 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.