You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by Karl Wettin <ka...@gmail.com> on 2007/10/08 15:57:43 UTC
Re: Lucene indexing error
8 okt 2007 kl. 15.58 skrev Narendra yadala:
> Hi All
>
> I am getting this error when I am doing Indexing using Lucene.
> java.io.IOException: Access is denied on
> java.io.WinNTFileSystem.createFileExclusively
> Please let me know if there is any fix for this bug.
Please supply the complete stack trace.
--
karl
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org
Re: Lucene indexing error
Posted by Narendra yadala <na...@gmail.com>.
Thanks very much for the information. I did not include the other portion of
the stack trace because it was totally belonging to Jackrabbit library. Now
I guess the problem is due to the fact that Jackrabbit's latest version is
using Lucene 2.0 for its indexing purposes. So I will search some patch
which involves fixing this bug for Jackrabbit.
Regards
Narendra
On 10/8/07, Chris Hostetter <ho...@fucit.org> wrote:
>
>
> : I think this bug is related to the one posted on Lucene JIRA:
> : http://issues.apache.org/jira/browse/LUCENE-665
> : Please let me know if there is any solution to this bug of Lucene.
>
> note that the issue is "Closed, Resolution: Won't Fix" it was determined
> that ultimately there was no bug in Lucene. The problem related to other
> windows programs attempting to "monitor" all new files and thus
> interfereing with lucene's ability to modify those files.
>
> if you read the full details of the issue, you'll also see that
> investigations into trying to introduce workarrounds for Windows users
> ended when it was determined that a new "lockless commits" feature didn't
> seem to suffer from this problem. Lockless commits were first releases in
> 2.1, on 2007-02-14.
>
> Which begs the question: which version of Lucene are you using?
>
> (Incidently: what you posted was not a full stack trace ... it was a part
> of a stack trace ... since we have no idea what else you excluded, we have
> no way of kowing if there was other useful information in the rest of the
> stack trace. Even if it didn't seem relevent to you, knowing the
> context of where the exception was caught is frequently extrmely helpful
> in debugging the cause.)
>
>
>
> -Hoss
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>
Re: Lucene indexing error
Posted by Chris Hostetter <ho...@fucit.org>.
: I think this bug is related to the one posted on Lucene JIRA:
: http://issues.apache.org/jira/browse/LUCENE-665
: Please let me know if there is any solution to this bug of Lucene.
note that the issue is "Closed, Resolution: Won't Fix" it was determined
that ultimately there was no bug in Lucene. The problem related to other
windows programs attempting to "monitor" all new files and thus
interfereing with lucene's ability to modify those files.
if you read the full details of the issue, you'll also see that
investigations into trying to introduce workarrounds for Windows users
ended when it was determined that a new "lockless commits" feature didn't
seem to suffer from this problem. Lockless commits were first releases in
2.1, on 2007-02-14.
Which begs the question: which version of Lucene are you using?
(Incidently: what you posted was not a full stack trace ... it was a part
of a stack trace ... since we have no idea what else you excluded, we have
no way of kowing if there was other useful information in the rest of the
stack trace. Even if it didn't seem relevent to you, knowing the
context of where the exception was caught is frequently extrmely helpful
in debugging the cause.)
-Hoss
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org
Re: Lucene indexing error
Posted by Narendra yadala <na...@gmail.com>.
But then the core problem is that the index that is created is in a totally
corrupted state.
So deleting or keeping the lock does not make a difference as the Index
itself is not created properly.
The problem arises when the index is getting created itself.
Regards
Narendra
On 10/8/07, saikrishna venkata pendyala <pv...@gmail.com> wrote:
>
> Lucene creates an lock on the index before using it and then unlock the
> index, after using it. If the lucene is interuptted and is closed by force
> the, index remains in locked state and it cannot be used.
>
> Generally in linux lucene lock information file is create in /tmp
> directory.
> Delete the lock file to unlock the lucene index and index can be used
> again.
>
>
> On 10/8/07, Narendra yadala <na...@gmail.com> wrote:
> >
> > I think this bug is related to the one posted on Lucene JIRA:
> > http://issues.apache.org/jira/browse/LUCENE-665
> > Please let me know if there is any solution to this bug of Lucene.
> >
> > Thanks
> > Narendra
> >
> >
> > On 10/8/07, Joe Attardi <ja...@gmail.com> wrote:
> > >
> > > On 10/8/07, Narendra yadala <na...@gmail.com> wrote:
> > > >
> > > > I do have permission to access Lucene files. They reside on my local
> > > > machine.
> > > > But still this is giving the error.I am using Windows XP operationg
> > > > system.
> > > >
> > >
> > > Well, since you are opening an IndexReader (as evidenced by your stack
> > > trace), I assume that the file that Lucene is trying to create is a
> lock
> > > file. Do you have any stale lock files, or any other kind of weird
> > > situation
> > > that might prevent a lock file from being created in your index
> > directory?
> > >
> > > What if you try a different directory for your index - do you get the
> > same
> > > error then?
> > >
> > > --
> > > Joe Attardi
> > > jattardi@gmail.com
> > > http://thinksincode.blogspot.com/
> > >
> >
>
Re: Lucene indexing error
Posted by saikrishna venkata pendyala <pv...@gmail.com>.
Lucene creates an lock on the index before using it and then unlock the
index, after using it. If the lucene is interuptted and is closed by force
the, index remains in locked state and it cannot be used.
Generally in linux lucene lock information file is create in /tmp directory.
Delete the lock file to unlock the lucene index and index can be used again.
On 10/8/07, Narendra yadala <na...@gmail.com> wrote:
>
> I think this bug is related to the one posted on Lucene JIRA:
> http://issues.apache.org/jira/browse/LUCENE-665
> Please let me know if there is any solution to this bug of Lucene.
>
> Thanks
> Narendra
>
>
> On 10/8/07, Joe Attardi <ja...@gmail.com> wrote:
> >
> > On 10/8/07, Narendra yadala <na...@gmail.com> wrote:
> > >
> > > I do have permission to access Lucene files. They reside on my local
> > > machine.
> > > But still this is giving the error.I am using Windows XP operationg
> > > system.
> > >
> >
> > Well, since you are opening an IndexReader (as evidenced by your stack
> > trace), I assume that the file that Lucene is trying to create is a lock
> > file. Do you have any stale lock files, or any other kind of weird
> > situation
> > that might prevent a lock file from being created in your index
> directory?
> >
> > What if you try a different directory for your index - do you get the
> same
> > error then?
> >
> > --
> > Joe Attardi
> > jattardi@gmail.com
> > http://thinksincode.blogspot.com/
> >
>
Re: Lucene indexing error
Posted by Narendra yadala <na...@gmail.com>.
I think this bug is related to the one posted on Lucene JIRA:
http://issues.apache.org/jira/browse/LUCENE-665
Please let me know if there is any solution to this bug of Lucene.
Thanks
Narendra
On 10/8/07, Joe Attardi <ja...@gmail.com> wrote:
>
> On 10/8/07, Narendra yadala <na...@gmail.com> wrote:
> >
> > I do have permission to access Lucene files. They reside on my local
> > machine.
> > But still this is giving the error.I am using Windows XP operationg
> > system.
> >
>
> Well, since you are opening an IndexReader (as evidenced by your stack
> trace), I assume that the file that Lucene is trying to create is a lock
> file. Do you have any stale lock files, or any other kind of weird
> situation
> that might prevent a lock file from being created in your index directory?
>
> What if you try a different directory for your index - do you get the same
> error then?
>
> --
> Joe Attardi
> jattardi@gmail.com
> http://thinksincode.blogspot.com/
>
Re: Lucene indexing error
Posted by Joe Attardi <ja...@gmail.com>.
On 10/8/07, Narendra yadala <na...@gmail.com> wrote:
>
> I do have permission to access Lucene files. They reside on my local
> machine.
> But still this is giving the error.I am using Windows XP operationg
> system.
>
Well, since you are opening an IndexReader (as evidenced by your stack
trace), I assume that the file that Lucene is trying to create is a lock
file. Do you have any stale lock files, or any other kind of weird situation
that might prevent a lock file from being created in your index directory?
What if you try a different directory for your index - do you get the same
error then?
--
Joe Attardi
jattardi@gmail.com
http://thinksincode.blogspot.com/
Re: Lucene indexing error
Posted by Narendra yadala <na...@gmail.com>.
I do have permission to access Lucene files. They reside on my local
machine.
But still this is giving the error.I am using Windows XP operationg system.
Regards
Narendra
On 10/8/07, Joe Attardi <ja...@gmail.com> wrote:
>
> On 10/8/07, Narendra yadala <na...@gmail.com> wrote:
> >
> > This is the relevant portion of the stack trace:
> >
> > Caused by: java.io.IOException: Access is denied
> > at java.io.WinNTFileSystem.createFileExclusively(Native Method)
> > at java.io.File.createNewFile(File.java:850)
> > at org.apache.jackrabbit.core.query.lucene.FSDirectory$1.obtain(
> > FSDirectory.java:119)
> > at org.apache.lucene.store.Lock.obtain(Lock.java:51)
> > at org.apache.lucene.store.Lock$With.run(Lock.java:98)
> > at org.apache.lucene.index.IndexReader.open(IndexReader.java:141)
> > at org.apache.lucene.index.IndexReader.open(IndexReader.java:136)
>
>
> Looks like you don't have permission to access the Lucene index file(s).
>
> --
> Joe Attardi
> jattardi@gmail.com
> http://thinksincode.blogspot.com/
>
Re: Lucene indexing error
Posted by Joe Attardi <ja...@gmail.com>.
On 10/8/07, Narendra yadala <na...@gmail.com> wrote:
>
> This is the relevant portion of the stack trace:
>
> Caused by: java.io.IOException: Access is denied
> at java.io.WinNTFileSystem.createFileExclusively(Native Method)
> at java.io.File.createNewFile(File.java:850)
> at org.apache.jackrabbit.core.query.lucene.FSDirectory$1.obtain(
> FSDirectory.java:119)
> at org.apache.lucene.store.Lock.obtain(Lock.java:51)
> at org.apache.lucene.store.Lock$With.run(Lock.java:98)
> at org.apache.lucene.index.IndexReader.open(IndexReader.java:141)
> at org.apache.lucene.index.IndexReader.open(IndexReader.java:136)
Looks like you don't have permission to access the Lucene index file(s).
--
Joe Attardi
jattardi@gmail.com
http://thinksincode.blogspot.com/
Re: Lucene indexing error
Posted by Narendra yadala <na...@gmail.com>.
This is the relevant portion of the stack trace:
Caused by: java.io.IOException: Access is denied
at java.io.WinNTFileSystem.createFileExclusively(Native Method)
at java.io.File.createNewFile(File.java:850)
at org.apache.jackrabbit.core.query.lucene.FSDirectory$1.obtain(
FSDirectory.java:119)
at org.apache.lucene.store.Lock.obtain(Lock.java:51)
at org.apache.lucene.store.Lock$With.run(Lock.java:98)
at org.apache.lucene.index.IndexReader.open(IndexReader.java:141)
at org.apache.lucene.index.IndexReader.open(IndexReader.java:136)
On 10/8/07, Karl Wettin <ka...@gmail.com> wrote:
>
>
> 8 okt 2007 kl. 15.58 skrev Narendra yadala:
>
> > Hi All
> >
> > I am getting this error when I am doing Indexing using Lucene.
> > java.io.IOException: Access is denied on
> > java.io.WinNTFileSystem.createFileExclusively
> > Please let me know if there is any fix for this bug.
>
> Please supply the complete stack trace.
>
>
> --
> karl
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>