Upload applet error

61 views
Skip to first unread message

Antonio Rueda

unread,
Apr 15, 2014, 11:18:51 PM4/15/14
to xnat_di...@googlegroups.com
Hi to all.
 
I'm getting the following error when trying to call the upload applet in a remote server. I'm getting the same error in Ubuntu 12.04 (XNAT Desktop VM instance) and Windows 7 terminals. The upload applet works fine when used in the local instance of the Ubuntu VM.

Applet startup failed; please contact admini...@xnat.org for help.
Error details:
java.net.ConnectException: Connection refused
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
    at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
    at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
    at java.net.SocksSocketImpl.coninect(SocksSocketImpl.java:392)
    at java.net.Socket.connect(Socket.java:579)
    at sun.net.NetworkClient.doConnect(NetworkClient.java:178)
    at sun.net.www.http.HttpClient.openServer(HttpClient.java:432)
    at sun.net.www.http.HttpClient.openServer(HttpClient.java:527)
    at sun.net.www.http.HttpClient.<init>(HttpClient.java:211)
    at sun.net.www.http.HttpClient.New(HttpClient.java:308)
    at sun.net.www.http.HttpClient.New(HttpClient.java:326)
    at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:996)
    at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:932)
    at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:850)
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1300)
    at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:468)
    at org.nrg.net.RestServer.request(RestServer.java:414)
    at org.nrg.net.RestServer.getUserAuthMessage(RestServer.java:208)
    at org.nrg.upload.ui.UploadAssistantApplet.start(UploadAssistantApplet.java:143)
    at com.sun.deploy.uitoolkit.impl.awt.AWTAppletAdapter.start(Unknown Source)
    at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
    at java.lang.Thread.run(Thread.java:744)

Herrick, Rick

unread,
Apr 15, 2014, 11:24:56 PM4/15/14
to xnat_di...@googlegroups.com
Obviously you can access the XNAT application itself from your browser, so I don't think it's a firewall issue. Can you do a view-source on the page in which the applet is embedded and have a look at the code around the applet launch? I'm wondering if there's something weird going on with the parameters being passed to the applet…

-- 

Rick Herrick

Sr. Programmer/Analyst

Neuroinformatics Research Group

Washington University School of Medicine

(314) 827-4250


--
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 post to this group, send email to xnat_di...@googlegroups.com.
Visit this group at http://groups.google.com/group/xnat_discussion.
For more options, visit https://groups.google.com/d/optout.



The material in this message is private and may contain Protected Healthcare Information (PHI). 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.

Antonio Rueda

unread,
Apr 16, 2014, 12:08:45 AM4/16/14
to xnat_di...@googlegroups.com
Can you do a view-source on the page in which the applet is embedded and have a look at the code around the applet launch? 

Here's loadApplet, the full source for the page is attached. 



function loadApplet() {

var attributes = { code: 'org.nrg.upload.ui.UploadAssistantApplet', codebase: '/xnat/applet/', width: 800, height: 500, /* class: 'upload_applet', */ archive: 'UploadAssistant-1.6.3.jar, DicomEdit-4.0.0.jar, DicomUtils-1.3.1.jar, antlr-2.7.7.jar, antlr-runtime-3.4.jar, common-1.2.0.jar, commons-codec-1.5.jar, commons-lang-2.6.jar, dcm4che-core-2.0.25.jar, dicom-xnat-sop-1.6.3.jar, dicom-xnat-util-1.6.3.jar, ecat-edit-0.2.0.jar, ecat-io-0.1.0.jar, guava-12.0.1.jar, java-uuid-generator-3.1.3.jar, javax.inject-1.jar, jcalendar-1.4.jar, joda-time-2.1.jar, json-20090211.jar, jsr305-1.3.9.jar, log4j-1.2.16.jar, looks-2.4.1.jar, nrgutil-1.1.0.jar, slf4j-api-1.6.6.jar, slf4j-log4j12-1.6.6.jar, stringtemplate-3.2.1.jar, wizard-1.1.jar' };
var parameters = { 'xnat-url': 'http://ec2-54-83-36-18.compute-1.amazonaws.com/yttrium_xnat', 'xnat-admin-email': 'admini...@xnat.org', 'xnat-description': 'yttrium_xnat', 'n-upload-threads': '4', 'fixed-size-streaming': 'true', 'java_arguments': '-Djnlp.packEnabled=true', 'jsessionid': '74EDE6898F3FA131235AF93A646305DF'};

parameters['window-name'] = this.window.name;

parameters['xnat-project'] = 'project01';
parameters['xnat-subject'] = 'yttrium_xnat_S00001';
parameters['xnat-scan-date'] = 'no_session_date';
deployJava.runApplet(attributes, parameters, '1.6');
}
page_source.rar
Reply all
Reply to author
Forward
0 new messages