Re: strange tapestry problem

From: Tore Halset (halse..vv.ntnu.no)
Date: Tue Nov 02 2004 - 03:35:57 EST

  • Next message: Andrus Adamchik: "Re: Unexpected CayenneRuntimeException"

    On Nov 1, 2004, at 16:20, Andrus Adamchik wrote:

    > Introspector.getBeanInfo(Vessel.class);
    >
    > Then run it in debugger and see which propery causes the problem (looks
    > like it is not "name" or "email", but some other property)...

    Thanks a lot! It turned out to be OT for this list. I had a attribute
    named "blocked" in cayenne mapped to Boolean. In addition to the
    auto-generated get/setBlocked I added a isBlocked that returned
    boolean:

            public boolean isBlocked() {
                    if (getBlocked() == null) {
                            return false;
                    }
                    return getBlocked().booleanValue();
            }

    Removing or renaming this method fixed the problem. I have to find a
    better name and change my coding style :)

    Regards,
      - Tore.



    This archive was generated by hypermail 2.0.0 : Tue Nov 02 2004 - 03:38:08 EST