• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NPE on startup from Mavenized project
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NPE on startup from Mavenized project


  • Subject: Re: NPE on startup from Mavenized project
  • From: Hugi Thordarson <email@hidden>
  • Date: Wed, 13 Apr 2016 18:42:14 +0000

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 <email@hidden> wrote:
>
> Does NSBundle.bundleNamed(“JavaWebObjects”) return a non-null value?
>
>
>
>
> On 2016-04-13, 9:53 AM, "Hugi Thordarson" <email@hidden> 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 <email@hidden> 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=email@hidden on behalf of Hugi Thordarson" <webobjects-dev-bounces+chill=email@hidden on behalf of email@hidden> 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      (email@hidden)
>>>> Help/Unsubscribe/Update your Subscription:
>>>>
>>>> This email sent to email@hidden
>>


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Re: NPE on startup from Mavenized project
      • From: Chuck Hill <email@hidden>
References: 
 >NPE on startup from Mavenized project (From: Hugi Thordarson <email@hidden>)

  • Prev by Date: Re: ERXEOControlUtilities.objectCountForToManyRelationship for new objects fails?
  • Next by Date: Re: Framework resources folder and Maven
  • Previous by thread: Re: NPE on startup from Mavenized project
  • Next by thread: Re: NPE on startup from Mavenized project
  • Index(es):
    • Date
    • Thread