Bean as Bean Property???

Hi,
I read in the JAX-RPC Specification, Bean properties must be JAX-RPC types. Does this include that a Bean property can also be another Bean?
Thanx,
Mischa

Yes, a Bean can be a Bean Property.

Similar Messages

  • Portal runtime error: Cannot access bean property

    Dear all,
    Does anybody have a clue what problem might couse the <b>Portal Runtime Error</b> described below?
    It does seem to occur when a second user wants to access the <b>Component</b>.
    <b>Portal Runtime Error</b>
    An exception occurred while processing a request for :
    iView : pcd:portal_content/com.xxxxx.luminaires/com.xxxx.iviews/Quotations/EasyQuote
    <b>Component</b> Name : EasyQuoteDemo.EasyQuoteComponent
    Tag tableView attribute model: Cannot access bean property quotationHeader.CurrentTableModel in page context.
    Exception id: 04:50_21/09/04_0070
    See the details for the exception ID in the log file
    Thxs in advance
    Joost

    Hi Dominik,
    Having a closer look at the problem, we found it is not the number of users.
    It seems our JAVA components keeps the conenctions with SAP open and reopens a new one every time we start the component.
    If we finished solving the problem, I will publish the solution.
    Greetings,
    Joost

  • Can't set managed bean property:

    Hi,
    I am trying to experiment with JSF and I am extending an example I downloaded from the web. When I added a new secret field and extened the bean. I get the following error. I trying to resolve this problem from two days , cant figure out why I get this exception. I tried changed the property name I still get the same error. It is something to do with the bean, I am not sure why its not able to set the property, I know that the get and set methods exist in the class file. Any help would be greatly appreciated . I have pasted the bean file, faces-config.xml, and the inputname.jsp file below. Thanks a lot.
    HTTP Status 500 -
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: javax.faces.FacesException: javax.faces.FacesException: Can't set managed bean property: 'word'.
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:254)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)
         at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:432)
         at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:356)
         at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322)
         at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:147)
         at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
         at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
         at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
         at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)
         at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:432)
         at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:356)
         at org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:430)
         at org.apache.jsp.index_jsp._jspService(index_jsp.java:48)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:210)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.jboss.web.tomcat.security.JBossSecurityMgrRealm.invoke(JBossSecurityMgrRealm.java:220)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.jboss.web.tomcat.tc4.statistics.ContainerStatsValve.invoke(ContainerStatsValve.java:76)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2417)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:65)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:577)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:197)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:781)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:549)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:605)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:677)
         at java.lang.Thread.run(Thread.java:536)
    root cause
    javax.servlet.ServletException: javax.faces.FacesException: javax.faces.FacesException: Can't set managed bean property: 'word'.
         at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:531)
         at org.apache.jsp.inputname_jsp._jspService(inputname_jsp.java:94)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:210)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)
         at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:432)
         at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:356)
         at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322)
         at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:147)
         at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
         at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
         at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
         at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)
         at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:432)
         at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:356)
         at org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:430)
         at org.apache.jsp.index_jsp._jspService(index_jsp.java:48)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:210)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.jboss.web.tomcat.security.JBossSecurityMgrRealm.invoke(JBossSecurityMgrRealm.java:220)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.jboss.web.tomcat.tc4.statistics.ContainerStatsValve.invoke(ContainerStatsValve.java:76)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2417)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:65)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:577)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:197)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:781)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:549)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:605)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:677)
         at java.lang.Thread.run(Thread.java:536)
    My JSP file is
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
    <f:loadBundle basename="demo.bundle.Messages" var="Message"/>
    <HTML>
    <HEAD> <title>Input Name Page</title> </HEAD>
    <body bgcolor="white">
         <f:view>
              <h1><h:outputText value="#{Message.inputname_header}"/></h1>
              <h:messages style="color: red"/>
         <h:form id="helloForm" >
              <h:outputText value="#{Message.prompt}"/>
              <h:inputText id="userName" value="#{GetNameBean.userName}" required="true">
                   <f:validateLength minimum="2" maximum="10"/>
              </h:inputText>
              <h:inputSecret id="word" value="#{GetNameBean.word}" required="true">
                   <f:validateLength minimum="2" maximum="10"/>
              </h:inputSecret>
              <h:commandButton id="submit" action="sayhello" value="Say Hello" />
         </h:form>
    </f:view>
    </HTML>
    My faces-config.xml is as follow
    <?xml version="1.0"?>
    <!DOCTYPE faces-config PUBLIC
    "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN"
    "http://java.sun.com/dtd/web-facesconfig_1_1.dtd">
    <faces-config>
    <navigation-rule>
    <from-view-id>/inputname.jsp</from-view-id>
    <navigation-case>
    <to-view-id>/greeting.jsp</to-view-id>
    </navigation-case>
    </navigation-rule>
    <managed-bean>
    <description>
    Input Value Holder
    </description>
    <managed-bean-name>GetNameBean</managed-bean-name>
    <managed-bean-class>demo.GetNameBean</managed-bean-class>
    <managed-bean-scope>session</managed-bean-scope>
    <managed-property>
    <property-name>userName</property-name>
    <property-class>java.lang.String</property-class>
    <value></value>
         </managed-property>
         <managed-property>
    <property-name>word</property-name>
         <property-class>java.lang.String</property-class>
         <value></value>
         </managed-property>
    </managed-bean>
    </faces-config>
    My bean file is as follows GetNameBean.java
    package demo;
    * @author Sergey Smirnov. Exadel, Inc.
    public class GetNameBean {
    private String userName;
    private String word;
    * @return User Name
    public String getUserName() {
    return userName;
    * @param User Name
    public void setUserName(String name) {
    this.userName = name;
    * @return Password
    public String getWord() {
    return word;
    * @param Password
    public void setWord(String word) {
    this.word = word;

    Hello,
    Thanks for the reply. I used Camelcase, but its giving me the same error. I am also posting my bean files and jsp files for your reference.
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    javax.servlet.ServletException: org.apache.jasper.JasperException: javax.faces.FacesException: javax.faces.FacesException: Can't set managed bean property: 'UserName'.
         javax.faces.webapp.FacesServlet.service(FacesServlet.java:121)
         org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
    root cause
    javax.faces.FacesException: org.apache.jasper.JasperException: javax.faces.FacesException: javax.faces.FacesException: Can't set managed bean property: 'UserName'.
         com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:327)
         com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:147)
         com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
         com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
         com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
         javax.faces.webapp.FacesServlet.service(FacesServlet.java:107)
         org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
    note The full stack trace of the root cause is available in the Apache Tomcat/5.5.20 logs.
    LOGIN.JSP file
    <%@ taglib prefix="f" uri="http://java.sun.com/jsf/core" %>
    <%@ taglib prefix="h" uri="http://java.sun.com/jsf/html" %>
    <f:view>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <f:verbatim escape="false">
    <head>
    <title>My JSP 'login.jsp' starting page</title>
         <meta http-equiv="pragma" content="no-cache">
         <meta http-equiv="cache-control" content="no-cache">
         <meta http-equiv="expires" content="0">
         <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
         <meta http-equiv="description" content="This is my page">
         <!--
         <link rel="stylesheet" type="text/css" href="styles.css">
         -->
    </head>
    </f:verbatim>
    <body>
    <h:form rendered="true" id="loginform">
    <f:verbatim escape="false"><br><br> </f:verbatim>
    <h:outputLabel for="userName" rendered="true"></h:outputLabel>
    <h:inputText id="userName" required="true" rendered="true" value="#{UserBean.userName}"></h:inputText>
    <f:verbatim escape="false"><br> </f:verbatim>
    <h:outputLabel for="password" rendered="true"></h:outputLabel>
    <h:inputSecret id="password" redisplay="false" required="true" rendered="true" value="#{UserBean.password}"></h:inputSecret>
    <h:commandButton id="submit" action="#{UserBean.loginUser}" rendered="true" value=" Submit"></h:commandButton><br><br></h:form>
    </body>
    </html>
    </f:view>
    UserBean file
    package com.jsfdemo.bean;
    import javax.faces.application.FacesMessage;
    import javax.faces.context.FacesContext;
    * @author ExterroAdmin
    public final class UserBean extends Object
         private String password;
         private String userName;
         public UserBean()
              super();
         public String getPassword()
              return password;
         public void setPassword(String password)
              this.password = password;
         public String getUserName()
              return userName;
         public void setUserName(String userName)
              this.userName = userName;
         public String loginUser() {
    if("myeclipse".equals(getUserName()) && "myeclipse".equals(getPassword()))
    return "success";
    FacesContext facesContext = FacesContext.getCurrentInstance();
    FacesMessage facesMessage = new FacesMessage(
    "You have entered an invalid user name and/or password");
    facesContext.addMessage("loginForm", facesMessage);
    return "failure";
    If you need any more information, please let me know

  • Problems setting managed bean property of type Integer

    I got a problem when I use valueBinding #{param.productId} in faces-config.xml for my managed bean:
    My property 'productId' in bean Product is of type Integer, and my bean is in request scope. When I try to invoke some action on page, wich should navigate me to another view - JSF is trying to set productId for current view, and of course it is empty (""), and for the reasons given above I'm getting an error:
    javax.faces.FacesException: Can't set managed bean property: 'applicationId'.
    at com.sun.faces.config.ManagedBeanFactory.setPropertiesIntoBean(ManagedBeanFactory.java:576)
    at com.sun.faces.config.ManagedBeanFactory.newInstance(ManagedBeanFactory.java:233)
    at com.sun.faces.application.ApplicationAssociate.createAndMaybeStoreManagedBeans(ApplicationAssociate.java:256)
    ... 60 more
    Caused by: java.lang.NumberFormatException: For input string: ""
    at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
    at java.lang.Integer.parseInt(Integer.java:489)
    at java.lang.Integer.<init>(Integer.java:609)
    at com.sun.faces.config.ManagedBeanFactory.getConvertedValueConsideringPrimitives(ManagedBeanFactory.java:855)
    at com.sun.faces.config.ManagedBeanFactory.setPropertiesIntoBean(ManagedBeanFactory.java:555)
    Should I use requestScope instead of param to have my parameter null, and not "" ?
    If so, how should I pass requestScope parameter using commandLink?

    Hi! I have a problem with setting params too. Probably my one is different.
    I have a jsp page which show a datatable, where I can see a row for each Product. If I click on its name I would navigate to another page that shows product informations, as several ecommerce sites do.
    But I can't understand what and how I must set to inform the details page on which product have to show.
    I read in this forum that it's possible to set a parameter in productBean, and then the constructor of product bean loads others fields knowing its id.
    The snippet of my faces-config.xml is:
      <managed-bean>
        <managed-bean-name>product</managed-bean-name>
        <managed-bean-class>test.backing.ProductBean</managed-bean-class>
        <managed-bean-scope>request</managed-bean-scope>
        <managed-property>
          <property-name>idToLoad</property-name>
          <property-class>java.lang.Integer</property-class>
          <value>#{param.id}</value>
        </managed-property>
      </managed-bean>It is possible? is a correct solution? and if it is, how can I do that?
    Thanks very much if someone can resolve my problem.
    Claudio.

  • Bean property and public field found with the same name: getid

    Hi all,
    I have a ejb jar file contains some local entity beans and one session bean
    , the session bean has some functions suck as findXXXByQuery() , InsertXXX()
    , and I have created some model class for the entity bean , and use it as
    the parameter or return type of the session bean , then I want to transfer
    the session bean as a webservice , using ant automaticly . All this function
    successfully in weblogic 6.1 , but when I want to run ant command in
    weblogic 7.0 , an error occured :
    [servicegen] weblogic.xml.schema.binding.BindingException: Error: bean
    property
    and public field found with the same name: getid
    Yes , I have a getid field in table , a getid in entity bean , and a getid
    property in model class , but what different does it make ? Would you mind
    to test my jar file ? I send all files as attachments .
    Any advice will be appreciate .
    lcl
    [build.xml]
    [work.jar]

    In article <[email protected]>, lcl <[email protected]> wrote:
    -=-=-=-=-=-
    Hi all,
    I have a ejb jar file contains some local entity beans and one session bean
    , the session bean has some functions suck as findXXXByQuery() , InsertXXX()
    , and I have created some model class for the entity bean , and use it as
    the parameter or return type of the session bean , then I want to transfer
    the session bean as a webservice , using ant automaticly . All this function
    successfully in weblogic 6.1 , but when I want to run ant command in
    weblogic 7.0 , an error occured :
    [servicegen] weblogic.xml.schema.binding.BindingException: Error: bean
    property
    and public field found with the same name: getid
    Yes , I have a getid field in table , a getid in entity bean , and a getid
    property in model class , but what different does it make ? Would you mind
    to test my jar file ? I send all files as attachments .
    Any advice will be appreciate .
    lcl
    -=-=-=-=-=-For better or worse the JAX-RPC spec requires this behavior. From
    section 5.4.1:
    "There is no standard mapping for the case when a JavaBean property
    has the same name as a public field. A Java to XML mapping
    implementation is required to flag this case as an error."
    Since you are not the first person to run into this restriction I'm
    beginning to think we need an option to bypass it.
    --Scott

  • Getting error after when trying to print managed session bean property.

    Hi All,
    I am reading a file from my local machine. After reading a file , i am storing file details in the property of the same bean.
    After that i am trying to preint contents of that file in one jsp by accessing that stored managed bean property.
    But I am getting following error:
    Nov 15, 2009 2:33:41 PM com.sun.faces.lifecycle.LifecycleImpl phase
    WARNING: executePhase(RENDER_RESPONSE 6,com.sun.faces.context.FacesContextImpl@138c63) threw exception
    javax.faces.FacesException
         at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:135)
         at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
         at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
         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:128)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
         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:849)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
         at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)
         at java.lang.Thread.run(Unknown Source)
    Caused by: ClientAbortException:  java.net.SocketException: Connection reset by peer: socket write error
         at org.apache.catalina.connector.OutputBuffer.doFlush(OutputBuffer.java:319)
         at org.apache.catalina.connector.OutputBuffer.flush(OutputBuffer.java:288)
         at org.apache.catalina.connector.Response.flushBuffer(Response.java:548)
         at org.apache.catalina.connector.ResponseFacade.flushBuffer(ResponseFacade.java:279)
         at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:201)
         at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106)
         ... 15 more
    Caused by: java.net.SocketException: Connection reset by peer: socket write error
         at java.net.SocketOutputStream.socketWrite0(Native Method)
         at java.net.SocketOutputStream.socketWrite(Unknown Source)
         at java.net.SocketOutputStream.write(Unknown Source)
         at org.apache.coyote.http11.InternalOutputBuffer.realWriteBytes(InternalOutputBuffer.java:740)
         at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:434)
         at org.apache.coyote.http11.InternalOutputBuffer.flush(InternalOutputBuffer.java:299)
         at org.apache.coyote.http11.Http11Processor.action(Http11Processor.java:973)
         at org.apache.coyote.Response.action(Response.java:183)
         at org.apache.catalina.connector.OutputBuffer.doFlush(OutputBuffer.java:314)
         ... 20 more
    Nov 15, 2009 2:33:41 PM org.apache.catalina.core.StandardWrapperValve invoke
    SEVERE: Servlet.service() for servlet Faces Servlet threw exception
    java.net.SocketException: Connection reset by peer: socket write error
         at java.net.SocketOutputStream.socketWrite0(Native Method)
         at java.net.SocketOutputStream.socketWrite(Unknown Source)
         at java.net.SocketOutputStream.write(Unknown Source)
         at org.apache.coyote.http11.InternalOutputBuffer.realWriteBytes(InternalOutputBuffer.java:740)
         at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:434)
         at org.apache.coyote.http11.InternalOutputBuffer.flush(InternalOutputBuffer.java:299)
         at org.apache.coyote.http11.Http11Processor.action(Http11Processor.java:973)
         at org.apache.coyote.Response.action(Response.java:183)
         at org.apache.catalina.connector.OutputBuffer.doFlush(OutputBuffer.java:314)
         at org.apache.catalina.connector.OutputBuffer.flush(OutputBuffer.java:288)
         at org.apache.catalina.connector.Response.flushBuffer(Response.java:548)
         at org.apache.catalina.connector.ResponseFacade.flushBuffer(ResponseFacade.java:279)
         at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:201)
         at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106)
         at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
         at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
         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:128)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
         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:849)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
         at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)
         at java.lang.Thread.run(Unknown Source)There is no specific reason mentioned for this error. Anyone has faced this problem before?
    Whats wrong here?

    Hi gimbal2,
    I haven't deployed the project yet. I am still in development phase. I am using eclipse. So i am using inbuilt browser from eclipse only.
    I saw this post on the same forum:
    http://forums.sun.com/thread.jspa?threadID=5297862
    This person had the same problem. But his question is not answered yet.
    People here are saying:
    *1)page is getting submitted more than once. Either because the user is clicking on the commandbuttons/links multiple times or through some other event.*
    ->I am not using any javascript. But problem here is whenever i try to load file from my local machine, in first attempt it wont proceed. I need to load file twice or thrice. Is it some problem?
    But one thing to note here is that i am not getting exception after loading the file. I am getting exception after reading the file in managed bean and returning from it with some status.
    *2)This exception can be caused by the browser closing its end of the socket for any number of reasons (user presses stop loading button, clicks another link, closes the browser window, etc.):*
    ->I am not pressing any button or doing any activity once i load the file.
    *3)Sounds like it should be caught and ignored since these are normal user actions. I was just concerned it might be causing some kind of impact that we don't know about.*
    ->I can't ignore it because, my next JSP is not getting loaded after i return from the read file bean.
    Hope People here can help me solve this problem. I am not able to proceed :(

  • What is correct row bean property class?

    I'm trying to extend the WL9.0 administrative console
              and I'm tryign to use the templates provided for viewing
              table form content there. The problem is as follows:
              I define a JSP that shows a table, each row showing data
              from my own bean class 'SponsorListItem'
              --->JSP snippet
              <%@ page language="java" %>
              <%@ taglib uri="/WEB-INF/console-html.tld" prefix="wl" %>
              <%@ taglib uri="/WEB-INF/fmt.tld" prefix="fmt" %>
              <%@ taglib uri="/WEB-INF/beehive-netui-tags-template.tld" prefix="beehive-template" %>
              <fmt:setBundle basename="mgmtconsole" var="current_bundle" scope="page"/>
              <beehive-template:template templatePage="/layouts/tableBaseLayout_netui.jsp">
              <beehive-template:section name="configAreaIntroduction">
              <fmt:message key="mysoftware.mgmtconsole.sponsorlist.title" bundle="${current_bundle}"/>
              </beehive-template:section>
              <beehive-template:section name="table">
              <wl:table
              name="sponsorListForm"
              property="sponsors"
              showcheckboxes="false"
              captionEnabled="true"
              controlsEnabled="false"
              bundle="mgmtconsole"
              formEnabled="true"
              showheadings="true"
              singlechange="false">
              <wl:caption>
              <fmt:message key="mysoftware.mgmtconsole.sponsorlist.caption" bundle="${current_bundle}"/>
              </wl:caption>
              <wl:column property="sponsorName" label="mysoftware.mgmtconsole.sponsorlist.sponsorname"/>
              <wl:column property="sponsorCode" label="mysoftware.mgmtconsole.sponsorlist.sponsorcode"/>
              <wl:column property="sponsorId" label="mysoftware.mgmtconsole.sponsorlist.sponsorid"/>
              </wl:table>
              </beehive-template:section>
              </beehive-template:template>
              -->end clip
              My form bean (SponsorListForm) has function
              --->clip
              public SponsorListItem[] getSponsors() { return fArray; }
              <--end clip
              My row bean (SponsorListItem) has the following getters
              -->clip
              public String getSponsorName() { return fName; }
              public String getSponsorCode() { return fCode; }
              public String getSponsorId() { return fId; }
              public String getHandle() { return fId; }
              <--end clip
              So far so good, when I try to view the JSP in the
              mgmt console snippet I get an error:
              java.lang.ClassCastException: java.lang.String
              at com.bea.console.taglib.html.renderer.DefaultCellRenderer.doRender(DefaultCellRenderer.java:36)
              at com.bea.console.taglib.html.TableTag.printTableRows(TableTag.java:749)
              at com.bea.console.taglib.html.TableTag.printTable(TableTag.java:594)
              at com.bea.console.taglib.html.TableTag.doEndTag(TableTag.java:359)
              at jsp_servlet._mgmtconsole._jsp.__mgmtconsole2._jspService(__mgmtconsole2.java:337)
              at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
              at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:214)
              at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:120)
              If I set the getters from SponsorListItem to return null I do not get the error - instead I get the correct number of rows with empty content (naturally as I did not give any content, just nulls). So it seems that the cell renderer assumes that the property is of some class other than java.lang.String but I cannot find from the documentation what is the class it wants. If I had the source of the renderer I could go and have a look at there but naturally I do not have that...
              So, what is the correct class to return for a row bean property?

    It appears the assumed class for getHandle() in the row item bean is com.bea.console.handles.Handle which can be found from the console.jar in the server/lib/consoleapp/webapp/WEB-INF/lib.
              If I subclass this item and then make my row bean return instances of these for the getHandle() then I do not get class cast exception.

  • Assigning bean property to custom tag's attribute

    1. The #{beanName.property} notation can only be used inside JSF tags.
    2. The attributes of custom tags does not accept embedded tags.
    e.g. <prefix:tagName attrib1="<jsftag>">
    I need to assign a bean's property to the attrib1 attribute. how do I do this?

    Alternatively, how can I assign the value of a bean property to a variable?
    e.g.
    <%
    int var=<bean.property>
    %>
    I can use the variable on the custom tag like this:
    <prefix:tagName attrib1="<%=var%>"> OR
    But this may not be the best solution though because I have to use scriptlets...

  • Comparing value of bean property/textbox in a form to a field in the db

    How do I compare the value of a bean property or the value of a textbox in a form (e.g. idno) to the value of an idno stored in my database using an SQL statement?
    I actually know that my SQL statement should resemble something similar to the one shown below:
    "SELECT * from user WHERE idno(value in the db) = idno(value entered in the form)"
    My problem is I am placing this SELECT statement on a .java file so I am clueless as to how I will state, using an SQL statement, that I only want to retrieve the record whose idno in the db matches the idno entered by the user in the form (whose value I store in a bean that is also inside the .java file I mentioned earlier).
    Should I place my SQL statement in the .java file or should I place it on my jsp instead?
    Any advice will greatly be appreciated! Thanks in advance!

    Hi
    Details:
    JSP - Contains a Form for entering ID number.
    Java Bean - Stores the ID number entered into the Form of the JSP page and also has the SQL Statement Object
    The Problem: Where should you put the SQL Statement Object ?
    Possible Solution: I think you are confused about SQL statements execution. This is what you can do. The Retrieved Id number from the Form has to be appended to the preformatted String which has the SQL statement stored in it. Once this is done this statement may be executed to retrieve the data associated with the ID number , if it exists.
    Here is a link that should help you build an SQL statement on the fly and execute it. Try out some of the examples.
    http://java.sun.com/docs/books/tutorial/jdbc/
    Good Luck!
    Eshwar Rao
    Developer Technical Support
    Sun mcirosystems inc
    http://www.sun.com/developers/support

  • How do I get the bean property to JSP page for use in a Scriplet

    Hi all,
    I am new to JSF and would like to know how can I get the Bean property to a JSP page and then use that property to dynamically display the contents.
    Thank in advance,

    Hi,
    I think the following page will be helpfull.
    http://java.sun.com/developer/technicalArticles/javaserverpages/JSP20/
    Akif

  • How to set Bean property

    I have JSF input <h:inputtext> and JSF Button
    on click i want to set bean property value = user whatever enter in text box how acn i do that?

    well,
    You have to create backing bean with property setter and getter.
    Then:
    <h:inputtext value="#{beanName.propertyName}"/>Now when page is loaded getter is used and when submited setter goes in action
    I would recomend http://www.coreservlets.com/
    Message was edited by:
    m00dy

  • Concurrency and javafx.beans.property

    I am building a MVC architecture and i'd like the model to be running independetly of the view/controller, so the model runs concurrently with the controller/view.
    the following example is a very simplified build on how i have it:
    controller:
    public class controller extends AnchorPane implements Initializable{
         private ObjectProperty<Model> m;
         @FXML Label aLabel;
         public controller() throws Exception{
              this.m = new SimpleObjectProperty<Model>(this, "Model", null);
              FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource("../view/View.fxml"));
              fxmlLoader.setController(this);
              fxmlLoader.setRoot(this);
              fxmlLoader.load();
         @Override public void initialize(URL arg0, ResourceBundle arg1){}
         public void setGame(Model m) throws Exception{
              this.m.set(m);
              aLabel.textProperty().bind(this.m.get().getIntProperty().asString());
         public void start(){
              //Method1:
              m.get().start();
              //Method2:
              Task<Void> task = new Task<Void>() {
                   @Override public Void call() {
                        m.get().start();
                        return null;
              new Thread(task).start();
              //Method3:
              m.get().start();     //Model extends Thread and public void start() to protected void run()
              //Method4:
              m.get().start();     //Model extends Task<Void> and
                             //public void start() to protected Void call() throws Exception
              //Method5:          //calling any of the before ones on the controller that calls this one
    }model:
    public class Model extends Thread{
         IntegerProperty intProperty;
         public Model(){
              this.intProperty = new SimpleIntegerProperty(0);
         public IntegerProperty getIntProperty(){
              return intProperty;
         public void start(){
              while (true){
                   this.intProperty.set(this.intProperty.get()+1);
    }Tried any of those and the results are:
    -Method1: the view crashes and cannot be seen anything (model seems to be working since continues in the loop)
    -Method2: when reaches the first this.intProperty.set(this.intProperty.get()+1); the task gets frozen and stops
    -Method3: execution error on this.intProperty.set(this.intProperty.get()+1);
    -Method4: same as Method3
    -Method5: like before ones
    how can i make the it work?

    There are a few things wrong here.
    First, if you want the model to use a Thread, make sure you know how to use the Thread class. There's a decent section on concurrency at the [url http://docs.oracle.com/javase/tutorial/essential/concurrency/index.html]Java tutorial. What you need here is to have your Model class override the run() method, not the start() method. Then call the start() method, which will cause the run() method to be executed on a separate thread of execution. (You may be doing this in Method 3, I couldn't understand your comment.)
    This is probably just an artifact of your simplified version, but your run() method should block at some point. Multiple threads can be executed on the same processor, so your current implementation may hog that processor, making it impossible for the FX Application thread to do its stuff. For testing, throw in a Thread.sleep(...) call, wrapped in a try/catch block for the InterruptedException. I assume that the real application is waiting for something from the server, so there would be some "natural" blocking of the thread in that case.
    The important rule for the UI is that changes to the interface should only be performed on the FX Application thread. Assuming you have the implementation of your model correctly running on a background thread, you violate this with your binding. (The model sets its intProperty on the background thread; the binding causes the label's text to be changed on the same thread.) So to fix this your controller should listen for changes in the model's int property, and schedule a call to aLabel.setText(...) on the FX application thread using Platform.runLater(...). You want to make sure you don't flood the FX Application thread with too many such calls. Depending on how often the int property in the model is getting updated, you may need the techniques discussed in {thread:id=2507241}.
    The Task API from JavaFX provides nice mechanisms to call back to the JavaFX Application thread; however this is not really applicable in this case. The Task class encapsulates a one-off task that (optionally) returns a value and then completes, which is not what you're doing here.
    Here's a complete example; it's not broken out into separate FXML for the view and a controller, etc, but you can see the structure and break it down as you need.
    import javafx.application.Application;
    import javafx.application.Platform;
    import javafx.beans.property.IntegerProperty;
    import javafx.beans.property.SimpleIntegerProperty;
    import javafx.beans.value.ChangeListener;
    import javafx.beans.value.ObservableValue;
    import javafx.event.ActionEvent;
    import javafx.event.EventHandler;
    import javafx.scene.Scene;
    import javafx.scene.control.Button;
    import javafx.scene.control.Label;
    import javafx.scene.layout.AnchorPane;
    import javafx.stage.Stage;
    public class ConcurrentModel extends Application {
      @Override
      public void start(Stage primaryStage) {
        final AnchorPane root = new AnchorPane();
        final Label label = new Label();
        final Model model = new Model();
        model.intProperty.addListener(new ChangeListener<Number>() {
          @Override
          public void changed(final ObservableValue<? extends Number> observable,
              final Number oldValue, final Number newValue) {
            Platform.runLater(new Runnable() {
              @Override
              public void run() {
                label.setText(newValue.toString());
        final Button startButton = new Button("Start");
        startButton.setOnAction(new EventHandler<ActionEvent>() {
          @Override
          public void handle(ActionEvent event) {
            model.start();
        AnchorPane.setTopAnchor(label, 10.0);
        AnchorPane.setLeftAnchor(label, 10.0);
        AnchorPane.setBottomAnchor(startButton, 10.0);
        AnchorPane.setLeftAnchor(startButton, 10.0);
        root.getChildren().addAll(label, startButton);
        Scene scene = new Scene(root, 100, 100);
        primaryStage.setScene(scene);
        primaryStage.show();
      public static void main(String[] args) {
        launch(args);
      public class Model extends Thread {
        private IntegerProperty intProperty;
        public Model() {
          intProperty = new SimpleIntegerProperty(this, "int", 0);
          setDaemon(true);
        public int getInt() {
          return intProperty.get();
        public IntegerProperty intProperty() {
          return intProperty;
        @Override
        public void run() {
          while (true) {
            intProperty.set(intProperty.get() + 1);
            try {
              Thread.sleep(50);
            } catch (InterruptedException exc) {
              exc.printStackTrace();
              break;
    }

  • Including Bean-Property in Database-Binding

    Hello,
    I'm testing SJSC and right now I'm testing the Database-Bindings. I was successfull in integrating the MySQL JDBC-driver and creating JNDI-Ressource, JDBC-Ressource and Connection-Pool (I have several "RaveGenerated entrys but this problem will be solved later hopefully).
    My question is how I can integrate the value of a managed Bean in a SQL-Query of a Rowset. n my own Example I have a page where I enter a Short name in an Input-Field. This field is bound to a manged Bean and the name is a Property. I press a Okay-Button and on the next Page I display this Property again. This works finde. Now I will lookup in a database the long name corresponding to the short Name. I bound the Output-Field to a Rowset and the first long name is displayed from the database. I would like to display the long Name of the DB-Column of the entered short name. How can I do that?
    Best regards,
    Thomas

    Does your DbAccess bean have a "setJdbcUser" method?
    ie public void setJdbcUser(String user)Yes. Wouldn't the 'setProperty" tag cause compilation to fail if there was not a corresponding bean property?
    I'll add the standard disclaimer how db connections
    in JSPs is a bad idea. Such code should be in a servlet/bean.I have created context parameters in web.xml with the jdbc configuration values to create the connection. I created a context listener to open the connection on application initialization. My original conception was to create the connection in my controller servlet and then pass it as a request attribute and fetch it in the JSP. But, on further consideration, I could not find a way to do that without using a scriptlet. For that reason, I backtracked and created the DbAccess bean, whose purpose actually is to create the connection. So, the business with the jdbcUser property is really just me "feeling my way" with how these tags work in the JSP. I'm having difficulty in visualizing how to access that connection (or the data feed) in the JSP. I can create the DbAccess object with the JDBC connection in the listener.
    I am certainly open to suggestions as to the best way to make this work. I haven't found much guidance in the documentation I've read.
    Thanks for the reply.
    mp

  • Bug/Bad docs trying to bind SelectItem to bean property of type Collection

    Hi,
    I've been trying for the best part of the morning to use a selectOneMenu tag and bind the selectItems value to a backing bean property.
    The tutorial states that:
    "The advantages of using the selectItems tag are as follows:
    You can represent the items using different data structures, including Array, Map, List, and Collection. The data structure is composed of SelectItem instances or SelectItemGroup instances."
    well I've used Map, and List (which are both covered by Collection anyway...) and they don't work. You go silently to the renderResponse phase.
    In all cases the content of my Collection typed property were javax.faces.model.SelectItem instances.
    I changed the backing bean property to be of type SelectItem[] instead and suddenly it works fine.
    It's as if the binding mechanism isn't able to handle collections?
    Is the tutorial wrong or does this just not work?
    I'm using 1.0.
    Neil

    Hi
    I have the same problem whereby my backing beans has implemented as a HashSet of attachments for a client. If this is changed to a type, List say ArrayList, everything works correctly with no errors.
    client.attachments -> contains a HashSet of attachments
    Page goes to display this list and if a Set is used then error below is thrown.
    Has anyone experienced this problem and found a solution, it would very help
    Thanks
    Glenn
    Exception :
    com.sun.facelets.tag.TagAttributeException: /C:/development/42508/apmweb/pages/client/client_notes_list.xhtml @70,53 tes
    t="${not empty note.attachments}" /C:/development/42508/apmweb/pages/client/client_notes_list.xhtml @70,53 test="${not e
    mpty note.attachments}": Bean: org.hibernate.collection.PersistentSortedSet, property: 0
    at com.sun.facelets.tag.TagAttribute.getObject(TagAttribute.java:235)
    at com.sun.facelets.tag.TagAttribute.getBoolean(TagAttribute.java:79)
    at com.sun.facelets.tag.jstl.core.IfHandler.apply(IfHandler.java:49)
    at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
    at com.sun.facelets.tag.jstl.core.ForEachHandler.apply(ForEachHandler.java:168)
    at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
    at com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:147)
    at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
    at com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:147)
    at com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:147)
    at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
    at com.sun.facelets.tag.jsf.core.ViewHandler.apply(ViewHandler.java:94)
    at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
    at com.sun.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:49)
    at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
    at com.sun.facelets.impl.DefaultFacelet.apply(DefaultFacelet.java:95)
    at com.sun.facelets.FaceletViewHandler.buildView(FaceletViewHandler.java:400)
    at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:434)
    at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:352)
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:107)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:214)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:120)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:272)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
    at org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:122)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3020)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:1925)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1848)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1288)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:179)
    Caused by: javax.el.PropertyNotFoundException: /C:/development/42508/apmweb/pages/client/client_notes_list.xhtml @70,53
    test="${not empty note.attachments}": Bean: org.hibernate.collection.PersistentSortedSet, property: 0
    at com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:73)
    at com.sun.facelets.tag.TagAttribute.getObject(TagAttribute.jav
    Code :
    <c:forEach items="#{WriteableClient.notes}" var="note">          
    <c:if test="#{not empty note.attachments}">
    </c:forEach >

  • ADFC bean property

    I am having problems settings a bean property in adfc-config.xml and getting the value in the bean class. When I access the property in the java bean, it has not been set, altho I have a value in adfc-config.
    Here are my code details:
    <adfc-config xmlns="http://xmlns.oracle.com/adf/controller" version="1.2">
    <managed-bean>
    <managed-bean-name>agProperties</managed-bean-name>
    <managed-bean-class>oracle.bpel.activityguide.ui.beans.model.AGProperties</managed-bean-class>
    <managed-bean-scope>session</managed-bean-scope>
    <managed-property>
    <property-name>filename</property-name>
    <value>/scratch/cshare/cshare_eventpoc/atgpf/applcore/activityguide/activityguideApps/AGNonUIshellApp/ViewController/activityguide.properties</value>
    </managed-property>
    </managed-bean>
    </adfc-config>
    Java bean:
    package oracle.bpel.activityguide.ui.beans.model;
    public class AGProperties {
    private static String _AGPropertyFilename = "";
    public AGProperties() {
    /** this is set in adfc-config.xml
    * explicit path +filename
    public void setFilename(String filename) {
    _AGPropertyFilename = filename;
    public static void load() {
    propFileName = _AGPropertyFilename;  ///HERE THIS IS NOT SET from adfc-config.xml
    }

    Thanks for the quick response.
    I removed all static definitions from the java and changed the managed bean scope to "application",
    However it is still not getting the value set from adfc-config. (BTW: previously we were using a JAVA_OPTIONS parm on the application cmdline for the filepath and getting that thru the system settings in java code and it worked fine but we were told to use the adfc-config.xml instead for the file path info .)
    Maybe some of the details are the cause of the problem. The managed bean is in a deployed jar file. The application page is in a separately deployed workspace. I've set the managed bean info the adfc-config.xml of the application. (When I also had it in the jar file's adfc-config.xml the log complained of a duplicately defined managed bean, so I removed it from the jar's adfc-config file. )
    When the AGProperty.getProperty method is called, the managed bean property setFilename for AGProperties has still not been called & set yet with adfc-config value. I have set breakpoints in a debug session to verify this. These properties as used for EL values on the initally rendered jsf page fragment, which is included in a region as a task-flow on the main page.
    Is there another way to load this bean managed property directly in Java code from the adfc-config file ? Or iIs there another way to set a filepath for the properties file specific to the application other than using adfc-config.xml ?
    revised Java code:
    public class AGProperties {
    private String _AGPropertyFilename = "";
    public AGProperties() {
    /** this is set in adfc-config.xml
    * explicit path +filename
    public void setFilename(String filename) {  //never getting called
    _AGPropertyFilename = filename;
    adfc-config.xml
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <adfc-config xmlns="http://xmlns.oracle.com/adf/controller" version="1.2">
    <managed-bean>
    <managed-bean-name>agProperties</managed-bean-name>
    <managed-bean-class>oracle.bpel.activityguide.ui.beans.model.AGProperties</managed-bean-class>
    <managed-bean-scope>application</managed-bean-scope>
    <managed-property>
    <property-name>filename</property-name>
    <value>/scratch/cshare/cshare_eventpoc/atgpf/applcore/activityguide/activityguideApps/AGNonUIshellApp/ViewController/activityguide.properties</value>
    </managed-property>
    </managed-bean>
    </adfc-config>
    Edited by: user568107 on Feb 17, 2009 3:20 PM
    Edited by: user568107 on Feb 17, 2009 4:37 PM

Maybe you are looking for

  • SSD Cache in HP ENVY Phoenix 800-445qe doesn't seem to be installed right

    I have a newly purchased HP ENVY Phoenix 800-445qe which includes what's supposed to be a 16gb ssd cache.  Running WIndows 7 Pro 64.   The ssd drive was factory installed so it shows in Windows as with the name DATADRIVE1 (doesn't sound like it was i

  • Can I make a calendar in iPhoto '09 using my Aperture 3.0 library?

    I've just doanloaded a trial of Aperture 3 and am generally very impressed. I decided I wanted to make a wall calendar, which is not supported but it says somewhere you can work from your Aperture library from within iPhoto. Is this only supported in

  • Could not resolve sparks component with Air 3.6 Beta

    Description Resource Path Location Type Could not resolve <s:SolidColor> to a component implementation. ExpandingItemRenderer.mxml /ProjectTest/src/renderers line 59 Flex Problem Could not resolve <s:State> to a component implementation. ExpandingIte

  • Installing Adobe Type 1 Fonts on Solaris

    We want to install ocra fonts on a workstation running Solaris 10. Currently the fonts are installed in a Solaris 8 server in: /usr/openwin/lib/X11/fonts/Type1 On the workstation, we ftp'd the files from the server to /tmp on the workstation. We ran

  • Photoshop CS3 Artistic Filters

    I am applying Artistic filters to an image in Photoshop. Some of the filters are turning the image into a black and white image, for example, the "torn edges filter." And it then does not seem possible to change that layer into a colored layer. Other