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 protected] <mailto:[email protected]> t: (301) 956-2319 > On Jun 26, 2020, at 12:24 PM, Michael Kondratov via Webobjects-dev > <[email protected]> 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 protected]) > Help/Unsubscribe/Update your Subscription: > https://lists.apple.com/mailman/options/webobjects-dev/aaron%40chatnbike.com > > This email sent to [email protected]
_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to [email protected]
