Re: Null Pointer Exception + ERPersistentStorage + WOForm
Re: Null Pointer Exception + ERPersistentStorage + WOForm
- Subject: Re: Null Pointer Exception + ERPersistentStorage + WOForm
- From: Ramsey Gurley <email@hidden>
- Date: Mon, 30 Mar 2015 10:21:44 -0700
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