• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Strange null pointer error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Strange null pointer error (From: Michael Kondratov via Webobjects-dev <email@hidden>)

  • Prev by Date: Re: Creating a EOModel in code
  • Next by Date: Re: Creating a EOModel in code
  • Previous by thread: Re: Strange null pointer error
  • Next by thread: Looks like an OSC must be disposed manually?!? (was: background tasks locked, workers run all right)
  • Index(es):
    • Date
    • Thread