[dcm4chee-arc-light] Error 409 on HTTP-POST of DICOM-SR using STOW-RS

140 views
Skip to first unread message

Naveed Pasha

unread,
Aug 21, 2023, 10:24:40 AM8/21/23
to dcm4che
Hi everyone,
I'm trying to create a web app using the "dicom-rs" and "yew.rs" library (in the Rust programming language). I get a 409 error.

Request (generated by my code as seen in Firefox):
XHRPOST
http://210.56.0.36:8080/dcm4chee-arc/aets/SCHPACS2/rs/studies
[HTTP/1.1 409 Conflict 2392ms]
--myboundary
Content-Type: application/dicom+json

[{"00080016":{"vr":"UI","Value":["1.2.840.10008.5.1.4.1.1.88.11"]},"00080018":{"vr":"UI","Value":["12345"]},"00100010":{"vr":"PN","Value":[{"Alphabetic":"XXXXXXX"}]},"00100020":{"vr":"LO","Value":["XXXXXXX"]},"0020000D":{"vr":"UI","Value":["1.2.392.200036.9116.6.18.10562196.1467.20230724090543953.1.75"]},"0040A040":{"vr":"CS","Value":["TEXT"]},"0040A160":{"vr":"UT","Value":["THIS IS A TEST REPORT."]}}]
--myboundary--

Response:
XHRPOST
http://210.56.0.36:8080/dcm4chee-arc/aets/SCHPACS2/rs/studies
[HTTP/1.1 409 Conflict 2392ms]

<?xml version="1.0" encoding="UTF-8"?>
<NativeDicomModel xml:space="preserve">
<DicomAttribute keyword="ErrorComment" tag="00000902" vr="LO">
<Value number="1">javax.ejb.EJBTransactionRolledbackException: javax.transaction.RollbackException: ARJUNA016053: Could not commit transaction.</Value>
</DicomAttribute>
<DicomAttribute keyword="RetrieveURL" tag="00081190" vr="UR"/>
<DicomAttribute keyword="FailedSOPSequence" tag="00081198" vr="SQ">
<Item number="1">
<DicomAttribute keyword="ReferencedSOPClassUID" tag="00081150" vr="UI">
<Value number="1">1.2.840.10008.5.1.4.1.1.88.11</Value>
</DicomAttribute>
<DicomAttribute keyword="ReferencedSOPInstanceUID" tag="00081155" vr="UI">
<Value number="1">12345</Value>
</DicomAttribute>
<DicomAttribute keyword="FailureReason" tag="00081197" vr="US">
<Value number="1">272</Value>
</DicomAttribute>
</Item>
</DicomAttribute>
</NativeDicomModel>

Not sure why it could not commit transaction...
Can anyone help?

Naveed Pasha

unread,
Aug 23, 2023, 11:56:03 PM8/23/23
to dcm4che
So, I looked through the logs at `/var/local/dcm4chee/wildfly/logs/server.log` and long story short: SeriesInstanceUID is required.

The error reads "RolledbackException" because an attempt to execute SQL failed because there is a constraint some table (I don't know which) that SeriesInstanceUID cannot be null.

So I added that and it works now.

Naveed Pasha

unread,
Aug 24, 2023, 12:03:23 AM8/24/23
to dcm4che
Moral of the story: Check the logs.
It helps to know which class will generate the log which in turn means that being familiar with the dcm4chee-arc-light source code makes life simpler (although I can understand this is not everyone's cup of tea).

Reply all
Reply to author
Forward
0 new messages