Announcement

Collapse

NextGen Connect 3.10.1 Released!

NextGen (Mirth) Connect 3.10.1 is now available as an appliance update and on our GitHub page. This release contains bug fixes. See the release notes for the list of fixes.

Download | See What's New | Upgrade Guide | Release Notes

For discussion on this release, see this thread.
See more
See less

SAXParseException - "[xX][mM][lL]" is not allowed

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

  • SAXParseException - "[xX][mM][lL]" is not allowed

    Mirth 1.5 w/ JRE 1.6 on Windows Server 2000 SP4

    Channel 1 - Database Reader w/ two destinations:
    1st destination is a file writer - works fine
    2nd destination is a SOAP Sender to Channel 2 below - Error happens here

    Channel 2 - SOAP Listener to Email Sender - Works fine when tested separately

    Mirth throws "org.xml.sax.SAXParseException: The processing instruction target matching "[xX][mM][lL]" is not allowed exception. This happens when the 2nd destination in Channel 1 tries to send the message to the SOAP Listener in Channel 2.

    mirth.log attached.

    Thanks in advance! mirth.zip (1475 bytes)

    Post edited by: nshaik, at: 06/13/2007 11:17

  • #2
    Re:SAXParseException - "[xX][mM][lL]" is not allowed

    Use the entity encoder - encoder.encode() around the data your passing in - the SOAP envelope has XML in it and can't be passed un-encoded over a SOAP (xml) envelope.
    Chris Lang

    Comment


    • #3
      Re:SAXParseException - "[xX][mM][lL]" is not allowed

      Chris,

      Thanks for the reply. Could you please take a look at the attached screen shot? I'm getting the error again but it could be because I did not put the encoder.encode() in the right place.

      Thanks! SOAPSenderDestination.zip (89781 bytes)

      Comment


      • #4
        Re:SAXParseException - "[xX][mM][lL]" is not allowed

        I changed the code to
        Code:
        ${encoder.encode(${message.transformedData})
        and that fixed the error.

        But the second channel, "SOAP Listener to Email Sender", is throwing this exception:

        ERROR 2007-06-14 10:55:09,295 [_soapConnector#20137171.soap:Mirth.receiver.2] com.webreach.mirth.model.converters.ER7Serializer: org.xml.sax.SAXParseException:The content of elements must consist of well-formed character data or markup.

        ERROR 2007-06-14 10:55:09,325 [_soapConnector#20137171.soap:Mirth.receiver.2] com.webreach.mirth.server.mule.providers.soap.Serv iceProxy$AxisServiceHandler: org.mule.umo.routing.RoutingException: Failed to transform message before applying the filter. Failed to route event via endpoint: ImmutableMuleEndpoint{connector=com.webreach.mirth [email protected] 18cf, endpointUri=soap://10.100.1.140:8081/services, transformer=Transformer{name='SOAPRequestToString' , returnClass=false, returnClass=false, sourceTypes=[]}, name='_soapEndpoint#-640616493', type='receiver', properties={}, transactionConfig=org.mule.impl.MuleTransactionCon [email protected], filter=null, deleteUnacceptedMessages=false, initialised=true, securityFilter=null, synchronous=true, initialState=started, createConnector=0}. Message payload is of type: [Ljava.lang.Object;

        Comment

        Working...
        X