=?iso-8859-1?Q?J=FCrgen_Hoffmann?= <[EMAIL PROTECTED]> writes:

>Hi,

>The one that comes with Turbine.

Uh. I think you still have your configuration wrong. I sent you a mail
with a correct configuration. If you do reflection on the turbine
supplied TorqueUser/TorqueGroup etc. objects, you've already
misconfigured. :-)

Or is this reflection call from your application? 

        Regards
                Henning


>Now PropertyDescriptor looks like this:

>    public PropertyDescriptor(String propertyName, Class beanClass)
>               throws IntrospectionException {
>       if (propertyName == null || propertyName.length() == 0) {
>           throw new IntrospectionException("bad property name");
>       }
>       setName(propertyName);
>       String base = capitalize(propertyName);

>       // Since there can be multiple setter methods but only one
>getter
>        // method, find the getter method first so that you know what
>the
>        // property type is.  For booleans, there can be "is" and "get"
>        // methods.  If an "is" method exists, this is the official
>       // reader method so look for this one first.
>        try {
>           readMethod = Introspector.findMethod(beanClass, "is" + base,
>0);
>       } catch (Exception getterExc) {
>            // no "is" method, so look for a "get" method.
>           readMethod = Introspector.findMethod(beanClass, "get" +
>base, 0);
>       }
>        Class params[] = { readMethod.getReturnType() };
>        writeMethod = Introspector.findMethod(beanClass, "set" + base,
>1,
>                                              params);
>       propertyType = findPropertyType(readMethod, writeMethod);
>    }
>So it seems to me that PropertyDescriptor tries first to find an isBLA
>Method for a given value and if it cannot find it it lookus up the
>getBLA Method.

>This is why I added the method in the first place.

>So could this be an overloading Problem?

>Kind regards
> 
>J�rgen Hoffmann



>-----Urspr�ngliche Nachricht-----
>Von: Henning Schmiedehausen [mailto:[EMAIL PROTECTED] 
>Gesendet: Montag, 25. August 2003 16:06
>An: J�rgen Hoffmann
>Cc: 'Turbine Users List'
>Betreff: Re: AW: AW: Migrating from 2.2 to 2.3


>Hi,

>the Torque generated object (the one which got built by the torque
>generator) or the TorqueUser that comes with Turbine?

>The latter one has "isConfirmed", right. It is defined as

>--- cut ---
>    public boolean isConfirmed()
>    {
>        String value = getConfirmed();
>        return (value != null && value.equals(User.CONFIRM_DATA));
>    }
>--- cut ---

>The torque generated object has (at least with Torque 3.1-alpha-3-dev)

>--- cut ---
>        /**
>         * Get the Confirmed
>         *
>         * @return String
>         */
>        public String getConfirmed()
>        {
>            return confirm_value;
>        }

>                                            
>        /**
>         * Set the value of Confirmed
>         *
>         * @param v new value
>         */
>        public void setConfirmed(String v) 
>        {
>          


>         if (!ObjectUtils.equals(this.confirm_value, v))
>        {
>             this.confirm_value = v;
>            setModified(true);
>        }

>                  
>                       }

>--- cut ---

>and no isConfirmed. 

>Confirmed is a VARCHAR, not a boolean and the idea behind it seems to
>have it contain a random string value which is sent to the user via
>email and a possible response from the user is compared to make sure
>that the user actually got the mail and responded to it. It is not a
>"this is a confirmed user" flag.

>       Regards
>               Henning


>On Mon, 2003-08-25 at 15:55, J�rgen Hoffmann wrote:
>> Hi Henning,
>> 
>> No everything is fine now. The problem was that TorqueUser had a 
>> method
>> isConfirmed() which returns boolean. So at least my jdk1.4.2 was
>looking
>> for a method setConfirmed(boolean v) and did not find it. I added the
>> following method to my ExtendedBorcUser and everything works except
>for
>> the other Exceptions:
>> 
>>     public void setConfirmed(boolean arg)
>>     {
>>      setConfirmed(String.valueOf(arg));
>>     }
>> 
>> Kind regards
>>  
>> J�rgen Hoffmann
>> 
>> 
>> 
>> -----Urspr�ngliche Nachricht-----
>> Von: Henning P. Schmiedehausen [mailto:[EMAIL PROTECTED]
>> Gesendet: Montag, 25. August 2003 15:48
>> An: [EMAIL PROTECTED]
>> Betreff: Re: AW: Migrating from 2.2 to 2.3
>> 
>> 
>> =?iso-8859-1?Q?J=FCrgen_Hoffmann?= <[EMAIL PROTECTED]> writes:
>> 
>> >Hi,
>> 
>> >Thanks for your response,
>> 
>> >            <column name="CONFIRM_VALUE" size="16" type="VARCHAR"
>> >                    javaName="Confirmed"/>
>> 
>> Hi,
>> 
>> strange. So your peer class should/must have a setConfirmed(String s) 
>> and a String getConfirmed() method. I don't understand why reflection 
>> does not find them when starting up. If you use Eclipse or something, 
>> can you try the class browser to check if your class contains the 
>> necessary methods?
>> 
>>      Regards
>>              Henning
>> 
>> 
>> 
>> >            <column name="MODIFIED" type="TIMESTAMP"/>
>> >            <column name="CREATED" type="TIMESTAMP"
>> javaName="CreateDate"/>
>> >            <column name="LAST_LOGIN" type="TIMESTAMP"/>
>> >            <column name="OBJECTDATA" type="VARBINARY"/>
>> >            <column name="TELEPHONE" size="32" type="VARCHAR"
>javaName="Phone" 
>> >/>
>> >            <column name="FAX" size="32" type="VARCHAR"/>
>> >            <column name="FIRMA_ID" type="INTEGER"
>> >primaryKey="false"
>> >                    required="false" autoIncrement="false"
>inheritance="false" />
>> >            <foreign-key foreignTable="Firma" onUpdate="none"
>> >onDelete="none">
>> >                    <reference local="FIRMA_ID" foreign="firma_id"
>> >/>
>> >            </foreign-key>
>> >            <unique>
>> >                    <unique-column name="LOGIN_NAME"/>
>> >            </unique>
>> >    </table>
>> 
>> >Kind regards
>> 
>> >Juergen Hoffmann
>> 
>> >P.S. com.ba means company - byteaction which is still on my todo 
>> >list,
>> >to change com.ba to de.byteaction *Keine Arme, Keine Kekse* =)
>> 
>> 
>> 
>> >-----Urspr�ngliche Nachricht-----
>> >Von: Henning P. Schmiedehausen [mailto:[EMAIL PROTECTED]
>> >Gesendet: Montag, 25. August 2003 13:15
>> >An: [EMAIL PROTECTED]
>> >Betreff: Re: AW: AW: Migrating from 2.2 to 2.3
>> 
>> 
>> >=?iso-8859-1?Q?J=FCrgen_Hoffmann?= <[EMAIL PROTECTED]> writes:
>> 
>> >>org.apache.turbine.services.InstantiationException: Service
>> >>SecurityService failed to initialize: Failed to instantiate 
>> >>UserManager: UserPeer com.ba.borc.om.BorcUserPeer has no confirm
>> column
>> 
>> >>information!: No method "setConfirmed" with 1 arg(s) of matching
>> types.
>> 
>> >Please post the schema or part of the schema which generates the 
>> >com.ba.borc.om.BorcUserPeer and com.ba.borc.om.BorcUser persistent 
>> >object. I'm 99% sure that it's missing the
>> 
>> ><column name="CONFIRM_VALUE" size="16" type="VARCHAR" 
>> >javaName="Confirmed"/>
>> 
>> >column.
>> 
>> >    Regards
>> >            Henning
>> 
>> 
>> >P.S.: com.ba ? British Airways gets a Turbine based application? 
>> >Cool.
>> 
>> >-- 
>> >Dipl.-Inf. (Univ.) Henning P. Schmiedehausen          INTERMETA GmbH
>> >[EMAIL PROTECTED]        +49 9131 50 654 0   http://www.intermeta.de/
>> 
>> >Java, perl, Solaris, Linux, xSP Consulting, Web Services
>> >freelance consultant -- Jakarta Turbine Development  -- hero for hire
>> 
>> >"Dominate!! Dominate!! Eat your young and aggregate! I have grotty 
>> >silicon!"
>> >      -- AOL CD when played backwards  (User Friendly - 200-10-15)
>> 
>> >---------------------------------------------------------------------
>> >To unsubscribe, e-mail: [EMAIL PROTECTED]
>> >For additional commands, e-mail: [EMAIL PROTECTED]
>> 
>> 
>> 
>> 
>> >---------------------------------------------------------------------
>> >To unsubscribe, e-mail: [EMAIL PROTECTED]
>> >For additional commands, e-mail: [EMAIL PROTECTED]
>-- 
>Dipl.-Inf. (Univ.) Henning P. Schmiedehausen          INTERMETA GmbH
>[EMAIL PROTECTED]        +49 9131 50 654 0   http://www.intermeta.de/

>Java, perl, Solaris, Linux, xSP Consulting, Web Services 
>freelance consultant -- Jakarta Turbine Development  -- hero for hire

>"Dominate!! Dominate!! Eat your young and aggregate! I have grotty
>silicon!" 
>      -- AOL CD when played backwards  (User Friendly - 200-10-15)


>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]


-- 
Dipl.-Inf. (Univ.) Henning P. Schmiedehausen          INTERMETA GmbH
[EMAIL PROTECTED]        +49 9131 50 654 0   http://www.intermeta.de/

Java, perl, Solaris, Linux, xSP Consulting, Web Services 
freelance consultant -- Jakarta Turbine Development  -- hero for hire

"Dominate!! Dominate!! Eat your young and aggregate! I have grotty silicon!" 
      -- AOL CD when played backwards  (User Friendly - 200-10-15)

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to