jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From SalmasCM <sal...@criticalmass.com>
Subject Re: Lucene Index locks and WebLogic
Date Thu, 09 Apr 2009 15:48:31 GMT

Thanks so much for the quick reply. It was a threading issue on our end and
another login was being attempted while Lucene was still indexing. It is now
resolved.


Marcel Reutegger wrote:
> 
> Hi,
> 
> this indicates that multiple instances of jackrabbit are trying to run
> on the same storage. see also:
> https://issues.apache.org/jira/browse/JCR-2057
> 
> please make sure that only a single instance is running at a time.
> 
> another reason may be that a jackrabbit instance was not properly shut
> down (as indicated in the stacktrace by the recovery code that is run)
> and later started again in the same process.
> 
> regards
>  marcel
> 
> On Thu, Apr 9, 2009 at 01:48, SalmasCM <salmas@criticalmass.com> wrote:
>>
>> We have a web application running in weblogic that logs into Jackrabbit.
>> While the Lucene indexes are being built we get errors. The weblogic app
>> has
>> its own repository and is the only this using the repository. We need
>> help
>> on this ASAP as our client is currently deploying this in a production
>> environment.
>>
>>  [... at at
>> com.ashland.valvoline.data.jackrabbit.ConnectionManagerImpl.getRepository(ConnectionManagerImpl.java:101)]}}
>> javax.jcr.RepositoryException: Directory was previously created with a
>> different LockFactory instance; please pass null as the lockFactory
>> instance
>> and use setLockFactory to change it: Directory was previously created
>> with a
>> different LockFactory instance; please pass null as the lockFactory
>> instance
>> and use setLockFactory to change it: Directory was previously created
>> with a
>> different LockFactory instance; please pass null as the lockFactory
>> instance
>> and use setLockFactory to change it
>>        at
>> org.apache.jackrabbit.core.SearchManager.initializeQueryHandler(SearchManager.java:585)
>>        at
>> org.apache.jackrabbit.core.SearchManager.<init>(SearchManager.java:265)
>>        at
>> org.apache.jackrabbit.core.RepositoryImpl$WorkspaceInfo.getSearchManager(RepositoryImpl.java:1613)
>>        at
>> org.apache.jackrabbit.core.RepositoryImpl.initWorkspace(RepositoryImpl.java:606)
>>        at
>> org.apache.jackrabbit.core.RepositoryImpl.initStartupWorkspaces(RepositoryImpl.java:415)
>>        at
>> org.apache.jackrabbit.core.RepositoryImpl.<init>(RepositoryImpl.java:305)
>>        at
>> org.apache.jackrabbit.core.RepositoryImpl.create(RepositoryImpl.java:557)
>>        at
>> com.ashland.valvoline.data.jackrabbit.ConnectionManagerImpl.getRepository(ConnectionManagerImpl.java:99)
>>        at
>> com.ashland.valvoline.ui.util.JCRConnectionUtil.loginToRepository(JCRConnectionUtil.java:127)
>>        at
>> com.ashland.valvoline.ui.util.JCRConnectionUtil.loginToRepository(JCRConnectionUtil.java:159)
>>        at
>> com.ashland.valvoline.ui.util.JCRConnectionUtil.getSession(JCRConnectionUtil.java:192)
>>        at
>> com.ashland.valvoline.ui.util.JCRConnectionUtil.getSession(JCRConnectionUtil.java:166)
>>        at
>> com.ashland.valvoline.ui.util.JCRUtil.runQuery(JCRUtil.java:892)
>>        at com.ashland.valvoline.ui.util.JCRUtil.getNode(JCRUtil.java:411)
>>        at
>> com.ashland.valvoline.data.dao.jcr.DocumentDAO.findDocumentNoCache(DocumentDAO.java:213)
>>        at
>> com.ashland.valvoline.data.dao.jcr.DocumentDAO.findDocument(DocumentDAO.java:243)
>>        at
>> com.ashland.valvoline.data.dao.jcr.DocumentDAO.findDocument(DocumentDAO.java:228)
>>        at
>> com.ashland.valvoline.promo.business.PromoBusinessModel.getPromoSlotXML(PromoBusinessModel.java:62)
>>        at
>> com.ashland.valvoline.promo.business.PromoBusinessModel.getPromosXML(PromoBusinessModel.java:45)
>>        at
>> com.ashland.valvoline.ui.promos.PromoBean.getHpCarSlot1(PromoBean.java:34)
>>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>        at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java(Compiled
>> Code))
>>        at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java(Compiled
>> Code))
>>        at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java(Compiled
>> Code))
>>        at java.lang.reflect.Method.invoke(Method.java(Compiled Code))
>>        at
>> org.apache.myfaces.el.PropertyResolverImpl.getProperty(PropertyResolverImpl.java:459)
>>        at
>> org.apache.myfaces.el.PropertyResolverImpl.getValue(PropertyResolverImpl.java:85)
>>        at
>> com.sun.facelets.el.LegacyELContext$LegacyELResolver.getValue(LegacyELContext.java:141)
>>        at com.sun.el.parser.AstValue.getValue(AstValue.java:96)
>>        at
>> com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:183)
>>        at
>> com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:71)
>>        at com.sun.el.parser.AstIdentifier.getValue(AstIdentifier.java:40)
>>        at
>> com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:183)
>>        at
>> com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:71)
>>        at
>> com.sun.facelets.el.LegacyValueBinding.getValue(LegacyValueBinding.java:56)
>>        at
>> org.apache.myfaces.custom.transform.XmlTransform.getContent(XmlTransform.java:62)
>>        at sun.reflect.GeneratedMethodAccessor140.invoke(Unknown Source)
>>        at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java(Compiled
>> Code))
>>        at java.lang.reflect.Method.invoke(Method.java(Compiled Code))
>>        at
>> com.sun.facelets.util.DevTools.writeAttributes(DevTools.java(Compiled
>> Code))
>>        at com.sun.facelets.util.DevTools.writeStart(DevTools.java:284)
>>        at
>> com.sun.facelets.util.DevTools.writeComponent(DevTools.java:189)
>>        at
>> com.sun.facelets.util.DevTools.writeComponent(DevTools.java:207)
>>        at
>> com.sun.facelets.util.DevTools.writeComponent(DevTools.java:207)
>>        at com.sun.facelets.util.DevTools.debugHtml(DevTools.java:107)
>>        at
>> com.sun.facelets.FaceletViewHandler.handleRenderException(FaceletViewHandler.java:677)
>>        at
>> com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:646)
>>        at
>> org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:41)
>>        at
>> org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:138)
>>        at javax.faces.webapp.FacesServlet.service(FacesServlet.java:147)
>>        at
>> weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1006)
>>        at
>> weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419)
>>        at
>> weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
>>        at
>> weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
>>        at
>> org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:301)
>>        at
>> weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
>>        at
>> weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6726)
>>        at
>> weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java(Compiled
>> Code))
>>        at
>> weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
>>        at
>> weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3766)
>>        at
>> weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2651)
>>        at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
>>        at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
>> Caused by: java.io.IOException: Directory was previously created with a
>> different LockFactory instance; please pass null as the lockFactory
>> instance
>> and use setLockFactory to change it
>>        at
>> org.apache.lucene.store.FSDirectory.getDirectory(FSDirectory.java:192)
>>        at
>> org.apache.jackrabbit.core.query.lucene.PersistentIndex.<init>(PersistentIndex.java:63)
>>        at
>> org.apache.jackrabbit.core.query.lucene.MultiIndex.getOrCreateIndex(MultiIndex.java:585)
>>        at
>> org.apache.jackrabbit.core.query.lucene.MultiIndex$CreateIndex.undo(MultiIndex.java:1667)
>>        at
>> org.apache.jackrabbit.core.query.lucene.Recovery.run(Recovery.java:132)
>>        at
>> org.apache.jackrabbit.core.query.lucene.Recovery.run(Recovery.java:85)
>>        at
>> org.apache.jackrabbit.core.query.lucene.MultiIndex.<init>(MultiIndex.java:314)
>>        at
>> org.apache.jackrabbit.core.query.lucene.SearchIndex.doInit(SearchIndex.java:448)
>>        at
>> org.apache.jackrabbit.core.query.AbstractQueryHandler.init(AbstractQueryHandler.java:53)
>>        at
>> org.apache.jackrabbit.core.SearchManager.initializeQueryHandler(SearchManager.java:583)
>>        ... 62 more
>> java.io.IOException: Directory was previously created with a different
>> LockFactory instance; please pass null as the lockFactory instance and
>> use
>> setLockFactory to change it
>>        at
>> org.apache.lucene.store.FSDirectory.getDirectory(FSDirectory.java:192)
>>        at
>> org.apache.jackrabbit.core.query.lucene.PersistentIndex.<init>(PersistentIndex.java:63)
>>        at
>> org.apache.jackrabbit.core.query.lucene.MultiIndex.getOrCreateIndex(MultiIndex.java:585)
>>        at
>> org.apache.jackrabbit.core.query.lucene.MultiIndex$CreateIndex.undo(MultiIndex.java:1667)
>>        at
>> org.apache.jackrabbit.core.query.lucene.Recovery.run(Recovery.java:132)
>>        at
>> org.apache.jackrabbit.core.query.lucene.Recovery.run(Recovery.java:85)
>>        at
>> org.apache.jackrabbit.core.query.lucene.MultiIndex.<init>(MultiIndex.java:314)
>>        at
>> org.apache.jackrabbit.core.query.lucene.SearchIndex.doInit(SearchIndex.java:448)
>>        at
>> org.apache.jackrabbit.core.query.AbstractQueryHandler.init(AbstractQueryHandler.java:53)
>>        at
>> org.apache.jackrabbit.core.SearchManager.initializeQueryHandler(SearchManager.java:583)
>>        at
>> org.apache.jackrabbit.core.SearchManager.<init>(SearchManager.java:265)
>>        at
>> org.apache.jackrabbit.core.RepositoryImpl$WorkspaceInfo.getSearchManager(RepositoryImpl.java:1613)
>>        at
>> org.apache.jackrabbit.core.RepositoryImpl.initWorkspace(RepositoryImpl.java:606)
>>        at
>> org.apache.jackrabbit.core.RepositoryImpl.initStartupWorkspaces(RepositoryImpl.java:415)
>>        at
>> org.apache.jackrabbit.core.RepositoryImpl.<init>(RepositoryImpl.java:305)
>>        at
>> org.apache.jackrabbit.core.RepositoryImpl.create(RepositoryImpl.java:557)
>>        at
>> com.ashland.valvoline.data.jackrabbit.ConnectionManagerImpl.getRepository(ConnectionManagerImpl.java:99)
>>        at
>> com.ashland.valvoline.ui.util.JCRConnectionUtil.loginToRepository(JCRConnectionUtil.java:127)
>>        at
>> com.ashland.valvoline.ui.util.JCRConnectionUtil.loginToRepository(JCRConnectionUtil.java:159)
>>        at
>> com.ashland.valvoline.ui.util.JCRConnectionUtil.getSession(JCRConnectionUtil.java:192)
>>        at
>> com.ashland.valvoline.ui.util.JCRConnectionUtil.getSession(JCRConnectionUtil.java:166)
>>        at
>> com.ashland.valvoline.ui.util.JCRUtil.runQuery(JCRUtil.java:892)
>>        at com.ashland.valvoline.ui.util.JCRUtil.getNode(JCRUtil.java:411)
>>        at
>> com.ashland.valvoline.data.dao.jcr.DocumentDAO.findDocumentNoCache(DocumentDAO.java:213)
>>        at
>> com.ashland.valvoline.data.dao.jcr.DocumentDAO.findDocument(DocumentDAO.java:243)
>>        at
>> com.ashland.valvoline.data.dao.jcr.DocumentDAO.findDocument(DocumentDAO.java:228)
>>        at
>> com.ashland.valvoline.promo.business.PromoBusinessModel.getPromoSlotXML(PromoBusinessModel.java:62)
>>        at
>> com.ashland.valvoline.promo.business.PromoBusinessModel.getPromosXML(PromoBusinessModel.java:45)
>>        at
>> com.ashland.valvoline.ui.promos.PromoBean.getHpCarSlot1(PromoBean.java:34)
>>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>        at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java(Compiled
>> Code))
>>        at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java(Compiled
>> Code))
>>        at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java(Compiled
>> Code))
>>        at java.lang.reflect.Method.invoke(Method.java(Compiled Code))
>>        at
>> org.apache.myfaces.el.PropertyResolverImpl.getProperty(PropertyResolverImpl.java:459)
>>        at
>> org.apache.myfaces.el.PropertyResolverImpl.getValue(PropertyResolverImpl.java:85)
>>        at
>> com.sun.facelets.el.LegacyELContext$LegacyELResolver.getValue(LegacyELContext.java:141)
>>        at com.sun.el.parser.AstValue.getValue(AstValue.java:96)
>>        at
>> com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:183)
>>        at
>> com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:71)
>>        at com.sun.el.parser.AstIdentifier.getValue(AstIdentifier.java:40)
>>        at
>> com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:183)
>>        at
>> com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:71)
>>        at
>> com.sun.facelets.el.LegacyValueBinding.getValue(LegacyValueBinding.java:56)
>>        at
>> org.apache.myfaces.custom.transform.XmlTransform.getContent(XmlTransform.java:62)
>>        at sun.reflect.GeneratedMethodAccessor140.invoke(Unknown Source)
>>        at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java(Compiled
>> Code))
>>        at java.lang.reflect.Method.invoke(Method.java(Compiled Code))
>>        at
>> com.sun.facelets.util.DevTools.writeAttributes(DevTools.java(Compiled
>> Code))
>>        at com.sun.facelets.util.DevTools.writeStart(DevTools.java:284)
>>        at
>> com.sun.facelets.util.DevTools.writeComponent(DevTools.java:189)
>>        at
>> com.sun.facelets.util.DevTools.writeComponent(DevTools.java:207)
>>        at
>> com.sun.facelets.util.DevTools.writeComponent(DevTools.java:207)
>>        at com.sun.facelets.util.DevTools.debugHtml(DevTools.java:107)
>>        at
>> com.sun.facelets.FaceletViewHandler.handleRenderException(FaceletViewHandler.java:677)
>>        at
>> com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:646)
>>        at
>> org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:41)
>>        at
>> org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:138)
>>        at javax.faces.webapp.FacesServlet.service(FacesServlet.java:147)
>>        at
>> weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1006)
>>        at
>> weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419)
>>        at
>> weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
>>        at
>> weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
>>        at
>> org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:301)
>>        at
>> weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
>>        at
>> weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6726)
>>        at
>> weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java(Compiled
>> Code))
>>        at
>> weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
>>        at
>> weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3766)
>>        at
>> weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2651)
>>        at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
>>        at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
>>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Lucene-Index-locks-and-WebLogic-tp22962047p22962047.html
>> Sent from the Jackrabbit - Users mailing list archive at Nabble.com.
>>
>>
> 
> 

-- 
View this message in context: http://www.nabble.com/Lucene-Index-locks-and-WebLogic-tp22962047p22973756.html
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.


Mime
View raw message