Compressed DICOM issue

77 views
Skip to first unread message

Mark Shanaman

unread,
Jul 13, 2017, 10:21:39 PM7/13/17
to xnat_discussion
We're getting broken thumbnails and the following error in a 1.7 instance of XNAT when JPEG Lossless DICOM is received:

java.lang.NoClassDefFoundError: Could not initialize class javax.imageio.ImageIO
        at org.nrg.dcm.Decompress.decompress_image(Decompress.java:249)
        at org.nrg.xnat.archive.GradualDicomImporter.write(GradualDicomImporter.java:576)
        at org.nrg.xnat.archive.GradualDicomImporter.call(GradualDicomImporter.java:333)
        at org.nrg.dcm.CStoreService.doCStore(CStoreService.java:233)
        at org.nrg.dcm.CStoreService.cstore(CStoreService.java:196)
        at org.dcm4che2.net.DicomServiceRegistry.process(DicomServiceRegistry.java:238)
        at org.dcm4che2.net.NetworkApplicationEntity.perform(NetworkApplicationEntity.java:1185)
        at org.dcm4che2.net.Association.onDimseRQ(Association.java:1010)
        at org.dcm4che2.net.PDUDecoder.decodeDIMSE(PDUDecoder.java:530)
        at org.dcm4che2.net.Association.onPDataTF(Association.java:987)
        at org.dcm4che2.net.State$Sta6.receivedPDataTF(State.java:239)
        at org.dcm4che2.net.Association.receivedPDataTF(Association.java:983)
        at org.dcm4che2.net.PDUDecoder.nextPDU(PDUDecoder.java:231)
        at org.dcm4che2.net.Association.run(Association.java:882)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:748)

Has anyone had problems with JAI ImageIO not loading? I see Java Advanced Imaging and imageio jars in the xnat tomcat lib. We had seen similar issues with earlier versions of XNAT where we were missing the right JAI classes, but this seems different where a jar containing the class appears to be there but the class isn't loading.

Mark

Moore, Charlie

unread,
Jul 14, 2017, 9:57:37 AM7/14/17
to xnat_di...@googlegroups.com

Mark,

 

I *think* we’ve fixed the issues with those classes since 1.7.2 (in this ticket: https://issues.xnat.org/browse/XNAT-4587). The fix should be included in 1.7.3 when it’s available.

 

Thanks,

Charlie

--
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 https://groups.google.com/group/xnat_discussion.
For more options, visit https://groups.google.com/d/optout.

 


The materials in this message are private and may contain Protected Healthcare Information or other information of a sensitive nature. 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.

Herrick, Rick

unread,
Jul 14, 2017, 10:37:59 AM7/14/17
to xnat_di...@googlegroups.com

You can hot-patch this in place by adding the required dependency to your web app. You can download the jar file from here:

 

http://www.dcm4che.org/maven2/com/sun/media/jai_imageio/1.1/jai_imageio-1.1.jar

 

Copy that into the WEB-INF/lib folder in your deployed XNAT application. You’ll need to restart the application for it to get picked up by the classloader. That should get things working properly for you. As Charlie said, this will be in 1.7.3.

 

-- 

Rick Herrick

Sr. Programmer/Analyst

Neuroinformatics Research Group

Washington University School of Medicine

Reply all
Reply to author
Forward
0 new messages