多次出现的同一站点

时间:2016-12-16 09:10:03

标签: alfresco alfresco-share

我正在使用Alfresco Community Edition 5.0.0d,我尝试使用alfresco-share-import-export extension导入在另一台服务器上制作的网站。我尝试了2-3次,因为我没有看到.acp对标签的限制,现在我在网站查找器中重复了该网站。

Duplicates

它们都是链接的,如果我删除它们,它们都被删除,它们也共享相同的URL。

在存储库/网站中,它会出现一次。

如果我删除其中任何一个,它们都会被删除,但之后我就无法搜索网站了,当我尝试在网站搜索器中搜索时会生成此日志:

2016-12-14 15:25:31,101 ERROR
[org.springframework.extensions.webscripts.AbstractRuntime]
[http-apr-80-exec-56] Exception from executeScript - redirecting to status template error: 11140106 Wrapped Exception (with status
template): 11145585 Error during processing of the template 'Method "public java.lang.String org.alfresco.repo.site.script.Site.getMembersRole(java.lang.String)"
threw an exception when invoked on org.alfresco.repo.site.script.Site
object "org.alfresco.repo.site.script.Site@7803ba02". See cause exception.

The failing instruction (print stack trace for 2 more):
==> ${site.getMembersRole(userid)!""} aut...  [in template "org/alfresco/repository/site/site.lib.ftl" in macro "siteJSONManagers"
at line 44, column 22]'. Please contact your system administrator.
org.springframework.extensions.webscripts.WebScriptException: 11140106 Wrapped Exception (with status template): 11145585 Error during processing of the template 'Method "public java.lang.String org.alfresco.repo.site.script.Site.getMembersRole(java.lang.String)"
threw an exception when invoked on org.alfresco.repo.site.script.Site
object "org.alfresco.repo.site.script.Site@7803ba02". See cause exception.

The failing instruction (print stack trace for 2 more):
==> ${site.getMembersRole(userid)!""} aut...  [in template "org/alfresco/repository/site/site.lib.ftl" in macro "siteJSONManagers"
at line 44, column 22]'. Please contact your system administrator.
    at
org.springframework.extensions.webscripts.AbstractWebScript.createStatusException(AbstractWebScript.java:1127)
    at
org.springframework.extensions.webscripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:171)
    at
org.alfresco.repo.web.scripts.RepositoryContainer$3.execute(RepositoryContainer.java:482)
    at
org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:457)
    at
org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecute(RepositoryContainer.java:551)
    at
org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecuteAs(RepositoryContainer.java:619)
    at
org.alfresco.repo.web.scripts.RepositoryContainer.executeScriptInternal(RepositoryContainer.java:399)
    at
org.alfresco.repo.web.scripts.RepositoryContainer.executeScript(RepositoryContainer.java:280)
    at
org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:378)
    at
org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:209)
    at
org.springframework.extensions.webscripts.servlet.WebScriptServlet.service(WebScriptServlet.java:132)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
    at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
    at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
    at
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
    at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
    at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
    at
org.alfresco.web.app.servlet.GlobalLocalizationFilter.doFilter(GlobalLocalizationFilter.java:61)
    at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
    at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
    at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
    at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
    at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:504)
    at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
    at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
    at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
    at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
    at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:421)
    at
org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1074)
    at
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611)
    at
org.apache.tomcat.util.net.AprEndpoint$SocketWithOptionsProcessor.run(AprEndpoint.java:2403)
    at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at
org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
    at java.lang.Thread.run(Thread.java:745)
Caused by: org.alfresco.service.cmr.repository.TemplateException:
11145585 Error during processing of the template 'Method "public java.lang.String org.alfresco.repo.site.script.Site.getMembersRole(java.lang.String)"
threw an exception when invoked on org.alfresco.repo.site.script.Site
object "org.alfresco.repo.site.script.Site@7803ba02". See cause exception.

The failing instruction (print stack trace for 2 more):
==> ${site.getMembersRole(userid)!""} aut...  [in template "org/alfresco/repository/site/site.lib.ftl" in macro "siteJSONManagers"
at line 44, column 22]'. Please contact your system administrator.
    at
org.alfresco.repo.template.FreeMarkerProcessor.process(FreeMarkerProcessor.java:221)
    at
org.springframework.extensions.webscripts.AbstractWebScript.renderTemplate(AbstractWebScript.java:955)
    at
org.springframework.extensions.webscripts.DeclarativeWebScript.renderFormatTemplate(DeclarativeWebScript.java:267)
    at
org.springframework.extensions.webscripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:147)
    ... 33 more
Caused by: freemarker.template.TemplateModelException: Method "public java.lang.String org.alfresco.repo.site.script.Site.getMembersRole(java.lang.String)"
threw an exception when invoked on org.alfresco.repo.site.script.Site
object "org.alfresco.repo.site.script.Site@7803ba02". See cause exception.

The failing instruction (print stack trace for 2 more):
==> ${site.getMembersRole(userid)!""} aut...  [in template "org/alfresco/repository/site/site.lib.ftl" in macro "siteJSONManagers"
at line 44, column 22]
    at
freemarker.ext.beans.SimpleMethodModel.exec(SimpleMethodModel.java:135)
        at freemarker.core.MethodCall._eval(MethodCall.java:98)
        at freemarker.core.Expression.eval(Expression.java:111)
        at
freemarker.core.DefaultToExpression._eval(DefaultToExpression.java:116)
        at freemarker.core.Expression.eval(Expression.java:111)
        at freemarker.core.ListLiteral.getModelList(ListLiteral.java:126)
        at freemarker.core.MethodCall._eval(MethodCall.java:94)
        at freemarker.core.Expression.eval(Expression.java:111)
        at
freemarker.core.Expression.evalAndCoerceToString(Expression.java:115)
        at freemarker.core.DollarVariable.accept(DollarVariable.java:76)
        at freemarker.core.Environment.visit(Environment.java:265)
        at freemarker.core.MixedContent.accept(MixedContent.java:93)
        at freemarker.core.Environment.visit(Environment.java:265)
        at freemarker.core.IfBlock.accept(IfBlock.java:84)
        at freemarker.core.Environment.visit(Environment.java:265)
        at freemarker.core.MixedContent.accept(MixedContent.java:93)
        at freemarker.core.Environment.visit(Environment.java:265)
        at freemarker.core.EscapeBlock.accept(EscapeBlock.java:85)
        at freemarker.core.Environment.visit(Environment.java:265)
        at freemarker.core.MixedContent.accept(MixedContent.java:93)
        at freemarker.core.Environment.visit(Environment.java:265)
        at freemarker.core.Macro$Context.runMacro(Macro.java:209)
        at freemarker.core.Environment.visit(Environment.java:694)
        at freemarker.core.UnifiedCall.accept(UnifiedCall.java:116)
        at freemarker.core.Environment.visit(Environment.java:265)
        at freemarker.core.MixedContent.accept(MixedContent.java:93)
        at
freemarker.core.Environment.visitByHiddingParent(Environment.java:286)
        at
freemarker.core.IteratorBlock$Context.runLoop(IteratorBlock.java:193)
        at
freemarker.core.Environment.visitIteratorBlock(Environment.java:509)
        at freemarker.core.IteratorBlock.accept(IteratorBlock.java:103)
        at freemarker.core.Environment.visit(Environment.java:265)
        at freemarker.core.MixedContent.accept(MixedContent.java:93)
        at freemarker.core.Environment.visit(Environment.java:265)
        at freemarker.core.Environment.process(Environment.java:243)
        at
org.alfresco.repo.template.FreeMarkerProcessor.process(FreeMarkerProcessor.java:217)
        ... 36 more
Caused by: org.alfresco.repo.site.SiteDoesNotExistException: 11145584 Site veille-documentaire does not exist.
        at
org.alfresco.repo.site.SiteServiceImpl.getPermissionGroups(SiteServiceImpl.java:2297)
        at
org.alfresco.repo.site.SiteServiceImpl.getMembersRoles(SiteServiceImpl.java:2270)
        at
org.alfresco.repo.site.SiteServiceImpl.getMembersRole(SiteServiceImpl.java:2245)
        at sun.reflect.GeneratedMethodAccessor1051.invoke(Unknown Source)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:483)
        at
org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
        at
org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
        at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
        at
net.sf.acegisecurity.intercept.method.aopalliance.MethodSecurityInterceptor.invoke(MethodSecurityInterceptor.java:80)
        at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
        at
org.alfresco.repo.security.permissions.impl.ExceptionTranslatorMethodInterceptor.invoke(ExceptionTranslatorMethodInterceptor.java:46)
        at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
        at
org.alfresco.repo.audit.AuditMethodInterceptor.invoke(AuditMethodInterceptor.java:159)
        at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
        at
org.alfresco.repo.transaction.CheckTransactionAdvice.invoke(CheckTransactionAdvice.java:47)
        at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
        at
org.alfresco.repo.transaction.RetryingTransactionAdvice$1.execute(RetryingTransactionAdvice.java:64)
        at
org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:457)
        at
org.alfresco.repo.transaction.RetryingTransactionAdvice.invoke(RetryingTransactionAdvice.java:67)
        at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
        at
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
        at com.sun.proxy.$Proxy102.getMembersRole(Unknown Source)
        at org.alfresco.repo.site.script.Site.getMembersRole(Site.java:425)
        at sun.reflect.GeneratedMethodAccessor1050.invoke(Unknown Source)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:483)
        at
freemarker.ext.beans.BeansWrapper.invokeMethod(BeansWrapper.java:912)
        at
freemarker.ext.beans.SimpleMethodModel.exec(SimpleMethodModel.java:107)
        ... 70 more

如果我创建一个名称完全相同的新网站,搜索会再次有效,但我的网站也会再次使用三次...

我如何清理网站列表?

1 个答案:

答案 0 :(得分:0)

看起来它在solr4中存在索引问题。 我内容面临同样的问题。

您可以在Alfresco论坛上找到类似的主题:

https://community.alfresco.com/thread/212341-solved-duplicate-node-index-in-alfresco-5

他们也在JIRA中创造了问题。

https://issues.alfresco.com/jira/browse/MNT-13767

它在5.0.2版本中修复。