Java Exception

  • Dear Marcel


    I am a novice to pacs

    I am running conquest with weasis

    the only error i am with is , When i try to open the exam with weasis viewer, it shows that it is loading images , but it just shows thumbnails with

    "Error:Downloading org.weasis.core.util.StreamIOException: java.net.ConnectException: Connection refused: connect"

    my java version is JRE 1.8.0_171-b09 Java HotSpot(TM) 64-Bit Server


    My Log is


    03.08.2023 02:01:59.730 *INFO* [FelixStartLevel] org.apache.sling.commons.log.internal.LogManager: LogManager: Logging set up from context

    03.08.2023 02:01:59.980 *INFO* [FelixStartLevel] org.opencv.osgi: Successfully loaded OpenCV native library.

    03.08.2023 02:01:59.980 *INFO* [FelixStartLevel] org.weasis.core.api.internal.cv.NativeOpenCVCodec: Native OpenCV is activated

    03.08.2023 02:01:59.981 *INFO* [FelixStartLevel] org.weasis.core.api.internal.Activator: Register Image Codec Plug-in: OpenCV imgcodecs

    03.08.2023 02:02:00.098 *INFO* [FelixStartLevel] org.weasis.core.api.internal.Activator: Register Image Codec Plug-in: JDK ImageIO

    03.08.2023 02:02:00.122 *INFO* [FelixStartLevel] org.weasis.dicom.codec.DicomCodec: Activate DicomCodec

    03.08.2023 02:02:00.125 *INFO* [FelixStartLevel] org.weasis.core.api.internal.Activator: Register Image Codec Plug-in: dcm4che

    03.08.2023 02:02:00.573 *INFO* [AWT-EventQueue-2] org.weasis.core.ui.internal.Activator: Register series viewer plug-in: Default System Application

    03.08.2023 02:02:00.682 *INFO* [AWT-EventQueue-2] org.weasis.base.ui.gui.WeasisWin: End of loading the GUI...

    03.08.2023 02:02:00.728 *INFO* [FelixStartLevel] org.weasis.base.ui.gui.WeasisWinListener: Activate the main window PropertyChangeListener

    03.08.2023 02:02:00.746 *INFO* [FelixStartLevel] org.weasis.dicom.codec.DicomCodec: Register DicomSpecialElementFactory: SR => org.weasis.dicom.sr.SRElementFactory

    03.08.2023 02:02:00.919 *INFO* [FelixStartLevel] org.weasis.dicom.codec.DicomCodec: Register DicomSpecialElementFactory: AU => org.weasis.dicom.au.AuElementFactory

    03.08.2023 02:02:00.928 *INFO* [FelixStartLevel] org.weasis.dicom.codec.DicomCodec: Register DicomSpecialElementFactory: ECG => org.weasis.dicom.wave.WaveElementFactory

    03.08.2023 02:02:00.928 *INFO* [FelixStartLevel] org.weasis.dicom.codec.DicomCodec: Register DicomSpecialElementFactory: HD => org.weasis.dicom.wave.WaveElementFactory

    03.08.2023 02:02:00.944 *INFO* [AWT-EventQueue-2] org.weasis.base.ui.gui.WeasisWinListener: Register data explorer Plug-in: DICOM Explorer

    03.08.2023 02:02:00.948 *INFO* [AWT-EventQueue-2] org.weasis.core.ui.internal.Activator: Register series viewer plug-in: DICOM Structured Report

    03.08.2023 02:02:00.971 *INFO* [AWT-EventQueue-2] org.weasis.core.ui.internal.Activator: Register series viewer plug-in: 2D-DICOM Viewer

    03.08.2023 02:02:00.973 *INFO* [AWT-EventQueue-2] org.weasis.core.ui.internal.Activator: Register series viewer plug-in: DICOM Voice Audio Waveform

    03.08.2023 02:02:00.979 *INFO* [AWT-EventQueue-2] org.weasis.core.ui.internal.Activator: Register series viewer plug-in: DICOM Waveform

    03.08.2023 02:02:00.990 *INFO* [AWT-EventQueue-2] org.weasis.core.ui.internal.Activator: Register series viewer plug-in: Image Viewer

    03.08.2023 02:02:01.060 *INFO* [Dicom Model-pool-3-thread-1] org.weasis.dicom.explorer.wado.DownloadManager: Downloading XML manifest: /weasis-pacs-connector/RequestManifest

    03.08.2023 02:02:01.180 *INFO* [Dicom Model-pool-3-thread-1] org.weasis.dicom.explorer.wado.DownloadManager: [Validate with XSD schema] wado_query is valid

    03.08.2023 02:02:01.192 *INFO* [Dicom Model-pool-3-thread-1] org.weasis.dicom.explorer.wado.DownloadManager: Adding new patient: KASHIF ASRAR KHAN

    03.08.2023 02:02:01.236 *INFO* [AWT-EventQueue-2] org.weasis.dicom.explorer.DicomExplorer: Add series: SG T2W

    03.08.2023 02:02:02.225 *ERROR* [Dicom Model-pool-3-thread-1] org.weasis.dicom.explorer.wado.LoadSeries: Downloading thumbnail org.weasis.core.util.StreamIOException: java.net.ConnectException: Connection refused: connect

    at org.weasis.core.api.util.NetworkUtil.prepareConnection(NetworkUtil.java:155)

    at org.weasis.core.api.util.NetworkUtil.getHttpResponse(NetworkUtil.java:74)

    at org.weasis.dicom.explorer.wado.LoadSeries.getJPEGThumnails(LoadSeries.java:656)

    03.08.2023 02:02:02.227 *INFO* [AWT-EventQueue-2] org.weasis.dicom.explorer.DicomExplorer: Add series: CO T1W

    03.08.2023 02:02:03.252 *ERROR* [Dicom Model-pool-3-thread-1] org.weasis.dicom.explorer.wado.LoadSeries: Downloading thumbnail org.weasis.core.util.StreamIOException: java.net.ConnectException: Connection refused: connect

    at org.weasis.core.api.util.NetworkUtil.prepareConnection(NetworkUtil.java:155)

    at org.weasis.core.api.util.NetworkUtil.getHttpResponse(NetworkUtil.java:74)


    Thank You in advance

    at org.weasis.dicom.explorer.wado.LoadSeries.getJPEGThumnails(LoadSeries.java:656)

  • Dear Kashif


    The logs showed that everything is working fine.


    1) Viewer is plugin appropriately initialized. So viewer is downloaded.

    2) WADO query is also OKIE

    3) Weasis manifest file is also created.

    4) Series are loaded


    There is a connection error as indicated in the logs. If possible can you share the logs for review.


    I would recommend that instead of using native viewer call why don't you shift to newer one. I am hopeful that it would solve your problem. :)


    Otherwise, did you try to create the manifest file manually and check; were you able to view study or not????


    --HM

  • Hi,


    Did you check the contents of the manifest? The refusal suggest the manifest file contains incorrect links. Buy I have not used weasis for a while, having just developed DICOMweb and ohif. Maybe weasis can use DICOMweb?


    Marcel

  • Hi,


    I just downloaded weasis 4.1.2 and tried it with conquest1.5.0d. The C-GET interface works fine and loads images very fast.




    The web interface does not seem to work very well. It loads slowly and then the images do not show up.





    I am not sure what causes this. I also tried the built-in webserver (localhost:8086) but that works even less, no search results are shown. Both work fine with OHIF and pass tests in http://localhost:8086/api/dicom/test.html.


    Marcel

  • Hi,


    I have updated two Lua files on git to correct subtle syntax error in conquest's web responses. Weasis now works with dicomweb (both in PhP and Lua modes). The new files must be updated in the dicomserver folder for Lua mode, and in your Apache htdocs folder for PhP mode.


    Marcel

  • To start a recent Weasis from newweb, update the two files as listed above, install Weasis, and add this line to your app/newweb/dicom.ini under section [webdefaults].


    Code
    studylink = '<TD><A href=weasis://%24dicom%3Ars%20--url%20%22http%3A%2F%2F127.0.0.1%2Fapi%2Fdicom%2Frs%22%20-r%20%22studyUID={StudyInstanceUID}%22>Weasis</a>'



    This is a link as documented here: https://weasis.org/en/getting-started/weasis-protocol/


    Viewing at series level is set as follows:


    Code
    serieslink = '<TD><A href=weasis://%24dicom%3Ars%20--url%20%22http%3A%2F%2F127.0.0.1%2Fapi%2Fdicom%2Frs%22%20-r%20%22seriesUID={SeriesInstanceUID}%22>Weasis</a>'


    Note that the links inside the Weasis command must be absolute and must therefore be edited to replace e.g. http://127.0.0.1 with http://127.0.0.1:8086 (for Ladle server) or http://yourhostname.


    Marcel

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!