weasis integration error

98 views
Skip to first unread message

AKS

unread,
Mar 16, 2025, 3:22:02 AM3/16/25
to dcm4che
Installation::
DCM4CHEE instance (Version 5.33.1 and NOT secure)  on RHEL8
installed weasis 4.5.1 according to  https://nroduit.github.io/en/basics/customize/integration/#download-directly-with-dicomweb-restful-services

actual settings:
Configuration > Devices > dcm4chee-arc > Extensions > Edit extension > Child Objects > Web Applications > DCM4CHEE

IID_STUDY_URL=weasis://$dicom:rs --url "http://192.168.22.111:8080{{qidoBasePath}}" -r "studyUID={{studyUID}}" --query-ext "&includedefaults=false"
IID_PATIENT_URL=weasis://$dicom:rs --url "http://192.168.22.111:8080{{qidoBasePath}}" -r "patientID={{patientID}}" --query-ext "&includedefaults=false"
IID_URL_TARGET=_self

I have uploaded sample images.
I can see and launch the eye for weasis URL

If I launch for study, i can see the images loading on the weasis viewer  .
But if I launch theviewer from Patient, Only a blank weasis window opens without images...

=============================
In the log I can see the following errors...
16.03.2025 10:36:45.815 *INFO * Starting Weasis...
16.03.2025 10:36:45.817 *INFO * Initialization of the launch configuration...
16.03.2025 10:36:45.817 *INFO * Main arg 0 = weasis://$dicom:rs%20--url%20%22http://192.168.22.111:8080/dcm4chee-arc/aets/DCM4CHEE/rs%22%20-r%20%22patientID=64343%5E%5E%5EXYZHospital%22%20--query-ext%20%22&includedefaults=false%22
16.03.2025 10:36:45.830 *INFO * Properties: {weasis.user=root, weasis.name=Weasis, weasis.version=4.5.1, weasis.config.hash=174436, weasis.path=/root/.weasis, weasis.codebase.url=file:/opt/weasis/lib/app, weasis.pref.local.session=true, weasis.codebase.local=/opt/weasis/lib/app, felix.config.properties=file:/opt/weasis/lib/app/conf/base.json, weasis.source.id=45D86FE2, weasis.profile=default, http.agent=Weasis/4.5.1 (Linux; 4.18.0-553.el8_10.x86_64; amd64; pf:default; rv:4.5.1) Java/22.0.2}
16.03.2025 10:36:45.842 *DEBUG* Check if another instance running for id: 45D86FE2
16.03.2025 10:36:45.842 *INFO * Singleton server 45D86FE2 already running on port 38935
16.03.2025 10:36:45.842 *INFO * Connect to 45D86FE2 on port 38935
16.03.2025 10:36:45.847 *DEBUG* [pool-1-thread-1] org.weasis.launcher.Singleton: Singleton server is waiting for a connection
16.03.2025 10:36:45.847 *DEBUG* [pool-1-thread-1] org.weasis.launcher.Singleton: Receive message: si.init
16.03.2025 10:36:45.849 *DEBUG* [pool-1-thread-1] org.weasis.launcher.Singleton: Sending ACK for loading args
16.03.2025 10:36:45.849 *DEBUG* Waiting for ACK
16.03.2025 10:36:45.849 *DEBUG* Got ACK
16.03.2025 10:36:45.852 *DEBUG* [Dicom Model-pool-3-thread-1] o.w.dicom.explorer.rs.RsQueryResult: QIDO-RS request: http://192.168.22.111:8080/dcm4chee-arc/aets/DCM4CHEE/rs/studies?00100020=64343&00100021=XYZHospital&includefield=00080020,00080030,00080050,00080061,00080090,00081030,00100010,00100020,00100021,00100030,00100040,0020000D,00200010&includedefaults=false
16.03.2025 10:36:45.854 *WARN * [Dicom Model-pool-3-thread-1] o.weasis.core.api.util.NetworkUtil: http Status 400 - Bad Request
16.03.2025 10:36:45.854 *ERROR* [Dicom Model-pool-3-thread-1] o.w.dicom.explorer.rs.RsQueryResult: QIDO-RS with PatientID 64343^^^XYZHospitalorg.weasis.core.util.StreamIOException: Bad Request
        at org.weasis.core.api.util.NetworkUtil.readResponse(NetworkUtil.java:184)
        at org.weasis.core.api.util.NetworkUtil.prepareConnection(NetworkUtil.java:157)
        at org.weasis.core.api.util.NetworkUtil.getHttpResponse(NetworkUtil.java:80)

^C16.03.2025 10:37:24.845 *INFO * [Thread-0] org.weasis.launcher.WeasisLauncher: Stop the OSGI framework and clean files before closing
16.03.2025 10:37:24.851 *INFO * [FelixStartLevel] o.w.dicom.viewer3d.View3DFactory: 3D Viewer is deactivated
16.03.2025 10:37:24.851 *INFO * [AWT-EventQueue-0] org.weasis.core.internal.Activator: Unregister series viewer plug-in: 3D Viewer
16.03.2025 10:37:24.852 *INFO * [FelixStartLevel] org.weasis.dicom.codec.DicomCodec: Unregister DicomSpecialElementFactory: RTSTRUCT => org.weasis.dicom.rt.RTElementFactory
16.03.2025 10:37:24.852 *INFO * [FelixStartLevel] org.weasis.dicom.codec.DicomCodec: Unregister DicomSpecialElementFactory: RTPLAN => org.weasis.dicom.rt.RTElementFactory
16.03.2025 10:37:24.852 *INFO * [FelixStartLevel] org.weasis.dicom.codec.DicomCodec: Unregister DicomSpecialElementFactory: RTDOSE => org.weasis.dicom.rt.RTElementFactory
16.03.2025 10:37:24.852 *INFO * [FelixStartLevel] o.w.core.ui.docking.ExtToolFactory: Deactivate the Display panel
16.03.2025 10:37:24.856 *INFO * [FelixStartLevel] org.weasis.dicom.codec.DicomCodec: Unregister DicomSpecialElementFactory: ECG => org.weasis.dicom.wave.WaveElementFactory
16.03.2025 10:37:24.856 *INFO * [FelixStartLevel] org.weasis.dicom.codec.DicomCodec: Unregister DicomSpecialElementFactory: HD => org.weasis.dicom.wave.WaveElementFactory
16.03.2025 10:37:24.857 *INFO * [FelixStartLevel] org.weasis.dicom.codec.DicomCodec: Unregister DicomSpecialElementFactory: AU => org.weasis.dicom.au.AuElementFactory
16.03.2025 10:37:24.857 *INFO * [FelixStartLevel] org.weasis.dicom.codec.DicomCodec: Unregister DicomSpecialElementFactory: SR => org.weasis.dicom.sr.SRElementFactory
16.03.2025 10:37:24.858 *INFO * [FelixStartLevel] o.w.core.ui.docking.ExtToolFactory: Deactivate the Segmentation panel
16.03.2025 10:37:24.861 *INFO * [FelixStartLevel] o.w.base.ui.gui.WeasisWinListener: Deactivate the main window PropertyChangeListener
Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.


```

AKS

unread,
Mar 23, 2025, 3:22:04 AM3/23/25
to dcm4che
Anybody can guide on this?? 
Getting Bad request for Patientid but working for Stdu  level query

Nicolas Roduit

unread,
Mar 23, 2025, 3:13:36 PM3/23/25
to dcm4che
See how to solve this issue with #4592 (comment)

AKS

unread,
Apr 16, 2025, 7:32:40 AM4/16/25
to dcm4che
Yes I have seen this issue.. 
But now bad request is not showing .
But still launching from Study, launches the viewer, but not when launched with Patientid
In the URL the {{patientID}} is getting replaced with PatientID^^^Issuer of Patientid..
It is not querying...

In the IID_PATIENT_URL, i removed {{patientID}} and hardcoded it with only patientId value...
it worked...
Can you please highlight what I am missing..
Why is it not working with the Patientid and Issuer of patientid ?
How can i rectify this 

Nicolas Roduit

unread,
Apr 17, 2025, 12:42:58 PM4/17/25
to dcm4che
It's certainly an encoding problem, see my comment. In my opinion, this variable should always be encoded, otherwise it will generate an error.

Make sure that encoding is not disabled in the configuration parameters.
Reply all
Reply to author
Forward
0 new messages