2 Replies Latest reply on Mar 30, 2002 3:45 AM by chgrimm

    evil "Nested Field does not have..."

    nomore

      Hi people,

      I've created a new entity bean for our project. Compiling the source is no problem, but when I deploy the stuff I'm getting the following error:

      [Container factory] ERROR: Nested Field does not have a get method

      Could anyone explain me this error message?? Or where can I find infos about JBoss error messages etc.

      Bye,
      NoMoRe@

        • 1. Re: evil "Nested Field does not have..."
          laz777

          I bumped into a similar problem, and the cause seemes to be declaring bean fields as protected.

          -Todd

          • 2. Re: evil "Nested Field does not have..."
            chgrimm

            the message is at bit misunderstanding.
            it just means that your cmp entity bean does not have a public property with the name you specified in the deployment descriptor. ( cmp-field / field-name tag )
            the property ( meaning the field ) is accessible either if it is public or if it has a public getter method.
            the error message relates to the last one.
            but as i already set, the error could also occur, if you mistyped the field name, or didn't make it public in case you have no particular getter method.