XML to DICOM error

mardi 3 février 2015

Has anyone seen the following exception when trying to receive and write out DICOM files?



DICOMSerializer error

ERROR MESSAGE: Error converting XML to DICOM

java.lang.IllegalStateException: state:EXPECT_FRAG

at org.dcm4che2.io.ContentHandlerAdapter.onStartEleme nt(ContentHandlerAdapter.java:117)

at org.dcm4che2.io.ContentHandlerAdapter.startElement (ContentHandlerAdapter.java:89)

at org.apache.xerces.parsers.AbstractSAXParser.startE lement(Unknown Source)

at org.apache.xerces.impl.XMLDocumentFragmentScannerI mpl.scanStartElement(Unknown Source)

at org.apache.xerces.impl.XMLDocumentFragmentScannerI mpl$FragmentContentDispatcher.dispatch(Unknown Source)

at org.apache.xerces.impl.XMLDocumentFragmentScannerI mpl.scanDocument(Unknown Source)

at org.apache.xerces.parsers.XML11Configuration.parse (Unknown Source)

at org.apache.xerces.parsers.XML11Configuration.parse (Unknown Source)

at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)

at org.apache.xerces.parsers.AbstractSAXParser.parse( Unknown Source)

at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser .parse(Unknown Source)

at org.apache.xerces.jaxp.SAXParserImpl.parse(Unknown Source)

at com.mirth.connect.plugins.datatypes.dicom.DICOMSer ializer.fromXML(DICOMSerializer.java:139)

at com.mirth.connect.donkey.server.channel.FilterTran sformerExecutor.processConnectorMessage(FilterTran sformerExecutor.java:119)

at com.mirth.connect.donkey.server.channel.Channel.pr ocess(Channel.java:1266)

at com.mirth.connect.donkey.server.channel.Channel.di spatchRawMessage(Channel.java:956)

at com.mirth.connect.donkey.server.channel.SourceConn ector.dispatchRawMessage(SourceConnector.java:175)

at com.mirth.connect.donkey.server.channel.SourceConn ector.dispatchRawMessage(SourceConnector.java:152)

at org.dcm4che2.tool.dcmrcv.MirthDcmRcv.onCStoreRQ(Mi rthDcmRcv.java:59)

at org.dcm4che2.tool.dcmrcv.StorageSCP.onCStoreRQ(Sto rageSCP.java:96)

at org.dcm4che2.tool.dcmrcv.StorageSCP.cstore(Storage SCP.java:73)

at org.dcm4che2.net.DicomServiceRegistry.process(Dico mServiceRegistry.java:238)

at org.dcm4che2.net.NetworkApplicationEntity.perform( NetworkApplicationEntity.java:1168)

at org.dcm4che2.net.Association.onDimseRQ(Association .java:1009)

at org.dcm4che2.net.PDUDecoder.decodeDIMSE(PDUDecoder .java:530)

at org.dcm4che2.net.Association.onPDataTF(Association .java:986)

at org.dcm4che2.net.State$Sta6.receivedPDataTF(State. java:239)

at org.dcm4che2.net.Association.receivedPDataTF(Assoc iation.java:982)

at org.dcm4che2.net.PDUDecoder.nextPDU(PDUDecoder.jav a:231)

at org.dcm4che2.net.Association.run(Association.java: 881)

at java.lang.Thread.run(Unknown Source)



I just have DICOM listener that receives inbound DICOM, re-writes some DICOM header values to de-identify data and then uses File Writer to write the files back to a specified directory.



I am only seeing the error on a subset of studies. I googled the error and there was some mention of possible issue with private DICOM sequence data but wanted to see if anyone else has found a workaround.



Running Mirth 3.0.3.





XML to DICOM error

0 commentaires:

Enregistrer un commentaire