Announcement

Collapse
No announcement yet.

cannot deploy the channel

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • cannot deploy the channel

    I am running Mirth 3.0.1.7051. I am trying to build a filter for the XML and got that error of:

    [2014-10-30 14:20:52,979] ERROR (com.mirth.connect.server.controllers.DonkeyEngine Controller:190): Error deploying channel f701e03a-157a-474a-9883-0e5eaf9345e5.
    com.mirth.connect.donkey.server.DeployException: com.mirth.connect.plugins.datatypes.xml.XMLSeriali zationProperties cannot be cast to com.mirth.connect.plugins.datatypes.hl7v2.HL7v2Ser ializationProperties
    at com.mirth.connect.server.controllers.DonkeyEngineC ontroller.deployChannel(DonkeyEngineController.jav a:211)
    at com.mirth.connect.server.controllers.DonkeyEngineC ontroller.deployChannels(DonkeyEngineController.ja va:188)
    at com.mirth.connect.server.servlets.EngineServlet.do Post(EngineServlet.java:64)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:727)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:820)
    at org.eclipse.jetty.servlet.ServletHolder.handle(Ser vletHolder.java:652)
    at org.eclipse.jetty.servlet.ServletHandler.doHandle( ServletHandler.java:447)
    at org.eclipse.jetty.server.session.SessionHandler.do Handle(SessionHandler.java:225)
    at org.eclipse.jetty.server.handler.ContextHandler.do Handle(ContextHandler.java:1038)
    at org.eclipse.jetty.servlet.ServletHandler.doScope(S ervletHandler.java:374)
    at org.eclipse.jetty.server.session.SessionHandler.do Scope(SessionHandler.java:189)
    at org.eclipse.jetty.server.handler.ContextHandler.do Scope(ContextHandler.java:972)
    at org.eclipse.jetty.server.handler.ScopedHandler.han dle(ScopedHandler.java:135)
    at org.eclipse.jetty.server.handler.HandlerList.handl e(HandlerList.java:52)
    at org.eclipse.jetty.server.handler.HandlerWrapper.ha ndle(HandlerWrapper.java:116)
    at org.eclipse.jetty.server.Server.handle(Server.java :363)
    at org.eclipse.jetty.server.AbstractHttpConnection.ha ndleRequest(AbstractHttpConnection.java:483)
    at org.eclipse.jetty.server.AbstractHttpConnection.co ntent(AbstractHttpConnection.java:931)
    at org.eclipse.jetty.server.AbstractHttpConnection$Re questHandler.content(AbstractHttpConnection.java:9 92)
    at org.eclipse.jetty.http.HttpParser.parseNext(HttpPa rser.java:856)
    at org.eclipse.jetty.http.HttpParser.parseAvailable(H ttpParser.java:240)
    at org.eclipse.jetty.server.AsyncHttpConnection.handl e(AsyncHttpConnection.java:82)
    at org.eclipse.jetty.io.nio.SslConnection.handle(SslC onnection.java:196)
    at org.eclipse.jetty.io.nio.SelectChannelEndPoint.han dle(SelectChannelEndPoint.java:627)
    at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.r un(SelectChannelEndPoint.java:51)
    at org.eclipse.jetty.util.thread.QueuedThreadPool.run Job(QueuedThreadPool.java:608)
    at org.eclipse.jetty.util.thread.QueuedThreadPool$3.r un(QueuedThreadPool.java:543)
    at java.lang.Thread.run(Unknown Source)Caused by: java.lang.ClassCastException: com.mirth.connect.plugins.datatypes.xml.XMLSeriali zationProperties cannot be cast to com.mirth.connect.plugins.datatypes.hl7v2.HL7v2Ser ializationProperties
    at com.mirth.connect.plugins.datatypes.hl7v2.ER7Seria lizer.<init>(ER7Serializer.java:60)
    at com.mirth.connect.plugins.datatypes.hl7v2.HL7v2Dat aTypeDelegate.getSerializer(HL7v2DataTypeDelegate. java:27)
    at com.mirth.connect.plugins.DataTypeServerPlugin.get Serializer(DataTypeServerPlugin.java:32)
    at com.mirth.connect.server.message.DataTypeFactory.g etDataType(DataTypeFactory.java:31)
    at com.mirth.connect.server.controllers.DonkeyEngineC ontroller.setCommonConnectorProperties(DonkeyEngin eController.java:882)
    at com.mirth.connect.server.controllers.DonkeyEngineC ontroller.createSourceConnector(DonkeyEngineContro ller.java:716)
    at com.mirth.connect.server.controllers.DonkeyEngineC ontroller.convertToDonkeyChannel(DonkeyEngineContr oller.java:527)
    at com.mirth.connect.server.controllers.DonkeyEngineC ontroller.deployChannel(DonkeyEngineController.jav a:209)
    ... 27 more

    and we are using java version "1.7.0"
    Java(TM) SE Runtime Environment (build 1.7.0-b147)
    Java HotSpot(TM) 64-Bit Server VM (build 21.0-b17, mixed mode)

    The filer for the Javascript is:

    goodLocationList = ['Advocare Ear Nose & Throat Specialists of Morristown'];

    if (goodLocationList.contains(msg['custodian']['assignedCustodian']['representedCustodianOrganization']['name'].toString())) {

    return true;
    }

    return false;


    Thanks in advance for your help.

  • #2
    I had to change the inbound data type to XML. Thanks

    Comment

    Working...
    X