`
云上太阳
  • 浏览: 131321 次
  • 性别: Icon_minigender_1
  • 来自: 杭州
社区版块
存档分类
最新评论

Target Unreachable, identifier '' resolved to null

 
阅读更多
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(解决Network is unreachable)

    单机搭建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

    Network Unreachable(解决方案).md

    Network Unreachable(解决方案).md

    ping ip主机提示Destination host unreachable问题解决方法小结

    主要为大家介绍了上网各类应用基本正常,但是在命令行下使用ping命令,无论任何地址,均反馈Destination host unreachable,需要的朋友可以参考下

    rust-unreachable

    unreachable = " 0.1 " 作者 ( 是《无法到达》的主要作者和维护者。 执照 根据以下任一许可 Apache许可证2.0版( 或 ) MIT许可证( 或 ) 由您选择。 贡献 除非您明确声明,否则有意提交给您的包含在工作中的...

    xkcd-unreachable-rs:受https启发的Rust宏xkcd_unreachable!()

    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) ...

    Linux之网络无法访问(network is unreachable)

    【问题】刚安装好CentOs 7后无网络连接 ifconfig显示如下图:无inet、netmask等信息 ping 百度 ping不通,ping本机ip也ping不通。只能和localhost ping。 其实localhosts是不需要联网的,主要用来本机访问。...

    repo1.22-20160724

    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=...

    portainer_agent.tar

    X-PortainerAgent-Manager:1, X-PortainerAgentNumber:blog.itspring.cn

    Netron Light v2.5 pre-release

    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

    【标题】"IWBootstrapFramework" 是一个专为IntraWeb应用程序设计的框架,它整合了流行的Bootstrap前端开发框架,使得开发者能够轻松地在IntraWeb应用中构建响应式、美观的用户界面。IntraWeb是一个用Delphi或...

    BIND-LINUX64位包

    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...

    go系统编程(英文版)

    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...

    rust-debug-unreachable:在调试,std中无法访问!()

    debug_unreachable 在调试中无法访问!(),在发行版中为std :: intrinsics :: unreachable()。用法使用crates.io存储库; 将其与其余依赖Cargo.toml一起添加到您的Cargo.toml : [ dependencies ]debug_...

    什么是拒绝服务攻击.doc

    懂得网络的人都知道我们常用Ping命令来检查网络是否畅通的一个简单的手段,可是这个Ping也能给Windows系统带来不可预测的灾难,那就是Ping入侵即是ICMP入侵,后果是相当严重的。所以这里我们要详细讨论一下ICMP攻击...

    hadoop-core-1.2.0(解决0700异常)

    eclipse连接远程hadoop集群开发时0700问题解决方案。修改源码,重新编译后hadoop-core-1.2.0

    saa-c01.pdf

    Why could the internet be unreachable from this instance? **Answer:** D - **D: The instance does not have a public IP address.** - **Explanation:** For an EC2 instance to access the internet ...

Global site tag (gtag.js) - Google Analytics