I am running basexhttp in service mode.
At the same time I was using base client to add/delete some documents.
I got this error suddenly.
add /root/policy_testdata/policy_template_6.xml
Improper use? Potential bug? Your feedback is welcome: Contact: basex-talk@mailman.uni-konstanz.de Version: BaseX 7.7.2 Java: Oracle Corporation, 1.7.0_40 OS: Linux, amd64 Stack Trace: java.lang.ArrayIndexOutOfBoundsException: 3 at org.basex.io.random.TableDiskAccess.flush(TableDiskAccess.java:124) at org.basex.data.DiskData.finishUpdate(DiskData.java:212) at org.basex.core.cmd.Add.run(Add.java:109) at org.basex.core.Command.run(Command.java:345) at org.basex.core.Command.exec(Command.java:321) at org.basex.core.Command.execute(Command.java:78) at org.basex.server.ClientListener.run(ClientListener.java:145)
Then I got this when I exited the basexclient
open neuhub_pdp_store
Improper use? Potential bug? Your feedback is welcome: Contact: basex-talk@mailman.uni-konstanz.de Version: BaseX 7.7.2 Java: Oracle Corporation, 1.7.0_40 OS: Linux, amd64 Stack Trace: java.nio.channels.OverlappingFileLockException at sun.nio.ch.SharedFileLockTable.checkList(FileLockTable.java:255) at sun.nio.ch.SharedFileLockTable.add(FileLockTable.java:152) at sun.nio.ch.FileChannelImpl.tryLock(FileChannelImpl.java:1056) at org.basex.io.random.TableDiskAccess.lck(TableDiskAccess.java:183) at org.basex.io.random.TableDiskAccess.sharedLock(TableDiskAccess.java:170) at org.basex.io.random.TableDiskAccess.<init>(TableDiskAccess.java:83) at org.basex.data.DiskData.init(DiskData.java:122) at org.basex.data.DiskData.<init>(DiskData.java:92) at org.basex.core.cmd.Open.open(Open.java:68) at org.basex.core.cmd.Open.run(Open.java:35) at org.basex.core.Command.run(Command.java:345) at org.basex.core.Command.exec(Command.java:321) at org.basex.core.Command.execute(Command.java:78) at org.basex.server.ClientListener.run(ClientListener.java:145)
Then I stopped the server OPTIMIZE Improper use? Potential bug? Your feedback is welcome: Contact: basex-talk@mailman.uni-konstanz.de Version: BaseX 7.7.2 Java: Oracle Corporation, 1.7.0_40 OS: Linux, amd64 Stack Trace: java.lang.RuntimeException: Data Access out of bounds: - pre value: 0 - #used blocks: 0 - #total locks: 0 - access: -1 (0 > -1] at org.basex.util.Util.notexpected(Util.java:53) at org.basex.io.random.TableDiskAccess.cursor(TableDiskAccess.java:488) at org.basex.io.random.TableDiskAccess.read1(TableDiskAccess.java:189) at org.basex.data.Data.kind(Data.java:282) at org.basex.index.resource.Docs.docs(Docs.java:87) at org.basex.index.resource.Docs.init(Docs.java:75) at org.basex.index.resource.Resources.init(Resources.java:64) at org.basex.core.cmd.Optimize.optimize(Optimize.java:80) at org.basex.core.cmd.Optimize.run(Optimize.java:42) at org.basex.core.Command.run(Command.java:345) at org.basex.core.Command.exec(Command.java:321) at org.basex.core.Command.execute(Command.java:78) at org.basex.server.ClientListener.run(ClientListener.java:145)
INSPECT
Improper use? Potential bug? Your feedback is welcome: Contact: basex-talk@mailman.uni-konstanz.de Version: BaseX 7.7.2 Java: Oracle Corporation, 1.7.0_40 OS: Linux, amd64 Stack Trace: java.lang.RuntimeException: Data Access out of bounds: - pre value: 0 - #used blocks: 0 - #total locks: 0 - access: -1 (0 > -1] at org.basex.util.Util.notexpected(Util.java:53) at org.basex.io.random.TableDiskAccess.cursor(TableDiskAccess.java:488) at org.basex.io.random.TableDiskAccess.read1(TableDiskAccess.java:189) at org.basex.data.Data.kind(Data.java:282) at org.basex.core.cmd.Inspect.inspect(Inspect.java:50) at org.basex.core.cmd.Inspect.run(Inspect.java:27) at org.basex.core.Command.run(Command.java:345) at org.basex.core.Command.exec(Command.java:321) at org.basex.core.Command.execute(Command.java:78) at org.basex.server.ClientListener.run(ClientListener.java:145)
Thanks Raj Kamineni [T] +1 571 434 5463 [M] +1 703 342 9358
Hi Raj,
Did you use the GUI and the client/server architecture in parallel (please see [1] for more information)? If no, could you provide us with an sscce?
Christian
[1] http://docs.basex.org/wiki/Startup ___________________________
On Tue, Dec 10, 2013 at 6:41 PM, Kamineni, Rajeshwar rajeshwar.kamineni@neustar.biz wrote:
I am running basexhttp in service mode.
At the same time I was using base client to add/delete some documents.
I got this error suddenly.
add /root/policy_testdata/policy_template_6.xml
Improper use? Potential bug? Your feedback is welcome: Contact: basex-talk@mailman.uni-konstanz.de Version: BaseX 7.7.2 Java: Oracle Corporation, 1.7.0_40 OS: Linux, amd64 Stack Trace: java.lang.ArrayIndexOutOfBoundsException: 3 at org.basex.io.random.TableDiskAccess.flush(TableDiskAccess.java:124) at org.basex.data.DiskData.finishUpdate(DiskData.java:212) at org.basex.core.cmd.Add.run(Add.java:109) at org.basex.core.Command.run(Command.java:345) at org.basex.core.Command.exec(Command.java:321) at org.basex.core.Command.execute(Command.java:78) at org.basex.server.ClientListener.run(ClientListener.java:145)
Then I got this when I exited the basexclient
open neuhub_pdp_store
Improper use? Potential bug? Your feedback is welcome: Contact: basex-talk@mailman.uni-konstanz.de Version: BaseX 7.7.2 Java: Oracle Corporation, 1.7.0_40 OS: Linux, amd64 Stack Trace: java.nio.channels.OverlappingFileLockException at sun.nio.ch.SharedFileLockTable.checkList(FileLockTable.java:255) at sun.nio.ch.SharedFileLockTable.add(FileLockTable.java:152) at sun.nio.ch.FileChannelImpl.tryLock(FileChannelImpl.java:1056) at org.basex.io.random.TableDiskAccess.lck(TableDiskAccess.java:183) at org.basex.io.random.TableDiskAccess.sharedLock(TableDiskAccess.java:170) at org.basex.io.random.TableDiskAccess.<init>(TableDiskAccess.java:83) at org.basex.data.DiskData.init(DiskData.java:122) at org.basex.data.DiskData.<init>(DiskData.java:92) at org.basex.core.cmd.Open.open(Open.java:68) at org.basex.core.cmd.Open.run(Open.java:35) at org.basex.core.Command.run(Command.java:345) at org.basex.core.Command.exec(Command.java:321) at org.basex.core.Command.execute(Command.java:78) at org.basex.server.ClientListener.run(ClientListener.java:145)
Then I stopped the server OPTIMIZE Improper use? Potential bug? Your feedback is welcome: Contact: basex-talk@mailman.uni-konstanz.de Version: BaseX 7.7.2 Java: Oracle Corporation, 1.7.0_40 OS: Linux, amd64 Stack Trace: java.lang.RuntimeException: Data Access out of bounds:
- pre value: 0
- #used blocks: 0
- #total locks: 0
- access: -1 (0 > -1] at org.basex.util.Util.notexpected(Util.java:53) at org.basex.io.random.TableDiskAccess.cursor(TableDiskAccess.java:488) at org.basex.io.random.TableDiskAccess.read1(TableDiskAccess.java:189) at org.basex.data.Data.kind(Data.java:282) at org.basex.index.resource.Docs.docs(Docs.java:87) at org.basex.index.resource.Docs.init(Docs.java:75) at org.basex.index.resource.Resources.init(Resources.java:64) at org.basex.core.cmd.Optimize.optimize(Optimize.java:80) at org.basex.core.cmd.Optimize.run(Optimize.java:42) at org.basex.core.Command.run(Command.java:345) at org.basex.core.Command.exec(Command.java:321) at org.basex.core.Command.execute(Command.java:78) at org.basex.server.ClientListener.run(ClientListener.java:145)
INSPECT
Improper use? Potential bug? Your feedback is welcome: Contact: basex-talk@mailman.uni-konstanz.de Version: BaseX 7.7.2 Java: Oracle Corporation, 1.7.0_40 OS: Linux, amd64 Stack Trace: java.lang.RuntimeException: Data Access out of bounds:
- pre value: 0
- #used blocks: 0
- #total locks: 0
- access: -1 (0 > -1] at org.basex.util.Util.notexpected(Util.java:53) at org.basex.io.random.TableDiskAccess.cursor(TableDiskAccess.java:488) at org.basex.io.random.TableDiskAccess.read1(TableDiskAccess.java:189) at org.basex.data.Data.kind(Data.java:282) at org.basex.core.cmd.Inspect.inspect(Inspect.java:50) at org.basex.core.cmd.Inspect.run(Inspect.java:27) at org.basex.core.Command.run(Command.java:345) at org.basex.core.Command.exec(Command.java:321) at org.basex.core.Command.execute(Command.java:78) at org.basex.server.ClientListener.run(ClientListener.java:145)
Thanks Raj Kamineni [T] +1 571 434 5463 [M] +1 703 342 9358
BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
Thanks for the quick response.
No I didn¹t use the GUI. Just running the basehttp and basexclient.
No Diskspace issues. I have plenty of them. I wasn¹t even doing any heavy load testing.
We are just evaluating
Thanks Raj Kamineni [T] +1 571 434 5463 [M] +1 703 342 9358
On 12/10/13, 12:43 PM, "Christian Grün" christian.gruen@gmail.com wrote:
Hi Raj,
Did you use the GUI and the client/server architecture in parallel (please see [1] for more information)? If no, could you provide us with an sscce?
Christian
[1] http://docs.basex.org/wiki/Startup ___________________________
On Tue, Dec 10, 2013 at 6:41 PM, Kamineni, Rajeshwar rajeshwar.kamineni@neustar.biz wrote:
I am running basexhttp in service mode.
At the same time I was using base client to add/delete some documents.
I got this error suddenly.
add /root/policy_testdata/policy_template_6.xml
Improper use? Potential bug? Your feedback is welcome: Contact: basex-talk@mailman.uni-konstanz.de Version: BaseX 7.7.2 Java: Oracle Corporation, 1.7.0_40 OS: Linux, amd64 Stack Trace: java.lang.ArrayIndexOutOfBoundsException: 3 at org.basex.io.random.TableDiskAccess.flush(TableDiskAccess.java:124) at org.basex.data.DiskData.finishUpdate(DiskData.java:212) at org.basex.core.cmd.Add.run(Add.java:109) at org.basex.core.Command.run(Command.java:345) at org.basex.core.Command.exec(Command.java:321) at org.basex.core.Command.execute(Command.java:78) at org.basex.server.ClientListener.run(ClientListener.java:145)
Then I got this when I exited the basexclient
open neuhub_pdp_store
Improper use? Potential bug? Your feedback is welcome: Contact: basex-talk@mailman.uni-konstanz.de Version: BaseX 7.7.2 Java: Oracle Corporation, 1.7.0_40 OS: Linux, amd64 Stack Trace: java.nio.channels.OverlappingFileLockException at sun.nio.ch.SharedFileLockTable.checkList(FileLockTable.java:255) at sun.nio.ch.SharedFileLockTable.add(FileLockTable.java:152) at sun.nio.ch.FileChannelImpl.tryLock(FileChannelImpl.java:1056) at org.basex.io.random.TableDiskAccess.lck(TableDiskAccess.java:183) at org.basex.io.random.TableDiskAccess.sharedLock(TableDiskAccess.java:170) at org.basex.io.random.TableDiskAccess.<init>(TableDiskAccess.java:83) at org.basex.data.DiskData.init(DiskData.java:122) at org.basex.data.DiskData.<init>(DiskData.java:92) at org.basex.core.cmd.Open.open(Open.java:68) at org.basex.core.cmd.Open.run(Open.java:35) at org.basex.core.Command.run(Command.java:345) at org.basex.core.Command.exec(Command.java:321) at org.basex.core.Command.execute(Command.java:78) at org.basex.server.ClientListener.run(ClientListener.java:145)
Then I stopped the server OPTIMIZE Improper use? Potential bug? Your feedback is welcome: Contact: basex-talk@mailman.uni-konstanz.de Version: BaseX 7.7.2 Java: Oracle Corporation, 1.7.0_40 OS: Linux, amd64 Stack Trace: java.lang.RuntimeException: Data Access out of bounds:
- pre value: 0
- #used blocks: 0
- #total locks: 0
- access: -1 (0 > -1] at org.basex.util.Util.notexpected(Util.java:53) at
org.basex.io.random.TableDiskAccess.cursor(TableDiskAccess.java:488) at org.basex.io.random.TableDiskAccess.read1(TableDiskAccess.java:189) at org.basex.data.Data.kind(Data.java:282) at org.basex.index.resource.Docs.docs(Docs.java:87) at org.basex.index.resource.Docs.init(Docs.java:75) at org.basex.index.resource.Resources.init(Resources.java:64) at org.basex.core.cmd.Optimize.optimize(Optimize.java:80) at org.basex.core.cmd.Optimize.run(Optimize.java:42) at org.basex.core.Command.run(Command.java:345) at org.basex.core.Command.exec(Command.java:321) at org.basex.core.Command.execute(Command.java:78) at org.basex.server.ClientListener.run(ClientListener.java:145)
INSPECT
Improper use? Potential bug? Your feedback is welcome: Contact: basex-talk@mailman.uni-konstanz.de Version: BaseX 7.7.2 Java: Oracle Corporation, 1.7.0_40 OS: Linux, amd64 Stack Trace: java.lang.RuntimeException: Data Access out of bounds:
- pre value: 0
- #used blocks: 0
- #total locks: 0
- access: -1 (0 > -1] at org.basex.util.Util.notexpected(Util.java:53) at
org.basex.io.random.TableDiskAccess.cursor(TableDiskAccess.java:488) at org.basex.io.random.TableDiskAccess.read1(TableDiskAccess.java:189) at org.basex.data.Data.kind(Data.java:282) at org.basex.core.cmd.Inspect.inspect(Inspect.java:50) at org.basex.core.cmd.Inspect.run(Inspect.java:27) at org.basex.core.Command.run(Command.java:345) at org.basex.core.Command.exec(Command.java:321) at org.basex.core.Command.execute(Command.java:78) at org.basex.server.ClientListener.run(ClientListener.java:145)
Thanks Raj Kamineni [T] +1 571 434 5463 [M] +1 703 342 9358
BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
This is quite unusual. If you manage to make it reproducible, we’d be very thankful for your input. ___________________________
Thanks for the quick response.
No I didn¹t use the GUI. Just running the basehttp and basexclient.
No Diskspace issues. I have plenty of them. I wasn¹t even doing any heavy load testing.
We are just evaluating
Thanks Raj Kamineni [T] +1 571 434 5463 [M] +1 703 342 9358
On 12/10/13, 12:43 PM, "Christian Grün" christian.gruen@gmail.com wrote:
Hi Raj,
Did you use the GUI and the client/server architecture in parallel (please see [1] for more information)? If no, could you provide us with an sscce?
Christian
[1] http://docs.basex.org/wiki/Startup ___________________________
On Tue, Dec 10, 2013 at 6:41 PM, Kamineni, Rajeshwar rajeshwar.kamineni@neustar.biz wrote:
I am running basexhttp in service mode.
At the same time I was using base client to add/delete some documents.
I got this error suddenly.
add /root/policy_testdata/policy_template_6.xml
Improper use? Potential bug? Your feedback is welcome: Contact: basex-talk@mailman.uni-konstanz.de Version: BaseX 7.7.2 Java: Oracle Corporation, 1.7.0_40 OS: Linux, amd64 Stack Trace: java.lang.ArrayIndexOutOfBoundsException: 3 at org.basex.io.random.TableDiskAccess.flush(TableDiskAccess.java:124) at org.basex.data.DiskData.finishUpdate(DiskData.java:212) at org.basex.core.cmd.Add.run(Add.java:109) at org.basex.core.Command.run(Command.java:345) at org.basex.core.Command.exec(Command.java:321) at org.basex.core.Command.execute(Command.java:78) at org.basex.server.ClientListener.run(ClientListener.java:145)
Then I got this when I exited the basexclient
open neuhub_pdp_store
Improper use? Potential bug? Your feedback is welcome: Contact: basex-talk@mailman.uni-konstanz.de Version: BaseX 7.7.2 Java: Oracle Corporation, 1.7.0_40 OS: Linux, amd64 Stack Trace: java.nio.channels.OverlappingFileLockException at sun.nio.ch.SharedFileLockTable.checkList(FileLockTable.java:255) at sun.nio.ch.SharedFileLockTable.add(FileLockTable.java:152) at sun.nio.ch.FileChannelImpl.tryLock(FileChannelImpl.java:1056) at org.basex.io.random.TableDiskAccess.lck(TableDiskAccess.java:183) at org.basex.io.random.TableDiskAccess.sharedLock(TableDiskAccess.java:170) at org.basex.io.random.TableDiskAccess.<init>(TableDiskAccess.java:83) at org.basex.data.DiskData.init(DiskData.java:122) at org.basex.data.DiskData.<init>(DiskData.java:92) at org.basex.core.cmd.Open.open(Open.java:68) at org.basex.core.cmd.Open.run(Open.java:35) at org.basex.core.Command.run(Command.java:345) at org.basex.core.Command.exec(Command.java:321) at org.basex.core.Command.execute(Command.java:78) at org.basex.server.ClientListener.run(ClientListener.java:145)
Then I stopped the server OPTIMIZE Improper use? Potential bug? Your feedback is welcome: Contact: basex-talk@mailman.uni-konstanz.de Version: BaseX 7.7.2 Java: Oracle Corporation, 1.7.0_40 OS: Linux, amd64 Stack Trace: java.lang.RuntimeException: Data Access out of bounds:
- pre value: 0
- #used blocks: 0
- #total locks: 0
- access: -1 (0 > -1] at org.basex.util.Util.notexpected(Util.java:53) at
org.basex.io.random.TableDiskAccess.cursor(TableDiskAccess.java:488) at org.basex.io.random.TableDiskAccess.read1(TableDiskAccess.java:189) at org.basex.data.Data.kind(Data.java:282) at org.basex.index.resource.Docs.docs(Docs.java:87) at org.basex.index.resource.Docs.init(Docs.java:75) at org.basex.index.resource.Resources.init(Resources.java:64) at org.basex.core.cmd.Optimize.optimize(Optimize.java:80) at org.basex.core.cmd.Optimize.run(Optimize.java:42) at org.basex.core.Command.run(Command.java:345) at org.basex.core.Command.exec(Command.java:321) at org.basex.core.Command.execute(Command.java:78) at org.basex.server.ClientListener.run(ClientListener.java:145)
INSPECT
Improper use? Potential bug? Your feedback is welcome: Contact: basex-talk@mailman.uni-konstanz.de Version: BaseX 7.7.2 Java: Oracle Corporation, 1.7.0_40 OS: Linux, amd64 Stack Trace: java.lang.RuntimeException: Data Access out of bounds:
- pre value: 0
- #used blocks: 0
- #total locks: 0
- access: -1 (0 > -1] at org.basex.util.Util.notexpected(Util.java:53) at
org.basex.io.random.TableDiskAccess.cursor(TableDiskAccess.java:488) at org.basex.io.random.TableDiskAccess.read1(TableDiskAccess.java:189) at org.basex.data.Data.kind(Data.java:282) at org.basex.core.cmd.Inspect.inspect(Inspect.java:50) at org.basex.core.cmd.Inspect.run(Inspect.java:27) at org.basex.core.Command.run(Command.java:345) at org.basex.core.Command.exec(Command.java:321) at org.basex.core.Command.execute(Command.java:78) at org.basex.server.ClientListener.run(ClientListener.java:145)
Thanks Raj Kamineni [T] +1 571 434 5463 [M] +1 703 342 9358
BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
I will reproduce it.
I was using curl to do rest api delete from a remote machine Then I did add documents to the same db using basexclient locally using ADD command. I will let you know, if any time I reproduce.
We are planning to have our own REST API server that uses XQJ to the baseX Db. We also want to run basexHttp API but will not be exposed to our clients. Just for internal consumption by our own API and few clients.
Do you think an embedded is best option? Or run baseX separately.
Thanks for your suggestion.
Raj Kamineni [T] +1 571 434 5463 [M] +1 703 342 9358
On 12/10/13, 12:54 PM, "Christian Grün" christian.gruen@gmail.com wrote:
This is quite unusual. If you manage to make it reproducible, we’d be very thankful for your input. ___________________________
Thanks for the quick response.
No I didn¹t use the GUI. Just running the basehttp and basexclient.
No Diskspace issues. I have plenty of them. I wasn¹t even doing any heavy load testing.
We are just evaluating
Thanks Raj Kamineni [T] +1 571 434 5463 [M] +1 703 342 9358
On 12/10/13, 12:43 PM, "Christian Grün" christian.gruen@gmail.com wrote:
Hi Raj,
Did you use the GUI and the client/server architecture in parallel (please see [1] for more information)? If no, could you provide us with an sscce?
Christian
[1] http://docs.basex.org/wiki/Startup ___________________________
On Tue, Dec 10, 2013 at 6:41 PM, Kamineni, Rajeshwar rajeshwar.kamineni@neustar.biz wrote:
I am running basexhttp in service mode.
At the same time I was using base client to add/delete some documents.
I got this error suddenly.
add /root/policy_testdata/policy_template_6.xml
Improper use? Potential bug? Your feedback is welcome: Contact: basex-talk@mailman.uni-konstanz.de Version: BaseX 7.7.2 Java: Oracle Corporation, 1.7.0_40 OS: Linux, amd64 Stack Trace: java.lang.ArrayIndexOutOfBoundsException: 3 at org.basex.io.random.TableDiskAccess.flush(TableDiskAccess.java:124) at org.basex.data.DiskData.finishUpdate(DiskData.java:212) at org.basex.core.cmd.Add.run(Add.java:109) at org.basex.core.Command.run(Command.java:345) at org.basex.core.Command.exec(Command.java:321) at org.basex.core.Command.execute(Command.java:78) at org.basex.server.ClientListener.run(ClientListener.java:145)
Then I got this when I exited the basexclient
open neuhub_pdp_store
Improper use? Potential bug? Your feedback is welcome: Contact: basex-talk@mailman.uni-konstanz.de Version: BaseX 7.7.2 Java: Oracle Corporation, 1.7.0_40 OS: Linux, amd64 Stack Trace: java.nio.channels.OverlappingFileLockException at sun.nio.ch.SharedFileLockTable.checkList(FileLockTable.java:255) at sun.nio.ch.SharedFileLockTable.add(FileLockTable.java:152) at sun.nio.ch.FileChannelImpl.tryLock(FileChannelImpl.java:1056) at org.basex.io.random.TableDiskAccess.lck(TableDiskAccess.java:183) at
org.basex.io.random.TableDiskAccess.sharedLock(TableDiskAccess.java:170 ) at org.basex.io.random.TableDiskAccess.<init>(TableDiskAccess.java:83) at org.basex.data.DiskData.init(DiskData.java:122) at org.basex.data.DiskData.<init>(DiskData.java:92) at org.basex.core.cmd.Open.open(Open.java:68) at org.basex.core.cmd.Open.run(Open.java:35) at org.basex.core.Command.run(Command.java:345) at org.basex.core.Command.exec(Command.java:321) at org.basex.core.Command.execute(Command.java:78) at org.basex.server.ClientListener.run(ClientListener.java:145)
Then I stopped the server OPTIMIZE Improper use? Potential bug? Your feedback is welcome: Contact: basex-talk@mailman.uni-konstanz.de Version: BaseX 7.7.2 Java: Oracle Corporation, 1.7.0_40 OS: Linux, amd64 Stack Trace: java.lang.RuntimeException: Data Access out of bounds:
- pre value: 0
- #used blocks: 0
- #total locks: 0
- access: -1 (0 > -1] at org.basex.util.Util.notexpected(Util.java:53) at
org.basex.io.random.TableDiskAccess.cursor(TableDiskAccess.java:488) at org.basex.io.random.TableDiskAccess.read1(TableDiskAccess.java:189) at org.basex.data.Data.kind(Data.java:282) at org.basex.index.resource.Docs.docs(Docs.java:87) at org.basex.index.resource.Docs.init(Docs.java:75) at org.basex.index.resource.Resources.init(Resources.java:64) at org.basex.core.cmd.Optimize.optimize(Optimize.java:80) at org.basex.core.cmd.Optimize.run(Optimize.java:42) at org.basex.core.Command.run(Command.java:345) at org.basex.core.Command.exec(Command.java:321) at org.basex.core.Command.execute(Command.java:78) at org.basex.server.ClientListener.run(ClientListener.java:145)
INSPECT
Improper use? Potential bug? Your feedback is welcome: Contact: basex-talk@mailman.uni-konstanz.de Version: BaseX 7.7.2 Java: Oracle Corporation, 1.7.0_40 OS: Linux, amd64 Stack Trace: java.lang.RuntimeException: Data Access out of bounds:
- pre value: 0
- #used blocks: 0
- #total locks: 0
- access: -1 (0 > -1] at org.basex.util.Util.notexpected(Util.java:53) at
org.basex.io.random.TableDiskAccess.cursor(TableDiskAccess.java:488) at org.basex.io.random.TableDiskAccess.read1(TableDiskAccess.java:189) at org.basex.data.Data.kind(Data.java:282) at org.basex.core.cmd.Inspect.inspect(Inspect.java:50) at org.basex.core.cmd.Inspect.run(Inspect.java:27) at org.basex.core.Command.run(Command.java:345) at org.basex.core.Command.exec(Command.java:321) at org.basex.core.Command.execute(Command.java:78) at org.basex.server.ClientListener.run(ClientListener.java:145)
Thanks Raj Kamineni [T] +1 571 434 5463 [M] +1 703 342 9358
BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
Thanks for your answer. You are invited to also check out our latest stable snapshot [1]. I remember that one issue related to locking had been fixed in 7.8 (although I’m not sure how it should be related to your issue).
We are planning to have our own REST API server that uses XQJ to the baseX Db. We also want to run basexHttp API but will not be exposed to our clients. Just for internal consumption by our own API and few clients.
Do you think an embedded is best option? Or run baseX separately.
There are arguments for both options. If you use the BaseXHTTP, you can take advantage of the existing APIs and still use the BaseX clients to access the same server. When embedding BaseX, you can get better performance and directly work on the XQuery items when necessary, so it may depend on your use case.
Feel free to ask for more details, Christian
How do we get the best of both worlds
Recently we did evaluation of Neo4j (Graph Database) and OpenRdf Sesame (RDF Triple Store). Both are java based , war applications and do have REST API. There is an option to be embedded and still use the provided API with our own custom REST API.
We like to proxy your API as user/password can¹t be used as security. We use API Key management.
My idea is to include the baseX Http servlets in our web.xml - kind of very tight integration. However our servlets/rest api should try to use the same underlying datasource as that BaseXServlet.
Also found that XQJ doesn¹t provide client side transactions.
Makes sense?
Thanks
Raj
On 12/11/13, 2:50 AM, "Christian Grün" christian.gruen@gmail.com wrote:
Thanks for your answer. You are invited to also check out our latest stable snapshot [1]. I remember that one issue related to locking had been fixed in 7.8 (although I¹m not sure how it should be related to your issue).
We are planning to have our own REST API server that uses XQJ to the baseX Db. We also want to run basexHttp API but will not be exposed to our clients. Just for internal consumption by our own API and few clients.
Do you think an embedded is best option? Or run baseX separately.
There are arguments for both options. If you use the BaseXHTTP, you can take advantage of the existing APIs and still use the BaseX clients to access the same server. When embedding BaseX, you can get better performance and directly work on the XQuery items when necessary, so it may depend on your use case.
Feel free to ask for more details, Christian
How do we get the best of both worlds
[...]
Makes sense?
…maybe ;) I would recommend you to first have a closer look at our documentation [1], which provides many insights how we and other people work with BaseX.
HI
xqc = baseXRepository.getConnection(); xqc.setAutoCommit(false);
For setAutoCommit(false) I got the error - Client-side transactions are unsupported.
I was wondering if its basex or the xqj driver that I am using from http://xqj.net/basex/
Raj
On 12/11/13, 11:43 AM, "Christian Grün" christian.gruen@gmail.com wrote:
How do we get the best of both worlds
[...]
Makes sense?
Šmaybe ;) I would recommend you to first have a closer look at our documentation [1], which provides many insights how we and other people work with BaseX.
For setAutoCommit(false) I got the error - Client-side transactions are unsupported.
I was wondering if its basex or the xqj driver that I am using from http://xqj.net/basex/
It’s due to the XQJ driver, so I can’t tell more about that.. Christian
basex-talk@mailman.uni-konstanz.de