Announcement

Collapse
No announcement yet.

Error importing filter file.

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

  • Error importing filter file.

    Hello everyone,

    Whenever I try to import a recently exported filter, I get an error. The error is: "Invalid filter file"

    In the Java console I get:

    Code:
    java.lang.ClassCastException: org.apache.xerces.dom.DeepNodeListImpl
    	at com.webreach.mirth.model.util.ImportConverter.convertFilter(ImportConverter.java:300)
    	at com.webreach.mirth.client.ui.editors.filter.FilterPane.importFilter(FilterPane.java:1074)
    	at com.webreach.mirth.client.ui.editors.filter.FilterPane.doImport(FilterPane.java:1063)
    	at com.webreach.mirth.client.ui.editors.filter.FilterPane$3.actionPerformed(FilterPane.java:445)
    	at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
    	at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
    	at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
    	at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
    	at javax.swing.AbstractButton.doClick(Unknown Source)
    	at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
    	at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(Unknown Source)
    	at java.awt.Component.processMouseEvent(Unknown Source)
    	at javax.swing.JComponent.processMouseEvent(Unknown Source)
    	at java.awt.Component.processEvent(Unknown Source)
    	at java.awt.Container.processEvent(Unknown Source)
    	at java.awt.Component.dispatchEventImpl(Unknown Source)
    	at java.awt.Container.dispatchEventImpl(Unknown Source)
    	at java.awt.Component.dispatchEvent(Unknown Source)
    	at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
    	at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
    	at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
    	at java.awt.Container.dispatchEventImpl(Unknown Source)
    	at java.awt.Window.dispatchEventImpl(Unknown Source)
    	at java.awt.Component.dispatchEvent(Unknown Source)
    	at java.awt.EventQueue.dispatchEvent(Unknown Source)
    	at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
    	at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
    	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    	at java.awt.EventDispatchThread.run(Unknown Source)
    Here is the contents of the filter file.
    Code:
    <com.webreach.mirth.model.Filter>
      <rules>
        <com.webreach.mirth.model.Rule>
          <sequenceNumber>0</sequenceNumber>
          <name>Accept message if "msg['OBR'][0]['OBR.16']['OBR.16.1'].toString()" equals 1806</name>
          <data class="map">
            <entry>
              <string>OriginalField</string>
              <string></string>
            </entry>
            <entry>
              <string>Values</string>
              <list>
                <string>1806</string>
              </list>
            </entry>
            <entry>
              <string>Equals</string>
              <string>1</string>
            </entry>
            <entry>
              <string>Name</string>
              <string></string>
            </entry>
            <entry>
              <string>Field</string>
              <string>msg['OBR'][0]['OBR.16']['OBR.16.1'].toString()</string>
            </entry>
            <entry>
              <string>Accept</string>
              <string>1</string>
            </entry>
          </data>
          <type>Rule Builder</type>
          <script>if(msg['OBR'][0]['OBR.16']['OBR.16.1'].toString() == 1806)
    {
    return true;
    }
    return false;</script>
          <operator>NONE</operator>
        </com.webreach.mirth.model.Rule>
        <com.webreach.mirth.model.Rule>
          <sequenceNumber>1</sequenceNumber>
          <name>Accept message if "msg['OBX']['OBX.11']['OBX.11.1'].toString()" equals "F"</name>
          <data class="map">
            <entry>
              <string>OriginalField</string>
              <string></string>
            </entry>
            <entry>
              <string>Values</string>
              <list>
                <string>"F"</string>
              </list>
            </entry>
            <entry>
              <string>Equals</string>
              <string>1</string>
            </entry>
            <entry>
              <string>Field</string>
              <string>msg['OBX']['OBX.11']['OBX.11.1'].toString()</string>
            </entry>
            <entry>
              <string>Name</string>
              <string></string>
            </entry>
            <entry>
              <string>Accept</string>
              <string>1</string>
            </entry>
          </data>
          <type>Rule Builder</type>
          <script>if(msg['OBX']['OBX.11']['OBX.11.1'].toString() == "F"«»)
    {
    return true;
    }
    return false;</script>
          <operator>AND</operator>
        </com.webreach.mirth.model.Rule>
      </rules>
    </com.webreach.mirth.model.Filter>
    Any help is greatly appreciated.


    Thanks.

    Edit - Please wrap exceptions, xml, and other code in code tags!

    Post edited by: jbartels, at: 09/02/2008 11:10
Working...
X