• 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: Null Pointer Exception + ERPersistentStorage + WOForm
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Null Pointer Exception + ERPersistentStorage + WOForm


  • Subject: Re: Null Pointer Exception + ERPersistentStorage + WOForm
  • From: Kevin Hinkson <email@hidden>
  • Date: Mon, 30 Mar 2015 13:32:49 -0400

Hi Ramsey,

I'm not even able to submit the form. That NPE occurs when trying to render the page the first time around.

I do agree with you about the NULL value for the sessionID. If I dump the context the session is null although the cookies are there.

I will fiddle with ERXWOForm secure attribute and ERXSession.useSecureSessionCookies and see what happens.

Oh and the app is behind SSL that is terminated at the load balancer.

> On Mar 30, 2015, at 13:21, Ramsey Gurley <email@hidden> wrote:
>
>
>> On Mar 30, 2015, at 7:45 AM, Kevin Hinkson <email@hidden> wrote:
>>
>> Hi,
>>
>> I’m having a very weird error that I cannot pin down at all.
>
>> Caused by: java.lang.IllegalArgumentException: Attempt to insert null object into an  com.webobjects.foundation.NSDictionary.
>>    at com.webobjects.foundation.NSDictionary.<init>(NSDictionary.java:197)
>>    at com.webobjects.eoaccess.EOUtilities.objectsMatchingKeyAndValue(EOUtilities.java:189)
>>    at er.extensions.eof.EOEnterpriseObjectClazz.objectsMatchingKeyAndValue(EOEnterpriseObjectClazz.java:350)
>>    at er.extensions.eof.EOEnterpriseObjectClazz.objectMatchingKeyAndValue(EOEnterpriseObjectClazz.java:375)
>>    at er.persistentsessionstorage.ERPersistentSessionStore.restoreSessionWithID(ERPersistentSessionStore.java:36)
>>    at com.webobjects.appserver.WOSessionStore.checkOutSessionWithID(WOSessionStore.java:182)
>>    at com.webobjects.appserver.WOApplication.restoreSessionWithID(WOApplication.java:1913)
>
> It looks like you are calling restoreSessionWithID(null, request). Since you narrowed this down to a form submission, have you passed through an https page with er.extensions.ERXSession.useSecureSessionCookies enabled, then tried to submit this form with an http: action url? In that case, the browser would not send the session cookie and I suspect this might be the result.

 _______________________________________________
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


References: 
 >Null Pointer Exception + ERPersistentStorage + WOForm (From: Kevin Hinkson <email@hidden>)
 >Re: Null Pointer Exception + ERPersistentStorage + WOForm (From: Ramsey Gurley <email@hidden>)

  • Prev by Date: Re: Null Pointer Exception + ERPersistentStorage + WOForm
  • Next by Date: Eclipse errors
  • Previous by thread: Re: Null Pointer Exception + ERPersistentStorage + WOForm
  • Next by thread: Eclipse errors
  • Index(es):
    • Date
    • Thread