异常:
java.lang.IllegalArgumentException: GrayscaleSoftcopyPresentationStateStorageSOPClass
原因:
发生这个异常是因为dcm4che-3.3.8版本后对storage-sop-classes.properties,store-tcs.properties,sop-classes.properties中的SOPClass名做了修改。从而在更高版本找不到对应的UID。也就是高版本使用了低版本的配置而出现的异常。
这是dcm4che-3.3.7版本的UID.class
这是dcm4che-3.3.8版本的UID.class
这是dcm4che-5.10.5版本中的UID.class(注:dcm4che-3.3.8版本后即是dcm4che-5.10.5版本)
解决办法:
修改storage-sop-classes.properties,store-tcs.properties,sop-classes.properties中的SOPClass名,即
GrayscaleSoftcopyPresentationStateStorageSOPClass修改为:
GrayscaleSoftcopyPresentationStateStorage
ColorSoftcopyPresentationStateStorageSOPClass修改为:
ColorSoftcopyPresentationStateStorage
PseudoColorSoftcopyPresentationStateStorageSOPClass修改为:
PseudoColorSoftcopyPresentationStateStorage
BlendingSoftcopyPresentationStateStorageSOPClass修改为:
BlendingSoftcopyPresentationStateStorage