I have no idea why that only affects the Mavenized version either. But clearly that code is dangerous. :-)
On 2016-04-13, 11:42 AM, "Hugi Thordarson" <h...@karlmenn.is> wrote: >Indeed it did. Turns out there was a piece of code in static {} in Application >that was doing WO-stuff before ERXApplication.main() was executed, a clear >Neddy no no. > >Why the problem appeared only with the mavenization of the project, I have no >idea. > >Thanks for the technical and moral support. > >- hugi > > >> On 13. apr. 2016, at 17:02, Chuck Hill <ch...@gevityinc.com> wrote: >> >> Does NSBundle.bundleNamed(“JavaWebObjects”) return a non-null value? >> >> >> >> >> On 2016-04-13, 9:53 AM, "Hugi Thordarson" <h...@karlmenn.is> wrote: >> >>> It seems to be trying to put null into the Hashtable (hence the >>> NullPointerException in Hashtable). >>> >>> The resource it’s reading in >>> WOResourcesManager.__getJavaWebObjectsResourceAsStream() is >>> “WOPropertyKeys.plist”. I’m thinking it’s not finding the bundle or >>> property file due to me floobing something up in the project’s >>> configuration. Although I can’t, for the life of my, see what. >>> >>> - hugi >>> >>> >>> >>>> On 13. apr. 2016, at 16:23, Chuck Hill <ch...@gevityinc.com> wrote: >>>> >>>> Caused by: java.lang.NullPointerException >>>> at java.util.Hashtable.put(Hashtable.java:459) >>>> at >>>> er.extensions.foundation.ERXSystem.convertProperties(ERXSystem.java:102) >>>> >>>> >>>> >>>> Could that me a malformed property? Like >>>> =foo >>>> Check that ERXSystem is trying to put in the hash table there. >>>> >>>> >>>> >>>> >>>> On 2016-04-13, 8:54 AM, >>>> "webobjects-dev-bounces+chill=gevityinc....@lists.apple.com on behalf of >>>> Hugi Thordarson" >>>> <webobjects-dev-bounces+chill=gevityinc....@lists.apple.com on behalf of >>>> h...@karlmenn.is> wrote: >>>> >>>>> Hi all. >>>>> >>>>> I just mavenized a project and now I get the following exception on >>>>> startup. I’m rather stumped since the mavenization looks exactly like >>>>> what I’ve don for ~10 other projects. Anyone seen this one before? >>>>> >>>>> - hugi >>>>> >>>>> >>>>> [2016-4-13 15:47:8 GMT] <main> A fatal exception occurred: null >>>>> [2016-4-13 15:47:8 GMT] <main> java.lang.ExceptionInInitializerError >>>>> at >>>>> com.webobjects.appserver.WOResourceManager.__getJavaWebObjectsResourceAsStream(WOResourceManager.java:116) >>>>> at >>>>> com.webobjects.appserver._private.WOProperties.initUserDefaultsKeys(WOProperties.java:317) >>>>> at >>>>> com.webobjects.appserver.WOApplication._initWOApp(WOApplication.java:5743) >>>>> at com.webobjects.appserver.WOApplication.<init>(WOApplication.java:779) >>>>> at >>>>> er.extensions.appserver.ajax.ERXAjaxApplication.<init>(ERXAjaxApplication.java:30) >>>>> at >>>>> er.extensions.appserver.ERXApplication.<init>(ERXApplication.java:1119) >>>>> at nb.Application.<init>(Application.java:66) >>>>> at sun.reflect.GeneratedConstructorAccessor17.newInstance(Unknown >>>>> Source) >>>>> at >>>>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java) >>>>> at java.lang.reflect.Constructor.newInstance(Constructor.java:422) >>>>> at java.lang.Class.newInstance(Class.java:442) >>>>> at com.webobjects.appserver.WOApplication.main(WOApplication.java:547) >>>>> at er.extensions.appserver.ERXApplication.main(ERXApplication.java:874) >>>>> at nb.Application.main(Application.java:63) >>>>> Caused by: java.lang.NullPointerException >>>>> at java.util.Hashtable.put(Hashtable.java:459) >>>>> at >>>>> er.extensions.foundation.ERXSystem.convertProperties(ERXSystem.java:102) >>>>> at >>>>> er.extensions.foundation.ERXSystem.updateProperties(ERXSystem.java:134) >>>>> at >>>>> er.extensions.foundation.ERXConfigurationManager.loadConfiguration(ERXConfigurationManager.java:283) >>>>> at >>>>> er.extensions.foundation.ERXConfigurationManager.initialize(ERXConfigurationManager.java:197) >>>>> at er.extensions.ERXExtensions.bundleDidLoad(ERXExtensions.java:186) >>>>> at sun.reflect.GeneratedMethodAccessor12.invoke(Unknown Source) >>>>> at >>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java) >>>>> at java.lang.reflect.Method.invoke(Method.java:497) >>>>> at >>>>> com.webobjects.foundation.NSSelector._safeInvokeMethod(NSSelector.java:122) >>>>> at >>>>> com.webobjects.foundation.NSNotificationCenter$_Entry.invokeMethod(NSNotificationCenter.java:588) >>>>> at >>>>> com.webobjects.foundation.NSNotificationCenter.postNotification(NSNotificationCenter.java:532) >>>>> at >>>>> er.extensions.appserver.ERXApplication$Loader.bundleDidLoad(ERXApplication.java:697) >>>>> at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source) >>>>> at >>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java) >>>>> at java.lang.reflect.Method.invoke(Method.java:497) >>>>> at >>>>> com.webobjects.foundation.NSSelector._safeInvokeMethod(NSSelector.java:122) >>>>> at >>>>> com.webobjects.foundation.NSNotificationCenter$_Entry.invokeMethod(NSNotificationCenter.java:588) >>>>> at >>>>> com.webobjects.foundation.NSNotificationCenter.postNotification(NSNotificationCenter.java:532) >>>>> at >>>>> com.webobjects.foundation.NSNotificationCenter.postNotification(NSNotificationCenter.java:562) >>>>> at com.webobjects.foundation.NSBundle.addBundle(NSBundle.java:853) >>>>> at >>>>> com.webobjects.foundation.development.NSBundleFactory.bundleForPathWithRegistry(NSBundleFactory.java:23) >>>>> at >>>>> com.webobjects.foundation.NSBundle.LoadBundlesFromJars(NSBundle.java:714) >>>>> at com.webobjects.foundation.NSBundle.<clinit>(NSBundle.java:315) >>>>> ... 14 more >>>>> >>>>> >>>>> >>>>> _______________________________________________ >>>>> Do not post admin requests to the list. They will be ignored. >>>>> Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) >>>>> Help/Unsubscribe/Update your Subscription: >>>>> https://lists.apple.com/mailman/options/webobjects-dev/chill%40gevityinc.com >>>>> >>>>> This email sent to ch...@gevityinc.com >>> > _______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com