The processing instruction target matching [xX][mM][lL] is not allowed.

2
While calling a webservice I receive an internal server error. Any help would be appreciated. com.mendix.modules.webservices.WebserviceException: Internal server error at jB.a(SourceFile:292) at jB.b(SourceFile:129) at jB.a(SourceFile:88) at com.mendix.modules.webservices.WebserviceModule.handleWebserviceCall(SourceFile:380) at dI.processRequest(SourceFile:27) at fF.a(SourceFile:71) at com.mendix.core.MxRuntime.processRequest(SourceFile:938) at com.mendix.m2ee.server.handler.RuntimeHandler.handle(RuntimeHandler.java:42) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:113) at org.eclipse.jetty.server.Server.handle(Server.java:334) at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:559) at org.eclipse.jetty.server.HttpConnection$RequestHandler.content(HttpConnection.java:1007) at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:747) at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:209) at org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:406) at org.eclipse.jetty.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:462) at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:436) at java.lang.Thread.run(Thread.java:662) Caused by: com.mendix.core.CoreException: com.mendix.core.CoreException: Exception occurred in action 'Microflow [Capture.WSSaveApplicationToArchive]', all database changes executed by this action were rolled back at com.mendix.core.Core.execute(SourceFile:281) Caused by: com.mendix.core.CoreException: Exception occurred in action 'Microflow [Capture.WSSaveApplicationToArchive]', all database changes executed by this action were rolled back at com.mendix.core.actionmanagement.CoreAction.d(SourceFile:553) Caused by: com.mendix.core.CoreException: Exception occurred in microflow 'Capture.WS_SaveApplicationToArchive' for activity 'Call web service 'SendToArchive'', all database changes executed by this microflow were rolled back at kM.b(SourceFile:252) Caused by: com.mendix.systemwideinterfaces.MendixRuntimeException: org.xml.sax.SAXParseException: The processing instruction target matching "[xX][mM][lL]" is not allowed. at fk.a(SourceFile:165) Caused by: org.xml.sax.SAXParseException: The processing instruction target matching "[xX][mM][lL]" is not allowed. at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source) at fk.a(SourceFile:62) at com.mendix.core.Core.importXmlStream(SourceFile:1802) at com.mendix.core.Core.importXmlStream(SourceFile:1787) at bM.a(SourceFile:215) at bM.a(SourceFile:104) at kM.a(SourceFile:67) at eR.executeAction(SourceFile:96) at com.mendix.systemwideinterfaces.core.UserAction.execute(SourceFile:49) at com.mendix.core.actionmanagement.CoreAction.call(SourceFile:473) at it.b(SourceFile:155) at com.mendix.core.Core.execute(SourceFile:277) at com.mendix.core.Core.execute(SourceFile:252) at jB.a(SourceFile:277) at jB.b(SourceFile:129) at jB.a(SourceFile:88) at com.mendix.modules.webservices.WebserviceModule.handleWebserviceCall(SourceFile:380) at dI.processRequest(SourceFile:27) at fF.a(SourceFile:71) at com.mendix.core.MxRuntime.processRequest(SourceFile:938) at com.mendix.m2ee.server.handler.RuntimeHandler.handle(RuntimeHandler.java:42) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:113) at org.eclipse.jetty.server.Server.handle(Server.java:334) at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:559) at org.eclipse.jetty.server.HttpConnection$RequestHandler.content(HttpConnection.java:1007) at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:747) at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:209) at org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:406) at org.eclipse.jetty.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:462) at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:436) at java.lang.Thread.run(Thread.java:662) EDIT: Trace logging: It's a webservice from one Mendix application to another Mendix application. Trace logging application 1; localhost:5009 1. Response received from 'http://www.example.com/SaveApplicationToArchive' at 'http://localhost:5010/ws/PublishApplicationToArchive_Step1/' 2. Response content for 'http://www.example.com/SaveApplicationToArchive': <soap:envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:body><soap:fault><faultcode>Server</faultcode><faultstring>Internal server error</faultstring></soap:fault></soap:body></soap:envelope> Trace logging application 2; localhost:5010 1. Incoming web service request from 127.0.0.1 for service 'PublishApplicationToArchive_Step1 2. Incoming web service request data: <soapenv:envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:header><mx:authentication xmlns:mx="http://www.example.com/"><mx:authentication xsi:type="mx:authentication"/><username>FrikkieC</username><password>FrikkieC</password></mx:authentication></soapenv:header><soapenv:body><mx:saveapplicationtoarchive xmlns:mx="http://www.example.com/"><application>100044</application></mx:saveapplicationtoarchive></soapenv:body></soapenv:envelope> 3. Login OK: user FrikkieC 4. Building request for 'http://www.example.com/SendToArchive' call to 'http://localhost:5009/ws/SendToArchive/' 5. Created soap envelope : <soapenv:envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:header><mx:authentication xmlns:mx="http://www.example.com/"><mx:authentication xsi:type="mx:authentication"/><username>FrikkieC</username><password>FrikkieC</password></mx:authentication></soapenv:header><soapenv:body><mx:sendtoarchive xmlns:mx="http://www.example.com/"><applicationnumber>100044</applicationnumber></mx:sendtoarchive></soapenv:body></soapenv:envelope> 6. Requesting 'http://www.example.com/SendToArchive' at 'http://localhost:5009/ws/SendToArchive/' 7. Response received from 'http://www.example.com/SendToArchive' at 'http://localhost:5009/ws/SendToArchive/' 8. Response content for 'http://www.example.com/SendToArchive': <soap:envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tns="http://www.example.com/"><soap:body><tns:sendtoarchiveresponse><application><applicationnumber>100044</applicationnumber><accountnumber>0</accountnumber><applicationstatus><applicationpriority>false</applicationpriority><channelinitiatedfrom><title><title_helper_enabled>true</title_helper_enabled><gender><stateofresidence><maritalstatus><noofdependants>0</noofdependants><sameasresidential>false</sameasresidential><residentialstatus>Owner]]></residentialstatus><yearsataddress>0</yearsataddress><monthsataddress>0</monthsataddress><yearsatpreviousaddress>0</yearsatpreviousaddress><monthsatpreviousaddress>0</monthsatpreviousaddress><containnotes>false</containnotes><documentationlanguage><highestqualification>OrLower]]></highestqualification><covertype>HolderCoverOnly]]></covertype><employmenttype>Time]]></employmenttype><debitorderaccounttype><debitordertransactionday>1</debitordertransactionday><applicationexpensecommitmentsbondrent>0.0</applicationexpensecommitmentsbondrent><applicationexpensecommitmentscar>0.0</applicationexpensecommitmentscar><applicationexpensecommitmentsclothing1&gt;0.0< applicationexpensecommitmentsclothing1&gt;<applicationexpensecommitmentsclothing2&gt;0.0<="" applicationexpensecommitmentsclothing2&gt;<applicationexpensecommitmentsclothing3&gt;0.0<="" applicationexpensecommitmentsclothing3&gt;<applicationexpensecommitmentsfurniture1&gt;0.0<="" applicationexpensecommitmentsfurniture1&gt;<applicationexpensecommitmentsfurniture2&gt;0.0<="" applicationexpensecommitmentsfurniture2&gt;<applicationexpensecommitmentscellphone="">0.0</applicationexpensecommitmentscellphone><applicationexpenseothertax>0.0</applicationexpenseothertax><applicationexpenseothermedicalaid>0.0</applicationexpenseothermedicalaid><applicationexpenseotherpension>0.0</applicationexpenseotherpension><applicationexpenseotherschoolfees>0.0</applicationexpenseotherschoolfees><applicationexpenseotherfood>0.0</applicationexpenseotherfood><applicationexpenseothertravelling>0.0</applicationexpenseothertravelling><applicationexpenseotherelectricty>0.0</applicationexpenseotherelectricty><applicationexpenseotherwaterrates>0.0</applicationexpenseotherwaterrates><applicationdisposableincome>0.0</applicationdisposableincome><creditlimit>0</creditlimit><maxcreditlimit>0</maxcreditlimit><diaryactive>false</diaryactive><crosscheckdone>false</crosscheckdone><bureauscoredone>false</bureauscoredone><affordabilitycheckdone>false</affordabilitycheckdone><preagreementsigneddone>false</preagreementsigneddone><cdmcode>0</cdmcode><firstvouchernumber>0</firstvouchernumber><application_fax><fax><name>FormImages\431$FaxedApp09122010013856.jpeg]]></name><deleteafterdownload>false</deleteafterdownload><contents><soap:envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:body><soap:fault><faultcode>Server</faultcode><faultstring>Internal server error</faultstring></soap:fault></soap:body></soap:envelope> 9. Finished handling web service request for service 'PublishApplicationToArchive_Step1'
asked
2 answers
3

The SOAP message you posted for step 8 is not a valid SOAP message (it contains two <soap:body> elements for example), but it isn't even a well-formed XML document! I've pasted the message below with some formatting added to it. As you can see, a lot of elements are never closed, some elements declarations are missing the closing ">" and some bits look a bit like a weird combination of element and attribute.

<soap:envelope
        xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
        xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" 
        xmlns:tns="http://www.example.com/">
    <soap:body>
        <tns:sendtoarchiveresponse>
            <application>
                <applicationnumber>100044</applicationnumber>
                <accountnumber>0</accountnumber>
                <applicationstatus>
                    <applicationpriority>false</applicationpriority>
                    <channelinitiatedfrom>
                        <title>
                            <title_helper_enabled>true</title_helper_enabled>
                                <gender>
                                    <stateofresidence>
                                        <maritalstatus>
                                            <noofdependants>0</noofdependants>
                                            <sameasresidential>false</sameasresidential>
                                            <residentialstatus>Owner]]></residentialstatus>
                                            <yearsataddress>0</yearsataddress>
                                            <monthsataddress>0</monthsataddress>
                                            <yearsatpreviousaddress>0</yearsatpreviousaddress>
                                            <monthsatpreviousaddress>0</monthsatpreviousaddress>
                                            <containnotes>false</containnotes>
                                            <documentationlanguage>
                                                <highestqualification>OrLower]]></highestqualification>
                                                <covertype>HolderCoverOnly]]></covertype>
                                                <employmenttype>Time]]></employmenttype>
                                                <debitorderaccounttype>
                                                    <debitordertransactionday>1</debitordertransactionday>
                                                    <applicationexpensecommitmentsbondrent>0.0</applicationexpensecommitmentsbondrent>
                                                    <applicationexpensecommitmentscar>0.0</applicationexpensecommitmentscar>
                                                    <applicationexpensecommitmentsclothing1&gt;0.0< applicationexpensecommitmentsclothing1&gt;
                                                    <applicationexpensecommitmentsclothing2&gt;0.0<="" applicationexpensecommitmentsclothing2&gt;
                                                    <applicationexpensecommitmentsclothing3&gt;0.0<="" applicationexpensecommitmentsclothing3&gt;
                                                    <applicationexpensecommitmentsfurniture1&gt;0.0<="" applicationexpensecommitmentsfurniture1&gt;
                                                    <applicationexpensecommitmentsfurniture2&gt;0.0<="" applicationexpensecommitmentsfurniture2&gt;
                                                    <applicationexpensecommitmentscellphone="">0.0</applicationexpensecommitmentscellphone>
                                                    <applicationexpenseothertax>0.0</applicationexpenseothertax>
                                                    <applicationexpenseothermedicalaid>0.0</applicationexpenseothermedicalaid>
                                                    <applicationexpenseotherpension>0.0</applicationexpenseotherpension>
                                                    <applicationexpenseotherschoolfees>0.0</applicationexpenseotherschoolfees>
                                                    <applicationexpenseotherfood>0.0</applicationexpenseotherfood>
                                                    <applicationexpenseothertravelling>0.0</applicationexpenseothertravelling>
                                                    <applicationexpenseotherelectricty>0.0</applicationexpenseotherelectricty>
                                                    <applicationexpenseotherwaterrates>0.0</applicationexpenseotherwaterrates>
                                                    <applicationdisposableincome>0.0</applicationdisposableincome>
                                                    <creditlimit>0</creditlimit>
                                                    <maxcreditlimit>0</maxcreditlimit>
                                                    <diaryactive>false</diaryactive>
                                                    <crosscheckdone>false</crosscheckdone>
                                                    <bureauscoredone>false</bureauscoredone>
                                                    <affordabilitycheckdone>false</affordabilitycheckdone>
                                                    <preagreementsigneddone>false</preagreementsigneddone>
                                                    <cdmcode>0</cdmcode>
                                                    <firstvouchernumber>0</firstvouchernumber>
                                                    <application_fax>
                                                        <fax>
                                                            <name>FormImages\431$FaxedApp09122010013856.jpeg]]></name>
                                                            <deleteafterdownload>false</deleteafterdownload>
                                                            <contents>
                                                                <soap:envelope
                                                                        xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
                                                                        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                                                                        xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
                                                                    <soap:body>
                                                                        <soap:fault>
                                                                            <faultcode>Server</faultcode>
                                                                            <faultstring>Internal server error</faultstring>
                                                                        </soap:fault>
                                                                    </soap:body>
                                                                </soap:envelope>
answered
3

Ok, so:

app 1 (5009) calls app 2 (5010, which then builds a request to send whatever to app1 (5009). App2 then receives a really long message (step 8 in your answer), which has seems to be ok BUT ends with a soapfault?

If app2 calls app1, should we also see some tracelogging from app1 that it received a request and is then responding to it? What happened before steps 1 and 2 for app1?

It kind of looks like you've built a really complicated flow of calls and it's pretty hard to see what's going on. I'd suggest breaking up all the steps and trying to run them one at a time, and then pinpoint exactly where it breaks. This'll be easier for yourself to debug and for us to help you :)

answered