project images download through proxy

16 views
Skip to first unread message

Shuhua Wu

unread,
Dec 4, 2009, 3:07:12 PM12/4/09
to xnat_discussion
We have a xnat server that's not accessible from outside. We use a
server that's accessible from outside as proxy.
That is, http://www.predict-hd.net/xnat will redirect to
http://xnat.predict-hd.net:8080/xnat

The applet for project download images doesn't work. In the applet
page "<PARAM NAME="session0" VALUE="http://xnat.predict-hd.net:8080/
xnat/archive/catalogs/stored/1259954811142.xml">".

Can this be fixed please?

Thanks,
Shuhua

Shuhua Wu

unread,
Dec 4, 2009, 3:33:13 PM12/4/09
to xnat_discussion
Java Console displayed:

Reading certificates from 2164 https://www.predict-hd.net/xnat/applet/xdat-downloader-1.1.jar
| C:\Documents and Settings\shuhuawu\Application Data\Sun\Java
\Deployment\cache\6.0\23\631fc417-32191cdd.idx
Reading certificates from 11 https://www.predict-hd.net/xnat/applet/xdat-beans-1.0.jdk1.3.jar
| C:\Documents and Settings\shuhuawu\Application Data\Sun\Java
\Deployment\cache\6.0\59\317398fb-28fa3371.idx
Reading certificates from 2164 https://www.predict-hd.net/xnat/applet/xdat-downloader-1.1.jar
| C:\Documents and Settings\shuhuawu\Application Data\Sun\Java
\Deployment\cache\6.0\23\631fc417-32191cdd.idx
Reading certificates from 11 https://www.predict-hd.net/xnat/applet/log4j-1.2.8.jar
| C:\Documents and Settings\shuhuawu\Application Data\Sun\Java
\Deployment\cache\6.0\51\4c38dbf3-5604232d.idx
org.xml.sax.SAXParseException: Premature end of file.
at
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException
(Unknown Source)
at
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError
(Unknown Source)
at
com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError
(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError
(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl
$PrologDriver.next(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next
(Unknown Source)
at
com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next
(Unknown Source)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument
(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse
(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse
(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown
Source)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse
(Unknown Source)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl
$JAXPSAXParser.parse(Unknown Source)
at javax.xml.parsers.SAXParser.parse(Unknown Source)
at javax.xml.parsers.SAXParser.parse(Unknown Source)
at org.nrg.xdat.bean.reader.XDATXMLReader.parse(Unknown Source)
at org.nrg.xnat.fileManager.DownloaderApplet
$InitSessionThread.InitSession(DownloaderApplet.java:559)
at org.nrg.xnat.fileManager.DownloaderApplet$InitSessionThread.run
(DownloaderApplet.java:424)

On Dec 4, 2:07 pm, Shuhua Wu <shuhu...@gmail.com> wrote:
> We have a xnat server that's not accessible from outside. We use a
> server that's accessible from outside as proxy.
> That is,http://www.predict-hd.net/xnatwill redirect tohttp://xnat.predict-hd.net:8080/xnat

Timothy Olsen

unread,
Dec 7, 2009, 2:11:16 PM12/7/09
to xnat_di...@googlegroups.com
Shuhua,

Do other links work properly? Do the links in emails work properly?

What is the Site URL in Admin -> Default Settings set to?

Tim
--

You received this message because you are subscribed to the Google Groups "xnat_discussion" group.
To post to this group, send email to xnat_di...@googlegroups.com.
To unsubscribe from this group, send email to xnat_discussi...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/xnat_discussion?hl=en.

Shuhua Wu

unread,
Dec 8, 2009, 10:37:25 AM12/8/09
to xnat_discussion
Thanks Tim.

Other links work properly.

After set Site URL to www.predict-hd.net/xnat. It starts working. But
it won't work when we enter xnat.predict-dh.net:8080/xnat in browser
address from local network.

I started to download a project. After hours, it said "Download
complete". But it downloaded only 14GB of 26GB. I looked java console,
lots of IOException occurred, I copy two of them here:

Loading sub-catalog:https://www.predict-hd.net/xnat/archive/catalogs/
xnat:imageSessionData/PREDICTHD_E01694/scans/scan[type=DTI_71]
java.io.IOException: Server returned HTTP response code: 502 for URL:
https://www.predict-hd.net/xnat/archive/catalogs/xnat:imageSessionData/PREDICTHD_E01694/scans/scan[type=DTI_71]
at sun.net.www.protocol.http.HttpURLConnection.getInputStream
(HttpURLConnection.java:1196)
at com.ibm.net.ssl.www2.protocol.https.a.getInputStream(a.java:34)
at java.net.URL.openStream(URL.java:1044)
at org.nrg.xnat.fileManager.DownloaderApplet
$InitSessionThread.LoadImages(DownloaderApplet.java:490)
at org.nrg.xnat.fileManager.DownloaderApplet
$InitSessionThread.LoadImages(DownloaderApplet.java:472)
at org.nrg.xnat.fileManager.DownloaderApplet
$InitSessionThread.LoadImages(DownloaderApplet.java:472)
at org.nrg.xnat.fileManager.DownloaderApplet
$InitSessionThread.InitSession(DownloaderApplet.java:562)
at org.nrg.xnat.fileManager.DownloaderApplet$InitSessionThread.run
(DownloaderApplet.java:424)
Loading sub-catalog:https://www.predict-hd.net/xnat/archive/catalogs/
xnat:imageSessionData/PREDICTHD_E01694/scans/scan[type=DTI_30]
Loading sub-catalog:https://www.predict-hd.net/xnat/archive/catalogs/
xnat:imageSessionData/PREDICTHD_E01694/scans/scan[type=B0_MAP]
Loading sub-catalog:https://www.predict-hd.net/xnat/archive/catalogs/
xnat:imageSessionData/PREDICTHD_E01694/scans/scan[type=MPRAGE]
java.io.IOException: Server returned HTTP response code: 502 for URL:
https://www.predict-hd.net/xnat/archive/catalogs/xnat:imageSessionData/PREDICTHD_E01694/scans/scan[type=MPRAGE]
at sun.net.www.protocol.http.HttpURLConnection.getInputStream
(HttpURLConnection.java:1196)
at com.ibm.net.ssl.www2.protocol.https.a.getInputStream(a.java:34)
at java.net.URL.openStream(URL.java:1044)
at org.nrg.xnat.fileManager.DownloaderApplet
$InitSessionThread.LoadImages(DownloaderApplet.java:490)
at org.nrg.xnat.fileManager.DownloaderApplet
$InitSessionThread.LoadImages(DownloaderApplet.java:472)
at org.nrg.xnat.fileManager.DownloaderApplet
$InitSessionThread.LoadImages(DownloaderApplet.java:472)
at org.nrg.xnat.fileManager.DownloaderApplet
$InitSessionThread.InitSession(DownloaderApplet.java:562)
at org.nrg.xnat.fileManager.DownloaderApplet$InitSessionThread.run
(DownloaderApplet.java:424)


Any advices?

Thanks,
Shuhua


On Dec 7, 1:11 pm, Timothy Olsen <t...@npg.wustl.edu> wrote:
> Shuhua,
>
> Do other links work properly?  Do the links in emails work properly?
>
> What is the Site URL in Admin -> Default Settings set to?
>
> Tim
>
> -----Original Message-----
> From: Shuhua Wu [mailto:shuhu...@gmail.com]
> Sent: Friday, December 04, 2009 2:07 PM
> To: xnat_discussion
> Subject: project images download through proxy
>
> We have a xnat server that's not accessible from outside. We use a
> server that's accessible from outside as proxy.
> That is,http://www.predict-hd.net/xnatwill redirect tohttp://xnat.predict-hd.net:8080/xnat

Timothy Olsen

unread,
Dec 8, 2009, 12:01:47 PM12/8/09
to xnat_di...@googlegroups.com
Thanks, Shuhua.

The Project based downloader is in desperate need of refactoring. For starters, it needs to be using the REST API to download the files, rather than the old /archive/catalogs structure. The REST API is better tested.

I'll add this to our bug tracker.

Tim
Reply all
Reply to author
Forward
0 new messages