#3 ERXConfigurationManager problem

open
nobody
None
5
2012-12-07
2005-04-18
Anonymous
No

I've recently updated my PowerBook to MacOS X 10.3.9 and from
that moment all my WebObjects projects developed with Wonder
stopped to work.
Everytime I launch a project I get the following exception:

[2005-04-18 11:33:06 CEST] <main>
java.lang.ExceptionInInitializerError
at
er.extensions.ERXConfigurationManager.<clinit>(ERXConfiguration
Manager.java:96)
at er.extensions.ERXExtensions.<clinit>(ERXExtensions.java:
149)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:141)
at
com.webobjects.foundation._NSUtilities._classWithPartialName(_NS
Utilities.java:307)
at
com.webobjects.foundation._NSUtilities.classWithName(_NSUtilities
.java:291)
at
com.webobjects.foundation.NSBundle.initPrincipalClass(NSBundle.j
ava:2555)
at
com.webobjects.foundation.NSBundle.InitPrincipalClasses(NSBundl
e.java:711)
at
com.webobjects.foundation.NSBundle.<clinit>(NSBundle.java:369)
at
com.webobjects.appserver._private.WOProperties.initUserDefaultsK
eys(WOProperties.java:179)
at
com.webobjects.appserver.WOApplication._initWOApp(WOApplicati
on.java:5046)
at
com.webobjects.appserver.WOApplication.<init>(WOApplication.jav
a:553)
at Application.<init>(Application.java:21)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeCons
tructorAccessorImpl.java:39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Delegat
ingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:
274)
at java.lang.Class.newInstance0(Class.java:308)
at java.lang.Class.newInstance(Class.java:261)
at
com.webobjects.appserver.WOApplication.main(WOApplication.java
:323)
at Application.main(Application.java:17)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccess
orImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMetho
dAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
com.webobjects._bootstrap.WOBootstrap.main(WOBootstrap.java:
71)
Caused by: java.lang.NullPointerException
at
er.extensions.ERXFileUtilities.pathForResourceNamed(ERXFileUtiliti
es.java:224)
at
er.extensions.ERXFileUtilities.readPropertyListFromFileInFramework
(ERXFileUtilities.java:330)
at
er.extensions.ERXProperties.sourceVersionString(ERXProperties.ja
va:110)
at
er.extensions.ERXProperties.webObjectsVersionIs522OrHigher(ERX
Properties.java:180)
at er.extensions.ERXLogger.configureLogging(ERXLogger.java:
146)
at er.extensions.ERXLogger.<clinit>(ERXLogger.java:45)

It seems thant the problem occurs because the method
ERXFileUtilities.pathForResourceNamed is invoked before the
WOApplication.application() is initialized.
The strange is that after reinstalling MacOS X 10.3.7 from scratch,
(formatting disk, new account, no updates) the problem persist.

Does anyone have suggestions??

Thanks
Max Ribuoli

Discussion