> You're probably injecting org.hibernate.classic.Session instead of
> org.hibernate.Session (correct one).

When using org.hibernate.search.impl.FullTextSession you cannot use
the injected org.hibernate.Session because there is an expectation
that the org.hibernate.Session past to the constructor can be cast to
an org.hibernate.classic.Session. Since Tapestry proxies the object
and only implements the org.hibernate.Session you get this exception.
You need the actual org.hibernate.Session object which, as you've
seen, you can get by injecting the HibernateSessionManager and getting
the session from there. It's ends up using the same Session object,
just without the proxy wrapped around it.

Josh


On Sat, Jun 12, 2010 at 2:49 PM, Thiago H. de Paula Figueiredo
<thiag...@gmail.com> wrote:
> On Sat, 12 Jun 2010 18:20:34 -0300, Borut Bolčina <borut.bolc...@gmail.com>
> wrote:
>
>> Render queue error in SetupRender[Index:grid]: Failure reading parameter
>> 'source' of component Index:grid: $Session_1292df1e883 cannot be cast to
>> org.hibernate.classic.Session
>>
>> java.lang.ClassCastException
>> $Session_1292df1e883 cannot be cast to org.hibernate.classic.Session
>
> You're probably injecting org.hibernate.classic.Session instead of
> org.hibernate.Session (correct one).
>
> --
> Thiago H. de Paula Figueiredo
> Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and
> instructor
> Owner, Ars Machina Tecnologia da Informação Ltda.
> http://www.arsmachina.com.br
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>



-- 
--
http://www.bodylabgym.com - a private, by appointment only, one-on-one
health and fitness facility.
--
http://www.ectransition.com - Quality Electronic Cigarettes at a
reasonable price!
--
TheDailyTube.com. Sign up and get the best new videos on the internet
delivered fresh to your inbox.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to