XNAT Gateway problem

88 views
Skip to first unread message

Simon Doran

unread,
Jul 28, 2011, 9:06:11 AM7/28/11
to xnat_discussion
Misha,

Having set Gateway up with no problems for the XNAT instance running
on my local Mac, I am now trying to run XNAT Gateway on the Solaris
machine where our production XNAT server is.

There is no specific download for Solaris on your webpage, but I
figured that since it was Java, then the linux jars should work just
as well. I followed the linux instructions and the initial setup
screen popped up just fine. I filled in the parameters as follows:

Gateway settings
AE Title: XNAT_GATEWAY
Port: 4008

Default XNAT Server
Name: XNAT
Hostname: http://localhost
Username: admin
Password: xxxx

I got the error below when I clicked on "Apply".

The most significant part of the error seems to be:

Nested exception:
java.net.UnknownHostException: www.jboss.org

I have tried various other values for hostname, including the actual
IP address and the complete URL of the XNAT instance, both with and
without the 8080 port. If I wanted to access my XNAT webapp from the
same machine that I am running Gateway on, the required URL would be
http://localhost:8080/XNAT15.

Any ideas what I am doing wrong?

Could this be a firewall problem on port 4008?

Thanks,

Simon


Detailed text of error:

~/.../Gateway% java -jar dist/gatewaye.jar
log4j:WARN No appenders could be found for logger (root).
log4j:WARN Please initialize the log4j system properly.
Warning:No remote devices found in the config file
Cannot start server: exception during server initializationexception:
org.dom4j.DocumentException: www.jboss.org Nested exception: www.jboss.org
at org.dom4j.io.SAXReader.read(SAXReader.java:484)
at org.dom4j.io.SAXReader.read(SAXReader.java:264)
at
org.nrg.xnat.gateway.XNATGatewayServer.initServerParams(XNATGatewayServer.java:
279)
at
org.nrg.xnat.gateway.XNATGatewayServer.<init>(XNATGatewayServer.java:
136)
at
org.nrg.xnat.gateway.XNATGatewayServer.start(XNATGatewayServer.java:
334)
at
org.nrg.xnat.gui.InitialProperties.initializeEnvironment(InitialProperties.java:
75)
at
org.nrg.xnat.gui.InitialProperties.initialSetupDone(InitialProperties.java:
65)
at
org.nrg.xnat.gui.InitialSetupGUI.initial_apply_buttonMousePressed(InitialSetupGUI.java:
225)
at org.nrg.xnat.gui.InitialSetupGUI.access
$1(InitialSetupGUI.java:202)
at org.nrg.xnat.gui.InitialSetupGUI
$2.mousePressed(InitialSetupGUI.java:95)
at
java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:
263)
at java.awt.Component.processMouseEvent(Component.java:6131)
at javax.swing.JComponent.processMouseEvent(JComponent.java:
3265)
at java.awt.Component.processEvent(Component.java:5899)
at java.awt.Container.processEvent(Container.java:2023)
at java.awt.Component.dispatchEventImpl(Component.java:4501)
at java.awt.Container.dispatchEventImpl(Container.java:2081)
at java.awt.Component.dispatchEvent(Component.java:4331)
at
java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4301)
at
java.awt.LightweightDispatcher.processMouseEvent(Container.java:3962)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:
3895)
at java.awt.Container.dispatchEventImpl(Container.java:2067)
at java.awt.Window.dispatchEventImpl(Window.java:2458)
at java.awt.Component.dispatchEvent(Component.java:4331)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
at
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:
269)
at
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:
184)
at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:
174)
at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:
122)
Nested exception:
java.net.UnknownHostException: www.jboss.org
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:177)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
at java.net.Socket.connect(Socket.java:519)
at java.net.Socket.connect(Socket.java:469)
at sun.net.NetworkClient.doConnect(NetworkClient.java:163)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:394)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:529)
at sun.net.www.http.HttpClient.<init>(HttpClient.java:233)
at sun.net.www.http.HttpClient.New(HttpClient.java:306)
at sun.net.www.http.HttpClient.New(HttpClient.java:323)
at
sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:
837)
at
sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:
778)
at
sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:
703)
at
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:
1026)
at
com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(XMLEntityManager.java:
677)
at
com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startEntity(XMLEntityManager.java:
1315)
at
com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startDTDEntity(XMLEntityManager.java:
1282)
at
com.sun.org.apache.xerces.internal.impl.XMLDTDScannerImpl.setInputSource(XMLDTDScannerImpl.java:
283)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl
$DTDDriver.dispatch(XMLDocumentScannerImpl.java:1192)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl
$DTDDriver.next(XMLDocumentScannerImpl.java:1089)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl
$PrologDriver.next(XMLDocumentScannerImpl.java:1002)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:
648)
at
com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:
140)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:
510)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:
807)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:
737)
at
com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:
107)
at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:
1205)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl
$JAXPSAXParser.parse(SAXParserImpl.java:522)
at org.dom4j.io.SAXReader.read(SAXReader.java:465)
at org.dom4j.io.SAXReader.read(SAXReader.java:264)
at
org.nrg.xnat.gateway.XNATGatewayServer.initServerParams(XNATGatewayServer.java:
279)
at
org.nrg.xnat.gateway.XNATGatewayServer.<init>(XNATGatewayServer.java:
136)
at
org.nrg.xnat.gateway.XNATGatewayServer.start(XNATGatewayServer.java:
334)
at
org.nrg.xnat.gui.InitialProperties.initializeEnvironment(InitialProperties.java:
75)
at
org.nrg.xnat.gui.InitialProperties.initialSetupDone(InitialProperties.java:
65)
at
org.nrg.xnat.gui.InitialSetupGUI.initial_apply_buttonMousePressed(InitialSetupGUI.java:
225)
at org.nrg.xnat.gui.InitialSetupGUI.access
$1(InitialSetupGUI.java:202)
at org.nrg.xnat.gui.InitialSetupGUI
$2.mousePressed(InitialSetupGUI.java:95)
at
java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:
263)
at java.awt.Component.processMouseEvent(Component.java:6131)
at javax.swing.JComponent.processMouseEvent(JComponent.java:
3265)
at java.awt.Component.processEvent(Component.java:5899)
at java.awt.Container.processEvent(Container.java:2023)
at java.awt.Component.dispatchEventImpl(Component.java:4501)
at java.awt.Container.dispatchEventImpl(Container.java:2081)
at java.awt.Component.dispatchEvent(Component.java:4331)
at
java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4301)
at
java.awt.LightweightDispatcher.processMouseEvent(Container.java:3962)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:
3895)
at java.awt.Container.dispatchEventImpl(Container.java:2067)
at java.awt.Window.dispatchEventImpl(Window.java:2458)
at java.awt.Component.dispatchEvent(Component.java:4331)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
at
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:
269)
at
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:
184)
at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:
174)
at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:
122)
Exception in thread "AWT-EventQueue-0"
java.lang.IllegalArgumentException: GroupLayout can only be used with
one Container at a time
at javax.swing.GroupLayout.checkParent(GroupLayout.java:1095)
at javax.swing.GroupLayout.invalidateLayout(GroupLayout.java:
987)
at java.awt.Container.invalidate(Container.java:1421)
at java.awt.Component.addNotify(Component.java:6525)
at java.awt.Container.addNotify(Container.java:2549)
at javax.swing.JComponent.addNotify(JComponent.java:4683)
at java.awt.Container.addNotify(Container.java:2560)
at javax.swing.JComponent.addNotify(JComponent.java:4683)
at java.awt.Container.addNotify(Container.java:2560)
at javax.swing.JComponent.addNotify(JComponent.java:4683)
at javax.swing.JRootPane.addNotify(JRootPane.java:735)
at java.awt.Container.addNotify(Container.java:2560)
at java.awt.Window.addNotify(Window.java:645)
at java.awt.Frame.addNotify(Frame.java:470)
at java.awt.Window.show(Window.java:841)
at java.awt.Component.show(Component.java:1447)
at java.awt.Component.setVisible(Component.java:1400)
at java.awt.Window.setVisible(Window.java:824)
at org.nrg.xnat.gui.InitialProperties
$3.run(InitialProperties.java:55)
at
java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
at
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:
269)
at
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:
184)
at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:
174)
at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:
122)


Simon Doran

unread,
Jul 28, 2011, 10:12:09 AM7/28/11
to xnat_discussion
Update:

I realised that a workaround for this problem was to run XNAT Gateway
locally on the Mac where OsiriX is. I tried this and I was able to use
the OsiriX "Query" and "Query Patient" options. Everything seemed to
work fine up until the point where I actually tried to download the
data. At that point the communication definitely happened, but OsiriX
gave me an error message "MoveDestinationUnknown" and the Gateway log,
correspondingly has:

INFO - sending AAssociateAC
appCtxName: 1.2.840.10008.3.1.1.1/DICOM Application Context Name
implClass: 1.2.40.0.13.1.1
implVersion: dcm4che-1.4.27
calledAET: GATEWAY_104012
callingAET: OSIRIX_104012
maxPDULen: 16352
asyncOpsWindow:
pc-1: 0 - acceptance
ts=1.2.840.10008.1.2/Implicit VR Little Endian
INFO - received [pc-1] 1:C_MOVE_RQ with Dataset
class: 1.2.840.10008.5.1.4.1.2.2.2/Study Root Query/Retrieve
Information Model - MOVE
move dest: OSIRIX_104012
INFO - sending [pc-1] 1:C_MOVE_RSP
class: 1.2.840.10008.5.1.4.1.2.2.2/Study Root Query/Retrieve
Information Model - MOVE
status: a801
error comment: OSIRIX_104012
INFO - received A-RELEASE-RQ
INFO - sending A-RELEASE-RP
INFO - finished - Socket[addr=/127.0.0.1,port=62069,localport=4008]
INFO - closing connection - Socket[addr=/
127.0.0.1,port=62069,localport=4008]

Any suggestions?

Simon

Simon Doran

unread,
Jul 28, 2011, 10:37:31 AM7/28/11
to xnat_discussion
OK. Sorted. Sorry to "debug on line".

Just a simple problem with my AE configuration. I hadn't realised it
would do all the listing even with this information incorrect.

However, I would still like to know why I can't set Gateway running
on the same server as the production XNAT instance.

Simon

Mikhail Milchenko

unread,
Jul 28, 2011, 4:57:12 PM7/28/11
to xnat_di...@googlegroups.com
Hi Simon,

Unfortunately, we don't have opportunity to directly support Gateway on Solaris, so your experience here will be pioneering. First thing you want to check is java -version on that machine, as the problem seems to be with enterprise beans. Sun Java 1.6 should theoretically work. Otherwise, I would suggest setting Gateway up on the same network, on a machine with supported OS variety (Linux would be your first choice, I presume).

I will try to look at the code that seems to be problematic, but no earlier than tomorrow.

Regards,
Misha



--
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.


Simon Doran

unread,
Jul 29, 2011, 5:55:45 AM7/29/11
to xnat_discussion
Thanks Misha. I'm at home today, looking after the kids - school is
out! - but will get back to this on Monday.

Simon

misha

unread,
Jul 29, 2011, 10:54:09 AM7/29/11
to xnat_discussion
If Java version seems OK and you still have the issue, try replacing
the file <Gateway dir>/config/dcm4chee-qrscp-xmbean.xml with this one:

http://dl.dropbox.com/u/29611235/dcm4chee-qrscp-xmbean.xml

- Misha
Reply all
Reply to author
Forward
0 new messages