org.hibernate.LazyInitializationException: could not initialize proxy - no Session in jasperserver 7.1.0

0

Sometimes Jasperserver 7.1.0 shows an error  (in the jasperserver logfile) as,

2020-01-07 08:07:30,538 ERROR LazyInitializationException,http-nio-8081-exec-8:42 - could not initialize proxy - no Session
org.hibernate.LazyInitializationException: could not initialize proxy - no Session

that error displays when I log in to the jasperserver and also when I select my custom menu item. but if that error display, I can refresh the page and login and menu is starts working as normal. also there is no specific time for that error. sometimes it displays suddenly.

below question also has my problem. but for a different jasperserver version. I  tried below solution also from there.

Click here to see related question already asked by someone.

I added new property to applicationContext.xml  file  under  <bean id="permissionsPrefetcher" class="com.jaspersoft.jasperserver.api.metadata.user.service.impl.PermissionsPrefetcher">

as <property name="minimumPrefetch" value="30"/> and restarted jasperserver.

(Before I used jasperserver 6.4.2 version. but this error not appeared in that.)

 

 

 

prabuddha.kulatunga's picture
Joined: Aug 8 2018 - 10:03pm
Last seen: 4 weeks 7 hours ago

0 Answers:

No answers yet
Feedback
randomness