cool thanks! :-)

it's weird that a name-empty page has appeared there, so I've added a
simple check on the IndexPlugin to ensure that page
isn't considered. I've tried to  create this name-empty page through normal
use of JSPWiki but haven't been able.. perhaps
it was there from previous versions :-?

best regards,
jp

On Sun, Nov 29, 2020 at 4:10 PM Harry Metske <harry.met...@gmail.com> wrote:

> I did find the following odd files/dirs:
>
> "-att" ==> zero length attachment name
> ".txt" => zero length page name
>
> Removed those, also deleted the lucene index and restarted JSPWiki.
> The IndexPlugin now works properly again.
>
> cheers,
> Harry
>
> On Sat, 28 Nov 2020 at 15:08, Harry Metske <harry.met...@gmail.com> wrote:
>
> > It was still running 2.11.0-M5. I upgraded to 2.11.0-M7, but the problem
> > persists.
> > I could not find zero length page files.
> >
> > cheers,
> > Harry
> >
> >
> > On Sat, 28 Nov 2020 at 14:36, Harry Metske <harry.met...@gmail.com>
> wrote:
> >
> >> 2020-11-28 05:22:37,405 INFO plugin.DefaultPluginManager - Plugin failed
> >> while executing:
> >> java.lang.StringIndexOutOfBoundsException: String index out of range: 0
> >>         at java.lang.String.charAt(String.java:658)
> >>         at
> org.apache.wiki.plugin.IndexPlugin.execute(IndexPlugin.java:79)
> >>         at
> >>
> org.apache.wiki.plugin.DefaultPluginManager.execute(DefaultPluginManager.java:341)
> >>         at
> >> org.apache.wiki.parser.PluginContent.invoke(PluginContent.java:203)
> >>         at
> >> org.apache.wiki.parser.PluginContent.getText(PluginContent.java:153)
> >>         at
> >>
> org.jdom2.output.support.AbstractXMLOutputProcessor.printText(AbstractXMLOutputProcessor.java:771)
> >>         at
> >>
> org.jdom2.output.support.AbstractXMLOutputProcessor.printContent(AbstractXMLOutputProcessor.java:956)
> >>         at
> >>
> org.jdom2.output.support.AbstractXMLOutputProcessor.printElement(AbstractXMLOutputProcessor.java:868)
> >>         at
> >>
> org.jdom2.output.support.AbstractXMLOutputProcessor.printContent(AbstractXMLOutputProcessor.java:946)
> >>         at
> >>
> org.jdom2.output.support.AbstractXMLOutputProcessor.process(AbstractXMLOutputProcessor.java:236)
> >>         at
> >>
> org.jdom2.output.XMLOutputter.outputElementContent(XMLOutputter.java:881)
> >>         at
> >> org.apache.wiki.render.XHTMLRenderer.getString(XHTMLRenderer.java:71)
> >>         at
> >>
> org.apache.wiki.render.RenderingManager.getHTML(RenderingManager.java:271)
> >>         at
> >>
> org.apache.wiki.render.RenderingManager.getHTML(RenderingManager.java:332)
> >>         at org.apache.wiki.WikiEngine.textToHTML(WikiEngine.java:1417)
> >>         at org.apache.wiki.WikiEngine.getHTML(WikiEngine.java:1359)
> >>         at
> >>
> org.apache.wiki.tags.InsertPageTag.doWikiStartTag(InsertPageTag.java:128)
> >>         at
> >> org.apache.wiki.tags.WikiTagBase.doStartTag(WikiTagBase.java:89)
> >>         at
> >>
> org.apache.jsp.templates.default_.PageTab_jsp._jspx_meth_wiki_005fInsertPage_005f0(PageTab_jsp.java:1203)
> >>         at
> >>
> org.apache.jsp.templates.default_.PageTab_jsp._jspService(PageTab_jsp.java:327)
> >>         at
> >> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
> >>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:742)
> >>         at
> >>
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:443)
> >>         at
> >> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:385)
> >>         at
> >> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:329)
> >>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:742)
> >>         at
> >>
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
> >>         at
> >>
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
> >>         at
> >>
> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:710)
> >>         at
> >>
> org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:580)
> >>         at
> >>
> org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:516)
> >>         at
> >>
> org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:895)
> >>         at
> >>
> org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:490)
> >>         at org.apache.wiki.tags.IncludeTag.doEndTag(IncludeTag.java:84)
> >>         at
> >>
> org.apache.jsp.templates.reader.ViewTemplate_jsp._jspx_meth_wiki_005fInclude_005f0(ViewTemplate_jsp.java:1229)
> >>         at
> >>
> org.apache.jsp.templates.reader.ViewTemplate_jsp._jspService(ViewTemplate_jsp.java:290)
> >>         at
> >> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
> >>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:742)
> >>         at
> >>
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:443)
> >>         at
> >> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:385)
> >>         at
> >> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:329)
> >>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:742)
> >>         at
> >>
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
> >>         at
> >>
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
> >>         at
> >>
> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:710)
> >>         at
> >>
> org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:580)
> >>         at
> >>
> org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:516)
> >>         at
> >>
> org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:895)
> >>         at
> >>
> org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:490)
> >>         at org.apache.wiki.tags.IncludeTag.doEndTag(IncludeTag.java:84)
> >>         at org.apache.jsp.Wiki_jsp._jspService(Wiki_jsp.java:171)
> >>         at
> >> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
> >>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:742)
> >>         at
> >>
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:443)
> >>         at
> >> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:385)
> >>         at
> >> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:329)
> >>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:742)
> >>         at
> >>
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
> >>         at
> >>
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
> >>         at
> >> org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
> >>         at
> >>
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
> >>         at
> >>
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
> >>         at
> >>
> org.apache.wiki.ui.WikiServletFilter.doFilter(WikiServletFilter.java:164)
> >>         at
> >> org.apache.wiki.ui.WikiJSPFilter.doFilter(WikiJSPFilter.java:110)
> >>
> >> On Fri, 27 Nov 2020 at 22:20, Juan Pablo Santos Rodríguez <
> >> juanpablo.san...@gmail.com> wrote:
> >>
> >>> Hi,
> >>>
> >>> https://jspwiki-wiki.apache.org/Wiki.jsp?page=PageIndex is currently
> not
> >>> showing the page index, but
> >>> just that the plugin has failed. Could anyone dig in the logs and paste
> >>> here the associated stacktrace?
> >>> It seems that with the change of my pc at home I've missed setting up
> the
> >>> access to the VM, and now
> >>> have to remember/search how to do it..
> >>>
> >>> If it is not related to the underlying page provider / pages on the
> file
> >>> system we could add some checks
> >>> on the plugin for upcoming 2.11.0-M8
> >>>
> >>>
> >>> thx in advance,
> >>> juan pablo
> >>>
> >>
>

Reply via email to