"Randall G. Alley" escribió:

> Well, in the grand tradition of talking to myself and  helping my self ;>}
> I added the following change to the file:

In my best tradition of scavenging lists, and watching birds, and people who talks to 
themselves, :-)

I decided that your patch looks sensible and commited it. The behaviour of the 
getObject of jdbc
depends a lot on the concrete DB in use.

I hope nobody oposes. If there are reasons to opose, please let us discuss and we can 
revert back.

In any case, I think your code will disappear as soon as we update to the new turbine 
code.

>
>
> In SendConfirmationEmail.java at line 83:
>
> removed:     userid = (Integer)(((TurbineUser)data.getUser()).getId());
>
> added:         int tempInt = ((TurbineUser)data.getUser()).getIdAsInt();
> added:         userid = new Integer( tempInt );
>
> This got rid of the Exception noted below, but I still never receive
> the confirmation e-mail.
>
> Does anyone have e-mail confirmation working ?
>
> Thanks,
> Randy
>
> "Randall G. Alley" wrote:
>
> > Exception: java.lang.ClassCastException: java.math.BigDecimal
> >         at
> > 
>org.apache.jetspeed.modules.actions.SendConfirmationEmail.doPerform(SendConfirmationEmail.java:83)
> >
> > Line 83 of SendConfirmationEmail.java says:
> >
> > userid = (Integer)(((TurbineUser)data.getUser()).getId());
> >
> > Checking BaseObject.java, I find getId() returns type Object.
> > So, instead of a cast to Integer, would the following work better?
> >
> > userid = ((TurbineUser)data.getUser()).getIdAsInt();
> >
> > Note - getIdAsInt() uses:
> > idInt = Integer.parseInt(id.toString())
> >
> > Thanks,
> > Randy
> >
> > "Randall G. Alley" wrote:
> >
> > > Thanks for the response, Raphael.
> > >
> > > Unfortunately, even with the included patched Turbine,
> > > I still get the error when Jetspeed tries to do e-mail.
> > >
> > > Am I the only one getting this ?
> > >
> > > [EMAIL PROTECTED] wrote:
> > >
> > > > "Randall G. Alley" wrote:
> > > > >
> > > > > Has anyone else had this error ?
> > > > > Which version of Turbine is Jetspeed 1.3a1 built to use ?
> > > > >
> > > >
> > > > You should use the turbine.jar provided with Jetspeed as it was
> > > > generated from Turbine-CVS-12/10/2000 + patches available at
> > > > http://java.apache.org/~raphael/turbine/
> > > > These patches are now integrated in Turbine. I'll update the Turbine
> > > > dependency in Jetspeed this week to use the latest Turbine.
> > > > >From this point on, I think we'll try to keep up with Turbine development
> > > > but it's not easy since there are no reference points for Turbine
> > > > currently.
> > > >
> > > > --
> > > > Raphaël Luta - [EMAIL PROTECTED]
> > > > Vivendi Universal Networks - Services Manager / Paris
> > > >
> > > > --
> > > > --------------------------------------------------------------
> > > > To subscribe:        [EMAIL PROTECTED]
> > > > To unsubscribe:      [EMAIL PROTECTED]
> > > > Search: <http://www.mail-archive.com/[email protected]/>
> > > > List Help?:          [EMAIL PROTECTED]
> > >
> > > --
> > > --------------------------------------------------------------
> > > To subscribe:        [EMAIL PROTECTED]
> > > To unsubscribe:      [EMAIL PROTECTED]
> > > Search: <http://www.mail-archive.com/[email protected]/>
> > > List Help?:          [EMAIL PROTECTED]
> >
> > --
> > --------------------------------------------------------------
> > To subscribe:        [EMAIL PROTECTED]
> > To unsubscribe:      [EMAIL PROTECTED]
> > Search: <http://www.mail-archive.com/[email protected]/>
> > List Help?:          [EMAIL PROTECTED]
>
> --
> --------------------------------------------------------------
> To subscribe:        [EMAIL PROTECTED]
> To unsubscribe:      [EMAIL PROTECTED]
> Search: <http://www.mail-archive.com/[email protected]/>
> List Help?:          [EMAIL PROTECTED]



--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/[email protected]/>
List Help?:          [EMAIL PROTECTED]

Reply via email to