Re: Strange null pointer error

2020-06-26 Thread Aaron Rosenzweig via Webobjects-dev
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

Re: Creating a EOModel in code

2020-06-26 Thread Hugi Thordarson via Webobjects-dev
The APIs and syntax vary a bit in names but philosophically and design-wise it's very much the same. EOModeler will not work, there's a different tool called "Cayenne modeler", a standalone app. My primary DBs are MySQL and Postgres, both work fine with Cayenne. It's an established tool to say

Re: Creating a EOModel in code

2020-06-26 Thread Jesse Tayler via Webobjects-dev
so, my simple EOF/ERXKey qualifiers and stuff would work, I’d use EOModeler? MySQL works fine it sounds, I’m using AWS stuff myself… > On Jun 26, 2020, at 3:27 PM, Hugi Thordarson wrote: > >> Ok, so are all the cool guys using Cayenne now then? > > I've seen some pretty cool guys use it

Re: Creating a EOModel in code

2020-06-26 Thread Hugi Thordarson via Webobjects-dev
> Ok, so are all the cool guys using Cayenne now then? I've seen some pretty cool guys use it but I also use it. > I'm sure I should read some page about it rather than waste everyone’s time > reiterating why it’s better and why we should be moving to that sort of thing > etc. It's awesome

Re: Strange null pointer error

2020-06-26 Thread Jesse Tayler via Webobjects-dev
Heh, ya, I figured you’d say that…and who does? I’m sure someone… If you don’t have a clue, read your SQL and find those timestamps and see what transactions were going on. If you can’t reproduce it, I’d guess you’ll want to turn up a bit of logging and just do a "hunt and peck” until you see

Re: Creating a EOModel in code

2020-06-26 Thread Jesse Tayler via Webobjects-dev
Ok, so are all the cool guys using Cayenne now then? I'm sure I should read some page about it rather than waste everyone’s time reiterating why it’s better and why we should be moving to that sort of thing etc. > On Jun 26, 2020, at 3:10 PM, Hugi Thordarson via Webobjects-dev > wrote: >

Re: Strange null pointer error

2020-06-26 Thread Michael Kondratov via Webobjects-dev
Jesse, I believe we do not have any read only objects in out application… Michael > On Jun 26, 2020, at 12:55 PM, Jesse Tayler wrote: > > Well something triggered a change in a read only entity > > I’d guess you can see specifically by checking sql output > > >> On Jun 26,

Re: Creating a EOModel in code

2020-06-26 Thread Hugi Thordarson via Webobjects-dev
You might also want to take a look at Cayenne. It's well documented and we're eager to help where the docs fall short. And most importantly; it's an active and maintained project that didn't die over a decade ago :) - hugi > On 26 Jun 2020, at 19:04, Aaron Rosenzweig via Webobjects-dev >

Re: Creating a EOModel in code

2020-06-26 Thread Aaron Rosenzweig via Webobjects-dev
Hi Don, Have a look at EOEntity and friends: EOAttribute, EORelationship. You can build them out and setup the “external” name for the column, etc. I did it once as an exercise many moons ago. The only practical use I got out of it was sometimes sanity checking keyPaths to see if they hit

Re: Strange null pointer error

2020-06-26 Thread Jesse Tayler via Webobjects-dev
Well something triggered a change in a read only entity I’d guess you can see specifically by checking sql output > On Jun 26, 2020, at 12:24 PM, Michael Kondratov via Webobjects-dev > wrote: > > Hello everybody! > > > We started to see a strange error: > > >

Strange null pointer error

2020-06-26 Thread Michael Kondratov via Webobjects-dev
Hello everybody! We started to see a strange error: java.lang.NullPointerException at er.extensions.eof.ERXDatabaseContext._verifyNoChangesToReadonlyEntity(ERXDatabaseContext.java:125) at