Re: [appfuse-user] LazyInitializationException again

2007-11-11 Thread Matt Raible
I've seen StackOverflow errors in the past when I've had collections in toString, equals or hashCode methods. You might want to remove any collections from these methods. Matt On Nov 11, 2007 5:18 AM, <[EMAIL PROTECTED]> wrote: > On 10/20/07, Daniel Kibler <[EMAIL PROTECTED]> wrote: > > > > OK.

Re: [appfuse-user] LazyInitializationException again

2007-11-11 Thread ernasm
On 10/20/07, Daniel Kibler <[EMAIL PROTECTED]> wrote: > > OK. I found that there are two entries in web.xml for the lazyLoadingFilter. > After uncommenting the second, the lazy loading is working. > Matt, After uncommenting lazyLoadingFilter in web.xml, my Web service hit another error as below.

Re: [appfuse-user] LazyInitializationException again

2007-11-09 Thread thufail
Matt, Thanks, to guide me so far. Matt Raible-3 wrote: > > I don't know - if you're not using AppFuse it's very difficult for me > to suggest solutions. > > Sorry, > > Matt > > On Nov 9, 2007, at 11:10 PM, thufail wrote: > >> >> Hi, >> >> Matt, the same error of Lazy exis

Re: [appfuse-user] LazyInitializationException again

2007-11-09 Thread Matt Raible
I don't know - if you're not using AppFuse it's very difficult for me to suggest solutions. Sorry, Matt On Nov 9, 2007, at 11:10 PM, thufail wrote: Hi, Matt, the same error of Lazy exist, I dont know what to do please suggest some thing. Matt Raible-3 wrote: jpaFil

Re: [appfuse-user] LazyInitializationException again

2007-11-09 Thread thufail
Hi, Matt, the same error of Lazy exist, I dont know what to do please suggest some thing. Matt Raible-3 wrote: > > > jpaFilter > /* > REQUEST > FORWARD > > > On Nov 9, 2007, at 10:22 PM, thufail wrote: > >> >> Hi, >> I am not using Ap

Re: [appfuse-user] LazyInitializationException again

2007-11-09 Thread Matt Raible
jpaFilter /* REQUEST FORWARD On Nov 9, 2007, at 10:22 PM, thufail wrote: Hi, I am not using AppFuse. I am using JSF Facelets. .. has to be added in the filter as init- param or where we have to add it. If i add it shows error. mraible wrote:

Re: [appfuse-user] LazyInitializationException again

2007-11-09 Thread thufail
Hi, I am not using AppFuse. I am using JSF Facelets. .. has to be added in the filter as init-param or where we have to add it. If i add it shows error. mraible wrote: > > Are you using AppFuse? If so, what version? The > OpenEntityManagerInViewFilter should solve this issue for JPA. You m

Re: [appfuse-user] LazyInitializationException again

2007-11-09 Thread Matt Raible
Are you using AppFuse? If so, what version? The OpenEntityManagerInViewFilter should solve this issue for JPA. You may have to add FORWARD (and REQUEST) if you're seeing this issue on a forward. Matt On Nov 9, 2007 9:29 PM, thufail <[EMAIL PROTECTED]> wrote: > > Hi Matt, > > Thanks for

Re: [appfuse-user] LazyInitializationException again

2007-11-09 Thread thufail
Hi Matt, Thanks for your reply. The problem i am facing is using JPA. In my applicationContext.xml, i wont specify anythig like sessionFactory(datasource, HibernateTransactionManager et.,) which is specified in Hibernate, instead i use entityManagerFactory and jpa based transactionManag

Re: [appfuse-user] LazyInitializationException again

2007-11-09 Thread Matt Raible
Try changing your url-pattern to /* Matt On 11/9/07, thufail <[EMAIL PROTECTED]> wrote: > > Hi, > > I have a problem with LazyInitializationException. > > I am working with JSF+ Spring + JPA + Hibernate. I am using Web Service > also. > > This problem occurs when i am trying to access the List f

Re: [appfuse-user] LazyInitializationException again

2007-11-09 Thread thufail
Hi, I have a problem with LazyInitializationException. I am working with JSF+ Spring + JPA + Hibernate. I am using Web Service also. This problem occurs when i am trying to access the List from the service to the Command class which is used by JSF. I iterated and printed the list of objects in

Re: [appfuse-user] LazyInitializationException again

2007-10-20 Thread Daniel Kibler
OK. I found that there are two entries in web.xml for the lazyLoadingFilter. After uncommenting the second, the lazy loading is working. Thanks Dan Did you uncomment the filter-mapping in your web.xml? Matt -- View this message in context: http://www.nabble.com/LazyInitializationException-

Re: [appfuse-user] LazyInitializationException again

2007-10-19 Thread Daniel Kibler
Is there another filter to uncomment besides the lazyLoadingFilter? mraible wrote: > > Did you uncomment the filter-mapping in your web.xml? > > Matt > > On 10/19/07, Daniel Kibler <[EMAIL PROTECTED]> wrote: >> >> Appfuse2 + struts2 + hibernate >> >> I'm trying to display a list of related ob

Re: [appfuse-user] LazyInitializationException again

2007-10-19 Thread Matt Raible
Did you uncomment the filter-mapping in your web.xml? Matt On 10/19/07, Daniel Kibler <[EMAIL PROTECTED]> wrote: > > Appfuse2 + struts2 + hibernate > > I'm trying to display a list of related objects for the first time and > receiving the dreaded LazyInitializationException. > > org.hibernate.Laz

[appfuse-user] LazyInitializationException again

2007-10-19 Thread Daniel Kibler
Appfuse2 + struts2 + hibernate I'm trying to display a list of related objects for the first time and receiving the dreaded LazyInitializationException. org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: com.getrolling.cis.model.Region.tours, no session