lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yugana <yugandhar.a...@wipro.com>
Subject Re: Lucene Error : java.io.FileNotFoundException
Date Fri, 04 Jul 2008 10:12:14 GMT

I see a JAR file at
D:\jboss-portal-2.6.5.GA\server\default\deploy\jboss-portal.sar\portal-cms.sar\lib
. when I tried to replace this JAR with the new JAR file, I get the
following errors while restarting the JBoss server.

11:50:10,046 ERROR [URLDeploymentScanner] Incomplete Deployment listing:

--- MBeans waiting for other MBeans ---
ObjectName: portal:service=CMS
  State: FAILED
  Reason: java.lang.AbstractMethodError:
org.apache.lucene.store.Directory.openInput(Ljava/lang/String;)Lorg/apache/lucene/store/IndexInput;
  I Depend On:
    jboss.jca:service=DataSourceBinding,name=PortalDS
    portal:service=JAASLoginModule
    portal:service=Hibernate,type=CMS
    cms.pm.cache:service=TreeCache
    portal:service=AuthorizationManager,type=cms
    portal:service=InterceptorStackFactory,type=Cms
  Depends On Me:
    portal:commandFactory=CMSObject

--- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
ObjectName: portal:service=CMS
  State: FAILED
  Reason: java.lang.AbstractMethodError:
org.apache.lucene.store.Directory.openInput(Ljava/lang/String;)Lorg/apache/lucene/store/IndexInput;
  I Depend On:
    jboss.jca:service=DataSourceBinding,name=PortalDS
    portal:service=JAASLoginModule
    portal:service=Hibernate,type=CMS
    cms.pm.cache:service=TreeCache
    portal:service=AuthorizationManager,type=cms
    portal:service=InterceptorStackFactory,type=Cms
  Depends On Me:
    portal:commandFactory=CMSObject




Michael McCandless-2 wrote:
> 
> 
> Are you getting exactly the same error (same source files and exact  
> same line numbers)?  If so, somehow a Lucene 1.4 JAR is still sneaking  
> in.
> 
> Lucene 1.4 won't be able to read an index created by Lucene 2.3.   
> You'll see exactly that FileNotFoundException because newer versions  
> of Lucene write to a segments_N file, while 1.4 tries to open just the  
> file "segments".
> 
> Mike
> 
> yugana wrote:
> 
>>
>> I have checked all the jars and tried replacing with the same  
>> versions. Still
>> I get the same error. Please let me know what else to check.
>>
>> yug
>>
>>
>> Michael McCandless-2 wrote:
>>>
>>>
>>> It looks like under JBoss you are accidentally using Lucene 1.4, not
>>> 2.3.2.
>>>
>>> Mike
>>>
>>> yugana wrote:
>>>
>>>>
>>>> Hi,
>>>>
>>>> I am indexing content and searching using lucene. It is working fine
>>>> when I
>>>> use the simple servlet and jsp mechanism. I am able to search on the
>>>> indexed
>>>> content. I tried to implement the same using JBoss Portal. When I
>>>> try to run
>>>> the search, I get the below error: Please help me to resolve the
>>>> error. I am
>>>> using Lucene 2.3.2
>>>>
>>>> 09:43:42,671 ERROR [STDERR] java.io.FileNotFoundException:
>>>> D:\indexDir\segments (The system cannot find the file specified)
>>>> 09:43:42,671 ERROR [STDERR]     at
>>>> java.io.RandomAccessFile.open(Native
>>>> Method)
>>>> 09:43:42,671 ERROR [STDERR]     at
>>>> java.io.RandomAccessFile.<init>(RandomAccessFile.java:212)
>>>> 09:43:42,671 ERROR [STDERR]     at
>>>> org.apache.lucene.store.FSInputStream
>>>> $Descriptor.<init>(FSDirectory.java:376)
>>>> 09:43:42,671 ERROR [STDERR]     at
>>>> org.apache.lucene.store.FSInputStream.<init>(FSDirectory.java:405)
>>>> 09:43:42,671 ERROR [STDERR]     at
>>>> org.apache.lucene.store.FSDirectory.openFile(FSDirectory.java:268)
>>>> 09:43:42,671 ERROR [STDERR]     at
>>>> org.apache.lucene.index.SegmentInfos.read(SegmentInfos.java:40)
>>>> 09:43:42,671 ERROR [STDERR]     at
>>>> org.apache.lucene.index.IndexReader$1.doBody(IndexReader.java:116)
>>>> 09:43:42,671 ERROR [STDERR]     at
>>>> org.apache.lucene.store.Lock$With.run(Lock.java:109)
>>>> 09:43:42,671 ERROR [STDERR]     at
>>>> org.apache.lucene.index.IndexReader.open(IndexReader.java:111)
>>>> 09:43:42,671 ERROR [STDERR]     at
>>>> org.apache.lucene.index.IndexReader.open(IndexReader.java:95)
>>>> 09:43:42,671 ERROR [STDERR]     at
>>>> org.apache.lucene.search.IndexSearcher.<init>(IndexSearcher.java:38)
>>>> 09:43:42,671 ERROR [STDERR]     at
>>>> com.xerox.mywebboard.search.SearchManager.search(SearchManager.java:
>>>> 53)
>>>> 09:43:42,671 ERROR [STDERR]     at
>>>> com
>>>> .xerox
>>>> .mywebboard
>>>> .xeroxArticleSearchPortlet.search(xeroxArticleSearchPortlet.java:45)
>>>> 09:43:42,671 ERROR [STDERR]     at
>>>> com
>>>> .xerox
>>>> .mywebboard
>>>> .xeroxArticleSearchPortlet
>>>> .processAction(xeroxArticleSearchPortlet.java:27)
>>>> 09:43:42,671 ERROR [STDERR]     at
>>>> org
>>>> .jboss
>>>> .portal
>>>> .portlet
>>>> .impl
>>>> .jsr168.PortletContainerImpl.invokeAction(PortletContainerImpl.java
>>>> 09:43:42,687 ERROR [STDERR]     at
>>>> org
>>>> .jboss
>>>> .portal
>>>> .portlet
>>>> .impl 
>>>> .jsr168.PortletContainerImpl.dispatch(PortletContainerImpl.java:
>>>> 401
>>>> 09:43:42,687 ERROR [STDERR]     at
>>>> org.jboss.portal.portlet.container.PortletContainerInvoker
>>>> $1.invoke(PortletContainerInvoker.java
>>>> 09:43:42,687 ERROR [STDERR]     at
>>>> org
>>>> .jboss
>>>> .portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
>>>> 09:43:42,687 ERROR [STDERR]     at
>>>> org.jboss.portal.core.aspects.portlet.TransactionInterceptor.org
>>>> $jboss$portal$core$aspects$portl
>>>> 09:43:42,687 ERROR [STDERR]     at
>>>> org.jboss.portal.core.aspects.portlet.TransactionInterceptor
>>>> $invokeNotSupported_N454727078796479
>>>> 09:43:42,687 ERROR [STDERR]     at
>>>> org.jboss.aspects.tx.TxPolicy.invokeInNoTx(TxPolicy.java:66)
>>>> 09:43:42,687 ERROR [STDERR]     at
>>>> org.jboss.aspects.tx.TxInterceptor
>>>> $NotSupported.invoke(TxInterceptor.java:112)
>>>> 09:43:42,687 ERROR [STDERR]     at
>>>> org.jboss.portal.core.aspects.portlet.TransactionInterceptor
>>>> $invokeNotSupported_N454727078796479
>>>> 09:43:42,687 ERROR [STDERR]     at
>>>> org.jboss.aspects.tx.TxPolicy.invokeInNoTx(TxPolicy.java:66)
>>>> 09:43:42,687 ERROR [STDERR]     at
>>>> org.jboss.aspects.tx.TxInterceptor
>>>> $NotSupported.invoke(TxInterceptor.java:102)
>>>> 09:43:42,687 ERROR [STDERR]     at
>>>> org.jboss.portal.core.aspects.portlet.TransactionInterceptor
>>>> $invokeNotSupported_N454727078796479
>>>> 09:43:42,687 ERROR [STDERR]     at
>>>> org
>>>> .jboss
>>>> .portal
>>>> .core
>>>> .aspects
>>>> .portlet.TransactionInterceptor.invokeNotSupported(TransactionInter
>>>> 09:43:42,687 ERROR [STDERR]     at
>>>> org
>>>> .jboss
>>>> .portal
>>>> .core
>>>> .aspects
>>>> .portlet.TransactionInterceptor.invoke(TransactionInterceptor.java:
>>>> 09:43:42,687 ERROR [STDERR]     at
>>>> org
>>>> .jboss
>>>> .portal
>>>> .portlet
>>>> .invocation.PortletInterceptor.invoke(PortletInterceptor.java:38)
>>>> 09:43:42,687 ERROR [STDERR]     at
>>>> org
>>>> .jboss
>>>> .portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
>>>> 09:43:42,687 ERROR [STDERR]     at
>>>> org
>>>> .jboss
>>>> .portal
>>>> .core
>>>> .aspects.portlet.HeaderInterceptor.invoke(HeaderInterceptor.java:50)
>>>> 09:43:42,687 ERROR [STDERR]     at
>>>> org
>>>> .jboss
>>>> .portal
>>>> .portlet
>>>> .invocation.PortletInterceptor.invoke(PortletInterceptor.java:38)
>>>> 09:43:42,687 ERROR [STDERR]     at
>>>> org
>>>> .jboss
>>>> .portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
>>>> 09:43:42,687 ERROR [STDERR]     at
>>>> org
>>>> .jboss
>>>> .portal
>>>> .portlet
>>>> .aspects
>>>> .portlet.ProducerCacheInterceptor.invoke(ProducerCacheIntercepto
>>>> 09:43:42,687 ERROR [STDERR]     at
>>>> org
>>>> .jboss
>>>> .portal
>>>> .portlet
>>>> .invocation.PortletInterceptor.invoke(PortletInterceptor.java:38)
>>>> 09:43:42,687 ERROR [STDERR]     at
>>>> org
>>>> .jboss
>>>> .portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
>>>> 09:43:42,687 ERROR [STDERR]     at
>>>> org
>>>> .jboss
>>>> .portal
>>>> .core.aspects.portlet.AjaxInterceptor.invoke(AjaxInterceptor.java: 
>>>> 51)
>>>> 09:43:42,687 ERROR [STDERR]     at
>>>> org
>>>> .jboss
>>>> .portal
>>>> .portlet
>>>> .invocation.PortletInterceptor.invoke(PortletInterceptor.java:38)
>>>> 09:43:42,687 ERROR [STDERR]     at
>>>> org
>>>> .jboss
>>>> .portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
>>>> 09:43:42,687 ERROR [STDERR]     at
>>>> org
>>>> .jboss
>>>> .portal
>>>> .portlet
>>>> .aspects.portlet.ModesInterceptor.invoke(ModesInterceptor.java:62)
>>>> 09:43:42,687 ERROR [STDERR]     at
>>>> org
>>>> .jboss
>>>> .portal
>>>> .portlet
>>>> .invocation.PortletInterceptor.invoke(PortletInterceptor.java:38)
>>>> 09:43:42,687 ERROR [STDERR]     at
>>>> org
>>>> .jboss
>>>> .portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
>>>> 09:43:42,687 ERROR [STDERR]     at
>>>> org
>>>> .jboss
>>>> .portal
>>>> .portlet.bridge.BridgeInterceptor.invoke(BridgeInterceptor.java:47)
>>>> 09:43:42,687 ERROR [STDERR]     at
>>>> org
>>>> .jboss
>>>> .portal
>>>> .portlet
>>>> .invocation.PortletInterceptor.invoke(PortletInterceptor.java:38)
>>>> 09:43:42,687 ERROR [STDERR]     at
>>>> org
>>>> .jboss
>>>> .portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
>>>>
>>>> -- 
>>>> View this message in context:
>>>> http://www.nabble.com/Lucene-Error-%3A-java.io.FileNotFoundException-tp18251744p18251744.html
>>>> Sent from the Lucene - Java Users mailing list archive at  
>>>> Nabble.com.
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
>>>> For additional commands, e-mail: java-user-help@lucene.apache.org
>>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
>>> For additional commands, e-mail: java-user-help@lucene.apache.org
>>>
>>>
>>>
>>
>> -- 
>> View this message in context:
>> http://www.nabble.com/Lucene-Error-%3A-java.io.FileNotFoundException-tp18251744p18272463.html
>> Sent from the Lucene - Java Users mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
>> For additional commands, e-mail: java-user-help@lucene.apache.org
>>
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Lucene-Error-%3A-java.io.FileNotFoundException-tp18251744p18276669.html
Sent from the Lucene - Java Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message