It seems with the latest Java 1.8 - java-1.8.0-openjdk-headless-1.8.0.144-0.b01.el7_4.x86_64 on Centos 7, I can no longer drop a database, any ideas?
This is with both 8.5.3 and 8.6.6, and also with the latest snapshot, BaseX867-20170824.195627.zip
[[ $ bin/basexclient -p 1994 Username: admin Password: BaseX 8.6.6 [Client] Try 'help' to get more information.
open rdf
Database 'rdf' was opened in 1.61 ms.
close
Database 'rdf' was closed.
drop db rdf
Improper use? Potential bug? Your feedback is welcome: Contact: basex-talk@mailman.uni-konstanz.de Version: BaseX 8.5.3 Java: Oracle Corporation, 1.8.0_131 OS: Linux, amd64 Stack Trace: java.lang.NoClassDefFoundError: Could not initialize class java.nio.file.FileSystems$DefaultFileSystemHolder at java.nio.file.FileSystems.getDefault(FileSystems.java:176) at java.nio.file.Paths.get(Paths.java:84) at org.basex.io.IOFile.toPath(IOFile.java:335) at org.basex.io.IOFile.delete(IOFile.java:243) at org.basex.io.IOFile.delete(IOFile.java:240) at org.basex.core.cmd.DropDB.drop(DropDB.java:77) at org.basex.core.cmd.DropDB.run(DropDB.java:46) at org.basex.core.Command.run(Command.java:253) at org.basex.core.Command.execute(Command.java:99) at org.basex.server.ClientListener.run(ClientListener.java:136)
open rdf
Database 'rdf' was opened in 1.56 ms.
xquery count(//image)
7370 Query executed in 68.2 ms. ]]
I don’t know if this helps. It could be because of openjdk vs oracle. In FileSystems.java in the oracle JDK getDefault loads:
sun.nio.fs.DefaultFileSystemProvider.create()
I imagine that openjdk wouldn’t use that, perhaps. So, maybe using the oracle JDK would work.
Kendall
On 9/18/17, 4:06 PM, "basex-talk-bounces@mailman.uni-konstanz.de on behalf of Liam R. E. Quin" <basex-talk-bounces@mailman.uni-konstanz.de on behalf of liam@w3.org> wrote:
It seems with the latest Java 1.8 - java-1.8.0-openjdk-headless-1.8.0.144-0.b01.el7_4.x86_64 on Centos 7, I can no longer drop a database, any ideas?
This is with both 8.5.3 and 8.6.6, and also with the latest snapshot, BaseX867-20170824.195627.zip
[[ $ bin/basexclient -p 1994 Username: admin Password: BaseX 8.6.6 [Client] Try 'help' to get more information. > open rdf Database 'rdf' was opened in 1.61 ms. > close Database 'rdf' was closed. > drop db rdf Improper use? Potential bug? Your feedback is welcome: Contact: basex-talk@mailman.uni-konstanz.de Version: BaseX 8.5.3 Java: Oracle Corporation, 1.8.0_131 OS: Linux, amd64 Stack Trace: java.lang.NoClassDefFoundError: Could not initialize class java.nio.file.FileSystems$DefaultFileSystemHolder at java.nio.file.FileSystems.getDefault(FileSystems.java:176) at java.nio.file.Paths.get(Paths.java:84) at org.basex.io.IOFile.toPath(IOFile.java:335) at org.basex.io.IOFile.delete(IOFile.java:243) at org.basex.io.IOFile.delete(IOFile.java:240) at org.basex.core.cmd.DropDB.drop(DropDB.java:77) at org.basex.core.cmd.DropDB.run(DropDB.java:46) at org.basex.core.Command.run(Command.java:253) at org.basex.core.Command.execute(Command.java:99) at org.basex.server.ClientListener.run(ClientListener.java:136)
> open rdf Database 'rdf' was opened in 1.56 ms. > xquery count(//image) 7370 Query executed in 68.2 ms. ]]
-- Liam Quin, W3C, https://urldefense.proofpoint.com/v2/url?u=http-3A__www.w3.org_People_Quin_&... Staff contact for Verifiable Claims WG, XQuery WG
Web slave for https://urldefense.proofpoint.com/v2/url?u=http-3A__www.fromoldbooks.org_&am...
Or build basex using openjdk.
On 9/18/17, 4:30 PM, "basex-talk-bounces@mailman.uni-konstanz.de on behalf of Kendall Shaw" <basex-talk-bounces@mailman.uni-konstanz.de on behalf of kendall.shaw@workday.com> wrote:
I don’t know if this helps. It could be because of openjdk vs oracle. In FileSystems.java in the oracle JDK getDefault loads:
sun.nio.fs.DefaultFileSystemProvider.create()
I imagine that openjdk wouldn’t use that, perhaps. So, maybe using the oracle JDK would work.
Kendall
On 9/18/17, 4:06 PM, "basex-talk-bounces@mailman.uni-konstanz.de on behalf of Liam R. E. Quin" <basex-talk-bounces@mailman.uni-konstanz.de on behalf of liam@w3.org> wrote:
It seems with the latest Java 1.8 - java-1.8.0-openjdk-headless-1.8.0.144-0.b01.el7_4.x86_64 on Centos 7, I can no longer drop a database, any ideas?
This is with both 8.5.3 and 8.6.6, and also with the latest snapshot, BaseX867-20170824.195627.zip
[[ $ bin/basexclient -p 1994 Username: admin Password: BaseX 8.6.6 [Client] Try 'help' to get more information. > open rdf Database 'rdf' was opened in 1.61 ms. > close Database 'rdf' was closed. > drop db rdf Improper use? Potential bug? Your feedback is welcome: Contact: basex-talk@mailman.uni-konstanz.de Version: BaseX 8.5.3 Java: Oracle Corporation, 1.8.0_131 OS: Linux, amd64 Stack Trace: java.lang.NoClassDefFoundError: Could not initialize class java.nio.file.FileSystems$DefaultFileSystemHolder at java.nio.file.FileSystems.getDefault(FileSystems.java:176) at java.nio.file.Paths.get(Paths.java:84) at org.basex.io.IOFile.toPath(IOFile.java:335) at org.basex.io.IOFile.delete(IOFile.java:243) at org.basex.io.IOFile.delete(IOFile.java:240) at org.basex.core.cmd.DropDB.drop(DropDB.java:77) at org.basex.core.cmd.DropDB.run(DropDB.java:46) at org.basex.core.Command.run(Command.java:253) at org.basex.core.Command.execute(Command.java:99) at org.basex.server.ClientListener.run(ClientListener.java:136)
> open rdf Database 'rdf' was opened in 1.56 ms. > xquery count(//image) 7370 Query executed in 68.2 ms. ]]
-- Liam Quin, W3C, https://urldefense.proofpoint.com/v2/url?u=http-3A__www.w3.org_People_Quin_&... Staff contact for Verifiable Claims WG, XQuery WG
Web slave for https://urldefense.proofpoint.com/v2/url?u=http-3A__www.fromoldbooks.org_&am...
On Mon, 2017-09-18 at 23:31 +0000, Kendall Shaw wrote:
[...] maybe using the oracle JDK would work.
Thank you for such a quick answer - it wasn't what i did, but it helped me find the problem.
It seems an OS upgrade had upgraded the Java runtime, and that class is now neither provided nor called... but (and i should have mentioned this) my BaseX server was still running... i was worried about restarting the server in case it wouldn't work, until i resolved the problem, but in fact, restarting the server resolved it.
Kendall On 9/18/17, 4:06 PM, "basex-talk-bounces@mailman.uni-konstanz.de on behalf of Liam R. E. Quin" <basex-talk-bounces@mailman.uni-konstan z.de on behalf of liam@w3.org> wrote: It seems with the latest Java 1.8 - java-1.8.0-openjdk-headless-1.8.0.144-0.b01.el7_4.x86_64 on Centos 7, I can no longer drop a database, any ideas? This is with both 8.5.3 and 8.6.6, and also with the latest snapshot, BaseX867-20170824.195627.zip [[ $ bin/basexclient -p 1994 Username: admin Password: BaseX 8.6.6 [Client] Try 'help' to get more information. > open rdf Database 'rdf' was opened in 1.61 ms. > close Database 'rdf' was closed. > drop db rdf Improper use? Potential bug? Your feedback is welcome: Contact: basex-talk@mailman.uni-konstanz.de Version: BaseX 8.5.3 Java: Oracle Corporation, 1.8.0_131 OS: Linux, amd64 Stack Trace: java.lang.NoClassDefFoundError: Could not initialize class java.nio.file.FileSystems$DefaultFileSystemHolder at java.nio.file.FileSystems.getDefault(FileSystems.java:176) at java.nio.file.Paths.get(Paths.java:84) at org.basex.io.IOFile.toPath(IOFile.java:335) at org.basex.io.IOFile.delete(IOFile.java:243) at org.basex.io.IOFile.delete(IOFile.java:240) at org.basex.core.cmd.DropDB.drop(DropDB.java:77) at org.basex.core.cmd.DropDB.run(DropDB.java:46) at org.basex.core.Command.run(Command.java:253) at org.basex.core.Command.execute(Command.java:99) at org.basex.server.ClientListener.run(ClientListener.java:136) > open rdf Database 'rdf' was opened in 1.56 ms. > xquery count(//image) 7370 Query executed in 68.2 ms. ]] -- Liam Quin, W3C, https://urldefense.proofpoint.com/v2/url?u=ht tp- 3A__www.w3.org_People_Quin_&d=DwICaQ&c=DS6PUFBBr_KiLo7Sjt3ljp5jaW5k2i 9ijVXllEdOozc&r=JgwnBEpN1c-DDmq- Up2QMq9rrGyfWK0KtSpT7dxRglA&m=nQjzwq1- tGGjgX2B1ykqHFTvIIAsUM7apaVuSdPVWkk&s=0s_TznyqfelNVXekmL3_FHwI3_ASwud gsnLjh_k5nDM&e= Staff contact for Verifiable Claims WG, XQuery WG Web slave for https://urldefense.proofpoint.com/v2/url?u=http -3A__www.fromoldbooks.org_&d=DwICaQ&c=DS6PUFBBr_KiLo7Sjt3ljp5jaW5k2i9 ijVXllEdOozc&r=JgwnBEpN1c-DDmq-Up2QMq9rrGyfWK0KtSpT7dxRglA&m=nQjzwq1- tGGjgX2B1ykqHFTvIIAsUM7apaVuSdPVWkk&s=9CUbgtTPIfEhIOd76gJHf8kbpM6WP9l LIRPFG7YGLkc&e=
basex-talk@mailman.uni-konstanz.de