javax.el.PropertyNotFoundException: Property 'imgUrl' not found on type java.lang.String
1 严重: Servlet.service() for servlet jsp threw exception 2 javax.el.PropertyNotFoundException: Property 'imgUrl' not found on type java.lang.String 3 at javax.el.BeanELResolver$BeanProperties.get(BeanELResolver.java:290) 4 at javax.el.BeanELResolver$BeanProperties.access$300(BeanELResolver.java:243) 5 at javax.el.BeanELResolver.property(BeanELResolver.java:377) 6 at javax.el.BeanELResolver.getValue(BeanELResolver.java:97) 7 at org.apache.jasper.el.JasperELResolver.getValue(JasperELResolver.java:104) 8 at org.apache.el.parser.AstValue.getValue(AstValue.java:184) 9 at org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:184) 10 at org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(PageContextImpl.java:950) 11 at org.apache.jsp.WEB_002dINF.jsp.scene.collection.sceneOrderDetail_jsp._jspx_meth_c_005fforEach_005f1(sceneOrderDetail_jsp.java:774) 12 at org.apache.jsp.WEB_002dINF.jsp.scene.collection.sceneOrderDetail_jsp._jspx_meth_c_005fif_005f1(sceneOrderDetail_jsp.java:725) 13 at org.apache.jsp.WEB_002dINF.jsp.scene.collection.sceneOrderDetail_jsp._jspService(sceneOrderDetail_jsp.java:435) 14 at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) 15 at javax.servlet.http.HttpServlet.service(HttpServlet.java:731) 16 at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:439) 17 at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:395) 18 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339) 19 at javax.servlet.http.HttpServlet.service(HttpServlet.java:731) 20 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303) 21 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) 22 at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) 23 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) 24 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) 25 at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:747) 26 at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:485) 27 at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:410) 28 at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:337) 29 at org.springframework.web.servlet.view.InternalResourceView.renderMergedOutputModel(InternalResourceView.java:168) 30 at org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:303) 31 at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1243) 32 at org.springframework.web.servlet.DispatcherServlet.processDispatchResult(DispatcherServlet.java:1027) 33 at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:971) 34 at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:893) 35 at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:968) 36 at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:859) 37 at javax.servlet.http.HttpServlet.service(HttpServlet.java:624) 38 at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:844) 39 at javax.servlet.http.HttpServlet.service(HttpServlet.java:731) 40 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303) 41 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) 42 at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) 43 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) 44 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) 45 at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:121) 46 at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) 47 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) 48 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) 49 at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220) 50 at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122) 51 at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:505) 52 at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169) 53 at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103) 54 at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:956) 55 at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116) 56 at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:436) 57 at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1078) 58 at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:625) 59 at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:318) 60 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) 61 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) 62 at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) 63 at java.lang.Thread.run(Thread.java:745) 64 65 三月 14, 2017 9:34:54 上午 org.apache.catalina.core.StandardWrapperValve invoke 66 严重: Servlet.service() for servlet [SpringMVC] in context with path [] threw exception [An exception occurred processing JSP page /WEB-INF/jsp/scene/collection/sceneOrderDetail.jsp at line 154 67 68 151: <p>绫诲埆锛?<span>鎶?鑳芥湇鍔?</span></p> 69 152: </div> 70 153: <div class="m"> 71 154: <div><img src="${IMGPath}/${sceneSkill.imgUrl}"></div> 72 155: <div> 73 156: <div class="up clearfix"> 74 157: <p>鎶?鑳藉悕绉帮細<span>${sceneSkill.skillName }</span></p> 75 76 77 Stacktrace:] with root cause
原因是:items的${}没写,直接写成了集合名称
错误原因:items="sceneSkills"
错误纠正:items=${sceneSkills}
<c:forEach items="${sceneSkills}" var="sceneSkill" varStatus="status">
严重: Servlet.service() for servlet jsp threw exceptionjavax.el.PropertyNotFoundException: Property 'imgUrl' not found on type java.lang.Stringat javax.el.BeanELResolver$BeanProperties.get(BeanELResolver.java:290)at javax.el.BeanELResolver$BeanProperties.access$300(BeanELResolver.java:243)at javax.el.BeanELResolver.property(BeanELResolver.java:377)at javax.el.BeanELResolver.getValue(BeanELResolver.java:97)at org.apache.jasper.el.JasperELResolver.getValue(JasperELResolver.java:104)at org.apache.el.parser.AstValue.getValue(AstValue.java:184)at org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:184)at org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(PageContextImpl.java:950)at org.apache.jsp.WEB_002dINF.jsp.scene.collection.sceneOrderDetail_jsp._jspx_meth_c_005fforEach_005f1(sceneOrderDetail_jsp.java:774)at org.apache.jsp.WEB_002dINF.jsp.scene.collection.sceneOrderDetail_jsp._jspx_meth_c_005fif_005f1(sceneOrderDetail_jsp.java:725)at org.apache.jsp.WEB_002dINF.jsp.scene.collection.sceneOrderDetail_jsp._jspService(sceneOrderDetail_jsp.java:435)at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:439)at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:395)at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339)at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:747)at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:485)at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:410)at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:337)at org.springframework.web.servlet.view.InternalResourceView.renderMergedOutputModel(InternalResourceView.java:168)at org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:303)at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1243)at org.springframework.web.servlet.DispatcherServlet.processDispatchResult(DispatcherServlet.java:1027)at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:971)at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:893)at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:968)at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:859)at javax.servlet.http.HttpServlet.service(HttpServlet.java:624)at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:844)at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:121)at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:505)at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169)at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:956)at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:436)at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1078)at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:625)at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:318)at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)at java.lang.Thread.run(Thread.java:745)
三月 14, 2017 9:34:54 上午 org.apache.catalina.core.StandardWrapperValve invoke严重: Servlet.service() for servlet [SpringMVC] in context with path [] threw exception [An exception occurred processing JSP page /WEB-INF/jsp/scene/collection/sceneOrderDetail.jsp at line 154
151: <p>绫诲埆锛?<span>鎶?鑳芥湇鍔?</span></p>152: </div>153: <div class="m">154: <div><img src="${IMGPath}/${sceneSkill.imgUrl}"></div>155: <div>156: <div class="up clearfix">157: <p>鎶?鑳藉悕绉帮細<span>${sceneSkill.skillName }</span></p>
Stacktrace:] with root cause