[dcm4chee-arc-light] Location of files for C-GET service

930 views
Skip to first unread message

kamalakar k

unread,
Mar 3, 2016, 1:33:37 AM3/3/16
to dcm4che

I am using the GetSCU class to get the dicom objects from DICOM server,i am getting status 0H.but i am unable to find the location where exactly file(Dicom object) is stored.

Where will the configuration for strorage location for C-GET service,

I can see the configuration for Storage (C-STORE) in default-config.ldif(dcmURI: file:///var/local/dcm4chee-arc/fs1)

gunterze

unread,
Mar 3, 2016, 3:41:00 AM3/3/16
to dcm4che
If you are using dcm4che3's getscu as client, you can specify the storage location of retrieved objects by option --directory <path>.
 s. https://github.com/dcm4che/dcm4che/blob/master/dcm4che-tool/dcm4che-tool-getscu/README.md

kamalakar k

unread,
Mar 3, 2016, 4:05:22 AM3/3/16
to dcm4che
String[] args1 = new String[3];
args1[0] = "-c";
args1[1] = "DCM4CHEE@localhost:11112";
args1[2] = "-mStudyInstanceUID=1456491978827--directory=D:\\DICOM\\GetSCUImages ";
GetSCU getSCU = new GetSCU();
getSCU.main(args1);

The above code i am trying to use to get the file from server,here i have installed DICOM server in local machine which is listening on port 11112,

when i send the files(using C-STORE) it is storing the file perfectly in (dcmURI: file:///var/local/dcm4chee-arc/fs1 ) file location and populating all respective table in database.
bu  when i try to get using (C-GET) in the console it is showing

2016-03-03 14:32:23,101 INFO  [org.dcm4che3.net.Dimse] (EE-ManagedExecutorService-default-Thread-3) DCM4CHEE<-GETSCU(1) << 1:C-GET-RSP[pcid=1, status=0H
  cuid=1.2.840.10008.5.1.4.1.2.2.3 - Study Root Query/Retrieve Information Model - GET
  tsuid=1.2.840.10008.1.2 - Implicit VR Little Endian
2016-03-03 14:32:23,126 INFO  [org.dcm4che3.net.Association] (EE-ManagedExecutorService-default-Thread-3) DCM4CHEE<-GETSCU(1) >> A-RELEASE-RQ
2016-03-03 14:32:23,127 INFO  [org.dcm4che3.net.Association] (EE-ManagedExecutorService-default-Thread-3) DCM4CHEE<-GETSCU(1) << A-RELEASE-RP
2016-03-03 14:32:23,187 INFO  [org.dcm4che3.net.Association] (EE-ManagedScheduledExecutorService-default-Thread-1) DCM4CHEE<-GETSCU(1): close Socket[addr=/127.0.0.1,port=55104,localport=11112]

So from the status we can say it is success(C-GET service), but the file is not stored/retrieved in the directory which i am mentioned in the arguments(--directory=D:\\DICOM\\GetSCUImages)


Gunter Zeilinger

unread,
Mar 3, 2016, 6:28:09 AM3/3/16
to dcm...@googlegroups.com
"1456491978827" does not look like a Study Instance UID!

--
You received this message because you are subscribed to the Google Groups "dcm4che" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dcm4che+u...@googlegroups.com.
To post to this group, send email to dcm...@googlegroups.com.
Visit this group at https://groups.google.com/group/dcm4che.
For more options, visit https://groups.google.com/d/optout.

kamalakar k

unread,
Mar 9, 2016, 6:03:08 AM3/9/16
to dcm4che
I tried with below code(changed Study Instance UId)
String[] args1 = new String[4];
args1[0] = "-c";
args1[1] = "DCM4CHEE@localhost:11112";
args1[2] = "-mStudyInstanceUID=1.2.2.2.2.3.4";
args1[3] = "--directory=D:\\DICOM\\GetSCUImages";
GetSCU.main(args1);
getting the below log in console , iam invoking this main program from my eclipse workspace.

but still not balt to find the location of the files retrieved as part of C-GET.


2016-03-09 16:28:02,755 INFO  [org.jboss.weld.deployer] (MSC service thread 1-7) WFLYWELD0006: Starting Services for CDI deployment: dcm4chee-arc-ear-5.1.0-psql.ear
2016-03-09 16:28:02,843 INFO  [org.jboss.weld.Version] (MSC service thread 1-7) WELD-000900: 2.2.16 (SP1)
2016-03-09 16:28:02,988 INFO  [org.jboss.weld.deployer] (MSC service thread 1-2) WFLYWELD0009: Starting weld service for deployment dcm4chee-arc-ear-5.1.0-psql.ear
2016-03-09 16:28:03,082 INFO  [org.jboss.as.ejb3] (MSC service thread 1-3) WFLYEJB0042: Started message driven bean 'MPPSMDB' with 'hornetq-ra.rar' resource adapter
2016-03-09 16:28:03,173 INFO  [org.jboss.as.ejb3] (MSC service thread 1-7) WFLYEJB0042: Started message driven bean 'ExportManagerMDB1' with 'hornetq-ra.rar' resource adapter
2016-03-09 16:28:03,175 INFO  [org.jboss.as.ejb3] (MSC service thread 1-8) WFLYEJB0042: Started message driven bean 'ExportManagerMDB3' with 'hornetq-ra.rar' resource adapter
2016-03-09 16:28:03,184 INFO  [org.jboss.as.ejb3] (MSC service thread 1-6) WFLYEJB0042: Started message driven bean 'ExportManagerMDB2' with 'hornetq-ra.rar' resource adapter
2016-03-09 16:28:03,191 INFO  [org.jboss.as.ejb3] (MSC service thread 1-7) WFLYEJB0042: Started message driven bean 'StgCmtMDB' with 'hornetq-ra.rar' resource adapter
2016-03-09 16:28:03,281 INFO  [org.jboss.as.jpa] (ServerService Thread Pool -- 71) WFLYJPA0010: Starting Persistence Unit (phase 2 of 2) Service 'dcm4chee-arc-ear-5.1.0-psql.ear#dcm4chee-arc'
2016-03-09 16:28:03,332 INFO  [org.hibernate.annotations.common.Version] (ServerService Thread Pool -- 71) HCANN000001: Hibernate Commons Annotations {4.0.5.Final}
2016-03-09 16:28:03,789 INFO  [org.hibernate.dialect.Dialect] (ServerService Thread Pool -- 71) HHH000400: Using dialect: org.hibernate.dialect.PostgreSQL9Dialect
2016-03-09 16:28:03,796 INFO  [org.hibernate.engine.jdbc.internal.LobCreatorBuilder] (ServerService Thread Pool -- 71) HHH000424: Disabling contextual LOB creation as createClob() method threw error : java.lang.reflect.InvocationTargetException
2016-03-09 16:28:04,039 INFO  [org.hibernate.hql.internal.ast.ASTQueryTranslatorFactory] (ServerService Thread Pool -- 71) HHH000397: Using ASTQueryTranslatorFactory
2016-03-09 16:28:05,175 INFO  [org.jboss.weld.Bootstrap] (weld-worker-4) WELD-000119: Not generating any bean definitions from org.dcm4chee.arc.conf.rs.ConfigurationRS because of underlying class loading error: Type org.dcm4che3.conf.json.ConfigurationDelegate from [Module "deployment.dcm4chee-arc-ear-5.1.0-psql.ear.dcm4chee-arc-war-5.1.0-unsecure.war:main" from Service Module Loader] not found.  If this is unexpected, enable DEBUG logging to see the full error.
2016-03-09 16:28:05,382 INFO  [org.jboss.weld.Bootstrap] (weld-worker-2) WELD-000119: Not generating any bean definitions from org.dcm4chee.arc.conf.json.JsonConfigurationProducer because of underlying class loading error: Type org.dcm4che3.conf.json.hl7.JsonHL7ConfigurationExtension from [Module "deployment.dcm4chee-arc-ear-5.1.0-psql.ear:main" from Service Module Loader] not found.  If this is unexpected, enable DEBUG logging to see the full error.
2016-03-09 16:28:09,185 INFO  [javax.enterprise.resource.webcontainer.jsf.config] (ServerService Thread Pool -- 70) Initializing Mojarra 2.2.12-jbossorg-2 20150729-1131 for context '/dcm4chee-arc'
2016-03-09 16:28:09,186 INFO  [javax.enterprise.resource.webcontainer.jsf.config] (ServerService Thread Pool -- 75) Initializing Mojarra 2.2.12-jbossorg-2 20150729-1131 for context '/dcm4chee-arc/ui'
2016-03-09 16:28:10,057 WARN  [org.dcm4che3.imageio.codec.ImageWriterFactory] (ServerService Thread Pool -- 69) No preferred Writer com.sun.media.imageioimpl.plugins.jpeg.CLibJPEGImageWriter for format: jpeg - use com.sun.imageio.plugins.jpeg.JPEGImageWriter
2016-03-09 16:28:10,959 INFO  [org.dcm4che3.net.Connection] (EE-ManagedExecutorService-default-Thread-1) Start TCP Listener on /0.0.0.0:11112
2016-03-09 16:28:10,960 INFO  [org.dcm4che3.net.Connection] (EE-ManagedExecutorService-default-Thread-2) Start TCP Listener on /0.0.0.0:2575
2016-03-09 16:28:11,044 INFO  [org.wildfly.extension.undertow] (ServerService Thread Pool -- 70) WFLYUT0021: Registered web context: /dcm4chee-arc
2016-03-09 16:28:11,044 INFO  [org.wildfly.extension.undertow] (ServerService Thread Pool -- 75) WFLYUT0021: Registered web context: /dcm4chee-arc/ui
2016-03-09 16:28:11,200 INFO  [org.dcm4che3.net.audit.AuditLogger] (ServerService Thread Pool -- 69) Send audit message to localhost/127.0.0.1:514
2016-03-09 16:28:11,252 INFO  [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0010: Deployed "dcm4chee-arc-ear-5.1.0-psql.ear" (runtime-name : "dcm4chee-arc-ear-5.1.0-psql.ear")
2016-03-09 16:28:11,521 INFO  [org.jboss.as] (Controller Boot Thread) WFLYSRV0060: Http management interface listening on http://127.0.0.1:9990/management
2016-03-09 16:28:11,522 INFO  [org.jboss.as] (Controller Boot Thread) WFLYSRV0051: Admin console listening on http://127.0.0.1:9990
2016-03-09 16:28:11,523 INFO  [org.jboss.as] (Controller Boot Thread) WFLYSRV0025: WildFly Full 9.0.2.Final (WildFly Core 1.0.2.Final) started in 15135ms - Started 1476 of 1736 services (366 services are lazy, passive or on-demand)
2016-03-09 16:28:23,352 INFO  [org.dcm4che3.net.Connection] (EE-ManagedExecutorService-default-Thread-1) Accept connection Socket[addr=/127.0.0.1,port=51177,localport=11112]
2016-03-09 16:28:23,418 INFO  [org.dcm4che3.net.Association] (EE-ManagedExecutorService-default-Thread-3) DCM4CHEE<-GETSCU(1) >> A-ASSOCIATE-RQ
2016-03-09 16:28:23,423 INFO  [org.dcm4che3.net.Association] (EE-ManagedExecutorService-default-Thread-3) DCM4CHEE<-GETSCU(1) << A-ASSOCIATE-AC
2016-03-09 16:28:23,553 INFO  [org.dcm4che3.net.Dimse] (EE-ManagedExecutorService-default-Thread-3) DCM4CHEE<-GETSCU(1) >> 1:C-GET-RQ[pcid=1, prior=0
  cuid=1.2.840.10008.5.1.4.1.2.2.3 - Study Root Query/Retrieve Information Model - GET
  tsuid=1.2.840.10008.1.2 - Implicit VR Little Endian
2016-03-09 16:28:23,947 INFO  [org.dcm4che3.net.Dimse] (EE-ManagedExecutorService-default-Thread-3) DCM4CHEE<-GETSCU(1) << 1:C-GET-RSP[pcid=1, status=0H
  cuid=1.2.840.10008.5.1.4.1.2.2.3 - Study Root Query/Retrieve Information Model - GET
  tsuid=1.2.840.10008.1.2 - Implicit VR Little Endian
2016-03-09 16:28:23,966 INFO  [org.dcm4che3.net.Association] (EE-ManagedExecutorService-default-Thread-3) DCM4CHEE<-GETSCU(1) >> A-RELEASE-RQ
2016-03-09 16:28:23,968 INFO  [org.dcm4che3.net.Association] (EE-ManagedExecutorService-default-Thread-3) DCM4CHEE<-GETSCU(1) << A-RELEASE-RP
2016-03-09 16:28:24,025 INFO  [org.dcm4che3.net.Association] (EE-ManagedScheduledExecutorService-default-Thread-1) DCM4CHEE<-GETSCU(1): close Socket[addr=/127.0.0.1,port=51177,localport=11112]

Gunter Zeilinger

unread,
Mar 10, 2016, 5:14:40 AM3/10/16
to dcm...@googlegroups.com
There was no object with the specified Study Instance UID stored to the archive!

--

kamalakar k

unread,
Mar 11, 2016, 12:11:42 AM3/11/16
to dcm4che
There is object with that study Instance UID, i can see that in database, there is one entry with that specific UID and when i check the location (file:///var/local/dcm4chee-arc/fs1) file is also there.

i have opened that file using micro dicom viewer, its opening without any issues and the studyInstanceUID tag also has the same value using which i am trying C-GET.

kamalakar k

unread,
Mar 28, 2016, 8:43:12 AM3/28/16
to dcm...@googlegroups.com
It is creating the directory storage folder , but file is not placed in that folder getting EOFException and error log is 

12:10:08,380 INFO  - Initiate connection from 0.0.0.0/0.0.0.0:0 to localhost:11112
12:10:08,404 INFO  - Established connection Socket[addr=localhost/127.0.0.1,port=11112,localport=49625]
12:10:08,430 INFO  - GETSCU->DCM4CHEE(1) << A-ASSOCIATE-RQ
12:10:08,440 INFO  - GETSCU->DCM4CHEE(1) >> A-ASSOCIATE-AC
12:10:08,453 INFO  - GETSCU->DCM4CHEE(1) << 1:C-GET-RQ[pcid=1, prior=0
  cuid=1.2.840.10008.5.1.4.1.2.2.3 - Study Root Query/Retrieve Information Model - GET
  tsuid=1.2.840.10008.1.2 - Implicit VR Little Endian
12:12:00,273 INFO  - GETSCU->DCM4CHEE(1): i/o exception: java.io.EOFException in State: Sta6 - Association established and ready for data transfer
12:12:00,274 INFO  - GETSCU->DCM4CHEE(1): close Socket[addr=localhost/127.0.0.1,port=11112,localport=49625]
getscu: Sta1 - Idle
org.dcm4che3.net.AssociationStateException: Sta1 - Idle
at org.dcm4che3.net.State.writeAReleaseRQ(State.java:223)
at org.dcm4che3.net.Association.release(Association.java:271)
at org.dcm4che3.tool.getscu.GetSCU.close(GetSCU.java:438)
at org.dcm4che3.tool.getscu.GetSCU.main(GetSCU.java:348)
at com.queue.sample.CGet.main(CGet.java:15)


NOTE:- I am using the DICOS SOP Class (1.2.840.10008.5.1.4.1.1.501.2.1), using CSTORE i have successfully pushed the images to archive server,
               But when i try to get that file using C-GET then i am getting the above error

Will C-GET support for this SOP class UID.?


Reply all
Reply to author
Forward
0 new messages