db:copy
Thursday, 16 November 2023 · 6 messages · last reply 21 Nov 2023
ВВ
Ветошкин Владимир16 Nov 2023 12:56 #
Hi everyone.
Since I have changed jdk version to 12 (azul) - I get error, when I copy database (
db:copy). It's only in basexserver. When I run basex - everything is ok.
Error:
Improper use? Potential bug? Your feedback is welcome: Contact: basex-talk at mailman.uni-konstanz.de Version: BaseX 9.1.2 Java: Azul Systems, Inc., 12.0.2 OS: Linux, amd64 Stack Trace: java.lang.NoClassDefFoundError: Could not initialize class sun.nio.fs.UnixCopyFile at java.base/sun.nio.fs.UnixFileSystemProvider.copy(UnixFileSystemProvider.java:258) at java.base/java.nio.file.Files.copy(Files.java:1297) at org.basex.io.IOFile.copyTo(IOFile.java:319) at org.basex.core.cmd.Copy.copy(Copy.java:83) at org.basex.query.up.primitives.name.DBCopy.apply(DBCopy.java:43) at org.basex.query.up.NameUpdates.apply(NameUpdates.java:58) at org.basex.query.up.ContextModifier.apply(ContextModifier.java:132) at org.basex.query.up.Updates.apply(Updates.java:156) at org.basex.query.QueryContext.iter(QueryContext.java:351) at org.basex.query.QueryProcessor.iter(QueryProcessor.java:90) at org.basex.core.cmd.AQuery.query(AQuery.java:109) at org.basex.core.cmd.XQuery.run(XQuery.java:22) at org.basex.core.Command.run(Command.java:257) at org.basex.core.Command.execute(Command.java:93) at org.basex.server.ClientListener.run(ClientListener.java:140)--
С уважением,
Ветошкин Владимир Владимирович
CG
Christian Grün16 Nov 2023 13:00 #
Hi, this definitely looks like a bug in the JDK context. What happens if you upgrade your JDK to a newer version?
Best, Christian
Quoted text · Ветошкин Владимир · 35 lines
On Thu, Nov 16, 2023 at 12:56 PM Ветошкин Владимир <en-trance at yandex.ru> wrote: > > Hi everyone. > > Since I have changed jdk version to 12 (azul) - I get error, when I copy > database (db:copy). > It's only in basexserver. When I run basex - everything is ok. > > Error: > Improper use? Potential bug? Your feedback is welcome: Contact: > basex-talk at mailman.uni-konstanz.de Version: BaseX 9.1.2 Java: Azul > Systems, Inc., 12.0.2 OS: Linux, amd64 Stack Trace: > java.lang.NoClassDefFoundError: Could not initialize class > sun.nio.fs.UnixCopyFile at > java.base/sun.nio.fs.UnixFileSystemProvider.copy(UnixFileSystemProvider.java:258) > at java.base/java.nio.file.Files.copy(Files.java:1297) at > org.basex.io.IOFile.copyTo(IOFile.java:319) at > org.basex.core.cmd.Copy.copy(Copy.java:83) at > org.basex.query.up.primitives.name.DBCopy.apply(DBCopy.java:43) at > org.basex.query.up.NameUpdates.apply(NameUpdates.java:58) at > org.basex.query.up.ContextModifier.apply(ContextModifier.java:132) at > org.basex.query.up.Updates.apply(Updates.java:156) at > org.basex.query.QueryContext.iter(QueryContext.java:351) at > org.basex.query.QueryProcessor.iter(QueryProcessor.java:90) at > org.basex.core.cmd.AQuery.query(AQuery.java:109) at > org.basex.core.cmd.XQuery.run(XQuery.java:22) at > org.basex.core.Command.run(Command.java:257) at > org.basex.core.Command.execute(Command.java:93) at > org.basex.server.ClientListener.run(ClientListener.java:140) > -- > С уважением, > Ветошкин Владимир Владимирович > >
ВВ
Ветошкин Владимир16 Nov 2023 13:17 #
Hi, Christian.
I can't check it now. Maybe later.
I confuse with the fact, that basexserver failes, but basex did not. Are they use different methods to copy databases? Or that jdk bug only?
Quoted text · Christian Grün · 20 lines
16.11.2023, 15:00, "Christian Grün" <christian.gruen at gmail.com>: > Hi, this definitely looks like a bug in the JDK context. What happens if you upgrade your JDK to a newer version? > Best, Christian > > > On Thu, Nov 16, 2023 at 12:56 PM Ветошкин Владимир <en-trance at yandex.ru> wrote: > > > > > Hi everyone. > > > > Since I have changed jdk version to 12 (azul) - I get error, when I copy database (db:copy). > > It's only in basexserver. When I run basex - everything is ok. > > > > Error: > > Improper use? Potential bug? Your feedback is welcome: Contact: basex-talk at mailman.uni-konstanz.de Version: BaseX 9.1.2 Java: Azul Systems, Inc., 12.0.2 OS: Linux, amd64 Stack Trace: java.lang.NoClassDefFoundError: Could not initialize class sun.nio.fs.UnixCopyFile at java.base/sun.nio.fs.UnixFileSystemProvider.copy(UnixFileSystemProvider.java:258) at java.base/java.nio.file.Files.copy(Files.java:1297) at org.basex.io.IOFile.copyTo(IOFile.java:319) at org.basex.core.cmd.Copy.copy(Copy.java:83) at org.basex.query.up.primitives.name.DBCopy.apply(DBCopy.java:43) at org.basex.query.up.NameUpdates.apply(NameUpdates.java:58) at org.basex.query.up.ContextModifier.apply(ContextModifier.java:132) at org.basex.query.up.Updates.apply(Updates.java:156) at org.basex.query.QueryContext.iter(QueryContext.java:351) at org.basex.query.QueryProcessor.iter(QueryProcessor.java:90) at org.basex.core.cmd.AQuery.query(AQuery.java:109) at org.basex.core.cmd.XQuery.run(XQuery.java:22) at org.basex.core.Command.run(Command.java:257) at org.basex.core.Command.execute(Command.java:93) at org.basex.server.ClientListener.run(ClientListener.java:140) > > > > -- > > С уважением, > > Ветошкин Владимир Владимирович > >
--
С уважением,
Ветошкин Владимир Владимирович
CG
Christian Grün16 Nov 2023 13:40 #
Quoted text · Ветошкин Владимир · 3 lines
> > Are they use different methods to copy databases? Or that jdk bug only? >
It’s exactly the same; when
db:copy is called, the function isn’t aware of whether it has been called by a server or standalone/client instance.
Are you sure that both the server and the standalone version of BaseX use the same JRE? You can e.g. check this with the following query:for $p in proc:property-names()[starts-with(., 'java.vm.')]
return $p || ': ' || proc:property($p)Quoted text · Ветошкин Владимир · 50 lines
> 16.11.2023, 15:00, "Christian Grün" <christian.gruen at gmail.com>: > > Hi, this definitely looks like a bug in the JDK context. What happens if > you upgrade your JDK to a newer version? > Best, Christian > > > On Thu, Nov 16, 2023 at 12:56 PM Ветошкин Владимир <en-trance at yandex.ru> > wrote: > > > Hi everyone. > > Since I have changed jdk version to 12 (azul) - I get error, when I copy > database (db:copy). > It's only in basexserver. When I run basex - everything is ok. > > Error: > Improper use? Potential bug? Your feedback is welcome: Contact: > basex-talk at mailman.uni-konstanz.de Version: BaseX 9.1.2 Java: Azul > Systems, Inc., 12.0.2 OS: Linux, amd64 Stack Trace: > java.lang.NoClassDefFoundError: Could not initialize class > sun.nio.fs.UnixCopyFile at > java.base/sun.nio.fs.UnixFileSystemProvider.copy(UnixFileSystemProvider.java:258) > at java.base/java.nio.file.Files.copy(Files.java:1297) at > org.basex.io.IOFile.copyTo(IOFile.java:319) at > org.basex.core.cmd.Copy.copy(Copy.java:83) at > org.basex.query.up.primitives.name.DBCopy.apply(DBCopy.java:43) at > org.basex.query.up.NameUpdates.apply(NameUpdates.java:58) at > org.basex.query.up.ContextModifier.apply(ContextModifier.java:132) at > org.basex.query.up.Updates.apply(Updates.java:156) at > org.basex.query.QueryContext.iter(QueryContext.java:351) at > org.basex.query.QueryProcessor.iter(QueryProcessor.java:90) at > org.basex.core.cmd.AQuery.query(AQuery.java:109) at > org.basex.core.cmd.XQuery.run(XQuery.java:22) at > org.basex.core.Command.run(Command.java:257) at > org.basex.core.Command.execute(Command.java:93) at > org.basex.server.ClientListener.run(ClientListener.java:140) > -- > С уважением, > Ветошкин Владимир Владимирович > > > > > -- > С уважением, > Ветошкин Владимир Владимирович > >
ВВ
Ветошкин Владимир16 Nov 2023 13:49 #
Yes,
Result of the server instance:
java.vm.compressedOopsMode: 32-bit java.vm.info: mixed mode, sharing java.vm.name: OpenJDK 64-Bit Server VM java.vm.specification.name: Java Virtual Machine Specification java.vm.specification.vendor: Oracle Corporation java.vm.specification.version: 12 java.vm.vendor: Azul Systems, Inc. java.vm.version: 12.0.2+3
Result of the standalone instance:
java.vm.compressedOopsMode: 32-bit
java.vm.info: mixed mode, sharing
java.vm.name: OpenJDK 64-Bit Server VM
java.vm.specification.name: Java Virtual Machine Specification java.vm.specification.vendor: Oracle Corporation
java.vm.specification.version: 12
java.vm.vendor: Azul Systems, Inc.
java.vm.version: 12.0.2+3
Quoted text · Christian Grün · 42 lines
16.11.2023, 15:40, "Christian Grün" <christian.gruen at gmail.com>: > > Are they use different methods to copy databases? Or that jdk bug only? > > It’s exactly the same; when db:copy is called, the function isn’t aware of whether it has been called by a server or standalone/client instance. > > Are you sure that both the server and the standalone version of BaseX use the same JRE? You can e.g. check this with the following query: > > for $p in proc:property-names()[starts-with(., 'java.vm.')] > return $p || ': ' || proc:property($p) > > > > > > > > 16.11.2023, 15:00, "Christian Grün" <christian.gruen at gmail.com>: > > > > > Hi, this definitely looks like a bug in the JDK context. What happens if you upgrade your JDK to a newer version? > > > Best, Christian > > > > > > > > > On Thu, Nov 16, 2023 at 12:56 PM Ветошкин Владимир <en-trance at yandex.ru> wrote: > > > > > > > > > > > Hi everyone. > > > > > > > > Since I have changed jdk version to 12 (azul) - I get error, when I copy database (db:copy). > > > > It's only in basexserver. When I run basex - everything is ok. > > > > > > > > Error: > > > > Improper use? Potential bug? Your feedback is welcome: Contact: basex-talk at mailman.uni-konstanz.de Version: BaseX 9.1.2 Java: Azul Systems, Inc., 12.0.2 OS: Linux, amd64 Stack Trace: java.lang.NoClassDefFoundError: Could not initialize class sun.nio.fs.UnixCopyFile at java.base/sun.nio.fs.UnixFileSystemProvider.copy(UnixFileSystemProvider.java:258) at java.base/java.nio.file.Files.copy(Files.java:1297) at org.basex.io.IOFile.copyTo(IOFile.java:319) at org.basex.core.cmd.Copy.copy(Copy.java:83) at org.basex.query.up.primitives.name.DBCopy.apply(DBCopy.java:43) at org.basex.query.up.NameUpdates.apply(NameUpdates.java:58) at org.basex.query.up.ContextModifier.apply(ContextModifier.java:132) at org.basex.query.up.Updates.apply(Updates.java:156) at org.basex.query.QueryContext.iter(QueryContext.java:351) at org.basex.query.QueryProcessor.iter(QueryProcessor.java:90) at org.basex.core.cmd.AQuery.query(AQuery.java:109) at org.basex.core.cmd.XQuery.run(XQuery.java:22) at org.basex.core.Command.run(Command.java:257) at org.basex.core.Command.execute(Command.java:93) at org.basex.server.ClientListener.run(ClientListener.java:140) > > > > > > > > -- > > > > С уважением, > > > > Ветошкин Владимир Владимирович > > > > > > > > > > -- > > С уважением, > > Ветошкин Владимир Владимирович > >
--
С уважением,
Ветошкин Владимир Владимирович
ВВ
Ветошкин Владимир21 Nov 2023 14:47 #
Hi,
I have upgraded java version to 21. The problem is gone.
Thank you.
Quoted text · Ветошкин Владимир · 70 lines
16.11.2023, 15:49, "Ветошкин Владимир" <en-trance at yandex.ru>: > Yes, > > Result of the server instance: > java.vm.compressedOopsMode: 32-bit java.vm.info: mixed mode, sharing java.vm.name: OpenJDK 64-Bit Server VM java.vm.specification.name: Java Virtual Machine Specification java.vm.specification.vendor: Oracle Corporation java.vm.specification.version: 12 java.vm.vendor: Azul Systems, Inc. java.vm.version: 12.0.2+3 > > Result of the standalone instance: > java.vm.compressedOopsMode: 32-bit > java.vm.info: mixed mode, sharing > java.vm.name: OpenJDK 64-Bit Server VM > java.vm.specification.name: Java Virtual Machine Specification > java.vm.specification.vendor: Oracle Corporation > java.vm.specification.version: 12 > java.vm.vendor: Azul Systems, Inc. > java.vm.version: 12.0.2+3 > > > > > > > 16.11.2023, 15:40, "Christian Grün" <christian.gruen at gmail.com>: > > > > Are they use different methods to copy databases? Or that jdk bug only? > > > > It’s exactly the same; when db:copy is called, the function isn’t aware of whether it has been called by a server or standalone/client instance. > > > > Are you sure that both the server and the standalone version of BaseX use the same JRE? You can e.g. check this with the following query: > > > > for $p in proc:property-names()[starts-with(., 'java.vm.')] > > return $p || ': ' || proc:property($p) > > > > > > > > > > > > > > > 16.11.2023, 15:00, "Christian Grün" <christian.gruen at gmail.com>: > > > > > > > Hi, this definitely looks like a bug in the JDK context. What happens if you upgrade your JDK to a newer version? > > > > Best, Christian > > > > > > > > > > > > On Thu, Nov 16, 2023 at 12:56 PM Ветошкин Владимир <en-trance at yandex.ru> wrote: > > > > > > > > > > > > > > Hi everyone. > > > > > > > > > > Since I have changed jdk version to 12 (azul) - I get error, when I copy database (db:copy). > > > > > It's only in basexserver. When I run basex - everything is ok. > > > > > > > > > > Error: > > > > > Improper use? Potential bug? Your feedback is welcome: Contact: basex-talk at mailman.uni-konstanz.de Version: BaseX 9.1.2 Java: Azul Systems, Inc., 12.0.2 OS: Linux, amd64 Stack Trace: java.lang.NoClassDefFoundError: Could not initialize class sun.nio.fs.UnixCopyFile at java.base/sun.nio.fs.UnixFileSystemProvider.copy(UnixFileSystemProvider.java:258) at java.base/java.nio.file.Files.copy(Files.java:1297) at org.basex.io.IOFile.copyTo(IOFile.java:319) at org.basex.core.cmd.Copy.copy(Copy.java:83) at org.basex.query.up.primitives.name.DBCopy.apply(DBCopy.java:43) at org.basex.query.up.NameUpdates.apply(NameUpdates.java:58) at org.basex.query.up.ContextModifier.apply(ContextModifier.java:132) at org.basex.query.up.Updates.apply(Updates.java:156) at org.basex.query.QueryContext.iter(QueryContext.java:351) at org.basex.query.QueryProcessor.iter(QueryProcessor.java:90) at org.basex.core.cmd.AQuery.query(AQuery.java:109) at org.basex.core.cmd.XQuery.run(XQuery.java:22) at org.basex.core.Command.run(Command.java:257) at org.basex.core.Command.execute(Command.java:93) at org.basex.server.ClientListener.run(ClientListener.java:140) > > > > > > > > > > -- > > > > > С уважением, > > > > > Ветошкин Владимир Владимирович > > > > > > > > > > > > > > -- > > > С уважением, > > > Ветошкин Владимир Владимирович > > > > > > -- > С уважением, > Ветошкин Владимир Владимирович >
--
С уважением,
Ветошкин Владимир Владимирович
Written for BaseX 10.7. BaseX may have changed since: please check the current documentation.
⚡Generated with XQuery