web stats
Transformer 300 Error - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #1  
Old 09-18-2015, 03:45 PM
newton newton is offline
What's HL7?
 
Join Date: Sep 2015
Posts: 3
newton is on a distinguished road
Default Transformer 300 Error

Hello,

I'm new to Mirth and I've been receiving a Transformer Error for some HL7 messages, but some are able to pass through successfully. I've been struggling with this error for some time and I can't seem to figure out why various messages throw this error as there doesn't seem to be anything wrong with the message itself. Below is the error message and I'd appreciate any help that you guys can give. If more information is needed then I can export the channel. Thank you in advance!

Mirth Version:

2.2.1.5861

JavaScript Code:

var validator = new Packages.com.stchome.igs.validate.IGSValidator();
var mvResult = validator.validateV2Message($('hl7Message'), $('messageVersion'));
channelMap.put('messageValidationReport', mvResult.getReport().toString());
// is message valid?
var messageValidationStatus = 'valid';
if (mvResult.getErrorCount() > 0)
{
messageValidationStatus = 'invalid';
}
channelMap.put('messageValidationStatus', messageValidationStatus);

Error Message (Stack Trace):

ERROR-300: Transformer error
ERROR MESSAGE: Error evaluating transformer
com.mirth.connect.server.MirthJavascriptTransforme rException:
CHANNEL: igsValidate
CONNECTOR: sourceConnector
SCRIPT SOURCE:
SOURCE CODE:
251: make the results available to later steps in the channel
252: */
253: //logger.info('trans - hl7Message: ' + $('hl7Message'));
254:
255: var validator = new Packages.com.stchome.igs.validate.IGSValidator();
256: var mvResult = validator.validateV2Message($('hl7Message'), $('messageVersion'));
257: channelMap.put('messageValidationReport', mvResult.getReport().toString());
258: // is message valid?
259: var messageValidationStatus = 'valid';
260: if (mvResult.getErrorCount() > 0)
LINE NUMBER: 256
DETAILS: Wrapped gov.nist.healthcare.core.validation.message.Messag eValidationException: Document changed during save
at com.mirth.connect.server.mule.transformers.JavaScr iptTransformer.evaluateScript(JavaScriptTransforme r.java:398)
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.ws.WebServiceMessageR eceiver.processData(WebServiceMessageReceiver.java :151)
at com.stchome.igs.listener.WSListener.submitSingleMe ssage(Unknown Source)
at sun.reflect.GeneratedMethodAccessor16.invoke(Unkno wn Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.sun.xml.internal.ws.api.server.InstanceResolve r$1.invoke(InstanceResolver.java:235)
at com.sun.xml.internal.ws.server.InvokerTube$2.invok e(InvokerTube.java:135)
at com.sun.xml.internal.ws.server.sei.EndpointMethodH andler.invoke(EndpointMethodHandler.java:246)
at com.sun.xml.internal.ws.server.sei.SEIInvokerTube. processRequest(SEIInvokerTube.java:82)
at com.sun.xml.internal.ws.api.pipe.Fiber.__doRun(Fib er.java:587)
at com.sun.xml.internal.ws.api.pipe.Fiber._doRun(Fibe r.java:546)
at com.sun.xml.internal.ws.api.pipe.Fiber.doRun(Fiber .java:531)
at com.sun.xml.internal.ws.api.pipe.Fiber.runSync(Fib er.java:428)
at com.sun.xml.internal.ws.server.WSEndpointImpl$2.pr ocess(WSEndpointImpl.java:232)
at com.sun.xml.internal.ws.transport.http.HttpAdapter $HttpToolkit.handle(HttpAdapter.java:460)
at com.sun.xml.internal.ws.transport.http.HttpAdapter .handle(HttpAdapter.java:233)
at com.sun.xml.internal.ws.transport.http.server.WSHt tpHandler.handleExchange(WSHttpHandler.java:95)
at com.sun.xml.internal.ws.transport.http.server.WSHt tpHandler.handle(WSHttpHandler.java:80)
at com.sun.net.httpserver.Filter$Chain.doFilter(Filte r.java:65)
at sun.net.httpserver.AuthFilter.doFilter(AuthFilter. java:65)
at com.sun.net.httpserver.Filter$Chain.doFilter(Filte r.java:68)
at sun.net.httpserver.ServerImpl$Exchange$LinkHandler .handle(ServerImpl.java:557)
at com.sun.net.httpserver.Filter$Chain.doFilter(Filte r.java:65)
at sun.net.httpserver.ServerImpl$Exchange.run(ServerI mpl.java:529)
at java.util.concurrent.ThreadPoolExecutor$Worker.run Task(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
Caused by: gov.nist.healthcare.core.validation.message.Messag eValidationException: Document changed during save
at gov.nist.healthcare.core.validation.message.struct ure.v2.er7.MessageStructureValidationV2Er7.checkMe ssageStructure(MessageStructureValidationV2Er7.jav a:365)
at gov.nist.healthcare.core.validation.message.struct ure.v2.MessageStructureValidationV2.validate(Messa geStructureValidationV2.java:90)
at gov.nist.healthcare.core.validation.message.v2.Mes sageValidationV2.validate(MessageValidationV2.java :109)
at com.stchome.igs.validate.IGSValidator.validateV2Me ssage(Unknown Source)
at sun.reflect.GeneratedMethodAccessor76.invoke(Unkno wn Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.mozilla.javascript.MemberBox.invoke(MemberBox. java:161)
at org.mozilla.javascript.NativeJavaMethod.call(Nativ eJavaMethod.java:247)
at org.mozilla.javascript.Interpreter.interpretLoop(I nterpreter.java:1702)
at org.mozilla.javascript.Interpreter.interpret(Inter preter.java:845)
at org.mozilla.javascript.InterpretedFunction.call(In terpretedFunction.java:164)
at org.mozilla.javascript.ContextFactory.doTopCall(Co ntextFactory.java:426)
at org.mozilla.javascript.ScriptRuntime.doTopCall(Scr iptRuntime.java:3157)
at org.mozilla.javascript.InterpretedFunction.exec(In terpretedFunction.java:175)
at com.mirth.connect.server.mule.transformers.JavaScr iptTransformer.evaluateScript(JavaScriptTransforme r.java:342)
... 37 more
Reply With Quote
  #2  
Old 09-30-2015, 02:24 PM
newton newton is offline
What's HL7?
 
Join Date: Sep 2015
Posts: 3
newton is on a distinguished road
Default

Open to all suggestions .
Reply With Quote
Reply

Tags
changed, document, error, save, transformer

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 01:30 PM.


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