Servlet Error: NullPointer
An unexpected servlet error has occurred.
Stack Trace:
java.lang.NullPointerException at net.sf.saxon.value.Value.asItem(Value.java:71) at net.sf.saxon.expr.VariableReference.evaluateItem(VariableReference.java:291) at net.sf.saxon.expr.ArithmeticExpression.evaluateItem(ArithmeticExpression.java:226) at net.sf.saxon.expr.ValueComparison.effectiveBooleanValue(ValueComparison.java:552) at net.sf.saxon.instruct.Choose.iterate(Choose.java:409) at net.sf.saxon.expr.Atomizer.iterate(Atomizer.java:96) at net.sf.saxon.expr.UntypedAtomicConverter.iterate(UntypedAtomicConverter.java:130) at net.sf.saxon.expr.CardinalityChecker.iterate(CardinalityChecker.java:143) at net.sf.saxon.expr.LazyExpression.iterate(LazyExpression.java:95) at net.sf.saxon.value.MemoClosure.iterate(MemoClosure.java:89) at net.sf.saxon.value.Value.asItem(Value.java:81) at net.sf.saxon.value.Value.asItem(Value.java:71) at net.sf.saxon.expr.VariableReference.evaluateItem(VariableReference.java:291) at net.sf.saxon.expr.ArithmeticExpression.evaluateItem(ArithmeticExpression.java:226) at net.sf.saxon.expr.ArithmeticExpression.evaluateItem(ArithmeticExpression.java:226) at net.sf.saxon.expr.ArithmeticExpression.evaluateItem(ArithmeticExpression.java:226) at net.sf.saxon.expr.ExpressionTool.evaluate(ExpressionTool.java:361) at net.sf.saxon.expr.LetExpression.eval(LetExpression.java:229) at net.sf.saxon.expr.LetExpression.processLeavingTail(LetExpression.java:396) at net.sf.saxon.instruct.Block.processLeavingTail(Block.java:365) at net.sf.saxon.instruct.Instruction.process(Instruction.java:91) at net.sf.saxon.expr.LetExpression.process(LetExpression.java:268) at net.sf.saxon.instruct.ForEach.processLeavingTail(ForEach.java:243) at net.sf.saxon.expr.LetExpression.processLeavingTail(LetExpression.java:405) at net.sf.saxon.instruct.Block.processLeavingTail(Block.java:365) at net.sf.saxon.expr.LetExpression.processLeavingTail(LetExpression.java:405) at net.sf.saxon.instruct.Template.expand(Template.java:112) at net.sf.saxon.instruct.CallTemplate.process(CallTemplate.java:212) at net.sf.saxon.instruct.CallTemplate.processLeavingTail(CallTemplate.java:237) at net.sf.saxon.instruct.Block.processLeavingTail(Block.java:365) at net.sf.saxon.instruct.Instruction.process(Instruction.java:91) at net.sf.saxon.instruct.ElementCreator.processLeavingTail(ElementCreator.java:240) at net.sf.saxon.instruct.Block.processLeavingTail(Block.java:365) at net.sf.saxon.instruct.Instruction.process(Instruction.java:91) at net.sf.saxon.instruct.ElementCreator.processLeavingTail(ElementCreator.java:240) at net.sf.saxon.instruct.Choose.processLeavingTail(Choose.java:347) at net.sf.saxon.instruct.Block.processLeavingTail(Block.java:365) at net.sf.saxon.instruct.Instruction.process(Instruction.java:91) at net.sf.saxon.instruct.ElementCreator.processLeavingTail(ElementCreator.java:240) at net.sf.saxon.instruct.Block.processLeavingTail(Block.java:365) at net.sf.saxon.instruct.Instruction.process(Instruction.java:91) at net.sf.saxon.instruct.ElementCreator.processLeavingTail(ElementCreator.java:240) at net.sf.saxon.instruct.Block.processLeavingTail(Block.java:365) at net.sf.saxon.instruct.Instruction.process(Instruction.java:91) at net.sf.saxon.instruct.ElementCreator.processLeavingTail(ElementCreator.java:240) at net.sf.saxon.instruct.Block.processLeavingTail(Block.java:365) at net.sf.saxon.instruct.Instruction.process(Instruction.java:91) at net.sf.saxon.instruct.ElementCreator.processLeavingTail(ElementCreator.java:240) at net.sf.saxon.instruct.Template.applyLeavingTail(Template.java:98) at net.sf.saxon.instruct.ApplyTemplates.applyTemplates(ApplyTemplates.java:317) at net.sf.saxon.instruct.ApplyTemplates.apply(ApplyTemplates.java:187) at net.sf.saxon.instruct.ApplyTemplates.process(ApplyTemplates.java:147) at net.sf.saxon.instruct.DocumentInstr.evaluateItem(DocumentInstr.java:243) at net.sf.saxon.expr.ExpressionTool.evaluate(ExpressionTool.java:361) at net.sf.saxon.instruct.GeneralVariable.getSelectValue(GeneralVariable.java:284) at net.sf.saxon.instruct.Instruction.assembleParams(Instruction.java:164) at net.sf.saxon.instruct.CallTemplate.processLeavingTail(CallTemplate.java:247) at net.sf.saxon.instruct.Choose.processLeavingTail(Choose.java:347) at net.sf.saxon.instruct.Template.applyLeavingTail(Template.java:98) at net.sf.saxon.instruct.ApplyTemplates.applyTemplates(ApplyTemplates.java:317) at net.sf.saxon.Controller.transformDocument(Controller.java:1705) at net.sf.saxon.Controller.transform(Controller.java:1513) at org.cdlib.xtf.crossQuery.CrossQuery.formatHits(CrossQuery.java:512) at org.cdlib.xtf.crossQuery.CrossQuery.apply(CrossQuery.java:209) at org.cdlib.xtf.crossQuery.CrossQuery.doGet(CrossQuery.java:153) at javax.servlet.http.HttpServlet.service(HttpServlet.java:489) at org.cdlib.xtf.servletBase.TextServlet.service(TextServlet.java:449) at javax.servlet.http.HttpServlet.service(HttpServlet.java:583) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:212) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:156) at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:181) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:156) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:156) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:90) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:483) at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:679) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:130) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:93) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:346) at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:617) at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:63) at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:934) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1690) at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:52) at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191) at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:63) at java.lang.Thread.run(Thread.java:750)