Re: Strange error

2018-03-17 Thread Chuck Hill
That method gets called for all entities, not just read only ones.  The check 
for being read-only is inside the method.

Some state inside EOF is messed up.  Are you doing anything with database 
operations in your app?  Or it could be concurrency and unlocked EOF access 
that is scrambling the state.  What changed before this started?

You probably need to figure out what is on line 4700, and what might be null 
and work back from there.

Chuck


From: Webobjects-dev 
 on behalf of 
Ricardo Parada 
Date: Saturday, March 17, 2018 at 5:34 PM
To: Michael Kondratov 
Cc: WebObjects-Dev 
Subject: Re: Strange error

Hi Michael,

It appears one of the objects being saved is for a read only entity.  Can you 
tell if that is what is going on?
Ricardo


On Mar 17, 2018, at 11:34 AM, Michael Kondratov 
> wrote:
Hello!
I am getting a new strange error in our new WO application:

java.lang.NullPointerException
at 
com.webobjects.eoaccess.EODatabaseContext._verifyNoChangesToReadonlyEntity(EODatabaseContext.java:4700)
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)




Would any one know what is causing it?

Thank you!


Michael
___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  
(Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/rparada%40mac.com

This email sent to rpar...@mac.com
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Strange error

2018-03-17 Thread Ricardo Parada
Hi Michael,

It appears one of the objects being saved is for a read only entity.  Can you 
tell if that is what is going on?

Ricardo


> On Mar 17, 2018, at 11:34 AM, Michael Kondratov  
> wrote:
> 
> Hello!
>   I am getting a new strange error in our new WO application:
> 
> java.lang.NullPointerException
> at 
> com.webobjects.eoaccess.EODatabaseContext._verifyNoChangesToReadonlyEntity(EODatabaseContext.java:4700)
> 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)
> 
> 
> Would any one know what is causing it?
> 
> Thank you!
> 
> 
> Michael
> ___
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/rparada%40mac.com
> 
> This email sent to rpar...@mac.com
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Strange error

2018-03-17 Thread Michael Kondratov
Hello!
I am getting a new strange error in our new WO application:

java.lang.NullPointerException
at 
com.webobjects.eoaccess.EODatabaseContext._verifyNoChangesToReadonlyEntity(EODatabaseContext.java:4700)
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)


Would any one know what is causing it?

Thank you!


Michael
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com