2 Replies Latest reply on Jul 31, 2007 11:48 AM by Clark Updike

    Target Unreachable error w/ Seam 2.0.0.Beta1?

    Clark Updike Newbie

      Using Seam 2.0.0.Beta1 on JBoss AS 4.2, I generated my app using seam-gen. The list page for one of my entities, PpPemsItemMv, loads just fine and shows the table contents. However, when I try to filter using a search parameter, it blows up with the error below regarding "Target Unreachable".

      Googling this via "seam target unreachable" finds several folks that had this error, but no obvious solution. Several folks suggested it was a configuration problem, but I'm using seam-gen which otherwise produces solid working examples (so I'm not sure what would be misconfigured).

      Help appreciated. Thanks, Clark


      16:02:12,972 WARN [lifecycle] /PpPemsItemMvList.xhtml @22,101 value="#{ppPemsItemMvList.ppPemsItemMv.propertyNum}": Target Unreachable, 'ppPemsItemMv
      huapl.app.model.entities.PpPemsItemMvList_$$_javassist_11'
      javax.el.PropertyNotFoundException: /PpPemsItemMvList.xhtml @22,101 value="#{ppPemsItemMvList.ppPemsItemMv.propertyNum}": Target Unreachable, 'ppPemsI
      edu.jhuapl.app.model.entities.PpPemsItemMvList_$$_javassist_11'
       at com.sun.facelets.el.TagValueExpression.getType(TagValueExpression.java:62)
       at com.sun.faces.renderkit.html_basic.HtmlBasicInputRenderer.getConvertedValue(HtmlBasicInputRenderer.java:81)
       at javax.faces.component.UIInput.getConvertedValue(UIInput.java:934)
       at javax.faces.component.UIInput.validate(UIInput.java:860)
       at javax.faces.component.UIInput.executeValidate(UIInput.java:1065)
       at javax.faces.component.UIInput.processValidators(UIInput.java:666)
       at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1033)
       at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1033)
       at javax.faces.component.UIForm.processValidators(UIForm.java:229)
       at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1033)
       at javax.faces.component.UIViewRoot.processValidators(UIViewRoot.java:662)
       at org.ajax4jsf.framework.ajax.AjaxViewRoot.access$201(AjaxViewRoot.java:53)
       at org.ajax4jsf.framework.ajax.AjaxViewRoot$3.invokeRoot(AjaxViewRoot.java:315)
       at org.ajax4jsf.framework.ajax.JsfOneOneInvoker.invokeOnRegionOrRoot(JsfOneOneInvoker.java:53)
       at org.ajax4jsf.framework.ajax.AjaxContext.invokeOnRegionOrRoot(AjaxContext.java:191)
       at org.ajax4jsf.framework.ajax.AjaxViewRoot.processValidators(AjaxViewRoot.java:329)
       at com.sun.faces.lifecycle.ProcessValidationsPhase.execute(ProcessValidationsPhase.java:100)
       at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
       at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
       at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
       at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
       at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:63)
       at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
       at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:87)
       at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
       at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:63)
       at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
       at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:46)
       at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
       at org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:127)
       at org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:277)
       at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:40)
       at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
       at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:140)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
       at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
       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:230)
       at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
       at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
       at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
       at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
       at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
       at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
       at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
       at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
       at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
       at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
       at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
       at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
       at java.lang.Thread.run(Thread.java:595)
      


        • 1. Re: Target Unreachable error w/ Seam 2.0.0.Beta1?
          Damian Harvey Master

          Is there anything further down your stacktrace eg. a "caused by..."?

          • 2. Re: Target Unreachable error w/ Seam 2.0.0.Beta1?
            Clark Updike Newbie

            Part of the exception message was cut off (see below for full message), but everything needed is in that message (the fact that 'ppPemsItemMv' returned null). The problem was that the generated getter was as follows:

            @Name("ppPemsItemMvList")
            public class PpPemsItemMvList extends EntityQuery {
            
            ...
             public PpPemsItemMv getPpPemsItemMv() {
             return ppPemsItemMv;
             }
            ...


            When I changed the getter to this:
            public PpPemsItemMv getPpPemsItemMv() {
             return (ppPemsItemMv == null) ? new PpPemsItemMv() : ppPemsItemMv;
             }


            It started working. Note that when I tried to put an @Create on this getter, I got an exception which I don't quite understand (anyone can explain this?):

            Caused by: java.lang.IllegalStateException: component has two @Create methods: ppPemsItemMvList


            In any event, I'm past this problem.

            Thanks, Clark

            p.s. Here is the full exception message.

            10:18:15,725 WARN [lifecycle] /PpPemsItemMvList.xhtml @22,101 value="#{ppPemsItemMvList.ppPemsItemMv.propertyNum}": Target Unreachable, 'ppPemsItemMv' returned null on 'edu.j
            huapl.app.model.entities.PpPemsItemMvList_$$_javassist_11'
            javax.el.PropertyNotFoundException: /PpPemsItemMvList.xhtml @22,101 value="#{ppPemsItemMvList.ppPemsItemMv.propertyNum}": Target Unreachable, 'ppPemsItemMv' returned null on '
            edu.jhuapl.app.model.entities.PpPemsItemMvList_$$_javassist_11'
             at ...