clarin-eric / VLO

Virtual Language Observatory
GNU General Public License v3.0
14 stars 6 forks source link

CMDI to HTML transformation: Internal error evaluating template rule #171

Closed twagoo closed 6 years ago

twagoo commented 6 years ago

when clicking on the "All metadata" tab for record http://hdl.handle.net/11022/0000-0000-2E82-A (record page), an "Internal error" page is shown. The following stack trace is logged:

2018-05-08 15:41:01,706 ERROR [org.apache.wicket.DefaultExceptionMapper#mapUnexpectedExceptions:170] - Unexpected error occurred
org.apache.wicket.WicketRuntimeException: An error occurred while getting the model object for Component: [Component id = content, page = eu.clarin.cmdi.vlo.wicket.pages.RecordPage, path = tabs:panel:content, type = org.apache.wicket.markup.html.basic.Label, isVisible = true, isVersioned = false, markup = [markup = file:/srv/webapps/vlo/vlo-4.4.1-production/war/vlo/WEB-INF/classes/eu/clarin/cmdi/vlo/wicket/panels/CmdiContentPanel.html
<div wicket:id="content"></div>, index = 0, current =  '<div wicket:id="content">' (line 0, column 0)]]
    at org.apache.wicket.Component.getDefaultModelObject(Component.java:1651)
    at org.apache.wicket.Component.getDefaultModelObjectAsString(Component.java:1674)
    at org.apache.wicket.markup.html.basic.Label.onComponentTagBody(Label.java:115)
    at org.apache.wicket.markup.html.panel.DefaultMarkupSourcingStrategy.onComponentTagBody(DefaultMarkupSourcingStrategy.java:70)
    at org.apache.wicket.Component.internalRenderComponent(Component.java:2601)
    at org.apache.wicket.markup.html.WebComponent.onRender(WebComponent.java:60)
    at org.apache.wicket.Component.internalRender(Component.java:2401)
    at org.apache.wicket.Component.render(Component.java:2329)
    at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1515)
    at org.apache.wicket.MarkupContainer.renderAll(MarkupContainer.java:1718)
    at org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1693)
    at org.apache.wicket.MarkupContainer.renderAssociatedMarkup(MarkupContainer.java:799)
    at org.apache.wicket.markup.html.panel.AssociatedMarkupSourcingStrategy.renderAssociatedMarkup(AssociatedMarkupSourcingStrategy.java:77)
    at org.apache.wicket.markup.html.panel.PanelMarkupSourcingStrategy.onComponentTagBody(PanelMarkupSourcingStrategy.java:112)
    at org.apache.wicket.Component.internalRenderComponent(Component.java:2601)
    at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1657)
    at org.apache.wicket.Component.internalRender(Component.java:2401)
    at org.apache.wicket.Component.render(Component.java:2329)
    at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1515)
    at org.apache.wicket.MarkupContainer.renderAll(MarkupContainer.java:1718)
    at org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1693)
    at org.apache.wicket.MarkupContainer.renderAssociatedMarkup(MarkupContainer.java:799)
    at org.apache.wicket.markup.html.panel.AssociatedMarkupSourcingStrategy.renderAssociatedMarkup(AssociatedMarkupSourcingStrategy.java:77)
    at org.apache.wicket.markup.html.panel.PanelMarkupSourcingStrategy.onComponentTagBody(PanelMarkupSourcingStrategy.java:112)
    at org.apache.wicket.Component.internalRenderComponent(Component.java:2601)
    at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1657)
    at org.apache.wicket.Component.internalRender(Component.java:2401)
    at org.apache.wicket.Component.render(Component.java:2329)
    at org.apache.wicket.page.XmlPartialPageUpdate.writeComponent(XmlPartialPageUpdate.java:119)
    at org.apache.wicket.page.PartialPageUpdate.writeComponents(PartialPageUpdate.java:248)
    at org.apache.wicket.page.PartialPageUpdate.writeTo(PartialPageUpdate.java:161)
    at org.apache.wicket.ajax.AjaxRequestHandler.respond(AjaxRequestHandler.java:358)
    at org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:895)
    at org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:64)
    at org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:97)
    at org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:265)
    at org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:222)
    at org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:293)
    at org.apache.wicket.protocol.http.WicketFilter.processRequestCycle(WicketFilter.java:261)
    at org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:203)
    at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:284)
    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:218)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:110)
    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:506)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
    at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:962)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:445)
    at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:190)
    at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:637)
    at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
    at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.RuntimeException: Internal error evaluating template rule  at line 142 in module
    at net.sf.saxon.expr.instruct.TemplateRule.applyLeavingTail(TemplateRule.java:360)
    at net.sf.saxon.trans.Mode.applyTemplates(Mode.java:502)
    at net.sf.saxon.trans.TextOnlyCopyRuleSet.process(TextOnlyCopyRuleSet.java:69)
    at net.sf.saxon.trans.Mode.applyTemplates(Mode.java:478)
    at net.sf.saxon.Controller.transformDocument(Controller.java:2402)
    at net.sf.saxon.Controller.transform(Controller.java:1970)
    at net.sf.saxon.s9api.XsltTransformer.transform(XsltTransformer.java:596)
    at net.sf.saxon.jaxp.TransformerImpl.transform(TransformerImpl.java:73)
    at eu.clarin.cmdi.vlo.service.impl.XmlTransformationServiceImpl.transformXml(XmlTransformationServiceImpl.java:95)
    at eu.clarin.cmdi.vlo.wicket.model.XsltModel.load(XsltModel.java:69)
    at eu.clarin.cmdi.vlo.wicket.model.XsltModel.load(XsltModel.java:40)
    at org.apache.wicket.model.LoadableDetachableModel.getObject(LoadableDetachableModel.java:135)
    at org.apache.wicket.Component.getDefaultModelObject(Component.java:1646)
    ... 57 more
Caused by: java.lang.RuntimeException: Internal error evaluating template rule  at line 15 in module
    at net.sf.saxon.expr.instruct.TemplateRule.applyLeavingTail(TemplateRule.java:360)
    at net.sf.saxon.trans.Mode.applyTemplates(Mode.java:502)
    at net.sf.saxon.expr.instruct.ApplyTemplates.apply(ApplyTemplates.java:295)
    at net.sf.saxon.expr.instruct.ApplyTemplates.processLeavingTail(ApplyTemplates.java:252)
    at net.sf.saxon.expr.instruct.Block.processLeavingTail(Block.java:687)
    at net.sf.saxon.expr.instruct.Instruction.process(Instruction.java:151)
    at net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:337)
    at net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:284)
    at net.sf.saxon.expr.instruct.TemplateRule.applyLeavingTail(TemplateRule.java:347)
    ... 69 more
Caused by: java.lang.RuntimeException: Internal error evaluating template rule  at line 15 in module
    at net.sf.saxon.expr.instruct.TemplateRule.applyLeavingTail(TemplateRule.java:360)
    at net.sf.saxon.trans.Mode.applyTemplates(Mode.java:502)
    at net.sf.saxon.expr.instruct.ApplyTemplates.apply(ApplyTemplates.java:295)
    at net.sf.saxon.expr.instruct.ApplyTemplates.processLeavingTail(ApplyTemplates.java:252)
    at net.sf.saxon.expr.instruct.Block.processLeavingTail(Block.java:687)
    at net.sf.saxon.expr.instruct.Instruction.process(Instruction.java:151)
    at net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:337)
    at net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:284)
    at net.sf.saxon.expr.instruct.Choose.processLeavingTail(Choose.java:879)
    at net.sf.saxon.expr.instruct.Block.processLeavingTail(Block.java:687)
    at net.sf.saxon.expr.instruct.Instruction.process(Instruction.java:151)
    at net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:337)
    at net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:284)
    at net.sf.saxon.expr.instruct.Block.processLeavingTail(Block.java:687)
    at net.sf.saxon.expr.LetExpression.processLeavingTail(LetExpression.java:698)
    at net.sf.saxon.expr.instruct.Choose.processLeavingTail(Choose.java:879)
    at net.sf.saxon.expr.instruct.Instruction.process(Instruction.java:151)
    at net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:337)
    at net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:284)
    at net.sf.saxon.expr.instruct.Choose.processLeavingTail(Choose.java:879)
    at net.sf.saxon.expr.instruct.TemplateRule.applyLeavingTail(TemplateRule.java:347)
    ... 77 more
Caused by: java.lang.RuntimeException: Internal error evaluating template rule  at line 15 in module
    at net.sf.saxon.expr.instruct.TemplateRule.applyLeavingTail(TemplateRule.java:360)
    at net.sf.saxon.trans.Mode.applyTemplates(Mode.java:502)
    at net.sf.saxon.expr.instruct.ApplyTemplates.apply(ApplyTemplates.java:295)
    at net.sf.saxon.expr.instruct.ApplyTemplates.processLeavingTail(ApplyTemplates.java:252)
    at net.sf.saxon.expr.instruct.Block.processLeavingTail(Block.java:687)
    at net.sf.saxon.expr.instruct.Instruction.process(Instruction.java:151)
    at net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:337)
    at net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:284)
    at net.sf.saxon.expr.instruct.Choose.processLeavingTail(Choose.java:879)
    at net.sf.saxon.expr.instruct.Block.processLeavingTail(Block.java:687)
    at net.sf.saxon.expr.instruct.Instruction.process(Instruction.java:151)
    at net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:337)
    at net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:284)
    at net.sf.saxon.expr.instruct.Block.processLeavingTail(Block.java:687)
    at net.sf.saxon.expr.LetExpression.processLeavingTail(LetExpression.java:698)
    at net.sf.saxon.expr.instruct.Choose.processLeavingTail(Choose.java:879)
    at net.sf.saxon.expr.instruct.Instruction.process(Instruction.java:151)
    at net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:337)
    at net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:284)
    at net.sf.saxon.expr.instruct.Choose.processLeavingTail(Choose.java:879)
    at net.sf.saxon.expr.instruct.TemplateRule.applyLeavingTail(TemplateRule.java:347)
    ... 97 more
Caused by: java.lang.RuntimeException: Internal error evaluating template rule  at line 15 in module
    at net.sf.saxon.expr.instruct.TemplateRule.applyLeavingTail(TemplateRule.java:360)
    at net.sf.saxon.trans.Mode.applyTemplates(Mode.java:502)
    at net.sf.saxon.expr.instruct.ApplyTemplates.apply(ApplyTemplates.java:295)
    at net.sf.saxon.expr.instruct.ApplyTemplates.processLeavingTail(ApplyTemplates.java:252)
    at net.sf.saxon.expr.instruct.Block.processLeavingTail(Block.java:687)
    at net.sf.saxon.expr.instruct.Instruction.process(Instruction.java:151)
    at net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:337)
    at net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:284)
    at net.sf.saxon.expr.instruct.Choose.processLeavingTail(Choose.java:879)
    at net.sf.saxon.expr.instruct.Block.processLeavingTail(Block.java:687)
    at net.sf.saxon.expr.instruct.Instruction.process(Instruction.java:151)
    at net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:337)
    at net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:284)
    at net.sf.saxon.expr.instruct.Block.processLeavingTail(Block.java:687)
    at net.sf.saxon.expr.LetExpression.processLeavingTail(LetExpression.java:698)
    at net.sf.saxon.expr.instruct.Choose.processLeavingTail(Choose.java:879)
    at net.sf.saxon.expr.instruct.Instruction.process(Instruction.java:151)
    at net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:337)
    at net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:284)
    at net.sf.saxon.expr.instruct.Choose.processLeavingTail(Choose.java:879)
    at net.sf.saxon.expr.instruct.TemplateRule.applyLeavingTail(TemplateRule.java:347)
    ... 117 more
Caused by: java.lang.RuntimeException: Internal error evaluating template rule  at line 15 in module
    at net.sf.saxon.expr.instruct.TemplateRule.applyLeavingTail(TemplateRule.java:360)
    at net.sf.saxon.trans.Mode.applyTemplates(Mode.java:502)
    at net.sf.saxon.expr.instruct.ApplyTemplates.apply(ApplyTemplates.java:295)
    at net.sf.saxon.expr.instruct.ApplyTemplates.processLeavingTail(ApplyTemplates.java:252)
    at net.sf.saxon.expr.instruct.Block.processLeavingTail(Block.java:687)
    at net.sf.saxon.expr.instruct.Instruction.process(Instruction.java:151)
    at net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:337)
    at net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:284)
    at net.sf.saxon.expr.instruct.Choose.processLeavingTail(Choose.java:879)
    at net.sf.saxon.expr.instruct.Block.processLeavingTail(Block.java:687)
    at net.sf.saxon.expr.instruct.Instruction.process(Instruction.java:151)
    at net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:337)
    at net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:284)
    at net.sf.saxon.expr.instruct.Block.processLeavingTail(Block.java:687)
    at net.sf.saxon.expr.LetExpression.processLeavingTail(LetExpression.java:698)
    at net.sf.saxon.expr.instruct.Choose.processLeavingTail(Choose.java:879)
    at net.sf.saxon.expr.instruct.Instruction.process(Instruction.java:151)
    at net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:337)
    at net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:284)
    at net.sf.saxon.expr.instruct.Choose.processLeavingTail(Choose.java:879)
    at net.sf.saxon.expr.instruct.TemplateRule.applyLeavingTail(TemplateRule.java:347)
    ... 137 more
Caused by: java.lang.RuntimeException: Internal error evaluating template rule  at line 15 in module
    at net.sf.saxon.expr.instruct.TemplateRule.applyLeavingTail(TemplateRule.java:360)
    at net.sf.saxon.trans.Mode.applyTemplates(Mode.java:502)
    at net.sf.saxon.expr.instruct.ApplyTemplates.apply(ApplyTemplates.java:295)
    at net.sf.saxon.expr.instruct.ApplyTemplates.processLeavingTail(ApplyTemplates.java:252)
    at net.sf.saxon.expr.instruct.Block.processLeavingTail(Block.java:687)
    at net.sf.saxon.expr.instruct.Instruction.process(Instruction.java:151)
    at net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:337)
    at net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:284)
    at net.sf.saxon.expr.instruct.Choose.processLeavingTail(Choose.java:879)
    at net.sf.saxon.expr.instruct.Block.processLeavingTail(Block.java:687)
    at net.sf.saxon.expr.instruct.Instruction.process(Instruction.java:151)
    at net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:337)
    at net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:284)
    at net.sf.saxon.expr.instruct.Block.processLeavingTail(Block.java:687)
    at net.sf.saxon.expr.LetExpression.processLeavingTail(LetExpression.java:698)
    at net.sf.saxon.expr.instruct.Choose.processLeavingTail(Choose.java:879)
    at net.sf.saxon.expr.instruct.Instruction.process(Instruction.java:151)
    at net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:337)
    at net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:284)
    at net.sf.saxon.expr.instruct.Choose.processLeavingTail(Choose.java:879)
    at net.sf.saxon.expr.instruct.TemplateRule.applyLeavingTail(TemplateRule.java:347)
    ... 157 more
Caused by: java.lang.RuntimeException: Internal error evaluating template rule  at line 77 in module
    at net.sf.saxon.expr.instruct.TemplateRule.applyLeavingTail(TemplateRule.java:360)
    at net.sf.saxon.trans.Mode.applyTemplates(Mode.java:502)
    at net.sf.saxon.expr.instruct.ApplyTemplates.apply(ApplyTemplates.java:295)
    at net.sf.saxon.expr.instruct.ApplyTemplates.processLeavingTail(ApplyTemplates.java:252)
    at net.sf.saxon.expr.instruct.Block.processLeavingTail(Block.java:687)
    at net.sf.saxon.expr.instruct.Instruction.process(Instruction.java:151)
    at net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:337)
    at net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:284)
    at net.sf.saxon.expr.instruct.Block.processLeavingTail(Block.java:687)
    at net.sf.saxon.expr.instruct.Choose.processLeavingTail(Choose.java:879)
    at net.sf.saxon.expr.instruct.Instruction.process(Instruction.java:151)
    at net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:337)
    at net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:284)
    at net.sf.saxon.expr.instruct.Choose.processLeavingTail(Choose.java:879)
    at net.sf.saxon.expr.instruct.TemplateRule.applyLeavingTail(TemplateRule.java:347)
    ... 177 more
Caused by: java.lang.ArrayIndexOutOfBoundsException
twagoo commented 6 years ago

Possibly a similar issue as the one described in Saxon bug report #3655. If so, should have been fixed in 9.8.0-8 (VLO 4.4.x has 9.8.0-7 as a dependency).

twagoo commented 6 years ago

Bumping Saxon-HE to 9.8.0-8 fixes it; deployed to alpha to verify.