Jump to content
Changes to the Jaspersoft community edition download ×

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


prabuddha.kulatunga

Recommended Posts

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.)

 

 

 

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...