How can I locate the parameter that caused ERROR #6301
Hi !
There is a BusinessService be called by several callers,but now I get this error below on Event Log page:
<Ens>ErrGeneral: Failed to create document from string:
ERROR #6301: SAX XML Parser Error:processing instruction cannot start with 'xml'
while processing Anonymous Stream at line 1 offset 106
What may be the cause of this error?
How can I locate the parameter that caused this error?
Product version: HealthShare 2016.2
$ZV: Cache for Windows (x86-64) 2016.2 (Build 736U) Fri Sep 30 2016 11:46:02 EDT
Line 1:
<?xml version="1.0" encoding="UTF-8"?>
Check all <? tags if they only contain ASCII characters (no UTF yet)
Offset 106 indicates that it is rather at the end of line.
Could be some windows newline <CR><LF> instead of Linux/Unix newline <LF> or similar
Thank you for your professional answer!But I have still no idea that how to locate the messages that caused this error , this BS is deployed on production environment so that messages sent by callers can not be located. Can you plz tell me how to find them out? (such as by printing the logs on somewhere or other way
Hi, Mr.Cemper ! This problem has been solved with the help of my workmate. We print the logs on the catch codeblock belongs to method that parsing XML messages and find out that all the messages sent to this method include <?xml version="1.0"> tag extraly.Lastly we solved this problem by replace the tag with blank. Thank you again!