Re: [basex-talk] Consistent NPE loading content on one server, other server works

2024-01-24 Thread Eliot Kimber
.com/servicenow> | YouTube<https://www.youtube.com/user/servicenowinc> | Facebook<https://www.facebook.com/servicenow> From: Christian Grün Date: Wednesday, January 24, 2024 at 9:27 AM To: Eliot Kimber Cc: basex-talk@mailman.uni-konstanz.de Subject: Re: [basex-talk] Consistent NPE

Re: [basex-talk] Consistent NPE loading content on one server, other server works

2024-01-24 Thread Christian Grün
…spending much time on a problem rarely helps. It’s often better to write an e-mail, and discover the solution right after that. A new stable snapshot with the bug fix is online [1,2]. Cheers, Christian [1] https://github.com/BaseXdb/basex/issues/2272 [2]

Re: [basex-talk] Consistent NPE loading content on one server, other server works

2024-01-24 Thread Christian Grün
Hi Eliot, Thanks for your observations, and some first debugging. The idmap file is only created and required if UPDINDEX is enabled. Well, let’s say it should: Maybe this file is not created in due time. I haven’t managed to reproduce the bug yet. If you are more successful, please let us

Re: [basex-talk] Consistent NPE loading content on one server, other server works

2024-01-23 Thread Eliot Kimber
I found the proximate cause: Not having UPDINDEX set to true() on the failing server. When I set UPDINDEX to true on the target database, then the load succeeded. Tracking through the Java code it looks like a failure to initialize the idmap member of the DiskData object. This code looks like

[basex-talk] Consistent NPE loading content on one server, other server works

2024-01-23 Thread Eliot Kimber
I have two servers running the same code, both on 10.7. I have a REST API handler that takes data as input and stores it in a database, applying some preprocessing to the data first. The data successfully loads on my dev server and consistently fails on the production server, with this Java