A message like that usually means that the REST call that’s generating it is getting an error message of some sort. The pipeline code is trying to process it as XML, but since it’s just a message of some sort the parsing fails.
Does the AutoRun.xml work for other users and/or in other contexts, i.e. are snapshots generated for data uploaded through other means?
--
Rick Herrick
Sr. Programmer/Analyst
Neuroinformatics Research Group
Washington University School of Medicine
Phone: +1 (314) 273-1645
--
You received this message because you are subscribed to the Google Groups "xnat_discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
xnat_discussi...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/xnat_discussion/45c6b157-27ce-4daa-b41d-4db2a7c3139f%40googlegroups.com.
The materials in this message are private and may contain Protected Healthcare Information or other information of a sensitive nature. If you are not the intended recipient, be advised that any unauthorized use, disclosure, copying or the taking of any action in reliance on the contents of this information is strictly prohibited. If you have received this email in error, please immediately notify the sender via telephone or return mail.
A message like that usually means that the REST call that’s generating it is getting an error message of some sort. The pipeline code is trying to process it as XML, but since it’s just a message of some sort the parsing fails.
Does the AutoRun.xml work for other users and/or in other contexts, i.e. are snapshots generated for data uploaded through other means?
--
Rick Herrick
Sr. Programmer/Analyst
Neuroinformatics Research Group
Washington University School of Medicine
Phone: +1 (314) 273-1645
From: "xnat_di...@googlegroups.com" <xnat_di...@googlegroups.com> on behalf of Lorena Escudero <loren...@gmail.com>
Reply-To: "xnat_di...@googlegroups.com" <xnat_di...@googlegroups.com>
Date: Thursday, April 9, 2020 at 9:14 AM
To: "xnat_di...@googlegroups.com" <xnat_di...@googlegroups.com>
Subject: [XNAT Discussion] AutoRun.xml error
Hello,
I am receiving emails with the log below with what looks like an xml parsing error every time a user is uploading images. I believe the user is using the Compressed Uploader method and this is being uploading one patient at a time. Any ideas how and where this is happening, and if this is something to be worried about? I can see the scans archived and I can open them with the viewer, so I haven't encountered any problems so far...
Thanks,
Lorena
Pipeline:
/data/xnat/pipeline/catalog/xnat_tools/AutoRun.xml
Cause:
org.nrg.pipeline.exception.PipelineEngineException: fileUtils:GetCachePath(/Pipeline/parameters/parameter[name='resolvedHost']/values/unique/text(), /Pipeline/parameters/parameter[name='user']/values/unique/text(), /Pipeline/parameters/parameter[name='pwd']/values/unique/text(),/Pipeline/parameters/parameter[name='project']/values/unique/text()) Encountered class net.sf.saxon.trans.XPathException==>org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 39; Content is not allowed in prolog. org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 39; Content is not allowed in prolog. at org.nrg.pipeline.xpath.XPathResolverSaxon.resolveXPathExpressions(XPathResolverSaxon.java:269) at org.nrg.pipeline.xpath.XPathResolverSaxon.resolveXPathExpressions(XPathResolverSaxon.java:153) at org.nrg.pipeline.xpath.XPathResolverSaxon.resolveXPathExpressions(XPathResolverSaxon.java:279) at org.nrg.pipeline.xpath.XPathResolverSaxon.evaluate(XPathResolverSaxon.java:87) at org.nrg.pipeline.utils.ParameterUtils.resolveParameterValues(ParameterUtils.java:183) at org.nrg.pipeline.utils.ParameterUtils.setParameterValues(ParameterUtils.java:171) at org.nrg.pipeline.utils.PipelineEngineUtils.resolveXPath(PipelineEngineUtils.java:87) at org.nrg.pipeline.manager.PipelineManager.launchPipeline(PipelineManager.java:210) at org.nrg.pipeline.manager.PipelineManager.launchPipeline(PipelineManager.java:193) at org.nrg.pipeline.client.XNATPipelineLauncher.launch(XNATPipelineLauncher.java:63) at org.nrg.pipeline.client.XNATPipelineLauncher.run(XNATPipelineLauncher.java:298) at org.nrg.pipeline.client.XNATPipelineLauncher.main(XNATPipelineLauncher.java:260)
--
You received this message because you are subscribed to the Google Groups "xnat_discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to xnat_di...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/xnat_discussion/45c6b157-27ce-4daa-b41d-4db2a7c3139f%40googlegroups.com.
Yes, that’s exactly what’s failing. The default AutoRun pipeline includes generating snapshots for new sessions and running any other pipelines that are configured to auto-run for the that session’s project. The error you’re seeing comes when the pipeline calls back to XNAT via REST and is expecting an XML document to be returned (maybe the XML for the new session or maybe for a workflow), but is getting an error of some sort back instead.
Two things to try:
It’s weird that this is only happening for these particular sessions. This is the sort of thing that tends to work or not work.
To unsubscribe from this group and stop receiving emails from it, send an email to
xnat_discussi...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/xnat_discussion/2f9aa1d8-cda0-491a-849a-98eb827a2493%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/xnat_discussion/2f9aa1d8-cda0-491a-849a-98eb827a2493%40googlegroups.com.
Another option is to look in the XNAT log file pipeline.log. The lines in there will be something like:
2020-04-09 12:00:53,332 [xxx] ERROR someClassName – Couldnt launch pipeline something: /data/xnat/pipeline/bin/XnatPipelineLauncher <a bunch of stuff>
If you take that line starting with <pipeline path>/bin/XnatPipelineLauncher up to the end of the line, you can run that from the command line on the server. Either put it in a file and run that as a script or just paste the entire command into a shell and run it that way. That may give you more information on what exactly is failing.
To unsubscribe from this group and stop receiving emails from it, send an email to
xnat_discussi...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/xnat_discussion/74cf2ab5-417d-4c09-8c4f-578256723b1f%40googlegroups.com.
INFO: Starting the HTTP client
Apr 09, 2020 6:21:09 PM com.noelios.restlet.http.HttpClientCall getResponseEntity
INFO: The length of the message body is unknown. The entity must be handled carefully and consumed entirely in order to surely release the connection.
Cachepath /data/xnat/cache/PROJECT/
Error on line 1 column 39
SXXP0003: Error reported by XML parser: Content is not allowed in prolog.
Logging to File /data/xnat/pipeline/logs/pipeline_2020_04_09_18_21_07.log
Thanks!
To view this discussion on the web visit https://groups.google.com/d/msgid/xnat_discussion/74cf2ab5-417d-4c09-8c4f-578256723b1f%40googlegroups.com.