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

2010-09-07 Thread Jeremy Thomerson
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. How can I attach the Transaction to the thread to get this working? thanks in advance

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

2010-09-03 Thread Fernando Wermus
is not valid without active transaction when I tried to load an entity in a model to be used in the PageMail. How can I attach the Transaction to the thread to get this working? thanks in advance -- Fernando Wermus. www.linkedin.com/in/fernandowermus

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

2010-05-08 Thread Richard Slide
: 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 contactsModel = new

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

2010-05-08 Thread Karolina Rusin
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 transaction In IMHO all file conf

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

2010-05-08 Thread Richard Slide
: 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 contactsModel = new LoadableDetachableModel

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

2010-05-08 Thread James Carman
for rendering: [Page class = ch.myexample.ListContacts, id = 0, version = 0] 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

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

2010-05-08 Thread Richard Slide
: 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 contactsModel = new

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 richard.sl...@gmail.com wrote: I did it. On Sat, May 8, 2010 at 2:00 PM, James Carman jcar...@carmanconsulting.comwrote: Put it on the impl class. On

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 hibernate-configuration session-factory name=session1 property name=hibernate.dialectorg.hibernate.dialect.MySQLDialect/property property name=hibernate.connection.driver_classcom.mysql.jdbc.Driver/property

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 u...@yahoo.dewrote: get this

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

2009-10-06 Thread Peter Arnulf Lustig
! - Urspr√ľngliche Mail Von: Pieter Degraeuwe pieter.degrae...@systemworks.be 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

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

2009-10-06 Thread Pieter Degraeuwe
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 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

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

2009-10-06 Thread Peter Arnulf Lustig
: org.hibernate.HibernateException: createCriteria is not valid without active transaction Indeed, when you start a transaction and get an object from the database, hibernate wil persist changes to that object when you transaction (and thus sesseion) is still open. This is normal behaviour. Note

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

2009-10-06 Thread Pieter Degraeuwe
...@systemworks.be 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 database, hibernate wil