RE: OSUser and Hibernate: couple of questions

"Ilja" <[email protected]> Sun, 12 Oct 2003 03:00:53 +0200
Newsgroups gmane.comp.java.open-symphony.devel
Message-ID <[email protected]>
On Sat, 11 Oct 2003 18:54:25 +0200, "Eric Pugh" <[email protected]> said:
> I am going to work over the next day or so on some unit tests for OSUser.
>  I
> am guessing though that the sessionfactory may not be passed through
> properly.  For OSWF it wasn't..  How the SessionFactory is passed through
> has changed for PropertySet...

That's what I thought as well, but how to solve it?

> 
> Eric Pugh
> 
> > -----Original Message-----
> > From: [email protected]
> > [mailto:[email protected]]On
> >  Behalf Of
> > Ilja
> > Sent: Saturday, October 11, 2003 6:04 PM
> > To: [email protected]
> > Subject: Re: [Opensymphony-developers] OSUser and Hibernate: couple of
> > questions
> >
> >
> > That would be great, what more information do you need? I'm still very
> > stuck on this matter...
> >
> > java.lang.NullPointerException
> > 	at
> > com.opensymphony.module.propertyset.hibernate.HibernatePropert
> > ySetDAOImpl.setImpl(HibernatePropertySetDAOImpl.java:42)
> > 	at
> > com.opensymphony.module.propertyset.hibernate.HibernatePropert
> > ySet.setImpl(HibernatePropertySet.java:156)
> > 	at
> > com.opensymphony.module.propertyset.AbstractPropertySet.set(Ab
> > stractPropertySet.java:565)
> > 	at
> > com.opensymphony.module.propertyset.AbstractPropertySet.setStr
> > ing(AbstractPropertySet.java:363)
> > 	at com.opensymphony.user.User.setEmail(User.java:61)
> >
> > 		try
> > 		{
> > 			User u = um.getUser("username");
> > 			u.setPassword("pwd");
> > 			u.setEmail("[email protected]");
> >
> > 			PropertySet userProperties = u.getPropertySet();
> >
> > 			userProperties.setString("first-name", "fname");
> > 			userProperties.setString("last-name", "lname");
> > 		}
> > 		catch (Exception e)
> > 		{
> > 			e.printStackTrace(out);
> > 		}
> >
> > Regards,
> >
> > Ilja
> >
> > On Wed, 8 Oct 2003 13:30:52 -0500, "Matthew E. Porter"
> > <[email protected]> said:
> > > I can try to help since I wrote the first version of the Hibernate
> > > provider.
> > >
> > >
> > > Cheers,
> > >     matthew
> > >
> > > On Wednesday, October 8, 2003, at 12:15 PM, Ilja wrote:
> > >
> > > > No-one?
> > > >
> > > > On Tue, 07 Oct 2003 21:12:36 +0200, "Ilja"
> > <[email protected]>
> > > > said:
> > > >> Hm, I have no clue on how to solve it now... It seems that the
> > > >> SessionFactory isn't passed through (as I noted before), any
> > > >> developers
> > > >> out here who can help me on this matter? I'm clueless
> > right now :(
> > > >>
> > > >> On Tue, 7 Oct 2003 02:07:35 -0700 (PDT), "Konstantin Priblouda"
> > > >> <[email protected]> said:
> > > >>>
> > > >>> --- Ilja <[email protected]> wrote:
> > > >>>> Ok I understand, but what could be the problem in my
> > > >>>> case then? Is my
> > > >>>> config-file incorrect?
> > > >>>
> > > >>> It seems OK to me. And I know certainly, that OSUser
> > > >>> hibernate providers do work.
> > > >>> ( at least in version I have on  my site - used to
> > > >>> patch it and also submitted patches, some of them were
> > > >>> accepted, and then there cam JIRA chars & CVS problems
> > > >>> on SF )
> > > >>> Currently I just do not knot CVS status, or if it was
> > > >>> moved to java.net....
> > > >>>
> > > >>> regards,
> > > >>>
> > > >>> =====
> > > >>> ----[ Konstantin Pribluda ( ko5tik ) ]----------------
> > > >>> Zu Verstärkung meines Teams suche ich ab Sofort einen
> > > >>> Softwareentwickler[In] für die Festanstellung.
> > > >>> Arbeitsort: Mainz
> > > >>> Skills:  Programieren, Kentnisse in OpenSource-Bereich
> > > >>> ----[ http://www.pribluda.de ]------------------------
> > > >>>
> > > >>> __________________________________
> > > >>> Do you Yahoo!?
> > > >>> The New Yahoo! Shopping - with improved product search
> > > >>> http://shopping.yahoo.com
> > > >>>
> > > >>>
> > > >>> -------------------------------------------------------
> > > >>> This sf.net email is sponsored by:ThinkGeek
> > > >>> Welcome to geek heaven.
> > > >>> http://thinkgeek.com/sf
> > > >>> _______________________________________________
> > > >>> Opensymphony-developers mailing list
> > > >>> [email protected]
> > > >>>
> https://lists.sourceforge.net/lists/listinfo/opensymphony-developers
> > >>>
> > >>
> > >>
> > >> -------------------------------------------------------
> > >> This sf.net email is sponsored by:ThinkGeek
> > >> Welcome to geek heaven.
> > >> http://thinkgeek.com/sf
> > >> _______________________________________________
> > >> Opensymphony-developers mailing list
> > >> [email protected]
> > >> https://lists.sourceforge.net/lists/listinfo/opensymphony-developers
> > >>
> > >
> > >
> > > -------------------------------------------------------
> > > This SF.net email is sponsored by: SF.net Giveback Program.
> > > SourceForge.net hosts over 70,000 Open Source Projects.
> > > See the people who have HELPED US provide better services:
> > > Click here: http://sourceforge.net/supporters.php
> > > _______________________________________________
> > > Opensymphony-developers mailing list
> > > [email protected]
> > > https://lists.sourceforge.net/lists/listinfo/opensymphony-developers
> >
> >
> >
> > -------------------------------------------------------
> > This SF.net email is sponsored by: SF.net Giveback Program.
> > SourceForge.net hosts over 70,000 Open Source Projects.
> > See the people who have HELPED US provide better services:
> > Click here: http://sourceforge.net/supporters.php
> > _______________________________________________
> > Opensymphony-developers mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/opensymphony-developers
> >
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by: SF.net Giveback Program.
> SourceForge.net hosts over 70,000 Open Source Projects.
> See the people who have HELPED US provide better services:
> Click here: http://sourceforge.net/supporters.php
> _______________________________________________
> Opensymphony-developers mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/opensymphony-developers
> 
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by: SF.net Giveback Program.
> SourceForge.net hosts over 70,000 Open Source Projects.
> See the people who have HELPED US provide better services:
> Click here: http://sourceforge.net/supporters.php
> _______________________________________________
> Opensymphony-developers mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/opensymphony-developers
> 


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php