web stats
Mirth Community - View Single Post - How to get the "connection status of channel"
View Single Post
  #9  
Old 05-04-2015, 06:51 AM
Jurjan Jurjan is offline
OBX.1 Kenobi
 
Join Date: Feb 2011
Posts: 37
Jurjan is on a distinguished road
Default

I'm using 3.2.0, and getting this error:
[2015-05-04 16:36:27,259] ERROR (com.mirth.connect.connectors.js.JavaScriptReceive r:135): Error executing JavaScript Reader script d967cfa5-fa96-4c75-90b5-5d43de6b5738.
com.mirth.connect.server.util.javascript.JavaScrip tExecutorException: com.mirth.connect.server.MirthJavascriptTransforme rException: CHANNEL:
T_ALG_XXXX_CHK01CONNECTOR:
SourceSOURCE CODE:
106: logger.info('states: ' + states);107: // var status = states.get(channelid + '_source_connector')[1];108: //logger.info('status: ' + status);109: var status = states.get(channelid + '_source_connector');110: logger.info('status: ' + status);111: var status2 = status[1];112: logger.info('status2: ' + status2);113: return status;114: }115: // Versie: $Rev: 1489 $LINE NUMBER:
111DETAILS:
TypeError: Cannot read property "1" from null
at d967cfa5-fa96-4c75-90b5-5d43de6b5738:111 (channelStatus)
at d967cfa5-fa96-4c75-90b5-5d43de6b5738:761 (doScript)
at d967cfa5-fa96-4c75-90b5-5d43de6b5738:764
at com.mirth.connect.server.util.javascript.JavaScrip tUtil.execute(JavaScriptUtil.java:67)
at com.mirth.connect.connectors.js.JavaScriptReceiver .poll(JavaScriptReceiver.java:101)
at com.mirth.connect.donkey.server.channel.PollConnec tor$PollConnectorTask.run(PollConnector.java:131)
at java.util.TimerThread.mainLoop(Unknown Source)
at java.util.TimerThread.run(Unknown Source)Caused by: com.mirth.connect.server.MirthJavascriptTransforme rException: CHANNEL:
T_ALG_XXXX_CHK01CONNECTOR:
SourceSOURCE CODE:
106: logger.info('states: ' + states);107: // var status = states.get(channelid + '_source_connector')[1];108: //logger.info('status: ' + status);109: var status = states.get(channelid + '_source_connector');110: logger.info('status: ' + status);111: var status2 = status[1];112: logger.info('status2: ' + status2);113: return status;114: }115: // Versie: $Rev: 1489 $LINE NUMBER:
111DETAILS:
TypeError: Cannot read property "1" from null
at d967cfa5-fa96-4c75-90b5-5d43de6b5738:111 (channelStatus)
at d967cfa5-fa96-4c75-90b5-5d43de6b5738:761 (doScript)
at d967cfa5-fa96-4c75-90b5-5d43de6b5738:764
at com.mirth.connect.server.util.javascript.JavaScrip tUtil.executeScript(JavaScriptUtil.java:526)
at com.mirth.connect.connectors.js.JavaScriptReceiver $JavaScriptReceiverTask.call(JavaScriptReceiver.ja va:159)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker( Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run (Unknown Source)
at java.lang.Thread.run(Unknown Source)

anyone has any idea?
Reply With Quote