Re: Null Pointer Exception + ERPersistentStorage + WOForm
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