org.apache.jasper.JasperException: Unable to compile class for JSP:
An error occurred at line: [41] in the jsp file: [/wechatPay.jsp]
Duplicate local variable out
38: httpURLConnection.setReadTimeout(10000);
39: httpURLConnection.connect();
40:
41: DataOutputStream out = new DataOutputStream(httpURLConnection.getOutputStream());
42: out.writeBytes(paramXml);
43: out.flush();
44: out.close();
An error occurred at line: [59] in the jsp file: [/wechatPay.jsp]
Void methods cannot return a value
56: reader.close();
57: inputStream.close();
58: }
59: return strb_ressponse.toString();
60: } catch (Exception e) {
61: e.printStackTrace();
62: return null;
An error occurred at line: [62] in the jsp file: [/wechatPay.jsp]
Void methods cannot return a value
59: return strb_ressponse.toString();
60: } catch (Exception e) {
61: e.printStackTrace();
62: return null;
63: } finally {
64: if (null != httpURLConnection) {
65: httpURLConnection.disconnect();// 断开连接
Stacktrace:
at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:103)
at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:212)
at org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:457)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:379)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:351)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:335)
at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:601)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:368)<