web stats
transformer reporting error on wrong line - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #1  
Old 10-14-2008, 03:02 AM
JasonGriffith JasonGriffith is offline
OBX.1 Kenobi
 
Join Date: Aug 2007
Posts: 37
JasonGriffith
Default transformer reporting error on wrong line

My tranformer is stuck thinking that there is an error on line 133. When I add more code the line number that the error should be on doesnt change.

I've made sure to re-deploy my channels and have rebooted the computer. But it keeps on thinking that the error is on line 133. Lines 130-135 have code that is remarked out, so it's not like it is getting to the first line of code and then bombing out.

I still get the error on line 133 even if I shorten my code so that line 133 doesnt even exist.

If I remove the new section of code that I am working on, the transformer runs just fine.

Any ideas?
Reply With Quote
  #2  
Old 10-14-2008, 09:52 PM
mnowlin mnowlin is offline
OBX.3 Kenobi
 
Join Date: Sep 2006
Posts: 142
mnowlin is an unknown quantity at this point
Default Re:transformer reporting error on wrong line

Mirth version, the actual error message, and a copy of your channel would be useful...
Reply With Quote
  #3  
Old 10-15-2008, 12:18 AM
quimicefa quimicefa is offline
Mirth Guru
 
Join Date: Dec 2007
Location: Barcelona
Posts: 235
quimicefa is on a distinguished road
Default Re:transformer reporting error on wrong line

I have similar errors when in a pre/post processor step there are lines commented out after the "return" statement
Reply With Quote
  #4  
Old 10-15-2008, 05:24 AM
JasonGriffith JasonGriffith is offline
OBX.1 Kenobi
 
Join Date: Aug 2007
Posts: 37
JasonGriffith
Default Re:transformer reporting error on wrong line

Mirth Administrator Read_XML_for_ORU.xml (111680 bytes)
Version 1.7.1.3422
Built on April 23, 2008

error:
Code:
[2008-10-15 09:14:40,569]  ERROR (org.mule.impl.DefaultComponentExceptionStrategy:95): Caught exception in Exception Strategy for: 3371c2c7-8676-461a-bd75-1ffacd4f3ffa: org.mule.umo.routing.RoutingException: Failed to route event via endpoint: null. Message payload is of type: com.webreach.mirth.model.MessageObject
org.mule.umo.routing.RoutingException: Failed to route event via endpoint: null. Message payload is of type: com.webreach.mirth.model.MessageObject
	at org.mule.routing.outbound.OutboundMessageRouter.route(OutboundMessageRouter.java:84)
	at org.mule.impl.model.DefaultMuleProxy.onCall(DefaultMuleProxy.java:247)
	at org.mule.impl.model.seda.SedaComponent.doSend(SedaComponent.java:209)
	at org.mule.impl.model.AbstractComponent.sendEvent(AbstractComponent.java:277)
	at org.mule.impl.MuleSession.sendEvent(MuleSession.java:201)
	at org.mule.routing.inbound.InboundMessageRouter.send(InboundMessageRouter.java:161)
	at org.mule.routing.inbound.InboundMessageRouter.route(InboundMessageRouter.java:128)
	at org.mule.providers.AbstractMessageReceiver$DefaultInternalMessageListener.onMessage(AbstractMessageReceiver.java:493)
	at org.mule.providers.AbstractMessageReceiver.routeMessage(AbstractMessageReceiver.java:272)
	at org.mule.providers.AbstractMessageReceiver.routeMessage(AbstractMessageReceiver.java:231)
	at com.webreach.mirth.connectors.file.FileMessageReceiver.processFile(FileMessageReceiver.java:236)
	at com.webreach.mirth.connectors.file.FileMessageReceiver.poll(FileMessageReceiver.java:138)
	at org.mule.providers.PollingMessageReceiver.run(PollingMessageReceiver.java:118)
	at org.mule.impl.work.WorkerContext.run(WorkerContext.java:290)
	at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
	at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
	at java.lang.Thread.run(Unknown Source)Caused by: org.mule.umo.routing.CouldNotRouteOutboundMessageException: Failed to route event via endpoint: ImmutableMuleEndpoint{connector=com.webreach.mirth.connectors.file.FileConnector@177a800, endpointUri=file://C:/Documents%20and%20Settings/Administrator/Desktop/Mirth/ORU, transformer=Transformer{name='3371c2c7-8676-461a-bd75-1ffacd4f3ffa_destination_1_transformer', returnClass=false, returnClass=false, sourceTypes=[]}, name='_fileEndpoint#-561939350', type='sender', properties={}, transactionConfig=org.mule.impl.MuleTransactionConfig@858b87, filter=null, deleteUnacceptedMessages=false, initialised=true, securityFilter=null, synchronous=true, initialState=started, createConnector=0}. Message payload is of type: com.webreach.mirth.model.MessageObject
	at org.mule.routing.outbound.FilteringMulticastingRouter.route(FilteringMulticastingRouter.java:111)
	at org.mule.routing.outbound.OutboundMessageRouter$1.doInTransaction(OutboundMessageRouter.java:78)
	at org.mule.transaction.TransactionTemplate.execute(TransactionTemplate.java:48)
	at org.mule.routing.outbound.OutboundMessageRouter.route(OutboundMessageRouter.java:82)
	... 16 moreCaused by: org.mule.umo.provider.DispatchException: Failed to route event via endpoint: ImmutableMuleEndpoint{connector=com.webreach.mirth.connectors.file.FileConnector@177a800, endpointUri=file://C:/Documents%20and%20Settings/Administrator/Desktop/Mirth/ORU, transformer=Transformer{name='3371c2c7-8676-461a-bd75-1ffacd4f3ffa_destination_1_transformer', returnClass=false, returnClass=false, sourceTypes=[]}, name='_fileEndpoint#-561939350', type='sender', properties={}, transactionConfig=org.mule.impl.MuleTransactionConfig@858b87, filter=null, deleteUnacceptedMessages=false, initialised=true, securityFilter=null, synchronous=true, initialState=started, createConnector=0}. Message payload is of type: com.webreach.mirth.model.MessageObject
	at org.mule.providers.AbstractMessageDispatcher.send(AbstractMessageDispatcher.java:179)
	at org.mule.impl.MuleSession.sendEvent(MuleSession.java:191)
	at org.mule.impl.MuleSession.sendEvent(MuleSession.java:130)
	at org.mule.routing.outbound.AbstractOutboundRouter.send(AbstractOutboundRouter.java:85)
	at org.mule.routing.outbound.FilteringMulticastingRouter.route(FilteringMulticastingRouter.java:89)
	... 19 moreCaused by: org.mule.umo.transformer.TransformerException: 
CHANNEL:
	Slidell - Read_XML_for_ORU
CONNECTOR:
	Destination 1
SCRIPT SOURCE:
	
LINE NUMBER:
	133
DETAILS:
	Cannot add a property to a sealed object: File. (com.webreach.mirth.server.MirthJavascriptTransformerException)
	at com.webreach.mirth.server.mule.transformers.JavaScriptTransformer.evaluateScript(JavaScriptTransformer.java:448)
	at com.webreach.mirth.server.mule.transformers.JavaScriptTransformer.transform(JavaScriptTransformer.java:346)
	at org.mule.transformers.AbstractEventAwareTransformer.doTransform(AbstractEventAwareTransformer.java:48)
	at org.mule.transformers.AbstractTransformer.transform(AbstractTransformer.java:197)
	at org.mule.impl.MuleEvent.getTransformedMessage(MuleEvent.java:251)
	at com.webreach.mirth.server.controllers.MessageObjectController.getMessageObjectFromEvent(MessageObjectController.java:507)
	at com.webreach.mirth.connectors.file.FileMessageDispatcher.doDispatch(FileMessageDispatcher.java:74)
	at com.webreach.mirth.connectors.file.FileMessageDispatcher.doSend(FileMessageDispatcher.java:207)
	at org.mule.providers.AbstractMessageDispatcher.send(AbstractMessageDispatcher.java:166)
	... 23 moreCaused by: com.webreach.mirth.server.MirthJavascriptTransformerException: 
CHANNEL:
	Slidell - Read_XML_for_ORU
CONNECTOR:
	Destination 1
SCRIPT SOURCE:
	
LINE NUMBER:
	133
DETAILS:
	Cannot add a property to a sealed object: File.
	at com.webreach.mirth.server.mule.transformers.JavaScriptTransformer.evaluateScript(JavaScriptTransformer.java:439)
	... 31 more
Reply With Quote
  #5  
Old 10-17-2008, 09:43 AM
jacobb jacobb is offline
Mirth Employee
 
Join Date: Aug 2006
Location: Irvine, CA
Posts: 1,218
jacobb is an unknown quantity at this point
Default Re:transformer reporting error on wrong line

This is telling you the line number of your generated script that Mirth created to run your transformer. Right now, you can't tell what line number of one of your individual scripts is failing.
__________________
Jacob Brauer
Director, Software Development
NextGen Healthcare

Reply With Quote
Reply

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
ACK timeout reporting sbacon Support 12 07-13-2010 02:10 PM
ERROR-301: Transformer conversion error JasonGriffith Support 6 02-09-2010 01:10 PM
Insurance array mapping wrong value arumpke Support 1 06-23-2007 09:33 PM
Comments line in javascript transformer fernando.ramirez Support 4 01-12-2007 05:53 AM
transformer Error arunpriya Support 1 11-28-2006 09:22 AM


All times are GMT -8. The time now is 08:17 PM.


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