Dear all,
We have released another 9.4 late-summer maintenance release with new performance tweaks and minor bug fixes:
In addition, we have started a new Wiki article on XQuery optimizations, which we plan to extend step by step:
https://docs.basex.org/wiki/XQuery_Optimizations
We are looking forward to your feedback; have fun, Your BaseX Team
Hi Christian, I am using basex-xqj client, XQExpression-8.executeQuery() API throws java.lang.NullPointerException exception while executing XQuery(retrieving the 171 MB xml document) like db:open('testenvSSL1', '6300000180000114/0600000180002931.xml'), marked in red below.
Could you please help me to fix this java.lang.NullPointerException exception issue?
Source code: =========== final XQExpression xqpe = m_conn.createExpression(); String query = "db:open('" + databaseName + "', '" + pathURL + "')"; final XQResultSequence resultSeq = xqpe.executeQuery(query);
pom.xml: ======== <!-- https://mvnrepository.com/artifact/net.xqj/basex-xqj --> <dependency> <groupId>net.xqj</groupId> <artifactId>basex-xqj</artifactId> <version>9.0</version> </dependency> <dependency> <groupId>com.xqj2</groupId> <artifactId>xqj2</artifactId> <version>0.2.0</version> </dependency> <dependency> <groupId>javax.xml.xquery</groupId> <artifactId>xqj-api</artifactId> <version>1.0</version> </dependency>
Retrieve of 8 MB xml document successful working log: =================================================== 2020-08-27 10:04:12,040 INFO [stdout] (default task-3) [10:04:12.040] TRACE: XQConnection-1.createExpression() invoked.
2020-08-27 10:04:12,040 INFO [stdout] (default task-3) [10:04:12.040] TRACE: XQConnection.getStaticContext() invoked.
2020-08-27 10:04:12,056 INFO [stdout] (default task-3) [10:04:12.040] TRACE: XQExpression-4.executeQuery(), raw XQuery resolved to: db:open('testenvSSL1', '6300000180000114/0600000180002930.xml')
2020-08-27 10:04:12,650 INFO [stdout] (default task-3) [10:04:12.650] DEBUG: XQExpression-4.close() invoked.
Upload 171 MB xml document successful log: ========================================
2020-08-27 10:06:31,552 INFO [stdout] (default task-3) [10:06:31.552] TRACE: XQConnection-1.createExpression() invoked.
2020-08-27 10:06:31,552 INFO [stdout] (default task-3) [10:06:31.552] TRACE: XQConnection.getStaticContext() invoked.
2020-08-27 10:06:31,568 INFO [stdout] (default task-3) [10:06:31.552] TRACE: XQExpression-6.executeQuery(), raw XQuery resolved to: db:replace('testenvSSL1', '6300000180000114/0600000180002931.xml', 'C:\Program Files (x86)\BaseX\data\0600000180002931.xml')
2020-08-27 10:06:40,896 INFO [stdout] (default task-3) [10:06:40.896] DEBUG: XQExpression-6.close() invoked.
Retrieve of 171 MB xml document failed, nonworking log: ========================================================= 2020-08-27 10:06:45,161 INFO [stdout] (default task-3) [10:06:45.161] TRACE: XQConnection-1.createExpression() invoked.
2020-08-27 10:06:45,161 INFO [stdout] (default task-3) [10:06:45.161] TRACE: XQConnection.getStaticContext() invoked.
2020-08-27 10:06:45,161 INFO [stdout] (default task-3) [10:06:45.161] TRACE: XQExpression-8.executeQuery(), raw XQuery resolved to: db:open('testenvSSL1', '6300000180000114/0600000180002931.xml')
2020-08-27 10:06:53,083 ERROR [org.springframework.boot.web.servlet.support.ErrorPageFilter] (default task-3) Forwarding to error page from request [/servlet/XMLStoreServiceServlet] due to exception [null]: java.lang.NullPointerException
referred source code from: https://github.com/BaseXdb/basex/tree/master/basex-examples/src/main/java/or...
Thanks, Srikumar
Hi Christian, I am using basex-xqj client, XQExpression-8.executeQuery() API throws java.lang.NullPointerException exception while executing XQuery(retrieving the 171 MB xml document) like db:open('testenvSSL1', '6300000180000114/0600000180002931.xml'), marked in red below.
Could you please help me to fix this java.lang.NullPointerException exception issue?
Source code: =========== final XQExpression xqpe = m_conn.createExpression(); String query = "db:open('" + databaseName + "', '" + pathURL + "')"; final XQResultSequence resultSeq = xqpe.executeQuery(query);
pom.xml: ======== <!-- https://mvnrepository.com/artifact/net.xqj/basex-xqj --> <dependency> <groupId>net.xqj</groupId> <artifactId>basex-xqj</artifactId> <version>9.0</version> </dependency> <dependency> <groupId>com.xqj2</groupId> <artifactId>xqj2</artifactId> <version>0.2.0</version> </dependency> <dependency> <groupId>javax.xml.xquery</groupId> <artifactId>xqj-api</artifactId> <version>1.0</version> </dependency>
Retrieve of 8 MB xml document successful working log: =================================================== 2020-08-27 10:04:12,040 INFO [stdout] (default task-3) [10:04:12.040] TRACE: XQConnection-1.createExpression() invoked.
2020-08-27 10:04:12,040 INFO [stdout] (default task-3) [10:04:12.040] TRACE: XQConnection.getStaticContext() invoked.
2020-08-27 10:04:12,056 INFO [stdout] (default task-3) [10:04:12.040] TRACE: XQExpression-4.executeQuery(), raw XQuery resolved to: db:open('testenvSSL1', '6300000180000114/0600000180002930.xml')
2020-08-27 10:04:12,650 INFO [stdout] (default task-3) [10:04:12.650] DEBUG: XQExpression-4.close() invoked.
Upload 171 MB xml document successful log: ========================================
2020-08-27 10:06:31,552 INFO [stdout] (default task-3) [10:06:31.552] TRACE: XQConnection-1.createExpression() invoked.
2020-08-27 10:06:31,552 INFO [stdout] (default task-3) [10:06:31.552] TRACE: XQConnection.getStaticContext() invoked.
2020-08-27 10:06:31,568 INFO [stdout] (default task-3) [10:06:31.552] TRACE: XQExpression-6.executeQuery(), raw XQuery resolved to: db:replace('testenvSSL1', '6300000180000114/0600000180002931.xml', 'C:\Program Files (x86)\BaseX\data\0600000180002931.xml')
2020-08-27 10:06:40,896 INFO [stdout] (default task-3) [10:06:40.896] DEBUG: XQExpression-6.close() invoked.
Retrieve of 171 MB xml document failed, nonworking log: ========================================================= 2020-08-27 10:06:45,161 INFO [stdout] (default task-3) [10:06:45.161] TRACE: XQConnection-1.createExpression() invoked.
2020-08-27 10:06:45,161 INFO [stdout] (default task-3) [10:06:45.161] TRACE: XQConnection.getStaticContext() invoked.
2020-08-27 10:06:45,161 INFO [stdout] (default task-3) [10:06:45.161] TRACE: XQExpression-8.executeQuery(), raw XQuery resolved to: db:open('testenvSSL1', '6300000180000114/0600000180002931.xml')
2020-08-27 10:06:53,083 ERROR [org.springframework.boot.web.servlet.support.ErrorPageFilter] (default task-3) Forwarding to error page from request [/servlet/XMLStoreServiceServlet] due to exception [null]: java.lang.NullPointerException
referred source code from: https://github.com/BaseXdb/basex/tree/master/basex-examples/src/main/java/or...
Thanks, Srikumar
Hi Srikumar,
The error message seems to have been raised from within the Spring framework. Could you please provide us with some Java example code that we can run without Spring?
Thanks in advance Christian
Srikumar Choudhury schoudhu@opentext.com schrieb am Do., 27. Aug. 2020, 06:57:
Dear all,
BaseX 9.4.3 is available, another late-summer maintenance release with new compile-time optimizations and performance tweaks:
Have fun everyone, Your BaseX Team
Dear all,
BaseX 9.4.4 is available. Once again, we have focused on performance tweaks and fixed some minor bugs.
Have fun, thanks for all, Your BaseX Team
Dear all,
Another patch release with bug fixes is online.
All the best, Christian
Dear all,
BaseX 9.5.1 is out. Some minor bugs have been fixed (nothing critical), and some more queries are rewritten to a faster representation.
For example, consecutive for and let clauses will be merged now, and…
for $e in 1 to 10 let $n := $e + 1 order by $n descending return string($n)
…will be optimized to:
reverse(2 to 11) ! string(.)
Have fun with the new release, stay healthy, Your BaseX Team
basex-talk@mailman.uni-konstanz.de