1. 程式人生 > >javax.servlet.jsp.el.ELException: An error occurred while getting property

javax.servlet.jsp.el.ELException: An error occurred while getting property

javax.servlet.ServletException: An error occurred while getting property "id" from an instance of class com.bcc.pojo.Logmanage$$EnhancerByCGLIB$$d1f64e8a
 at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:670)
 at org.apache.jsp.background.content.logManageSee_jsp._jspService(logManageSee_jsp.java:187)
 at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
 at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:311)
 at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:284)
 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:204)
 at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:742)
 at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:506)
 at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:443)
 at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:359)
 at com.bcc.struts.action.LogManageAction.log(LogManageAction.java:94)
 at com.bcc.struts.action.LogManageAction.doPost(LogManageAction.java:41)
 at com.bcc.struts.action.LogManageAction.doGet(LogManageAction.java:29)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:284)
 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:204)
 at com.bcc.filter.RoleFilter.doFilter(RoleFilter.java:32)
 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:233)
 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:204)
 at com.bcc.filter.EncodingFilter.doFilter(EncodingFilter.java:19)
 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:233)
 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:204)
 at com.bcc.filter.SessionFilter.doFilter(SessionFilter.java:27)
 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:233)
 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:204)
 at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
 at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
 at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:563)
 at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:245)
 at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:199)
 at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
 at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:563)
 at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:195)
 at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
 at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:164)
 at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
 at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:563)
 at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:156)
 at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
 at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:563)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:972)
 at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:209)
 at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:670)
 at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:517)
 at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:575)
 at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:666)
 at java.lang.Thread.run(Thread.java:619)

今天報了一個這樣的錯,後來不知道什麼原因,莫名其妙的就好了,本來頁面說什麼都不顯示值,

EnhancerByCGLIB

也有可能和hibernate獲取資料,快取和代理物件有關。先在action中輸出內容,看看能否正常。

下次如果你也遇到了,可以先放放,清清快取試試。