Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Downloading P5 files from Xubmit in admin page is not successful in the local environment #116

Closed
tubesoft opened this issue Dec 2, 2021 · 2 comments · Fixed by #117
Closed
Assignees
Labels
invalid This doesn't seem right

Comments

@tubesoft
Copy link
Collaborator

tubesoft commented Dec 2, 2021

I tried to update my local P5 files from Xubmit on the admin page (http://localhost:8080/admin), but I encountered some errors.

When I tried to update the authoritative bibliography, I got this message:

com.xmlcalabash.core.XProcException: Could not load http://algernon.dlib.indiana.edu:8080/xubmit/rest/repository/newtonbib/CHYM000001.xml (file:/[MY LOCATION]/newton_chymistry/xproc/administration.xpl) dtd-validate=false
	at com.xmlcalabash.core.XProcException.stepError(XProcException.java:184)
	at com.xmlcalabash.library.Load.run(Load.java:82)
	at com.xmlcalabash.runtime.XAtomicStep.run(XAtomicStep.java:389)
	at com.xmlcalabash.runtime.XPipeline.doRun(XPipeline.java:236)
	at com.xmlcalabash.runtime.XPipeline.run(XPipeline.java:136)
	at com.xmlcalabash.runtime.XPipelineCall.run(XPipelineCall.java:94)
	at com.xmlcalabash.runtime.XCompoundStep.run(XCompoundStep.java:262)
	at com.xmlcalabash.runtime.XChoose.run(XChoose.java:135)
	at com.xmlcalabash.runtime.XPipeline.doRun(XPipeline.java:236)
	at com.xmlcalabash.runtime.XPipeline.run(XPipeline.java:136)
	at com.conaltuohy.xprocz.XProcZServlet$RunnablePipeline.run(XProcZServlet.java:160)
	at com.conaltuohy.xprocz.XProcZServlet.service(XProcZServlet.java:524)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
	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:52)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:199)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:668)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81)
	at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:690)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
	at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:615)
	at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)
	at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:818)
	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1627)
	at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
	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)

Also, when I attempted to download the manuscript files, I got this message:

Error err:FOJS0001net.sf.saxon.s9api.SaxonApiException: Invalid JSON input: Unexpected character '<' (\u3c) at position 0
	at net.sf.saxon.s9api.XsltTransformer.transform(XsltTransformer.java:606)
	at com.xmlcalabash.library.XSLT.run(XSLT.java:254)
	at com.xmlcalabash.runtime.XAtomicStep.run(XAtomicStep.java:389)
	at com.xmlcalabash.runtime.XPipeline.doRun(XPipeline.java:236)
	at com.xmlcalabash.runtime.XPipeline.run(XPipeline.java:136)
	at com.xmlcalabash.runtime.XPipelineCall.run(XPipelineCall.java:94)
	at com.xmlcalabash.runtime.XCompoundStep.run(XCompoundStep.java:262)
	at com.xmlcalabash.runtime.XChoose.run(XChoose.java:135)
	at com.xmlcalabash.runtime.XPipeline.doRun(XPipeline.java:236)
	at com.xmlcalabash.runtime.XPipeline.run(XPipeline.java:136)
	at com.conaltuohy.xprocz.XProcZServlet$RunnablePipeline.run(XProcZServlet.java:160)
	at com.conaltuohy.xprocz.XProcZServlet.service(XProcZServlet.java:524)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
	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:52)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:199)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:668)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81)
	at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:690)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
	at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:615)
	at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)
	at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:818)
	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1627)
	at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
	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: net.sf.saxon.trans.XPathException: Invalid JSON input: Unexpected character '<' (\u3c) at position 0
	at net.sf.saxon.ma.json.JsonParser.error(JsonParser.java:401)
	at net.sf.saxon.ma.json.JsonParser.invalidJSON(JsonParser.java:414)
	at net.sf.saxon.ma.json.JsonParser.access$000(JsonParser.java:26)
	at net.sf.saxon.ma.json.JsonParser$JsonTokenizer.readToken(JsonParser.java:563)
	at net.sf.saxon.ma.json.JsonParser$JsonTokenizer.next(JsonParser.java:453)
	at net.sf.saxon.ma.json.JsonParser.parse(JsonParser.java:68)
	at net.sf.saxon.ma.json.ParseJsonFn.parse(ParseJsonFn.java:89)
	at net.sf.saxon.ma.json.JsonDoc.call(JsonDoc.java:86)
	at net.sf.saxon.expr.FunctionCall.iterate(FunctionCall.java:547)
	at net.sf.saxon.expr.instruct.GlobalVariable.getSelectValue(GlobalVariable.java:643)
	at net.sf.saxon.expr.instruct.GlobalVariable.actuallyEvaluate(GlobalVariable.java:724)
	at net.sf.saxon.expr.instruct.GlobalVariable.evaluateVariable(GlobalVariable.java:692)
	at net.sf.saxon.expr.GlobalVariableReference.evaluateVariable(GlobalVariableReference.java:126)
	at net.sf.saxon.expr.VariableReference.iterate(VariableReference.java:536)
	at net.sf.saxon.expr.ItemChecker.iterate(ItemChecker.java:227)
	at net.sf.saxon.expr.ForExpression.iterate(ForExpression.java:399)
	at net.sf.saxon.expr.ItemChecker.iterate(ItemChecker.java:227)
	at net.sf.saxon.expr.ForExpression.iterate(ForExpression.java:399)
	at net.sf.saxon.expr.FilterExpression.iterate(FilterExpression.java:1139)
	at net.sf.saxon.expr.instruct.ForEach.processLeavingTail(ForEach.java:434)
	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.LetExpression.processLeavingTail(LetExpression.java:709)
	at net.sf.saxon.expr.instruct.TemplateRule.applyLeavingTail(TemplateRule.java:347)
	at net.sf.saxon.trans.Mode.applyTemplates(Mode.java:505)
	at net.sf.saxon.Controller.transformDocument(Controller.java:2411)
	at net.sf.saxon.Controller.transform(Controller.java:1979)
	at net.sf.saxon.s9api.XsltTransformer.transform(XsltTransformer.java:596)
	... 34 more

Judging from the messages, it does not seem to be due to my local side issues. If anyone knows what is happening here, please let me know.

@tubesoft tubesoft added the invalid This doesn't seem right label Dec 2, 2021
@mdalmau
Copy link
Collaborator

mdalmau commented Dec 2, 2021 via email

@randalldfloyd
Copy link
Contributor

@mdalmau @tubesoft These server locations were changed accordingly in the server instances but I forgot to push them upstream for locally cloned repos to pick up. Do a pull on master and it should fix it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants