Dicom Server

33 views
Skip to first unread message

anda

unread,
Jun 24, 2009, 11:40:17 AM6/24/09
to xnat_discussion
I'm trying to run DicomServer-xnat-1.4tc2 on Txnat_1_4rc2 and have
some problems. I have killed -9 java, Dicomserver and restarted
Tomcat, Dicomserver, but still does not work.
I've checked the message posted on April with the same issue, but was
not very helpful in my case.

Below is the DicomServer.xml and the Dicom log file.

Thank you
Anda



<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd">
<properties>
<comment>
configuration file for DicomServer, by kar...@npg.wustl.edu
</comment>

<entry key="arcspec">/rri_disks/stars/xnat_mri/xnat_cache/
archive_specification.xml</entry>
<entry key="xnat_url">http://63.243.143.238</entry>
<entry key="user">admin</entry>
<entry key="password">admin</entry>

<entry key="xnat_public_url">http://63.243.143.238</entry>


<entry key="http_port">8080</entry>
<entry key="scp_public_host">63.243.143.238</entry>
<entry key="scp_public_port">8104</entry>
<entry key="sessions_url">http://63.243.143.238:8080/xnat</entry>
<entry key="project_spec">(0008,1030):Project:\s*(\w+)</entry>

<entry key="log4j.rootLogger">WARN,R</entry>

<entry key="log4j.appender.R">org.apache.log4j.RollingFileAppender</
entry>
<entry key="log4j.appender.R.File">/var/log/DicomServer.log</entry>
<entry key="log4j.appender.R.MaxFileSize">100KB</entry>
<entry key="log4j.appender.R.MaxBackupIndex">4</entry>
<entry key="log4j.appender.R.layout">org.apache.log4j.PatternLayout</
entry>
<entry key="log4j.appender.R.layout.ConversionPattern">%d %5p [%t] %c
- %m%n</entry>

<entry key="log4j.logger.org.dcm4che2">WARN</entry>
<entry key="log4j.logger.org.nrg">INFO</entry>

</properties>

====================
2009-06-24 11:25:44,522 INFO [main] org.nrg.dcm.CStoreService -
Starting C-STORE service on port 8104
2009-06-24 11:25:44,642 WARN [main] org.mortbay.log - failed
SocketC...@0.0.0.0:8080
java.net.BindException: Address already in use
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359)
at java.net.ServerSocket.bind(ServerSocket.java:319)
at java.net.ServerSocket.<init>(ServerSocket.java:185)
at java.net.ServerSocket.<init>(ServerSocket.java:141)
at org.mortbay.jetty.bio.SocketConnector.newServerSocket
(SocketConnector.java:80)
at org.mortbay.jetty.bio.SocketConnector.open(SocketConnector.java:
73)
at org.mortbay.jetty.AbstractConnector.doStart(AbstractConnector.java:
283)
at org.mortbay.jetty.bio.SocketConnector.doStart(SocketConnector.java:
147)
at org.mortbay.component.AbstractLifeCycle.start
(AbstractLifeCycle.java:39)
at org.mortbay.jetty.Server.doStart(Server.java:233)
at org.mortbay.component.AbstractLifeCycle.start
(AbstractLifeCycle.java:39)
at org.nrg.dcm.DicomServer.startWebServices(DicomServer.java:485)
at org.nrg.dcm.DicomServer.<init>(DicomServer.java:414)
at org.nrg.dcm.DicomServer.main(DicomServer.java:616)
2009-06-24 11:25:44,646 WARN [main] org.mortbay.log - failed
Server@16d2633
java.net.BindException: Address already in use
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359)
at java.net.ServerSocket.bind(ServerSocket.java:319)
at java.net.ServerSocket.<init>(ServerSocket.java:185)
at java.net.ServerSocket.<init>(ServerSocket.java:141)
at org.mortbay.jetty.bio.SocketConnector.newServerSocket
(SocketConnector.java:80)
at org.mortbay.jetty.bio.SocketConnector.open(SocketConnector.java:
73)
at org.mortbay.jetty.AbstractConnector.doStart(AbstractConnector.java:
283)
at org.mortbay.jetty.bio.SocketConnector.doStart(SocketConnector.java:
147)
at org.mortbay.component.AbstractLifeCycle.start
(AbstractLifeCycle.java:39)
at org.mortbay.jetty.Server.doStart(Server.java:233)
at org.mortbay.component.AbstractLifeCycle.start
(AbstractLifeCycle.java:39)
at org.nrg.dcm.DicomServer.startWebServices(DicomServer.java:485)
at org.nrg.dcm.DicomServer.<init>(DicomServer.java:414)
at org.nrg.dcm.DicomServer.main(DicomServer.java:616)
2009-06-24 11:25:44,648 ERROR [main] org.nrg.dcm.DicomServer - unable
to start http services
java.net.BindException: Address already in use
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359)
at java.net.ServerSocket.bind(ServerSocket.java:319)
at java.net.ServerSocket.<init>(ServerSocket.java:185)
at java.net.ServerSocket.<init>(ServerSocket.java:141)
at org.mortbay.jetty.bio.SocketConnector.newServerSocket
(SocketConnector.java:80)
at org.mortbay.jetty.bio.SocketConnector.open(SocketConnector.java:
73)
at org.mortbay.jetty.AbstractConnector.doStart(AbstractConnector.java:
283)
at org.mortbay.jetty.bio.SocketConnector.doStart(SocketConnector.java:
147)
at org.mortbay.component.AbstractLifeCycle.start
(AbstractLifeCycle.java:39)
at org.mortbay.jetty.Server.doStart(Server.java:233)
at org.mortbay.component.AbstractLifeCycle.start
(AbstractLifeCycle.java:39)
at org.nrg.dcm.DicomServer.startWebServices(DicomServer.java:485)
at org.nrg.dcm.DicomServer.<init>(DicomServer.java:414)
at org.nrg.dcm.DicomServer.main(DicomServer.java:616)
2009-06-24 11:25:58,716 INFO [XNAT-2]
org.nrg.xnat.AbstractSessionManager - Creating new session for
1.3.12.2.1107.5.2.32.35120.30000009042812375590600000022 from /
63.243.143.238:33533:Oort
2009-06-24 11:25:58,735 ERROR [XNAT-2]
org.nrg.xnat.AbstractSessionManager - unable to create session for
1.3.12.2.1107.5.2.32.35120.2009042814015645809644143
org.nrg.xnat.SessionManagerException: unable to check for archived
session
at org.nrg.xnat.AbstractSessionManager.assertNotAlreadyArchived
(AbstractSessionManager.java:111)
at org.nrg.xnat.MapSessionManager.initSession(MapSessionManager.java:
104)
at org.nrg.xnat.AbstractSessionManager.store
(AbstractSessionManager.java:215)
at org.nrg.xnat.MapSessionManager.store(MapSessionManager.java:28)
at org.nrg.xnat.AbstractSessionManager.store
(AbstractSessionManager.java:184)
at org.nrg.xnat.MapSessionManager.store(MapSessionManager.java:28)
at org.nrg.dcm.CStoreService.doCStore(CStoreService.java:189)
at org.nrg.dcm.CStoreService.cstore(CStoreService.java:178)
at org.dcm4che2.net.DicomServiceRegistry.process
(DicomServiceRegistry.java:238)
at org.dcm4che2.net.NetworkApplicationEntity.perform
(NetworkApplicationEntity.java:1199)
at org.dcm4che2.net.Association.onDimseRQ(Association.java:925)
at org.dcm4che2.net.PDUDecoder.decodeDIMSE(PDUDecoder.java:530)
at org.dcm4che2.net.Association.onPDataTF(Association.java:902)
at org.dcm4che2.net.State$Sta6.receivedPDataTF(State.java:239)
at org.dcm4che2.net.Association.receivedPDataTF(Association.java:898)
at org.dcm4che2.net.PDUDecoder.nextPDU(PDUDecoder.java:231)
at org.dcm4che2.net.Association.run(Association.java:808)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.io.FileNotFoundException:
http://63.243.143.238:8080/REST/experiments?studyInstanceUID=1.3.12.2.1107.5.2.32.35120.30000009042812375590600000022&format=json
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance
(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance
(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at sun.net.www.protocol.http.HttpURLConnection$6.run
(HttpURLConnection.java:1296)
at java.security.AccessController.doPrivileged(Native Method)
at sun.net.www.protocol.http.HttpURLConnection.getChainedException
(HttpURLConnection.java:1290)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream
(HttpURLConnection.java:944)
at org.nrg.xnat.AbstractSessionManager.getArchivedSessions
(AbstractSessionManager.java:155)
at org.nrg.xnat.AbstractSessionManager.assertNotAlreadyArchived
(AbstractSessionManager.java:102)
... 17 more
Caused by: java.io.FileNotFoundException:
http://63.243.143.238:8080/REST/experiments?studyInstanceUID=1.3.12.2.1107.5.2.32.35120.30000009042812375590600000022&format=json
at sun.net.www.protocol.http.HttpURLConnection.getInputStream
(HttpURLConnection.java:1239)
at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:
373)
at org.nrg.xnat.AbstractSessionManager.getArchivedSessions
(AbstractSessionManager.java:127)
... 18 more

Kevin Archie

unread,
Jun 24, 2009, 11:59:44 AM6/24/09
to xnat_di...@googlegroups.com
It looks like something (probably Tomcat) is bound to HTTP port 8080,
which DicomServer uses to host web services (mostly for the XNAT
upload applet). Change the http_port and sessions_url properties to
some other port that isn't in use (I like to use 8103). You'll also
need to change the DICOM Server HTTP URL (in the XNAT default
settings) so the upload applet can find the DicomServer web services.

- k

anda

unread,
Jun 24, 2009, 1:27:33 PM6/24/09
to xnat_discussion
Hi Kevin
Hi Kevin

This is what I have done:

1: Edit Dicom Server
****************************
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd">
<properties>
<comment>
configuration file for DicomServer, by kar...@npg.wustl.edu
</comment>

<entry key="arcspec">/rri_disks/lutetis/xnat_mri/xnat_cache/
archive_specification.xml</entry>
<entry key="xnat_url">http://63.243.222.238</entry>
<entry key="user">admin</entry>
<entry key="password">admin</entry>

<entry key="xnat_public_url">http://63.243.222.238</entry>


<entry key="http_port">8103</entry>
<entry key="scp_public_host">63.243.222.238</entry>
<entry key="scp_public_port">8104</entry>
<entry key="sessions_url">http://63.243.222.238:8103/xnat</entry>
<entry key="project_spec">(0008,1030):Project:\s*(\w+)</entry>

<entry key="log4j.rootLogger">WARN,R</entry>

<entry key="log4j.appender.R">org.apache.log4j.RollingFileAppender</
entry>
<entry key="log4j.appender.R.File">/var/log/DicomServer.log</entry>
<entry key="log4j.appender.R.MaxFileSize">100KB</entry>
<entry key="log4j.appender.R.MaxBackupIndex">4</entry>
<entry key="log4j.appender.R.layout">org.apache.log4j.PatternLayout</
entry>
<entry key="log4j.appender.R.layout.ConversionPattern">%d %5p [%t] %c
- %m%n</entry>

<entry key="log4j.logger.org.dcm4che2">WARN</entry>
<entry key="log4j.logger.org.nrg">INFO</entry>

</properties>

*********
2. Edit & Save the Default Settings (GUI)
DICOM Server HTTP URL
This is the url used by the DICOM Upload Applet to connect to DICOM
Server's internal HTTP server. It should match the value you set when
you configured DICOM Server as 'sessions_url'. >http://
63.243.222.238:8103/xnat

**************
3. Reboot the server

***********88
4. Restart Tomcat, Dicom server, DB. The xnat application was loaded
on the browser using 8080 port (did not work with 8103 port)

Outcome:

2009-06-24 13:16:39,840 INFO [main] org.nrg.dcm.CStoreService -
Starting C-STORE service on port 8104
2009-06-24 13:16:40,113 INFO [main] org.nrg.dcm.DicomServer -
Starting web services on port 8103
2009-06-24 13:19:38,472 INFO [XNAT-2]
org.nrg.xnat.AbstractSessionManager - Creating new session for
1.3.12.2.1107.5.2.32.35120.30000009042812375590600000022 from /
63.243.222.238:32794:Oort
2009-06-24 13:19:38,519 ERROR [XNAT-2]
Caused by: java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:
195)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
at java.net.Socket.connect(Socket.java:519)
at java.net.Socket.connect(Socket.java:469)
at sun.net.NetworkClient.doConnect(NetworkClient.java:157)
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:788)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect
(HttpURLConnection.java:729)
at sun.net.www.protocol.http.HttpURLConnection.connect
(HttpURLConnection.java:654)
at org.nrg.xnat.AbstractSessionManager.getArchivedSessions
(AbstractSessionManager.java:126)
at org.nrg.xnat.AbstractSessionManager.assertNotAlreadyArchived
(AbstractSessionManager.java:102)
... 17 more

Thank you
Anda



On Jun 24, 11:59 am, Kevin Archie <karc...@npg.wustl.edu> wrote:
> It  looks like something (probably Tomcat) is bound to HTTP port 8080,  
> which DicomServer uses to host web services (mostly for the XNAT  
> upload applet).  Change the http_port and sessions_url properties to  
> some other port that isn't in use (I like to use 8103).  You'll also  
> need to change the DICOM Server HTTP URL (in the XNAT default  
> settings) so the upload applet can find the DicomServer web services.
>
>    - k
>
> On Jun 24, 2009, at 10:40 AM, anda wrote:
>
>
>
>
>
> > I'm trying to run DicomServer-xnat-1.4tc2 on Txnat_1_4rc2 and have
> > some problems. I have killed -9 java, Dicomserver and restarted
> > Tomcat,  Dicomserver,  but still does not work.
> > I've checked the message posted on April with the same issue, but was
> > not very helpful in my case.
>
> > Below is the DicomServer.xml and the Dicom log file.
>
> > Thank you
> > Anda
>
> > <?xml version="1.0" encoding="UTF-8"?>
> > <!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd">
> > <properties>
> > <comment>
> >        configuration file for DicomServer, by karc...@npg.wustl.edu
> > SocketConnec...@0.0.0.0:8080
> >http://63.243.143.238:8080/REST/experiments?studyInstanceUID=1.3.12.2...
> >        at  
> > sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
> > Method)
> >        at sun.reflect.NativeConstructorAccessorImpl.newInstance
> > (NativeConstructorAccessorImpl.java:39)
> >        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance
> > (DelegatingConstructorAccessorImpl.java:27)
> >        at java.lang.reflect.Constructor.newInstance(Constructor.java:
> > 513)
> >        at sun.net.www.protocol.http.HttpURLConnection$6.run
> > (HttpURLConnection.java:1296)
> >        at java.security.AccessController.doPrivileged(Native Method)
> >        at sun.net.www.protocol.http.HttpURLConnection.getChainedException
> > (HttpURLConnection.java:1290)
> >        at sun.net.www.protocol.http.HttpURLConnection.getInputStream
> > (HttpURLConnection.java:944)
> >        at org.nrg.xnat.AbstractSessionManager.getArchivedSessions
> > (AbstractSessionManager.java:155)
> >        at org.nrg.xnat.AbstractSessionManager.assertNotAlreadyArchived
> > (AbstractSessionManager.java:102)
> >        ... 17 more
> > Caused by: java.io.FileNotFoundException:
> >http://63.243.143.238:8080/REST/experiments?studyInstanceUID=1.3.12.2...

Kevin Archie

unread,
Jun 24, 2009, 3:43:00 PM6/24/09
to xnat_di...@googlegroups.com
The property xnat_url needs to be the full base URL of your XNAT
installation -- the same you'd type into a browser to access the
website. This probably looks like http://63.243.222.238:8080/{web app
name}/ .

The property xnat_public_url is optional, and really hardly ever used;
unless you need it, I'd delete that line. (It's used only in the case
where DicomServer accesses XNAT at a different address than clients
would: for example, if DicomServer is running on the same machine as
XNAT, and they're both behind a load balancer or other device that
does address remapping.)

- Kevin

anda

unread,
Jun 25, 2009, 9:36:00 AM6/25/09
to xnat_discussion
Hi Kevin

I've made the change, but still does not work. Now the port 8103 seems
to be bound to something.

***************
DicomServer.xml
******************
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd">
<properties>
<comment>
configuration file for DicomServer, by kar...@npg.wustl.edu
</comment>

<entry key="arcspec">/rri_disks/lutetis/xnat_mri/xnat_cache/
archive_specification.xml</entry>
<entry key="xnat_url">http://63.243.222.238:8080/xnat</entry>
<entry key="user">admin</entry>
<entry key="password">admin</entry>




<entry key="http_port">8103</entry>
<entry key="scp_public_host">63.222.143.238</entry>
<entry key="scp_public_port">8104</entry>
<entry key="sessions_url">http://63.222.143.238:8103/xnat</entry>
<entry key="project_spec">(0008,1030):Project:\s*(\w+)</entry>

<entry key="log4j.rootLogger">WARN,R</entry>

<entry key="log4j.appender.R">org.apache.log4j.RollingFileAppender</
entry>
<entry key="log4j.appender.R.File">/var/log/DicomServer.log</entry>
<entry key="log4j.appender.R.MaxFileSize">100KB</entry>
<entry key="log4j.appender.R.MaxBackupIndex">4</entry>
<entry key="log4j.appender.R.layout">org.apache.log4j.PatternLayout</
entry>
<entry key="log4j.appender.R.layout.ConversionPattern">%d %5p [%t] %c
- %m%n</entry>

<entry key="log4j.logger.org.dcm4che2">WARN</entry>
<entry key="log4j.logger.org.nrg">INFO</entry>

</properties>
*********************************
*****************************
[root@Oort DicomServer-xnat-1.4rc2]# ps -a
PID TTY TIME CMD
15444 pts/1 00:00:00 su
15448 pts/1 00:00:00 bash
16891 pts/1 00:01:47 java
16905 pts/1 00:00:02 java
18159 pts/1 00:00:00 ps
[1]+ Done emacs /var/log/DicomServer.log
[root@Oort DicomServer-xnat-1.4rc2]# kill -9 16891 16905
[root@Oort DicomServer-xnat-1.4rc2]# sh $CATALINA_HOME/bin/startup.sh
Using CATALINA_BASE: /usr/local/apache-tomcat-5.5.26
Using CATALINA_HOME: /usr/local/apache-tomcat-5.5.26
Using CATALINA_TMPDIR: /usr/local/apache-tomcat-5.5.26/temp
Using JRE_HOME: /usr/java/jdk1.6.0_03
[root@Oort DicomServer-xnat-1.4rc2]# bin/arc-dcmstore start
DicomServer PID: 18250
[root@Oort DicomServer-xnat-1.4rc2]# java version "1.6.0_03"
Java(TM) SE Runtime Environment (build 1.6.0_03-b05)
Java HotSpot(TM) Server VM (build 1.6.0_03-b05, mixed mode)

log4j:WARN No appenders could be found for logger (org.mortbay.log).
log4j:WARN Please initialize the log4j system properly.

******************************
Log File
************************
2009-06-25 09:28:17,159 INFO [main] org.nrg.dcm.CStoreService -
Starting C-STORE service on port 8104
2009-06-25 09:28:17,383 WARN [main] org.mortbay.log - failed
SocketC...@0.0.0.0:8103
java.net.BindException: Address already in use
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359)
at java.net.ServerSocket.bind(ServerSocket.java:319)
at java.net.ServerSocket.<init>(ServerSocket.java:185)
at java.net.ServerSocket.<init>(ServerSocket.java:141)
at org.mortbay.jetty.bio.SocketConnector.newServerSocket
(SocketConnector.java:80)
at org.mortbay.jetty.bio.SocketConnector.open(SocketConnector.java:
73)
at org.mortbay.jetty.AbstractConnector.doStart(AbstractConnector.java:
283)
at org.mortbay.jetty.bio.SocketConnector.doStart(SocketConnector.java:
147)
at org.mortbay.component.AbstractLifeCycle.start
(AbstractLifeCycle.java:39)
at org.mortbay.jetty.Server.doStart(Server.java:233)
at org.mortbay.component.AbstractLifeCycle.start
(AbstractLifeCycle.java:39)
at org.nrg.dcm.DicomServer.startWebServices(DicomServer.java:485)
at org.nrg.dcm.DicomServer.<init>(DicomServer.java:414)
at org.nrg.dcm.DicomServer.main(DicomServer.java:616)
2009-06-25 09:28:17,387 WARN [main] org.mortbay.log - failed
Server@16d2633
java.net.BindException: Address already in use
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359)
at java.net.ServerSocket.bind(ServerSocket.java:319)
at java.net.ServerSocket.<init>(ServerSocket.java:185)
at java.net.ServerSocket.<init>(ServerSocket.java:141)
at org.mortbay.jetty.bio.SocketConnector.newServerSocket
(SocketConnector.java:80)
at org.mortbay.jetty.bio.SocketConnector.open(SocketConnector.java:
73)
at org.mortbay.jetty.AbstractConnector.doStart(AbstractConnector.java:
283)
at org.mortbay.jetty.bio.SocketConnector.doStart(SocketConnector.java:
147)
at org.mortbay.component.AbstractLifeCycle.start
(AbstractLifeCycle.java:39)
at org.mortbay.jetty.Server.doStart(Server.java:233)
at org.mortbay.component.AbstractLifeCycle.start
(AbstractLifeCycle.java:39)
at org.nrg.dcm.DicomServer.startWebServices(DicomServer.java:485)
at org.nrg.dcm.DicomServer.<init>(DicomServer.java:414)
at org.nrg.dcm.DicomServer.main(DicomServer.java:616)
2009-06-25 09:28:17,389 ERROR [main] org.nrg.dcm.DicomServer - unable
to start http services
java.net.BindException: Address already in use
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359)
at java.net.ServerSocket.bind(ServerSocket.java:319)
at java.net.ServerSocket.<init>(ServerSocket.java:185)
at java.net.ServerSocket.<init>(ServerSocket.java:141)
at org.mortbay.jetty.bio.SocketConnector.newServerSocket
(SocketConnector.java:80)
at org.mortbay.jetty.bio.SocketConnector.open(SocketConnector.java:
73)
at org.mortbay.jetty.AbstractConnector.doStart(AbstractConnector.java:
283)
at org.mortbay.jetty.bio.SocketConnector.doStart(SocketConnector.java:
147)
at org.mortbay.component.AbstractLifeCycle.start
(AbstractLifeCycle.java:39)
at org.mortbay.jetty.Server.doStart(Server.java:233)
at org.mortbay.component.AbstractLifeCycle.start
(AbstractLifeCycle.java:39)
at org.nrg.dcm.DicomServer.startWebServices(DicomServer.java:485)
at org.nrg.dcm.DicomServer.<init>(DicomServer.java:414)
at org.nrg.dcm.DicomServer.main(DicomServer.java:616)


On Jun 24, 3:43 pm, Kevin Archie <karc...@npg.wustl.edu> wrote:
> The property xnat_url needs to be the full base URL of your XNAT  
> installation -- the same you'd type into a browser to access the  
> website.  This probably looks likehttp://63.243.222.238:8080/{web app  
> name}/ .
>
> The property xnat_public_url is optional, and really hardly ever used;  
> unless you need it, I'd delete that line.  (It's used only in the case  
> where DicomServer accesses XNAT at a different address than clients  
> would: for example, if DicomServer is running on the same machine as  
> XNAT, and they're both behind a load balancer or other device that  
> does address remapping.)
>
>    - Kevin
>
> On Jun 24, 2009, at 12:27 PM, anda wrote:
>
>
>
>
>
> > Hi Kevin
> > Hi Kevin
>
> > This is what I have done:
>
> > 1: Edit Dicom Server
> > ****************************
> > <?xml version="1.0" encoding="UTF-8"?>
> > <!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd">
> > <properties>
> > <comment>
> ...
>
> read more »

Kevin Archie

unread,
Jun 25, 2009, 9:43:07 AM6/25/09
to xnat_di...@googlegroups.com
My leading suspicion is that somehow you've still got an instance of
DicomServer running with a listener on 8103. The (less likely but
possible) alternative is that something else is running on 8103.
You'll need to either identify and kill the listener, or move
DicomServer's http to a port that's really not in use.

- k

anda

unread,
Jun 25, 2009, 10:53:50 AM6/25/09
to xnat_discussion
HI Kevin

For sure that there is no other process running on 8103. In my
previous email you can see that the DicomServer started on port 8103,
probably it is still bounded even if I stopped all java processes. Is
it possible to add an instruction in the DicomServer code to allow to
reuse the port even if it is busy?


I do not recall to have this problems with the past versions of Dicom
Server. Everything was working just fine for months, even if from time
to time the DicomServer was stopped and restarted.


Thank you
Anda

[root@Oort bin]# netstat -an | grep 8080
tcp 0 0 :::
8080 :::* LISTEN
[root@Oort bin]# netstat -an | grep 8103
\tcp 0 0 :::
8103 :::* LISTEN
[root@Oort bin]# netstat -an | grep 8104
tcp 0 0 :::
8104 :::* LISTEN



On Jun 25, 9:43 am, Kevin Archie <karc...@npg.wustl.edu> wrote:
> My leading suspicion is that somehow you've still got an instance of  
> DicomServer running with a listener on 8103.  The (less likely but  
> possible) alternative is that something else is running on 8103.  
> You'll need to either identify and kill the listener, or move  
> DicomServer's http to a port that's really not in use.
>
>    - k
>
> On Jun 25, 2009, at 8:36 AM, anda wrote:
>
>
>
>
>
> > Hi Kevin
>
> > I've made the change, but still does not work. Now the port 8103 seems
> > to be bound to something.
>
> > ***************
> > DicomServer.xml
> > ******************
> > <?xml version="1.0" encoding="UTF-8"?>
> > <!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd">
> > <properties>
> > <comment>
> >        configuration file for DicomServer, by karc...@npg.wustl.edu
> > </comment>
>
> > <entry key="arcspec">/rri_disks/lutetis/xnat_mri/xnat_cache/
> > archive_specification.xml</entry>
> > SocketConnec...@0.0.0.0:8103
> ...
>
> read more »

Kevin Archie

unread,
Jun 25, 2009, 11:31:28 AM6/25/09
to xnat_di...@googlegroups.com
You could use lsof to identify which process has bound port 8103. The
output format may be OS-specific, but on MacOS X I can do:

lsof | grep 8103

which gives a one-line result; the columns (according to lsof | head
-1) are:

COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME

so the second column is the PID of the offending process; kill that
and you should be clear.

- k
>>> <!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/
>>> properties.dtd">
>>> <properties>
>>> <comment>
>>> configuration file for DicomServer, by karc...@npg.wustl.edu
>>> </comment>
>>
>>> <entry key="arcspec">/rri_disks/lutetis/xnat_mri/xnat_cache/
>>> archive_specification.xml</entry>

anda

unread,
Jun 25, 2009, 12:12:30 PM6/25/09
to xnat_discussion
Thanks Kevin for technical support. Finally it worked.

Anda
> ...
>
> read more »
Reply all
Reply to author
Forward
0 new messages