All Questions
Tagged with lazy-initialization spring-mvc
17 questions
-1
votes
1
answer
212
views
Problem with LazyInitializationException and Correct setting ManyToOne
I have 3 object that interfacing each other like that:
@Entity
public class Room {
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
private Long id;
@Column
private String ...
0
votes
2
answers
220
views
LazyInitializationException occuring post introducing @Controller Annotation
We have a distributed web application implemented in Spring using Method Name Resolver. We are now migrating from Method Name Resolver to Spring Annotation (@Controller). Once we did that change, the ...
2
votes
1
answer
1k
views
Can't fix failed to lazily initialize a collection of role: could not initialize proxy - no Session
I get org.hibernate.LazyInitializationException when I try to access lazy fetched attributes of my classes, in the jsp forEach call and in the controller class.
I read all the previous answers and ...
0
votes
1
answer
301
views
failed to lazily initialize a collection of role, could not initialize proxy - no Session
I got the issue while lazyloading. This is working fine with eager loading.
Below is the code for applicationContext.xml
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www....
0
votes
1
answer
54
views
spring MVC LazyInitialisationException
we are working on springMVC java config app. I am facing a problem every time when i trying to view child object properties but getting lazyinitialisationexception no session error. this i am getting ...
0
votes
2
answers
1k
views
Join fetch in JPA sometimes causes LazyInitializationException
I am having this issue with JPA in my application. I have a parent entity Artist with one-to-one/many etch relations to other entities which I have all set to be lazily fetched. I fetch these entities ...
0
votes
1
answer
358
views
How to use OpenSessionInViewInterceptor?
Consider entity
public class User {
...
@OneToMany(cascade = CascadeType.ALL)
List<SocialCredential> credentialsList = new ArrayList<SocialCredential> ();
}
with DAO Implementation ...
1
vote
1
answer
2k
views
How to configure OpenEntityManagerInViewFilter Spring MVC
I want to use OpenEntityManagerInViewFilter to be able to avoid lazyinitialization loading. This is my web.xml configuration:
<context-param>
<param-name>contextConfigLocation</...
1
vote
1
answer
731
views
LazyInitializationException when using join in CrudRepository
getting org.hibernate.LazyInitializationException: could not initialize proxy - no Session
when I call findByUserEmail(String email)
The service class (where I'm calling this function) is marked as @...
1
vote
1
answer
3k
views
LazyInitializationException: could not initialize proxy - no Session in Spring and Hibernate
I'm getting this error: "org.hibernate.LazyInitializationException: could not initialize proxy - no Session" in my webapp. I use Spring and Hibernate, and I execute the queries with "sessionFactory....
1
vote
1
answer
766
views
Batch insertion with Spring MVC and Hibernate 3
I am using Spring MVC + Hibernate and try to save bulk record using "hibernate batch procession technique" but getting below exception when I am doing session.flush() and session.clear().
org....
0
votes
1
answer
2k
views
Hibernate LazyInitializationException with Spring MVC
Problem
Using Kolorbot's Spring MVC 4 Quickstart archetype I created an entity, a repository and a service class which is accessed by a controller method. In my entity I have a ManyToOne relationship ...
1
vote
1
answer
2k
views
Lazy loading initialization using hibernate 4
I'm writing my apllication using Spring MVC + Hibernate.
I have 2 entities: order and items(order items).
Order entity:
@Entity
@Table(name = "orders")
public class Order {
@Id
@GeneratedValue
...
0
votes
1
answer
858
views
Hibernate LazyInitializationException thrown when called through Restful web service
I'm having a weird problem. I have implemented a feature in the project i'm working on using JSPs. Now I have a new requirement where I have to implement the same feature as a REST service. I'm using ...
0
votes
1
answer
2k
views
Spring, Hibernate and Lazy initialize
I read many post about this problem on SO and didn't find any solution for me.
So what I have
Error
org.springframework.web.util.NestedServletException: Request processing failed; nested exception ...