Error always reported during POST submission: {"errcode": 40017, "errmsg": "invalid button type"} solution, errcode40017
Development language: java
Development content: Custom public account menu
Project for developing the connection: Click to open the link
Http://blog.csdn.net/blognkliming/article/details/16803093
An error is reported when you execute MenuManage. java:
Error always reported during POST submission: {"errcode": 40017, "errmsg": "invalid button type "}
I found a lot of information online and did not solve the problem. Finally, we found that MenuManage. java
ComplexButton mainBtn1 = new ComplexButton (); mainBtn1.setName ("life assistant"); mainBtn1.setSub _ button (new CommonButton [] {btn11, btn12, btn13, btn14 });
The mainBtn1.setSub _ button line reports an error. Then, the setSub_button is modified to restore the line consistent with the original file, and the modified Button. java is the same as the original one. The problem is solved.
Use the same code as the original link. Do not modify it.