Re: Odd NPE from deep inside EOF

2016-01-28 Thread Chuck Hill
That is nasty. While processing this fetch, a snapshot is going missing. I don’t think we can tell anything else from that stack trace. It is likely that the cause of this missing snapshot is in another concurrently executing thread. And it is likely related to an error in snapshot

How to set up a stateful REST service

2016-01-28 Thread Rudi Angela
How can I use ER-REST in combination with a Session? I have a stateful REST service, so I need a Session. Also I would like to use the session’s defaultEditing Context. A brief look at ER-REST gave me the impression that requests don’t use a Session and use a new EditingContext with every

Re: How to set up a stateful REST service

2016-01-28 Thread Mark Wardle
ERRest actions are simply direct actions. You can definitely use sessions. Just call session() and it will create one. Mark > On 28 Jan 2016, at 19:37, Rudi Angela wrote: > > How can I use ER-REST in combination with a Session? I have a stateful REST > service, so I

Re: How to set up a stateful REST service

2016-01-28 Thread Michael Kondratov
Rudi, ERRest is essentially a direct action. We use the following code: protected ERXRestContext createRestContext() { ERXRestContext result = null; if (existingSession() != null) { result = new

Re: Odd NPE from deep inside EOF

2016-01-28 Thread Mark Wardle
Last year, I had an intermittent exception thrown seemingly at random. Something odd is happening from deep within EOF and it isn’t easily reproducible as far as I can tell. I now have the full stack trace. Does this look familiar to anyone? Best wishes, Mark java.lang.NullPointerException