Bad WML syntax. 'fatal error. ln 1, col 1 The main XML document cannot be empty '.
I encountered this kind of error again today. I have encountered it before, but today's solution is different from the previous one. First, record it here and check the information to confirm it.
This error indicates that the WML syntax error occurs in the first row and the first column. No space is allowed. There are two reasons for this error:
1. The two lines in the header of the page are not written in the specified format and should not have spaces. This is the solution to the previous problem.
2. today, there are two pages (houselist. JSP, housecontent. JSP), In the houselist. PASS Parameters to housecontent in JSP. this error is also reported in JSP. The solution is in houselist. in JSP, change the parameters passed by postfield to three (previously four parameters ).
At first, I thought it was the first case. I knew that I tried it many times and directly changed other correct pages to housecontent. jsp. This error was also reported, only to find that the problem was originally in the previous step.
It is concluded that only three postfield fields can be used, but it is not certain because it has been tried before. Is there a problem with the field settings in the database? Or is there a limit on the size of the Field passed using postfield, further verification is pending...