Dear Chandra,

Please use the client/server architecture of BaseX if you want to run
multiple queries in parallel. After all, it's also possible to do
multiple queries without a running server instance, but it's usually
not possible to make it work without spending more time with the BaseX
code.

Please take your time and have a look at our documentation, it should
give you some more instructions (e.g. [1,2,3]).

All the best,
Christian

[1] http://docs.basex.org/wiki/Startup
[2] http://docs.basex.org/wiki/Transactions
[3] http://docs.basex.org/wiki/Clients


On Thu, Aug 28, 2014 at 3:32 PM, Chandrasekhar
<chandrasekha...@intense.in> wrote:
> 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 <christian.gr...@gmail.com>
> Sent: Thursday, August 28, 2014 6:39 PM
> To: Chandrasekhar
> Cc: basex-talk@mailman.uni-konstanz.de
> 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
> <chandrasekha...@intense.in> 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: basex-talk@mailman.uni-konstanz.de
>> 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.

Reply via email to