You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Andy Pahne <an...@googlemail.com> on 2009/01/25 00:34:05 UTC

Re: Weird bug


Hi,

this is complety unrelate to Tapestry. Go and ask the Hibernate forums 
or read Hibernate docs (API of load() and get() would be a good starter).

Cheers,
Andy




superoverdrive@gmx.de schrieb:
> The following code:
>
> public Object onActivate(int domainID) {
> 	
>  domain = (Domain)sessionManager.getSession().load(Domain.class, new Integer(domainID));
>  return this;
>
> }
>
> leads to:
>
> HTTP ERROR: 500
>
> Render queue error in BeginRender[core/ExceptionReport:renderobject_0]: could not initialize proxy - no Session
>
> RequestURI=/editdomain
>
> Powered by Jetty://
>
>
> However, if I add this line:
>
> public Object onActivate(int domainID) {
> 	
>  domain = (Domain)sessionManager.getSession().load(Domain.class, new Integer(domainID));
> System.out.println(domain.getDomainName());
>  return this;
> }
>
> The error does not occur.....
>
> My question is:
>
> 1. How do you avoid this error?
>
> 2. Why is this a Jetty error and not a Tapestry5 error message? Is this something I should report as bugreport?
>
> Thanks!
>
> Toby
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>   


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


Re: Weird bug

Posted by su...@gmx.de.
Not quite...ideally it would at least not crash completely and manage to display a Tapestry error message....

Eager fetches are not an option for me in this case...


-------- Original-Nachricht --------
> Datum: Sun, 25 Jan 2009 00:34:05 +0100
> Von: Andy Pahne <an...@googlemail.com>
> An: Tapestry users <us...@tapestry.apache.org>
> Betreff: Re: Weird bug

> 
> 
> Hi,
> 
> this is complety unrelate to Tapestry. Go and ask the Hibernate forums 
> or read Hibernate docs (API of load() and get() would be a good starter).
> 
> Cheers,
> Andy
> 
> 
> 
> 
> superoverdrive@gmx.de schrieb:
> > The following code:
> >
> > public Object onActivate(int domainID) {
> > 	
> >  domain = (Domain)sessionManager.getSession().load(Domain.class, new
> Integer(domainID));
> >  return this;
> >
> > }
> >
> > leads to:
> >
> > HTTP ERROR: 500
> >
> > Render queue error in BeginRender[core/ExceptionReport:renderobject_0]:
> could not initialize proxy - no Session
> >
> > RequestURI=/editdomain
> >
> > Powered by Jetty://
> >
> >
> > However, if I add this line:
> >
> > public Object onActivate(int domainID) {
> > 	
> >  domain = (Domain)sessionManager.getSession().load(Domain.class, new
> Integer(domainID));
> > System.out.println(domain.getDomainName());
> >  return this;
> > }
> >
> > The error does not occur.....
> >
> > My question is:
> >
> > 1. How do you avoid this error?
> >
> > 2. Why is this a Jetty error and not a Tapestry5 error message? Is this
> something I should report as bugreport?
> >
> > Thanks!
> >
> > Toby
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail: users-help@tapestry.apache.org
> >
> >   
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org

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