jboss - Multi datacenter - org.hibernate.LazyInitializationException: could not initialize proxy - no Session -
we have our db2 database setup in 2 data centers in separate geographical locations. each data center has different instance of database.
our app setup in both data centers, invokes vip on global traffic manager(gtm), routes database nearest it. ideally, when app in data center 1 calls db vip, connects database within data center.
last night, had (network) issue @ datacenter 1 database vip disabled data center 1 vip, ensured app calls database went database in data center 2.
once issue in data center 1 fixed, enabled db vip data center 1. shortly after this, started seeing below hibernate exceptions.
appreciate insight , how can fix it?
org.hibernate.lazyinitializationexception: not initialize proxy - no session @ org.hibernate.proxy.abstractlazyinitializer.initialize(abstractlazyinitializer.java:167) @ org.hibernate.proxy.abstractlazyinitializer.getimplementation(abstractlazyinitializer.java:215) @ org.hibernate.proxy.pojo.javassist.javassistlazyinitializer.invoke(javassistlazyinitializer.java:191)
Comments
Post a Comment