java.lang.NoClassDefFoundError: Could not initialize class java.nio.file.FileSystems$DefaultFileSystemHolder
Tuesday, 19 September 2017 · 4 messages
KS
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
Quoted text · basex-talk-bounces at mailman.uni-konstanz.de on behalf of Liam R. E. Quin · 1 line
On 9/18/17, 4:06 PM, "basex-talk-bounces at mailman.uni-konstanz.de on behalf of Liam R. E. Quin" <basex-talk-bounces at mailman.uni-konstanz.de on behalf of liam at 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.
Quoted text · Liam R. E. Quin · 1 line
> open rdf
Database 'rdf' was opened in 1.61 ms.
Quoted text · Liam R. E. Quin · 1 line
> close
Database 'rdf' was closed.
Quoted text · Liam R. E. Quin · 1 line
> drop db rdf
Improper use? Potential bug? Your feedback is welcome:
Contact: basex-talk at 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)Quoted text · Liam R. E. Quin · 1 line
> open rdf
Database 'rdf' was opened in 1.56 ms.
Quoted text · Liam R. E. Quin · 1 line
> 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_&d=DwICaQ&c=DS6PUFBBr_KiLo7Sjt3ljp5jaW5k2i9ijVXllEdOozc&r=JgwnBEpN1c-DDmq-Up2QMq9rrGyfWK0KtSpT7dxRglA&m=nQjzwq1-tGGjgX2B1ykqHFTvIIAsUM7apaVuSdPVWkk&s=0s_TznyqfelNVXekmL3_FHwI3_ASwudgsnLjh_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_KiLo7Sjt3ljp5jaW5k2i9ijVXllEdOozc&r=JgwnBEpN1c-DDmq-Up2QMq9rrGyfWK0KtSpT7dxRglA&m=nQjzwq1-tGGjgX2B1ykqHFTvIIAsUM7apaVuSdPVWkk&s=9CUbgtTPIfEhIOd76gJHf8kbpM6WP9lLIRPFG7YGLkc&e=
KS
Kendall Shaw19 Sep 2017 01:31 #
Or build basex using openjdk.
Quoted text · basex-talk-bounces at mailman.uni-konstanz.de on behalf of Kendall Shaw · 1 line
On 9/18/17, 4:30 PM, "basex-talk-bounces at mailman.uni-konstanz.de on behalf of Kendall Shaw" <basex-talk-bounces at mailman.uni-konstanz.de on behalf of kendall.shaw at 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
Quoted text · basex-talk-bounces at mailman.uni-konstanz.de on behalf of Liam R. E. Quin · 1 line
On 9/18/17, 4:06 PM, "basex-talk-bounces at mailman.uni-konstanz.de on behalf of Liam R. E. Quin" <basex-talk-bounces at mailman.uni-konstanz.de on behalf of liam at 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.
Quoted text · Kendall Shaw · 1 line
> open rdf
Database 'rdf' was opened in 1.61 ms.
Quoted text · Kendall Shaw · 1 line
> close
Database 'rdf' was closed.
Quoted text · Kendall Shaw · 1 line
> drop db rdf
Improper use? Potential bug? Your feedback is welcome:
Contact: basex-talk at 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)Quoted text · Kendall Shaw · 1 line
> open rdf
Database 'rdf' was opened in 1.56 ms.
Quoted text · Kendall Shaw · 1 line
> 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_&d=DwICaQ&c=DS6PUFBBr_KiLo7Sjt3ljp5jaW5k2i9ijVXllEdOozc&r=JgwnBEpN1c-DDmq-Up2QMq9rrGyfWK0KtSpT7dxRglA&m=nQjzwq1-tGGjgX2B1ykqHFTvIIAsUM7apaVuSdPVWkk&s=0s_TznyqfelNVXekmL3_FHwI3_ASwudgsnLjh_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_KiLo7Sjt3ljp5jaW5k2i9ijVXllEdOozc&r=JgwnBEpN1c-DDmq-Up2QMq9rrGyfWK0KtSpT7dxRglA&m=nQjzwq1-tGGjgX2B1ykqHFTvIIAsUM7apaVuSdPVWkk&s=9CUbgtTPIfEhIOd76gJHf8kbpM6WP9lLIRPFG7YGLkc&e=
LQ
Liam R. E. Quin19 Sep 2017 03:07 #
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.
Quoted text · 1 line
> open rdf
Database 'rdf' was opened in 1.61 ms.
Quoted text · 1 line
> close
Database 'rdf' was closed.
Quoted text · 1 line
> drop db rdf
Improper use? Potential bug? Your feedback is welcome:
Contact: basex-talk at 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)Quoted text · 1 line
> open rdf
Database 'rdf' was opened in 1.56 ms.
Quoted text · 1 line
> xquery count(//image)
7370
Query executed in 68.2 ms.
]]
--
Liam Quin, W3C, http://www.w3.org/People/Quin/
Staff contact for Verifiable Claims WG, XQuery WG
Web slave for http://www.fromoldbooks.org/
LQ
Quoted text · Kendall Shaw · 2 lines
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.
Quoted text · Kendall Shaw · 73 lines
> Kendall > > On 9/18/17, 4:06 PM, "basex-talk-bounces at mailman.uni-konstanz.de > on behalf of Liam R. E. Quin" <basex-talk-bounces at mailman.uni-konstan > z.de on behalf of liam at 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 at 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= > > > >
--
Liam Quin, W3C, http://www.w3.org/People/Quin/
Staff contact for Verifiable Claims WG, SVG WG, XQuery WG
Web slave for http://www.fromoldbooks.org/
Written for BaseX 8.6. BaseX may have changed since: please check the current documentation.
⚡Generated with XQuery