Dear Team
When i querying on same collection at same
time(multiple hits) i am getting this probelm.To run the query we are using the
below steps.
Context context = new Context();
context.globalopts.set(GlobalOptions.DBPATH,"DBPATH");
String result = new XQuery(query).execute(context);
context.close();
Thanks & Regards
Chandra Sekhar
________________________________________
From: Christian Grün <[email protected]>
Sent: Thursday, August 28, 2014 6:39 PM
To: Chandrasekhar
Cc: [email protected]
Subject: Re: [basex-talk] Reg : Over Laping Exception
Dear Chandrasehkar,
this error message can usually be derived to an unorthodox way of
using our APIs, or mixing direct and server-side access to BaseX.
Could you please give us more feedback on how the error was triggered?
Best,
Christian
On Thu, Aug 28, 2014 at 2:40 PM, Chandrasekhar
<[email protected]> wrote:
> Dear Team
>
> We are getting the below exception wen xquery
> executing.Please do the needful
>
>
> org.basex.core.BaseXException: Improper
> use? Potential bug? Your feedback is welcome:
> Contact: [email protected]
> Version: BaseX 7.9
> Java: Oracle Corporation, 1.7.0_07
> OS: Windows 7, x86
> 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:1017)
> at org.basex.io.random.TableDiskAccess.lck(TableDiskAccess.java:188)
> at
> org.basex.io.random.TableDiskAccess.sharedLock(TableDiskAccess.java:175)
> at org.basex.io.random.TableDiskAccess.<init>(TableDiskAccess.java:88)
> 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.query.QueryResources.open(QueryResources.java:263)
>
>
> The information contained in this e-mail and any accompanying documents may
> contain information that is confidential or otherwise protected from
> disclosure. If you are not the intended recipient of this message, or if
> this message has been addressed to you in error, please immediately alert
> the sender by reply e-mail and then delete this message, including any
> attachments. Any dissemination, distribution or other use of the contents of
> this message by anyone other than the intended recipient is strictly
> prohibited.
The information contained in this e-mail and any accompanying documents may
contain information that is confidential or otherwise protected from
disclosure. If you are not the intended recipient of this message, or if this
message has been addressed to you in error, please immediately alert the sender
by reply e-mail and then delete this message, including any attachments. Any
dissemination, distribution or other use of the contents of this message by
anyone other than the intended recipient is strictly prohibited.