Re: rendering a page for an email: org.hibernate.HibernateException: createCriteria is not valid without active transaction

2010-09-07 Thread Jeremy Thomerson
{ > Application.unset(); > } > }; > service.submit(new ThreadMail(destinatarios, clazz, p)); > > But, I got a org.hibernate.HibernateException: createCriteria is not valid > without active transaction > when I tried to load an entity in a model to be used in the PageMail. > &g

rendering a page for an email: org.hibernate.HibernateException: createCriteria is not valid without active transaction

2010-09-03 Thread Fernando Wermus
beforeExecute(final Thread t, final Runnable r) { Application.set(app2); }; @Override protected void afterExecute(final Runnable r, final Throwable t) { Application.unset(); } }; service.submit(new ThreadMail(destinatarios, clazz, p)); But, I got a org.hibernate.HibernateException: createCriteria is not

Re: org.hibernate.HibernateException: createCriteria is not valid without active transaction

2010-05-08 Thread James Carman
By the way, you might want to check out domdrides. It has all this implemented and tested for you On May 8, 2010 8:41 AM, "Richard Slide" wrote: I did it. On Sat, May 8, 2010 at 2:00 PM, James Carman wrote: > Put it on the impl class. > > On Sat, May 8, 2010 at 7:43 AM, Richard Slide --

Re: org.hibernate.HibernateException: createCriteria is not valid without active transaction

2010-05-08 Thread Richard Slide
ina Rusin >wrote: > > > >> Hello Richard, > >> > >> Maybe you need to use @Transactional above your dao method? > >> Hope this helps. > >> > >> Best regards, > >> Karolina Rusin > >> > >> > >> 2010/5/8

Re: org.hibernate.HibernateException: createCriteria is not valid without active transaction

2010-05-08 Thread James Carman
st regards, >> Karolina Rusin >> >> >> 2010/5/8 Richard Slide >> >> > Hello all, >> > i try to do a simple web application with the classic layout >> > Wicket->Spring->Hibernate >> > >> > When i try to make a

Re: org.hibernate.HibernateException: createCriteria is not valid without active transaction

2010-05-08 Thread Richard Slide
the classic layout > > Wicket->Spring->Hibernate > > > > When i try to make a simple request i receive the following error. > > > > WicketMessage: Error attaching this container for rendering: [Page class > = > > ch.myexample.ListContacts, id = 0

Re: org.hibernate.HibernateException: createCriteria is not valid without active transaction

2010-05-08 Thread Karolina Rusin
ke a simple request i receive the following error. > > WicketMessage: Error attaching this container for rendering: [Page class = > ch.myexample.ListContacts, id = 0, version = 0] > Root cause: > org.hibernate.HibernateException: createCriteria is not valid without > active > tran

org.hibernate.HibernateException: createCriteria is not valid without active transaction

2010-05-08 Thread Richard Slide
] Root cause: org.hibernate.HibernateException: createCriteria is not valid without active transaction In IMHO all file conf seams to be correct correct... bat i don't undestand hibenate dosen't find the correct session. At UI level i load the data with LoadableDetachableModel IModel con

Re: org.hibernate.HibernateException: createCriteria is not valid without active transaction

2009-10-06 Thread Pieter Degraeuwe
on: Pieter Degraeuwe > An: users@wicket.apache.org > Gesendet: Dienstag, den 6. Oktober 2009, 09:49:42 Uhr > Betreff: Re: org.hibernate.HibernateException: createCriteria is not valid > without active transaction > > Indeed, when you start a transaction and get an object from the datab

AW: org.hibernate.HibernateException: createCriteria is not valid without active transaction

2009-10-06 Thread Peter Arnulf Lustig
s@wicket.apache.org > Gesendet: Dienstag, den 6. Oktober 2009, 09:29:58 Uhr > Betreff: Re: org.hibernate.HibernateException: createCriteria is not valid > without active transaction > > You did not setup your transactions properly. > Or you start your transaction manually, or if you like spring, you c

Re: org.hibernate.HibernateException: createCriteria is not valid without active transaction

2009-10-06 Thread Pieter Degraeuwe
ansaction tx = ... and then tx.begin() tx.commit() -- > but then suddenly hibernate tries permanently to update an object... wired ! > > > > > - Ursprüngliche Mail > Von: Pieter Degraeuwe > An: users@wicket.apache.org > Gesendet: Dienstag, den 6. Oktober 200

AW: org.hibernate.HibernateException: createCriteria is not valid without active transaction

2009-10-06 Thread Peter Arnulf Lustig
e an object... wired ! - Ursprüngliche Mail Von: Pieter Degraeuwe An: users@wicket.apache.org Gesendet: Dienstag, den 6. Oktober 2009, 09:29:58 Uhr Betreff: Re: org.hibernate.HibernateException: createCriteria is not valid without active transaction You did not setup your transacti

Re: org.hibernate.HibernateException: createCriteria is not valid without active transaction

2009-10-06 Thread Pieter Degraeuwe
You did not setup your transactions properly. Or you start your transaction manually, or if you like spring, you can let spring manage it. (just add your transction annotations to your services, and, done ! On Tue, Oct 6, 2009 at 9:15 AM, Peter Arnulf Lustig wrote: > get this error always! I don

org.hibernate.HibernateException: createCriteria is not valid without active transaction

2009-10-06 Thread Peter Arnulf Lustig
get this error always! I don't understand why. this is my hibernate.cfg.xml org.hibernate.dialect.MySQLDialect com.mysql.jdbc.Driver jdbc:mysql://localhost:3306/mydb root org.hibernate.context.ThreadLocalSessionContext Do