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