Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NPE on XQUERY update document #1939

Closed
algrw opened this issue Jun 13, 2018 · 1 comment
Closed

NPE on XQUERY update document #1939

algrw opened this issue Jun 13, 2018 · 1 comment
Labels
triage issue needs to be investigated

Comments

@algrw
Copy link

algrw commented Jun 13, 2018

What is the problem

We have a java application using eXist-db 2.2 as a database (eXist-db is installed as a standalone server). We use queries to retrieve or update the XML documents stored in the database.

We are trying to use eXist-db 4.2 but, when I try to update a document to add new nodes with "update insert following/preceding/into", I got a null pointer exception in org.exist.xquery.update.Modification class and the update isn't done.

The same query works with eXist-db 2.2.
I tested it with eXist-db 5.0.0-RC1 but I got the same error.

What did you expect

Not a NPE but update the document

Describe how to reproduce or add a test

Attached are the query and the XML file.

Th XML can be uploaded in a collection (/db/AGD) and the query update.xqy can be run with eXide.

Context information

eXist-db version 4.2.0 build 201806060100 - Git commit a0dfbd0
Java version 1.8.0_121
Operating system Windows Server 2008 R2
64 bit

eXist-db is installed as a standalone server, from the eXist-db.org setup jar , with no change to the conf.xml file (apart for the cache size).

Attached are also the eXist-db logs

logs.zip
resources.zip

@triage-new-issues triage-new-issues bot added the triage issue needs to be investigated label Jun 13, 2018
@duncdrum
Copy link
Contributor

duplicate of #1761 ? 4.2.1 will be released very soon, can you please try again, and let us know how it went in the other ticket. thx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triage issue needs to be investigated
Projects
None yet
Development

No branches or pull requests

2 participants