困扰很长时间的问题终于解决了:
参数中含有特殊字符的处理。
例如"#" 在url中表示结束符号。
java和js中处理
str="集团2#终端";
str=str.replace("#","%23");
str=str.replace("%","%25");
str=str.replace("&","%26");
str=str.replace("+","%2B");
str=str.replace("\","%2F");
str=str.replace("=","%3D");
str=str.replace("?","%3F");