Oviyam 2.1 fails to display images from dcm4chee

314 views
Skip to first unread message

damien...@supersonicimagine.com

unread,
Dec 9, 2014, 12:14:50 PM12/9/14
to dcm...@googlegroups.com
Hi,
I have successfully installed dcm4chee 2.18 on an Ubuntu server. I have also successfully installed and configured the Weasis web wiever.
Now, I would like to test Oviyam 2.1. Oviyam allows me to query exam information from dcm4chee but it fails to retrieve images. (I have tried to use C-Move, C-Get, and wado)

I have had a look to the logs and I can see there is no problem for the CFIND Request, then there is apparantly nothing wrong with the C-Get request. when it comes to image decoding apparently Oviyam fails to find a jpeg codec (see logs below)
=========
2014-12-09 17:37:41,159 INFO  -> (http-0.0.0.0-8080-1) [org.dcm4che2.net.PDUEncoder] DCM4DEMO(6) << 2:C-GET-RQ[pcid=5, prior=0
        cuid=1.2.840.10008.5.1.4.1.2.2.3/Study Root Query/Retrieve Information Model - GET
        ts=1.2.840.10008.1.2/Implicit VR Little Endian]
2014-12-09 17:37:41,159 INFO  OVIYAM2->DCM4DEMO (TCPServer-1-2) [org.dcm4cheri.net.FsmImpl] received [pc-5] 2:C_GET_RQ with Dataset
        class:  1.2.840.10008.5.1.4.1.2.2.3/Study Root Query/Retrieve Information Model - GET
2014-12-09 17:37:41,162 INFO  OVIYAM2->DCM4DEMO (Thread-51) [org.dcm4cheri.net.FsmImpl] sending [pc-9] 3:C_STORE_RQ with Dataset
        class:  1.2.840.10008.5.1.4.1.1.1.2/Digital Mammography X-Ray Image Storage - For Presentation
        inst:   1.3.6.1.4.1.5962.99.1.2280943358.716200484.1363785608958.339.0/?
2014-12-09 17:37:41,163 INFO  -> (DCMQR-6) [org.dcm4che2.net.PDUDecoder] DCM4DEMO(6) >> 3:C-STORE-RQ[pcid=9, prior=0
        cuid=1.2.840.10008.5.1.4.1.1.1.2/Digital Mammography X-Ray Image Storage - For Presentation
        iuid=1.3.6.1.4.1.5962.99.1.2280943358.716200484.1363785608958.339.0
        ts=1.2.840.10008.1.2.1/Explicit VR Little Endian]
2014-12-09 17:37:41,163 INFO  OVIYAM2->DCM4DEMO (Thread-51) [org.dcm4chex.archive.util.FileDataSource] M-READ file:/opt/dcm4chee-2.18.0-mysql/server/default/archive/2014/8/13/3/294BC010/294C256B/294BD2D5
2014-12-09 17:37:41,483 INFO  -> (DCMQR-6) [org.dcm4che2.net.PDUEncoder] DCM4DEMO(6) << 3:C-STORE-RSP[pcid=9, status=0H]
2014-12-09 17:37:41,483 INFO  OVIYAM2->DCM4DEMO (ActiveAssoc-70-1) [org.dcm4cheri.net.FsmImpl] received [pc-9] 3:C_STORE_RSP
        status: 0
2014-12-09 17:37:41,496 INFO  OVIYAM2->DCM4DEMO (Thread-51) [org.dcm4cheri.net.FsmImpl] sending [pc-5] 2:C_GET_RSP
        class:  1.2.840.10008.5.1.4.1.2.2.3/Study Root Query/Retrieve Information Model - GET
        status: 0
2014-12-09 17:37:41,496 INFO  -> (DCMQR-6) [org.dcm4che2.net.PDUDecoder] DCM4DEMO(6) >> 2:C-GET-RSP[pcid=5, remaining=null, completed=1, failed=0, warning=0, status=0H
        cuid=1.2.840.10008.5.1.4.1.2.2.3/Study Root Query/Retrieve Information Model - GET]
2014-12-09 17:37:41,496 INFO  -> (http-0.0.0.0-8080-1) [org.dcm4che2.tool.dcmqr.DcmQR] Retrieved 1 objects (warning: 0, failed: 0) in 0.337s
2014-12-09 17:37:41,496 INFO  -> (http-0.0.0.0-8080-1) [org.dcm4che2.net.PDUEncoder] DCM4DEMO(6) << A-RELEASE-RQ
2014-12-09 17:37:41,497 INFO  OVIYAM2->DCM4DEMO (ActiveAssoc-70-1) [org.dcm4cheri.net.FsmImpl] received A-RELEASE-RQ
2014-12-09 17:37:41,497 INFO  OVIYAM2->DCM4DEMO (ActiveAssoc-70-1) [org.dcm4cheri.net.FsmImpl] sending A-RELEASE-RP
2014-12-09 17:37:41,497 INFO  -> (TCPServer-1-2) [org.dcm4cheri.server.ServerImpl] finished - Socket[addr=/127.0.0.1,port=33817,localport=11112]
2014-12-09 17:37:41,497 INFO  -> (DCMQR-6) [org.dcm4che2.net.Association] DCM4DEMO(6) >> A-RELEASE-RP
2014-12-09 17:37:41,497 INFO  -> (http-0.0.0.0-8080-1) [org.dcm4che2.tool.dcmqr.DcmQR] Released connection to DCM4...@127.0.0.1:11112
2014-12-09 17:37:41,498 INFO  -> (DCMQR-6) [org.dcm4che2.net.Association] DCM4DEMO(6): close Socket[addr=/127.0.0.1,port=11112,localport=33817]
2014-12-09 17:37:41,547 INFO  OVIYAM2->DCM4DEMO (ActiveAssoc-70-1) [org.dcm4cheri.net.FsmImpl] closing connection - Socket[addr=/127.0.0.1,port=33817,localport=11112]
2014-12-09 17:37:41,552 INFO  -> (TCPServer-1-3) [org.dcm4cheri.server.ServerImpl] handle - Socket[addr=/127.0.0.1,port=56872,localport=11112]
2014-12-09 17:37:41,552 INFO  -> (TCPServer-1-3) [org.dcm4cheri.net.FsmImpl] Socket[addr=/127.0.0.1,port=56872,localport=11112]

2014-12-09 17:37:41,552 INFO  -> (http-0.0.0.0-8080-6) [org.dcm4che2.net.Association] Association(7) initiated Socket[addr=/127.0.0.1,port=11112,localport=56872]
2014-12-09 17:37:41,552 ERROR -> (http-0.0.0.0-8080-1) [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/oviyam2].[WadoServlet]] Servlet.service() for servlet WadoServlet threw exception
java.lang.NoClassDefFoundError: com/sun/image/codec/jpeg/JPEGCodec
        at in.raster.oviyam.servlet.WadoServlet.doGet(WadoServlet.java:194)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
        at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524)
        at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
        at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
        at org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:420)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
        at java.lang.Thread.run(Thread.java:745)
2014-12-09 17:37:41,554 INFO  -> (http-0.0.0.0-8080-6) [org.dcm4che2.net.PDUEncoder] DCM4DEMO(7): A-ASSOCIATE-RQ DCM4DEMO <<  OVIYAM2

======================

The error seems to be linked to the JPEG codec. I'm using the libclib_jiio.so which is recommended in the dcm4chee installation page (For Linux-amd64, and Solaris, you have to download the SW package from Sun here yourself and replace the Linux version of libclib_jiio.so in dcm4chee-2.17.1-xxx/bin/native from the JAI Image IO package for Linux-amd64 or Solaris. Or see this post for a more recent version.)

I'm stuck and I have not been able to find a solution in the previous posts from this group. Feel free to share any suggestion regarding this problem.

Best regards,

Damien

Devishree.V

unread,
Dec 9, 2014, 11:49:03 PM12/9/14
to dcm...@googlegroups.com

 Hi,
    It seems you are using open JDK. There is a dependency issue with JPEG Image Encoder (which is specific to Sun). Its fixed and will be available in upcoming versions.

damien...@supersonicimagine.com

unread,
Dec 10, 2014, 9:37:17 AM12/10/14
to dcm...@googlegroups.com

Hi,

Thank you for your help,
I have downloaded and installed Oracle's JDK version 6 and now everything works fine.

Finally for those who are still experiencing issues, it Took me quite some time to figure this out:
  • access to Oviyam : http://YourDCM4Chee_IP:8080/oviyam2/
  • use Chromiun instead of Firefox
  • use Oracle's JDK version 6 instead of open JDK (and don''t forget to update your JAVA_HOME environment variable:  "export JAVA_HOME=/opt/jdk1.6.0_45")
  • login in admin/admin to dcm4chee http://YourDCM4Chee_IP:8080/dcm4chee-web3/ then add "New AET" in "Application Entities)  add a new entry AET: OVIYAM2, Host: 127.0.0.1, port: 1025
  • login in admin/admin to oviyam2 http://YourDCM4Chee_IP:8080/oviyam2/ then "Settings" then "Server" press "Add" Button and add new entry AET: DCM4CHEE, Host: 127.0.0.1, port: 11112

Hope this help.

Reply all
Reply to author
Forward
0 new messages