org.hibernate.LazyInitializationException

failed to lazily initialize a collection of role: com.vmware.bdd.entity.VcResourcePoolEntity.hadoopNodes, no session or session was closed

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web714

  • via SpringSource Issue Tracker by Emma Lin, 1 year ago
    failed to lazily initialize a collection of role: com.vmware.bdd.entity.VcResourcePoolEntity.hadoopNodes, no session or session was closed
  • via SpringSource Issue Tracker by Emma Lin, 1 year ago
    failed to lazily initialize a collection of role: com.vmware.bdd.entity.VcResourcePoolEntity.hadoopNodes, no session or session was closed
  • failed to lazily initialize a collection of role: SlatwallProduct.skus, no session or session was closed
  • Stack trace

    • org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: com.vmware.bdd.entity.VcResourcePoolEntity.hadoopNodes, no session or session was closed at org.hibernate.collection.AbstractPersistentCollection.throwLazyInitializationException(AbstractPersistentCollection.java:383) at org.hibernate.collection.AbstractPersistentCollection.throwLazyInitializationExceptionIfNotConnected(AbstractPersistentCollection.java:375) at org.hibernate.collection.AbstractPersistentCollection.readSize(AbstractPersistentCollection.java:122) at org.hibernate.collection.PersistentSet.isEmpty(PersistentSet.java:169) at com.vmware.bdd.entity.VcResourcePoolEntity.toRest(VcResourcePoolEntity.java:110) at com.vmware.bdd.service.resmgmt.impl.ResourcePoolService.getAllResourcePoolForRest(ResourcePoolService.java:219) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.lang.reflect.Method.invoke(Method.java:597) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:318) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150) at org.springframework.aop.aspectj.AspectJAfterThrowingAdvice.invoke(AspectJAfterThrowingAdvice.java:55) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:161) at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:90) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) at com.vmware.bdd.manager.TestClusteringJobs.testResourcePoolList(TestClusteringJobs.java:381) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.lang.reflect.Method.invoke(Method.java:597)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Once, 11 months ago
    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 2 years ago
    Unknown user
    Once, 4 months ago
    2 times, 4 months ago
    9 more bugmates