AnsweredAssumed Answered

Problemas con la wiki

Question asked by calliope on Jan 26, 2010
Latest reply on Feb 1, 2010 by cristinamr
Buenas tardes a todos,
El problema que tengo me lo he buscado yo solita pero no se como enmendarlo.

Utilizo la versión de prueba de Alfresco, es decir, que aún no he instalado el servidor local en mi ordenador.

He añadido varias páginas a mi wiki con diferentes definiciones de palabras. En Site Dashboard puse que me apareciera siempre una de ellas al entrar al sitio. Pero hace unos días decidí que es página ya no era importante por lo que en vez de desvincularla primero de la página principal y luego borrarla, hice lo contrario. Borré la página de la wiki y, claro, el Site Dashboard se volvió loco. Esto es lo que me aparece nada más entrar al sitio:


Alfresco    Web Script Status 500 - Internal Error

The Web Script /share/service/components/dashlets/wiki has responded with a status of 500 - Internal Error.

500 Description:   An error inside the HTTP server which prevented it from fulfilling the request.

Message:   Failed to load script '/org/alfresco/components/dashlets/wiki.get.js (in classpath store file:/usr/share/tomcat5/webapps/share/WEB-INF/classes/alfresco/site-webscripts)': Invalid uri 'http://sharerepo.alfresco.com/alfresco/s/slingshot/wiki/page/estrategiastic/CE_(Comisión_Europea)?format=mediawiki&alf_ticket=TICKET_a3de30a328c105083c97c08f4468f174bf42ebba': escaped absolute path not valid
   
Exception:   java.lang.IllegalArgumentException - Invalid uri 'http://sharerepo.alfresco.com/alfresco/s/slingshot/wiki/page/estrategiastic/CE_(Comisión_Europea)?format=mediawiki&alf_ticket=TICKET_a3de30a328c105083c97c08f4468f174bf42ebba': escaped absolute path not valid
   
   org.apache.commons.httpclient.HttpMethodBase.<init>(HttpMethodBase.java:222)
   org.apache.commons.httpclient.methods.GetMethod.<init>(GetMethod.java:89)
   org.alfresco.connector.RemoteClient.service(RemoteClient.java:524)
   org.alfresco.connector.RemoteClient.service(RemoteClient.java:476)
   org.alfresco.connector.RemoteClient.call(RemoteClient.java:296)
   org.alfresco.connector.RemoteClient.call(RemoteClient.java:230)
   org.alfresco.connector.HttpConnector.call(HttpConnector.java:79)
   org.alfresco.connector.AuthenticatingConnector.call(AuthenticatingConnector.java:140)
   org.alfresco.web.scripts.ScriptRemoteConnector.call(ScriptRemoteConnector.java:83)
   org.alfresco.web.scripts.ScriptRemoteConnector.get(ScriptRemoteConnector.java:95)
   sun.reflect.GeneratedMethodAccessor97.invoke(Unknown Source)
   sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   java.lang.reflect.Method.invoke(Method.java:597)
   org.mozilla.javascript.MemberBox.invoke(MemberBox.java:155)
   org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:243)
   org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:66)
   org.mozilla.javascript.gen.c219._c0(file:/usr/share/tomcat5/webapps/share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/components/dashlets/wiki.get.js:149)
   org.mozilla.javascript.gen.c219.call(file:/usr/share/tomcat5/webapps/share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/components/dashlets/wiki.get.js)
   org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:393)
   org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:2834)
   org.mozilla.javascript.gen.c219.call(file:/usr/share/tomcat5/webapps/share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/components/dashlets/wiki.get.js)
   org.mozilla.javascript.gen.c219.exec(file:/usr/share/tomcat5/webapps/share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/components/dashlets/wiki.get.js)
   org.alfresco.web.scripts.PresentationScriptProcessor.executeScriptImpl(PresentationScriptProcessor.java:265)
   org.alfresco.web.scripts.PresentationScriptProcessor.executeScript(PresentationScriptProcessor.java:157)
   org.alfresco.web.scripts.AbstractWebScript.executeScript(AbstractWebScript.java:827)
   org.alfresco.web.scripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:90)
   org.alfresco.web.scripts.PresentationContainer.executeScript(PresentationContainer.java:60)
   org.alfresco.web.scripts.LocalWebScriptRuntimeContainer.executeScript(LocalWebScriptRuntimeContainer.java:169)
   org.alfresco.web.scripts.AbstractRuntime.executeScript(AbstractRuntime.java:261)
   org.alfresco.web.scripts.AbstractRuntime.executeScript(AbstractRuntime.java:139)
   org.alfresco.web.scripts.WebScriptProcessor.executeBody(WebScriptProcessor.java:329)
   org.alfresco.web.framework.render.AbstractProcessor.execute(AbstractProcessor.java:85)
   org.alfresco.web.framework.render.RenderHelper.processComponent(RenderHelper.java:332)
   org.alfresco.web.framework.render.RenderUtil.renderRawComponent(RenderUtil.java:451)
   org.alfresco.web.framework.render.RenderUtil.renderRawComponent(RenderUtil.java:434)
   org.alfresco.web.framework.render.bean.ComponentRenderer.body(ComponentRenderer.java:135)
   org.alfresco.web.framework.render.RenderUtil.renderRegionComponents(RenderUtil.java:328)
   org.alfresco.web.site.taglib.RegionIncludeTag.doStartTag(RegionIncludeTag.java:43)
   org.alfresco.tools.TagUtil.execute(TagUtil.java:147)
   org.alfresco.tools.TagUtil.execute(TagUtil.java:81)
   org.alfresco.web.scripts.FreemarkerTagSupportDirective.executeTag(FreemarkerTagSupportDirective.java:89)
   org.alfresco.web.scripts.GenericFreemarkerTagDirective.execute(GenericFreemarkerTagDirective.java:127)
   freemarker.core.Environment.visit(Environment.java:261)
   freemarker.core.UnifiedCall.accept(UnifiedCall.java:126)
   freemarker.core.Environment.visit(Environment.java:208)
   freemarker.core.MixedContent.accept(MixedContent.java:92)
   freemarker.core.Environment.visit(Environment.java:208)
   freemarker.core.Environment.process(Environment.java:188)
   freemarker.template.Template.process(Template.java:237)
   org.alfresco.web.scripts.PresentationTemplateProcessor.process(PresentationTemplateProcessor.java:146)
   org.alfresco.web.scripts.FreemarkerProcessor.executeBody(FreemarkerProcessor.java:240)
   org.alfresco.web.framework.render.AbstractProcessor.execute(AbstractProcessor.java:85)
   org.alfresco.web.framework.render.RenderHelper.processRenderable(RenderHelper.java:276)
   org.alfresco.web.framework.render.bean.ChromeRenderer.body(ChromeRenderer.java:60)
   org.alfresco.web.framework.render.AbstractRenderer.render(AbstractRenderer.java:105)
   org.alfresco.web.framework.render.bean.RegionRenderer.body(RegionRenderer.java:134)
   org.alfresco.web.framework.render.AbstractRenderer.render(AbstractRenderer.java:105)
   org.alfresco.web.framework.render.RenderUtil.startRegionRenderer(RenderUtil.java:273)
   org.alfresco.web.framework.render.RenderUtil.renderRegion(RenderUtil.java:213)
   org.alfresco.web.framework.render.PresentationUtil.renderRegion(PresentationUtil.java:124)
   org.alfresco.web.site.taglib.RegionTag.doStartTag(RegionTag.java:109)
   org.alfresco.tools.TagUtil.execute(TagUtil.java:147)
   org.alfresco.tools.TagUtil.execute(TagUtil.java:81)
   org.alfresco.web.scripts.FreemarkerTagSupportDirective.executeTag(FreemarkerTagSupportDirective.java:89)
   org.alfresco.web.scripts.RegionFreemarkerTagDirective.execute(RegionFreemarkerTagDirective.java:128)
   freemarker.core.Environment.visit(Environment.java:261)
   freemarker.core.UnifiedCall.accept(UnifiedCall.java:126)
   freemarker.core.Environment.visit(Environment.java:208)
   freemarker.core.IteratorBlock$Context.runLoop(IteratorBlock.java:179)
   freemarker.core.Environment.visit(Environment.java:415)
   freemarker.core.IteratorBlock.accept(IteratorBlock.java:102)
   freemarker.core.Environment.visit(Environment.java:208)
   freemarker.core.MixedContent.accept(MixedContent.java:92)
   freemarker.core.Environment.visit(Environment.java:208)
   freemarker.core.IteratorBlock$Context.runLoop(IteratorBlock.java:179)
   freemarker.core.Environment.visit(Environment.java:415)
   freemarker.core.IteratorBlock.accept(IteratorBlock.java:102)
   freemarker.core.Environment.visit(Environment.java:208)
   freemarker.core.MixedContent.accept(MixedContent.java:92)
   freemarker.core.Environment.visit(Environment.java:208)
   freemarker.core.Macro$Context.runMacro(Macro.java:164)
   freemarker.core.Environment.visit(Environment.java:601)
   freemarker.core.UnifiedCall.accept(UnifiedCall.java:106)
   freemarker.core.Environment.visit(Environment.java:208)
   freemarker.core.IfBlock.accept(IfBlock.java:82)
   freemarker.core.Environment.visit(Environment.java:208)
   freemarker.core.Macro$Context.runMacro(Macro.java:164)
   freemarker.core.Environment.visit(Environment.java:601)
   freemarker.core.UnifiedCall.accept(UnifiedCall.java:106)
   freemarker.core.Environment.visit(Environment.java:208)
   freemarker.core.MixedContent.accept(MixedContent.java:92)
   freemarker.core.Environment.visit(Environment.java:208)
   freemarker.core.Environment.visit(Environment.java:393)
   freemarker.core.BodyInstruction.accept(BodyInstruction.java:93)
   freemarker.core.Environment.visit(Environment.java:208)
   freemarker.core.MixedContent.accept(MixedContent.java:92)
   freemarker.core.Environment.visit(Environment.java:208)
   freemarker.core.Macro$Context.runMacro(Macro.java:164)
   freemarker.core.Environment.visit(Environment.java:601)
   freemarker.core.UnifiedCall.accept(UnifiedCall.java:106)
   freemarker.core.Environment.visit(Environment.java:208)
   freemarker.core.MixedContent.accept(MixedContent.java:92)
   freemarker.core.Environment.visit(Environment.java:208)
   freemarker.core.Environment.process(Environment.java:188)
   freemarker.template.Template.process(Template.java:237)
   org.alfresco.web.scripts.PresentationTemplateProcessor.process(PresentationTemplateProcessor.java:146)
   org.alfresco.web.scripts.FreemarkerProcessor.executeBody(FreemarkerProcessor.java:240)
   org.alfresco.web.framework.render.AbstractProcessor.execute(AbstractProcessor.java:85)
   org.alfresco.web.framework.render.RenderHelper.processTemplate(RenderHelper.java:376)
   org.alfresco.web.framework.render.bean.TemplateInstanceRenderer.body(TemplateInstanceRenderer.java:135)
   org.alfresco.web.framework.render.AbstractRenderer.render(AbstractRenderer.java:105)
   org.alfresco.web.framework.render.bean.PageRenderer.body(PageRenderer.java:81)
   org.alfresco.web.framework.render.AbstractRenderer.render(AbstractRenderer.java:105)
   org.alfresco.web.framework.render.RenderUtil.startPageRenderer(RenderUtil.java:144)
   org.alfresco.web.framework.render.RenderUtil.renderPage(RenderUtil.java:117)
   org.alfresco.web.framework.render.PresentationUtil.renderPage(PresentationUtil.java:85)
   org.alfresco.web.site.servlet.DispatcherServlet.dispatchPage(DispatcherServlet.java:459)
   org.alfresco.web.site.servlet.DispatcherServlet.dispatch(DispatcherServlet.java:336)
   org.alfresco.web.site.servlet.DispatcherServlet.service(DispatcherServlet.java:153)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
   org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
   org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
   org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)
   org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)
   org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
   org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
   org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
   org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
   org.apache.coyote.ajp.AjpAprProcessor.process(AjpAprProcessor.java:444)
   org.apache.coyote.ajp.AjpAprProtocol$AjpConnectionHandler.process(AjpAprProtocol.java:472)
   org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1286)
   java.lang.Thread.run(Thread.java:619)
   
Exception:   org.alfresco.web.scripts.WebScriptException - Invalid uri 'http://sharerepo.alfresco.com/alfresco/s/slingshot/wiki/page/estrategiastic/CE_(Comisión_Europea)?format=mediawiki&alf_ticket=TICKET_a3de30a328c105083c97c08f4468f174bf42ebba': escaped absolute path not valid
   
   org.alfresco.web.scripts.PresentationScriptProcessor.executeScriptImpl(PresentationScriptProcessor.java:271)
   
Exception:   org.alfresco.web.scripts.WebScriptException - Failed to load script '/org/alfresco/components/dashlets/wiki.get.js (in classpath store file:/usr/share/tomcat5/webapps/share/WEB-INF/classes/alfresco/site-webscripts)': Invalid uri 'http://sharerepo.alfresco.com/alfresco/s/slingshot/wiki/page/estrategiastic/CE_(Comisión_Europea)?format=mediawiki&alf_ticket=TICKET_a3de30a328c105083c97c08f4468f174bf42ebba': escaped absolute path not valid
   
   org.alfresco.web.scripts.PresentationScriptProcessor.executeScript(PresentationScriptProcessor.java:161)
   
Server:   Alfresco Enterprise v3.1.0 (142) schema 1,008
Time:   Jan 26, 2010 3:41:17 PM
   
Diagnostics:   Inspect Web Script (org/alfresco/components/dashlets/wiki.get)


Si le doy al link ( /share/service/components/dashlets/wiki ) me aparece lo siguiente:

HTTP Status 500 -

type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

java.lang.NullPointerException
   org.alfresco.web.scripts.ProcessorModelHelper.populateModel(ProcessorModelHelper.java:125)
   org.alfresco.web.scripts.ProcessorModelHelper.populateTemplateModel(ProcessorModelHelper.java:316)
   org.alfresco.web.scripts.LocalWebScriptRuntimeContainer.getTemplateParameters(LocalWebScriptRuntimeContainer.java:98)
   org.alfresco.web.scripts.AbstractWebScript.createTemplateParameters(AbstractWebScript.java:417)
   org.alfresco.web.scripts.AbstractWebScript$1.getStatusModel(AbstractWebScript.java:630)
   org.alfresco.web.scripts.WebScriptException.getStatusModel(WebScriptException.java:158)
   org.alfresco.web.scripts.AbstractRuntime.executeScript(AbstractRuntime.java:170)
   org.alfresco.web.scripts.servlet.WebScriptServlet.service(WebScriptServlet.java:122)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

note The full stack trace of the root cause is available in the Apache Tomcat/5.5.23 logs.
Apache Tomcat/5.5.23


Y si le doy al link de Diagnostics:   (Inspect Web Script (org/alfresco/components/dashlets/wiki.get) ) se abre la siguiente página:

Web Script: org/alfresco/components/dashlets/wiki.get
Generated from /share/service/script/org/alfresco/components/dashlets/wiki.get on Jan 26, 2010 3:41:51 PM

Script Properties
Id:   org/alfresco/components/dashlets/wiki.get
Short Name:   Site Wiki
Description:   Display a wiki page, selected by the user.
Authentication:   none
Transaction:   none
Method:   GET
URL Template:   /components/dashlets/wiki
Format Style:   any
Default Format:   html
Negotiated Formats:   [undefined]
Implementation:   class org.alfresco.web.scripts.DeclarativeWebScript
Extensions:   [undefined]

Store: alfresco/site-webscripts

[No implementation files]

Store: classpath:alfresco/site-webscripts

File: org/alfresco/components/dashlets/wiki.get.head.ftl

<script type="text/javascript" src="${page.url.context}/components/wiki/parser.js"></script>
<script type="text/javascript" src="${page.url.context}/components/dashlets/wiki.js"></script>
<!– Simple Dialog Assets –>
<script type="text/javascript" src="${page.url.context}/modules/simple-dialog.js"></script>

File: org/alfresco/components/dashlets/wiki.get.properties

label.header=Site Wiki
label.header-prefix=Wiki
label.configure=Configure
label.noConfig=No page is configured
label.title=Title

File: org/alfresco/components/dashlets/wiki.get.html.ftl

<script type="text/javascript">//<![CDATA[
   new Alfresco.WikiDashlet("${args.htmlid}").setOptions(
   {
      guid: "${instance.object.id}",
      siteId: "${page.url.templateArgs.site!""}",
      pages: [<#if (pageList?? && pageList.pages?size &gt; 0)><#list pageList.pages as p>"${p.name}"<#if p_has_next>, </#if></#list></#if>]
   }).setMessages(
      ${messages}
   );
//]]></script>
<div class="dashlet wiki">
   <div class="title" id="${args.htmlid}-title">${msg("label.header-prefix")}<#if wikiLink??> - <a href="wiki-page?title=${wikiLink?url}">${pageTitle!msg("label.header")}</#if></a></div>
<#if userIsSiteManager>
   <div class="toolbar">
      <a class="theme-color-1" href="#" id="${args.htmlid}-wiki-link">${msg("label.configure")}</a>
   </div>
</#if>
   <div class="body scrollableList">
      <div id="${args.htmlid}-scrollableList" class="rich-content">
<#if wikipage?exists>
         ${wikipage}
<#else>
         ${msg("label.noConfig")}
</#if>
      </div>
   </div>
</div>

File: org/alfresco/components/dashlets/wiki.get.desc.xml

<webscript>
   <shortname>Site Wiki</shortname>
   <description>Display a wiki page, selected by the user.</description>
   <family>site-dashlet</family>
   <url>/components/dashlets/wiki</url>
</webscript>

File: org/alfresco/components/dashlets/wiki.get.js

<import resource="classpath:alfresco/site-webscripts/org/alfresco/callutils.js">

var wikipage = args.wikipage;
if (wikipage)
{
   var uri = "/slingshot/wiki/page/" + page.url.templateArgs.site + "/" + wikipage + "?format=mediawiki";

   var connector = remote.connect("alfresco");
   var result = connector.get(uri);
   if (result.status == status.STATUS_OK)
   {
      model.wikipage = result.response;
   }
  
   model.wikiLink = String(wikipage);
   model.pageTitle = String(wikipage).replace(/_/g, " ");

   // Get all pages for the site so we can display links correctly
   model.pageList = doGetCall("/slingshot/wiki/pages/" + page.url.templateArgs.site);
}

// Call the repository to see if the user is site manager or not
var userIsSiteManager = false;
var json = remote.call("/api/sites/" + page.url.templateArgs.site + "/memberships/" + stringUtils.urlEncode(user.name));
if (json.status == 200)
{
   var obj = eval('(' + json + ')');
   if (obj.role)
   {
      userIsSiteManager = (obj.role == "SiteManager");
   }
}
model.userIsSiteManager = userIsSiteManager;

Store: classpath:alfresco/webscripts

[No implementation files]


Os agradecería que pudierais ayudarme porque no se cómo ir marcha atrás. Nada más abrir mi sitio es eso lo que aparece y no se cómo arreglarlo.

Gracias de antemano

Outcomes