Image calling in weasis web through WADO link imtegration

295 views
Skip to first unread message

nutun

unread,
Sep 30, 2020, 6:08:55 AM9/30/20
to dcm4che
Hi,

I have installed dcm4chee-arc-psql:5.22.0-secure (docker-compose installation).  And configured weasis-3.6.0 web. Images are loading in Weasis perfectly.

Now I want to call image through wado link and for this purpose I used a link i.e http://dcm.icare.com.pk:8080/weasis-pacs-connector/IHEInvokeImageDisplay?requestType=PATIENT&patientID=19495440 . By entering this link in address bar it calls weasis and when weasis opens on my screen it shows "Network Error - Try to download again the missing elements?

I am attaching screenshot of error and weasis logs are as follow:

30.09.2020 14:48:30.931 *INFO* [FelixStartLevel] org.apache.sling.commons.log.internal.LogManager: LogManager: Logging set up from context
30.09.2020 14:48:31.265 *INFO* [FelixStartLevel] org.weasis.core.api.internal.cv.NativeOpenCVCodec: Native OpenCV is activated
30.09.2020 14:48:31.267 *INFO* [FelixStartLevel] org.weasis.core.api.internal.Activator: Register Image Codec Plug-in: OpenCV imgcodecs
30.09.2020 14:48:31.282 *INFO* [FelixStartLevel] org.weasis.core.api.internal.Activator: Register Image Codec Plug-in: Sun java imageio
30.09.2020 14:48:31.447 *INFO* [FelixStartLevel] org.weasis.dicom.codec.DicomCodec: Activate DicomCodec
30.09.2020 14:48:31.584 *INFO* [FelixStartLevel] org.weasis.core.api.internal.Activator: Register Image Codec Plug-in: dcm4che
30.09.2020 14:48:31.955 *INFO* [AWT-EventQueue-2] org.weasis.core.ui.internal.Activator: Register series viewer plug-in: Default System Application
30.09.2020 14:48:32.100 *DEBUG* [AWT-EventQueue-2] org.weasis.base.ui.gui.WeasisWin: Max main screen bound: java.awt.Rectangle[x=0,y=0,width=1920,height=1050]
30.09.2020 14:48:32.133 *INFO* [AWT-EventQueue-2] org.weasis.base.ui.gui.WeasisWin: End of loading the GUI...
30.09.2020 14:48:32.169 *INFO* [FelixStartLevel] org.weasis.base.ui.gui.WeasisWinListener: Activate the main window PropertyChangeListener
30.09.2020 14:48:32.180 *INFO* [FelixStartLevel] org.weasis.dicom.codec.DicomCodec: Register DicomSpecialElementFactory: SR => org.weasis.dicom.sr.SRElementFactory
30.09.2020 14:48:32.375 *INFO* [FelixStartLevel] org.weasis.dicom.codec.DicomCodec: Register DicomSpecialElementFactory: AU => org.weasis.dicom.au.AuElementFactory
30.09.2020 14:48:32.383 *INFO* [FelixStartLevel] org.weasis.dicom.codec.DicomCodec: Register DicomSpecialElementFactory: ECG => org.weasis.dicom.wave.WaveElementFactory
30.09.2020 14:48:32.384 *INFO* [FelixStartLevel] org.weasis.dicom.codec.DicomCodec: Register DicomSpecialElementFactory: HD => org.weasis.dicom.wave.WaveElementFactory
30.09.2020 14:48:32.449 *INFO* [AWT-EventQueue-2] org.weasis.base.ui.gui.WeasisWinListener: Register data explorer Plug-in: DICOM Explorer
30.09.2020 14:48:32.496 *INFO* [AWT-EventQueue-2] org.weasis.core.ui.internal.Activator: Register series viewer plug-in: DICOM Structured Report
30.09.2020 14:48:32.504 *INFO* [AWT-EventQueue-2] org.weasis.core.ui.internal.Activator: Register series viewer plug-in: 2D-DICOM Viewer
30.09.2020 14:48:32.508 *INFO* [AWT-EventQueue-2] org.weasis.core.ui.internal.Activator: Register series viewer plug-in: DICOM Voice Audio Waveform
30.09.2020 14:48:32.511 *INFO* [AWT-EventQueue-2] org.weasis.core.ui.internal.Activator: Register series viewer plug-in: DICOM Waveform
30.09.2020 14:48:32.517 *INFO* [AWT-EventQueue-2] org.weasis.core.ui.internal.Activator: Register series viewer plug-in: Image Viewer
30.09.2020 14:48:32.588 *INFO* [Dicom Model-pool-5-thread-1] org.weasis.dicom.explorer.wado.DownloadManager: Downloading XML manifest: /weasis-pacs-connector/RequestManifest
30.09.2020 14:48:32.712 *INFO* [Dicom Model-pool-5-thread-1] org.weasis.dicom.explorer.wado.DownloadManager: [Validate with XSD schema] wado_query is valid
30.09.2020 14:48:32.718 *INFO* [Dicom Model-pool-5-thread-1] org.weasis.dicom.explorer.wado.DownloadManager: Adding new patient: Nutun A
30.09.2020 14:48:32.741 *WARN* [Dicom Model-pool-5-thread-1] org.weasis.core.api.util.NetworkUtil: http Status 401 - Unauthorized
30.09.2020 14:48:32.741 *ERROR* [Dicom Model-pool-5-thread-1] org.weasis.dicom.explorer.wado.LoadSeries: Downloading thumbnail org.weasis.core.api.util.StreamIOException: Unauthorized
at org.weasis.core.api.util.NetworkUtil.readResponse(NetworkUtil.java:127)
at org.weasis.core.api.util.NetworkUtil.prepareConnection(NetworkUtil.java:101)
at org.weasis.core.api.util.NetworkUtil.getUrlConnection(NetworkUtil.java:74)
30.09.2020 14:48:32.748 *INFO* [AWT-EventQueue-2] org.weasis.dicom.explorer.DicomExplorer: Add series: AP
30.09.2020 14:48:32.783 *INFO* [Series Downloader-pool-8-thread-1] org.weasis.dicom.explorer.wado.LoadSeries: Downloading series of Nutun A [AP]
30.09.2020 14:48:32.796 *WARN* [Image Downloader-pool-11-thread-1] org.weasis.core.api.util.NetworkUtil: http Status 401 - Unauthorized
30.09.2020 14:48:32.797 *ERROR* [Image Downloader-pool-11-thread-1] org.weasis.dicom.explorer.wado.LoadSeries: Downloading org.weasis.core.api.util.StreamIOException: Unauthorized
at org.weasis.core.api.util.NetworkUtil.readResponse(NetworkUtil.java:127)
at org.weasis.core.api.util.NetworkUtil.prepareConnection(NetworkUtil.java:101)
at org.weasis.core.api.util.NetworkUtil.getUrlConnection(NetworkUtil.java:74)
30.09.2020 14:48:32.824 *INFO* [AWT-EventQueue-2] org.weasis.dicom.explorer.wado.LoadRemoteDicomManifest: Try downloading (1) the missing elements
30.09.2020 14:48:32.825 *INFO* [Series Downloader-pool-9-thread-1] org.weasis.dicom.explorer.wado.LoadSeries: Downloading series of Nutun A [AP]
30.09.2020 14:48:32.825 *INFO* [AWT-EventQueue-2] org.weasis.dicom.explorer.wado.LoadSeries: *PERF* type:WADO seriesUID:1.2.840.113564.1921683913.20200429133030328520 modality:CR nbImages:0 size:0 time:37 rate:0
30.09.2020 14:48:32.838 *WARN* [Image Downloader-pool-12-thread-1] org.weasis.core.api.util.NetworkUtil: http Status 401 - Unauthorized
30.09.2020 14:48:32.838 *ERROR* [Image Downloader-pool-12-thread-1] org.weasis.dicom.explorer.wado.LoadSeries: Downloading org.weasis.core.api.util.StreamIOException: Unauthorized
at org.weasis.core.api.util.NetworkUtil.readResponse(NetworkUtil.java:127)
at org.weasis.core.api.util.NetworkUtil.prepareConnection(NetworkUtil.java:101)
at org.weasis.core.api.util.NetworkUtil.getUrlConnection(NetworkUtil.java:74)
30.09.2020 14:49:28.114 *INFO* [AWT-EventQueue-2] org.weasis.dicom.explorer.wado.LoadSeries: *PERF* type:WADO seriesUID:1.2.840.113564.1921683913.20200429133030328520 modality:CR nbImages:0 size:0 time:0 rate:0
30.09.2020 14:49:28.974 *INFO* [FelixStartLevel] org.weasis.dicom.codec.DicomCodec: Unregister DicomSpecialElementFactory: ECG => org.weasis.dicom.wave.WaveElementFactory
30.09.2020 14:49:28.975 *INFO* [FelixStartLevel] org.weasis.dicom.codec.DicomCodec: Unregister DicomSpecialElementFactory: HD => org.weasis.dicom.wave.WaveElementFactory
30.09.2020 14:49:28.977 *INFO* [FelixStartLevel] org.weasis.dicom.codec.DicomCodec: Unregister DicomSpecialElementFactory: AU => org.weasis.dicom.au.AuElementFactory
30.09.2020 14:49:28.998 *INFO* [FelixStartLevel] org.weasis.dicom.codec.DicomCodec: Unregister DicomSpecialElementFactory: SR => org.weasis.dicom.sr.SRElementFactory
30.09.2020 14:49:29.002 *INFO* [FelixStartLevel] org.weasis.base.ui.gui.WeasisWinListener: Deactivate the main window PropertyChangeListener
30.09.2020 14:49:29.035 *INFO* [FelixStartLevel] org.weasis.core.api.internal.Activator: Unregister Image Codec Plug-in: dcm4che
30.09.2020 14:49:29.036 *INFO* [FelixStartLevel] org.weasis.dicom.codec.DicomCodec: Deactivate DicomCodec
30.09.2020 14:49:29.052 *INFO* [FelixStartLevel] org.weasis.core.api.internal.Activator: Unregister Image Codec Plug-in: Sun java imageio
30.09.2020 14:49:29.053 *INFO* [FelixStartLevel] org.weasis.core.api.internal.Activator: Unregister Image Codec Plug-in: OpenCV imgcodecs

Need guidelines on this.
Weasis-Error.JPG

Nicolas Roduit

unread,
Oct 1, 2020, 2:03:02 AM10/1/20
to dcm4che

> 30.09.2020 14:48:32.838 *WARN* [Image Downloader-pool-12-thread-1] org.weasis.core.api.util.NetworkUtil: http Status 401 - Unauthorized
> 30.09.2020 14:48:32.838 *ERROR* [Image Downloader-pool-12-thread-1] org.weasis.dicom.explorer.wado.LoadSeries: Downloading org.weasis.core.api.util.StreamIOException: Unauthorized

As the WADO service is secure, Weasis cannot download images without a token. Images can only be downloaded by launching Weasis from the dcm4chee portal which transmits a token to Weasis.

The best way to solve this would be to have an OAuth 2.0 client in Weasis. This feature has not yet been developed.

Otherwise, it may work:
  • with the secure-ui mode (where services are not secured in dcm4chee)
  • if it's in a local network using DICOM in Query/Retrieve from Weasis.

Reply all
Reply to author
Forward
0 new messages