{
> 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
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
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 --
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
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
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
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
]
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
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
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
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
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
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
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
14 matches
Mail list logo