Unable to find a value for "mc_id" in object of class "com.oa.model.CompanyInfo_

kakakaka1 2010-03-30 11:11:45
我在页面是获取查询到的数据 其他的都可以显示 就是这个mc_id报错 不能显示,开始以为是拼写错误,修改后还是不行,我在能显示的是同一张表的数据,


这个错误一般要到哪里找啊


select companyinf0_.id as id20_0_, companyinf0_.cus_ID as cus2_20_0_, companyinf0_.mC_ID as mC3_20_0_, companyinf0_.cus_MC as cus4_20_0_, companyinf0_.cus_HY as cus5_20_0_, companyinf0_.cus_YW as cus6_20_0_, companyinf0_.cus_DZ as cus7_20_0_, companyinf0_.cus_FZR as cus8_20_0_, companyinf0_.cus_DH as cus9_20_0_, companyinf0_.cus_ZH as cus10_20_0_, companyinf0_.cus_LX as cus11_20_0_, companyinf0_.cus_RepR_ID as cus12_20_0_, companyinf0_.mcus_name as mcus13_20_0_, companyinf0_.cus_RepR_Name as cus14_20_0_, companyinf0_.cus_pw as cus15_20_0_ from T_CustomerInfo companyinf0_ where companyinf0_.id=?
11:06:25,515 ERROR [jsp]:711 - Servlet.service() for servlet jsp threw exception
javax.servlet.jsp.el.ELException: Unable to find a value for "mc_id" in object of class "com.oa.model.CompanyInfo_$$_javassist_8" using operator "."
at org.apache.commons.el.Logger.logError(Logger.java:481)
at org.apache.commons.el.Logger.logError(Logger.java:498)
at org.apache.commons.el.Logger.logError(Logger.java:611)
at org.apache.commons.el.ArraySuffix.evaluate(ArraySuffix.java:340)
at org.apache.commons.el.ComplexValue.evaluate(ComplexValue.java:145)
at org.apache.commons.el.ExpressionEvaluatorImpl.evaluate(ExpressionEvaluatorImpl.java:263)
at org.apache.commons.el.ExpressionEvaluatorImpl.evaluate(ExpressionEvaluatorImpl.java:190)
at org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(PageContextImpl.java:924)
at org.apache.jsp.entInfo.CompanyDetail_jsp._jspService(CompanyDetail_jsp.java:160)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
...全文
512 4 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
howsun_zh 2010-08-01
  • 打赏
  • 举报
回复
CompanyInfo类没有mc_id这个属性吧?或者它的setter & getter方法
跟着Mic学架构 2010-07-31
  • 打赏
  • 举报
回复
javabean中的属性不能有大写,否则会找不到
LeeMinYes 2010-07-31
  • 打赏
  • 举报
回复
你看看能不能在控制台输出吗
跑跑鱼 2010-07-31
  • 打赏
  • 举报
回复
我也是学jsp的,到现在都没用过javabeen

81,122

社区成员

发帖
与我相关
我的任务
社区描述
Java Web 开发
社区管理员
  • Web 开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧