← Back to team overview

dhis2-users team mailing list archive

dhis 230 error: org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role:

 


hi,all,


 when I login from an app,got error:


* WARN  2018-10-24 17:40:29,394 Resolved [org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: o
rg.hisp.dhis.user.UserCredentials.userAuthorityGroups, could not initialize proxy - no Session] (AbstractHandlerExceptionResolver.java [http-nio-8050-exec-81])
org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: org.hisp.dhis.user.UserCredentials.userAuthorityGroups, could not initialize proxy - no Session
        at org.hibernate.collection.internal.AbstractPersistentCollection.throwLazyInitializationException(AbstractPersistentCollection.java:582)
        at org.hibernate.collection.internal.AbstractPersistentCollection.withTemporarySessionIfNeeded(AbstractPersistentCollection.java:201)
        at org.hibernate.collection.internal.AbstractPersistentCollection.initialize(AbstractPersistentCollection.java:561)
        at org.hibernate.collection.internal.AbstractPersistentCollection.read(AbstractPersistentCollection.java:132)
        at org.hibernate.collection.internal.PersistentSet.iterator(PersistentSet.java:163)
        at org.hisp.dhis.user.UserCredentials.getAllAuthorities(UserCredentials.java:204)
        at org.hisp.dhis.user.UserCredentials.getAuthorities(UserCredentials.java:782)
        at org.hisp.dhis.user.DefaultCurrentUserService.getCurrentUserInfo(DefaultCurrentUserService.java:117)


how?


Thanks.
--

此致

   林晓东

莫愁前路无知己,天下谁人不识君。