web stats
DICOM Listener: ERROR-300: Transformer error - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #1  
Old 05-14-2013, 01:16 AM
venkatepost venkatepost is offline
What's HL7?
 
Join Date: May 2013
Location: Bangalore, India
Posts: 2
venkatepost is on a distinguished road
Send a message via Yahoo to venkatepost Send a message via Skype™ to venkatepost
Angry DICOM Listener: ERROR-300: Transformer error

When I try to read particular DICOM files, I end up with the below error message. If I am not wrong this error occurs while converting XML back to DICOM message at the source.

I appreciate your help to fix the issue...

[2013-05-14 11:24:09,978] ERROR (org.mule.impl.DefaultExceptionStrategy:231):
************************************************** ******************************
Message : java.lang.IllegalStateException: state:EXPECT_FRAG (com.mirth.connect.model.converters.SerializerExce ption)
Type : org.mule.umo.transformer.TransformerException
Code : 64999
JavaDoc : http://mule.codehaus.org/docs/apidoc...Exception.html
Transformer : Transformer{name='5ac3f9db-b0e1-4292-bf72-d92a967f071b_source_transformer', returnClass=false, returnClass=false, sourceTypes=[]}
************************************************** ******************************
Exception stack is:
1. state:EXPECT_FRAG (java.lang.IllegalStateException)
org.dcm4che2.io.ContentHandlerAdapter:117 (null)
2. java.lang.IllegalStateException: state:EXPECT_FRAG (com.mirth.connect.model.converters.SerializerExce ption)
com.mirth.connect.model.converters.DICOMSerializer :126 (null)
3. java.lang.IllegalStateException: state:EXPECT_FRAG (com.mirth.connect.model.converters.SerializerExce ption) (org.mule.umo.transformer.TransformerException)
com.mirth.connect.server.mule.transformers.JavaScr iptTransformer:410 (http://mule.codehaus.org/docs/apidoc...Exception.html)
************************************************** ******************************
Root Exception stack trace:
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.model.converters.DICOMSerializer .fromXML(DICOMSerializer.java:123)

at com.mirth.connect.model.converters.DICOMSerializer .fromXML(DICOMSerializer.java:47)

at com.mirth.connect.server.mule.transformers.JavaScr iptTransformer.evaluateScript(JavaScriptTransforme r.java:384)

at com.mirth.connect.server.mule.transformers.JavaScr iptTransformer.transform(JavaScriptTransformer.jav a:296)

at org.mule.transformers.AbstractEventAwareTransforme r.doTransform(AbstractEventAwareTransformer.java:4 8)

at org.mule.transformers.AbstractTransformer.transfor m(AbstractTransformer.java:197)

at org.mule.transformers.AbstractTransformer.transfor m(AbstractTransformer.java:200)

at org.mule.impl.MuleEvent.getTransformedMessage(Mule Event.java:251)

at org.mule.routing.inbound.SelectiveConsumer.isMatch (SelectiveConsumer.java:61)

at org.mule.routing.inbound.InboundMessageRouter.rout e(InboundMessageRouter.java:79)

at org.mule.providers.AbstractMessageReceiver$Default InternalMessageListener.onMessage(AbstractMessageR eceiver.java:487)

at org.mule.providers.AbstractMessageReceiver.routeMe ssage(AbstractMessageReceiver.java:266)

at org.mule.providers.AbstractMessageReceiver.routeMe ssage(AbstractMessageReceiver.java:225)

at com.mirth.connect.connectors.vm.VMMessageReceiver. getMessages(VMMessageReceiver.java:223)

at org.mule.providers.TransactedPollingMessageReceive r.poll(TransactedPollingMessageReceiver.java:108)

at org.mule.providers.PollingMessageReceiver.run(Poll ingMessageReceiver.java:97)

at org.mule.impl.work.WorkerContext.run(WorkerContext .java:290)

at edu.emory.mathcs.backport.java.util.concurrent.Thr eadPoolExecutor.runWorker(ThreadPoolExecutor.java: 1061)

at edu.emory.mathcs.backport.java.util.concurrent.Thr eadPoolExecutor$Worker.run(ThreadPoolExecutor.java :575)

at java.lang.Thread.run(Thread.java:722)

************************************************** ******************************

Last edited by venkatepost; 05-14-2013 at 01:25 AM.
Reply With Quote
  #2  
Old 06-04-2013, 01:11 AM
ashields ashields is offline
What's HL7?
 
Join Date: Jan 2007
Posts: 5
ashields
Default Are there any private tags?

Do you have any private tags in your DICOM?

I've just come across this and in my case the DICOM object had private tags which where sequences, when mirth converts this to xml it uses a UN VR type, however when it subsequently tries to decode it's own xml the presence of sequence data within an item that's not of VR type SQ confuses the parser.
Reply With Quote
  #3  
Old 05-31-2018, 06:29 AM
tippenring tippenring is offline
What's HL7?
 
Join Date: Sep 2009
Posts: 4
tippenring is on a distinguished road
Default

Code:
java.lang.IllegalStateException: state:EXPECT_FRAG
Thanks for this. I just came across the same thing in 3.4.2. Sure enough, I have private DICOM tags with vr types of UN rather than SQ in it.

I've just verified this is also a problem in 3.5.2.

Here's my workaround for a Philips Cath.

Code:
function fixphilipscath(arg1) {
	if (msg['tag20019000']['item']['tag20011069']['@vr']=="UN") { 
		msg['tag20019000']['item']['tag20011069']['@vr']="SQ";
	};
	if (msg['tag20019000']['@vr']=="UN") {
		msg['tag20019000']['@vr']="SQ"
	};
	if (msg['tag2003102E']['@vr']=="UN") { 
		msg['tag2003102E']['@vr']="SQ"
	};
};

Last edited by tippenring; 05-31-2018 at 09:49 AM. Reason: more info
Reply With Quote
Reply

Tags
error-300, listener

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 09:55 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2019, vBulletin Solutions, Inc.
Mirth Corporation