Re: Strange null pointer error
Re: Strange null pointer error
- Subject: Re: Strange null pointer error
- From: Aaron Rosenzweig via Webobjects-dev <email@hidden>
- Date: Fri, 26 Jun 2020 15:54:57 -0400
Hi Michael,
It’s an interesting problem with at first blush seems impossible but on second
pass, looks plausible.
That is clearly Wonder code so you can trace it and debug it. The line number
125 of ERXDatabaseContext.java is likely very accurate.
Stepping through (mentally) I concur that this is not a read only EO but I’d
say you have one of the following in your code:
1) a read only attribute - imagine that “first name” has the read-only checkbox
marked somewhere. Which entities in your code could this be? Maybe a derived
attribute? One that is a computation and not something you’d ever write back?
2) you exposed a primary key (or maybe a foreign key) - breaking one of the ten
commandments.
Start with hunting down 1 & 2 and see where that leads you.
AARON ROSENZWEIG / Chat 'n Bike <http://www.chatnbike.com/>
e: email@hidden <mailto:email@hidden> t: (301) 956-2319
> On Jun 26, 2020, at 12:24 PM, Michael Kondratov via Webobjects-dev
> <email@hidden> wrote:
>
> Hello everybody!
>
>
> We started to see a strange error:
>
>
> java.lang.NullPointerException
> at
> er.extensions.eof.ERXDatabaseContext._verifyNoChangesToReadonlyEntity(ERXDatabaseContext.java:125)
> at
> com.webobjects.eoaccess.EODatabaseContext.performChanges(EODatabaseContext.java:6187)
> at
> com.webobjects.eocontrol.EOObjectStoreCoordinator.saveChangesInEditingContext(EOObjectStoreCoordinator.java:376)
> at
> com.webobjects.eocontrol.EOEditingContext.saveChanges(EOEditingContext.java:3192)
> at er.extensions.eof.ERXEC._saveChanges(ERXEC.java:1178)
> at er.extensions.eof.ERXEC.saveChanges(ERXEC.java:1099)
> at
> artstore.components.EditOrderNew.saveEditingContext(EditOrderNew.java:224)
>
>
>
> Any ideas what may be causing it?
>
> Sincerely,
>
>
> Michael
>
> _______________________________________________
> 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