2013-4-3 10:27:31 com.sun.faces.lifecycle.ProcessValidationsPhase execute
警告: /contentPages/basicManage/customer.xhtml @30,71 value="#{CustomerBean.queryParams.name}": Target Unreachable, identifier 'CustomerBean' resolved to null
javax.el.PropertyNotFoundException: /contentPages/basicManage/customer.xhtml @30,71 value="#{CustomerBean.queryParams.name}": Target Unreachable, identifier 'CustomerBean' resolved to null
at com.sun.faces.facelets.el.TagValueExpression.getType(TagValueExpression.java:100)
at org.primefaces.renderkit.InputRenderer.findImplicitConverter(InputRenderer.java:170)
at org.primefaces.renderkit.InputRenderer.findConverter(InputRenderer.java:190)
at org.primefaces.renderkit.InputRenderer.getConvertedValue(InputRenderer.java:196)
at javax.faces.component.UIInput.getConvertedValue(UIInput.java:1030)
at javax.faces.component.UIInput.validate(UIInput.java:960)
at javax.faces.component.UIInput.executeValidate(UIInput.java:1233)
at javax.faces.component.UIInput.processValidators(UIInput.java:698)
at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1214)
at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1214)
at org.primefaces.component.panel.Panel.processValidators(Panel.java:293)
at javax.faces.component.UIForm.processValidators(UIForm.java:253)
at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1214)
at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1214)
at javax.faces.component.UIViewRoot.processValidators(UIViewRoot.java:1172)
at com.sun.faces.lifecycle.ProcessValidationsPhase.execute(ProcessValidationsPhase.java:76)
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:593)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.primefaces.webapp.filter.FileUploadFilter.doFilter(FileUploadFilter.java:79)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.sy.filters.EncodingFilter.doFilter(EncodingFilter.java:28)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:198)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.sy.utils.SecurityFilter.doFilter(SecurityFilter.java:68)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:861)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:606)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:619)
上面是我今天遇到的错误,意思是“通过bean名称找不到相应的受管bean”;找了好一阵都不知道哪里错了,其实这是个低级的错误。现在记录下来以免日后再犯,顺带帮助下后来的孩子们。我注解的ManageBean的名字是customerBean,但是我在页面中调用的时候错误的写成CustomerBean。导致出现这个错误
同时也遇到一个类似这样的错误(这里的代码仅供研究):
javax.servlet.ServletException: /resume.jsp(19,2) '#{userBean.userResume.name }' Target Unreachable, 'userResume' returned null
javax.faces.webapp.FacesServlet.service(FacesServlet.java:606)
主要是因为在faces-config.xml中对应的managed bean配置中,没有把userResume 属性定义出来。
还会出现value="#{userBean.userResume.name }": Target Unreachable, 'userResume ' returned null
主要是因为在Backing Bean的getUserResume方法中,直接返回了userResume,没有判断user是否为空,为空则无法给它的属性赋值炒作,需要new一个出来:public UserResume getUserResume() {if(userResume==null)userResume = new UserResume();return userResume;}
分享到:
相关推荐
单机搭建Android(解决 fatal: Cannot get https://gerrit.googlesource.com/git-repo/clone.bundle fatal: error [Errno 101] Network is unreachable ),具体操作请阅readme.txt
Network Unreachable(处理方案).md
Network Unreachable(解决方案).md
主要为大家介绍了上网各类应用基本正常,但是在命令行下使用ping命令,无论任何地址,均反馈Destination host unreachable,需要的朋友可以参考下
unreachable = " 0.1 " 作者 ( 是《无法到达》的主要作者和维护者。 执照 根据以下任一许可 Apache许可证2.0版( 或 ) MIT许可证( 或 ) 由您选择。 贡献 除非您明确声明,否则有意提交给您的包含在工作中的...
xkcd_unreachable 受启发的Rust宏xkcd_unreachable!() 例子 use xkcd_unreachable :: xkcd_unreachable; fn foo (x: Option ) { match x { Some (n) if n >= 0 => println! ( "Some(Non-negative)" ), Some (n) ...
【问题】刚安装好CentOs 7后无网络连接 ifconfig显示如下图:无inet、netmask等信息 ping 百度 ping不通,ping本机ip也ping不通。只能和localhost ping。 其实localhosts是不需要联网的,主要用来本机访问。...
fatal: unable to connect to aosp.tuna.tsinghua.edu.cn: aosp.tuna.tsinghua.edu.cn[0: 166.111.206.63]: errno=Connection refused aosp.tuna.tsinghua.edu.cn[1: 2001:da8:20f:3101:5054:ff:feb1:be95]: errno=...
X-PortainerAgent-Manager:1, X-PortainerAgentNumber:blog.itspring.cn
and quiting my job to work full-time on Netron is an unreachable dream. Thanks to all of you who have donated to Netron and support this project by Email, chat or via the forum. I hope this pre-...
【标题】"IWBootstrapFramework" 是一个专为IntraWeb应用程序设计的框架,它整合了流行的Bootstrap前端开发框架,使得开发者能够轻松地在IntraWeb应用中构建响应式、美观的用户界面。IntraWeb是一个用Delphi或...
Adjust when a master server is deemed unreachable to be less aggressive. [RT #27075] Create delegations for all "children" of empty zones except "forward first". [RT #34826] Changed the name of...
you can use the go tool to detect unreachable code and how to avoid some common Go mistakes. Chapter 4, Go Packages, Algorithms, and Data Structures, talks about algorithms and sorting in Go and about...
IPv6 邻居发现协议 PPT 教学教程 在 IPv6 网络中,数据转发技术是非常重要的一部分。根据源和目标所处的地理位置的不同,IPv6 数据的转发模式分为三种:源和目标在同一网段的数据转发模式、源和目标在同一链路的...
3. Warning: #111-D: statement is unreachable 描述:声明不可能到达。多出现在这种场合:int main(void){...while(1) //无限循环,这在不使用操作系统的程序中最常见{...}return 0; //这句声明在正常情况下不可能...
debug_unreachable 在调试中无法访问!(),在发行版中为std :: intrinsics :: unreachable()。用法使用crates.io存储库; 将其与其余依赖Cargo.toml一起添加到您的Cargo.toml : [ dependencies ]debug_...
懂得网络的人都知道我们常用Ping命令来检查网络是否畅通的一个简单的手段,可是这个Ping也能给Windows系统带来不可预测的灾难,那就是Ping入侵即是ICMP入侵,后果是相当严重的。所以这里我们要详细讨论一下ICMP攻击...
eclipse连接远程hadoop集群开发时0700问题解决方案。修改源码,重新编译后hadoop-core-1.2.0