HTTP Status 500 - Servlet execution threw an exception 哪位大侠帮解决一下

HTTPStatus500-ServletexecutionthrewanexceptiontypeExceptionreportmessageServletexecut... HTTP Status 500 - Servlet execution threw an exception
type Exception report
message Servlet execution threw an exception
description The server encountered an internal error that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: Servlet execution threw an exception
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)

root cause
java.lang.Error: Unresolved compilation problems:
SalaryBean cannot be resolved to a type
SalaryBean cannot be resolved to a type
Syntax error on token "Invalid Character", ; expected
The method shui(int, int) is undefined for the type Controler

servlet.Controler.doPost(Controler.java:49)
javax.servlet.http.HttpServlet.service(HttpServlet.java:644)
javax.servlet.http.HttpServlet.service(HttpServlet.java:725)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)

note The full stack trace of the root cause is available in the Apache Tomcat/8.0.18 logs.
Apache Tomcat/8.0.18
package javabean;

public class SalaryBean {
public int Shui(int start,int salary){
if(salary<start){
return 0;
}else if(salary<start+1500){
return (int)(0.03*(salary-start));
}else {
return (int)(0.1*(salary-start-1500))+45;
}
}
}
展开
 我来答
liyuanhangsc
2015-03-05
知道答主
回答量:12
采纳率:0%
帮助的人:11.9万
展开全部
SalaryBean 类有编译错误 。
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式