Bad WML syntax. 'fatal error. ln 1, col 1 The main XML document cannot be empty '.

Source: Internet
Author: User

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...

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.