Hi,
I have configured many-to-one relations using lazy="no-proxy" and enhanced the class files using cglib. I have done this using hibernate 3.2.4 sp1. But I was finding some connection related issues using this. connections was not closed. I have found this is a bug in 3.2.4sp1. So I moved to Hibernate 3.3.1 GA. That connection close problem solved with this latest version. But Now I am facing the following problem.
Scenario1: Enhanced the classes using 3.2.4 sp1, and application runs on 3.3.1 GA, then there is no problem.
Scenario2: Enhanced the classes using 3.3.1GA, and application runs on 3.3.1 GA, then following problem occurs.
INFO : 08-May-2009 18:39:19,833: org.hibernate.type.LongType.nullSafeGet(): could not read column value from result set: created9_167_; You can't operate on a closed ResultSet!!! INFO : 08-May-2009 18:39:19,833: org.hibernate.type.LongType.nullSafeGet(): could not read column value from result set: created9_167_; You can't operate on a closed ResultSet!!! INFO : 08-May-2009 18:39:19,833: org.hibernate.type.LongType.nullSafeGet(): could not read column value from result set: created9_167_; You can't operate on a closed ResultSet!!! WARN : 08-May-2009 18:39:19,848: org.hibernate.util.JDBCExceptionReporter.logExceptions(): SQL Error: 0, SQLState: null WARN : 08-May-2009 18:39:19,848: org.hibernate.util.JDBCExceptionReporter.logExceptions(): SQL Error: 0, SQLState: null ERROR: 08-May-2009 18:39:19,848: org.hibernate.util.JDBCExceptionReporter.logExceptions(): You can't operate on a closed ResultSet!!! ERROR: 08-May-2009 18:39:19,848: org.hibernate.util.JDBCExceptionReporter.logExceptions(): You can't operate on a closed ResultSet!!! INFO : 08-May-2009 18:39:19,848: sgv.acl.login.service.LoginServiceImpl.initializeLoginDetails(): Exception in Login service ERROR: 08-May-2009 18:39:19,864: sgv.acl.login.service.LoginServiceImpl.initializeLoginDetails(): could not initialize lazy properties: [sgv.acl.valueobject.AclRoleDetailsRlt#600029] org.hibernate.exception.GenericJDBCException: could not initialize lazy properties: [sgv.acl.valueobject.AclRoleDetailsRlt#600029] at org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:126) at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:114) at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:66) at org.hibernate.persister.entity.AbstractEntityPersister.initializeLazyPropertiesFromDatastore(AbstractEntityPersister.java:841) at org.hibernate.persister.entity.AbstractEntityPersister.initializeLazyProperty(AbstractEntityPersister.java:781) at org.hibernate.intercept.AbstractFieldInterceptor.intercept(AbstractFieldInterceptor.java:97) at org.hibernate.intercept.cglib.FieldInterceptorImpl.readObject(FieldInterceptorImpl.java:98) at sgv.acl.valueobject.AclRoleDetailsRlt.$cglib_read_cmnLanguageMst(AclRoleDetailsRlt.java) at sgv.acl.valueobject.AclRoleDetailsRlt.getCmnLanguageMst(AclRoleDetailsRlt.java:119) at sgv.acl.acegilogin.service.BaseLoginSeviceImpl.generateBaseLoginMap(BaseLoginSeviceImpl.java:162) at sgv.acl.login.service.LoginServiceImpl.initializeLoginDetails(LoginServiceImpl.java:77) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at sgv.core.service.ServiceImpl.executeService(ServiceImpl.java:49) at sgv.core.service.ServiceLocator.executeService(ServiceLocator.java:94) at sgv.core.service.ServiceLocator.executeService(ServiceLocator.java:237) at sgv.acl.acegilogin.service.AuthenticationEventManager.getBaseLoginDetails(AuthenticationEventManager.java:259) at sgv.acl.acegilogin.service.AuthenticationEventManager.onApplicationEvent(AuthenticationEventManager.java:57) at org.springframework.context.event.SimpleApplicationEventMulticaster$1.run(SimpleApplicationEventMulticaster.java:77) at org.springframework.core.task.SyncTaskExecutor.execute(SyncTaskExecutor.java:49) at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:75) at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:246) at org.springframework.security.providers.ProviderManager.publishEvent(ProviderManager.java:327) at org.springframework.security.providers.ProviderManager.doAuthentication(ProviderManager.java:207) at org.springframework.security.AbstractAuthenticationManager.authenticate(AbstractAuthenticationManager.java:46) at org.springframework.security.ui.webapp.AuthenticationProcessingFilter.attemptAuthentication(AuthenticationProcessingFilter.java:82) at sgv.acl.acegilogin.service.ProjectAuthenticationProcessingFilter.attemptAuthentication(ProjectAuthenticationProcessingFilter.java:42) at org.springframework.security.ui.AbstractProcessingFilter.doFilterHttp(AbstractProcessingFilter.java:258) at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53) at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390) at org.springframework.security.ui.logout.LogoutFilter.doFilterHttp(LogoutFilter.java:89) at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53) at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390) at org.springframework.security.context.HttpSessionContextIntegrationFilter.doFilterHttp(HttpSessionContextIntegrationFilter.java:235) at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53) at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390) at org.springframework.security.ui.SessionFixationProtectionFilter.doFilterHttp(SessionFixationProtectionFilter.java:67) at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53) at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390) at org.springframework.security.concurrent.ConcurrentSessionFilter.doFilterHttp(ConcurrentSessionFilter.java:99) at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53) at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390) at org.springframework.security.util.FilterChainProxy.doFilter(FilterChainProxy.java:175) at org.springframework.security.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:99) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) at java.lang.Thread.run(Thread.java:619) Caused by: java.sql.SQLException: You can't operate on a closed ResultSet!!! at com.mchange.v2.sql.SqlUtils.toSQLException(SqlUtils.java:106) at com.mchange.v2.sql.SqlUtils.toSQLException(SqlUtils.java:65) at com.mchange.v2.c3p0.impl.NewProxyResultSet.getLong(NewProxyResultSet.java:2631) at org.hibernate.type.LongType.get(LongType.java:51) at org.hibernate.type.NullableType.nullSafeGet(NullableType.java:184) at org.hibernate.type.NullableType.nullSafeGet(NullableType.java:173) at org.hibernate.type.ManyToOneType.hydrate(ManyToOneType.java:126) at org.hibernate.type.EntityType.nullSafeGet(EntityType.java:227) at org.hibernate.persister.entity.AbstractEntityPersister.initializeLazyPropertiesFromDatastore(AbstractEntityPersister.java:817) ... 54 more Caused by: java.lang.NullPointerException at com.mysql.jdbc.ResultSet.findColumn(ResultSet.java:934) at com.mysql.jdbc.ResultSet.getLong(ResultSet.java:2731) at com.mchange.v2.c3p0.impl.NewProxyResultSet.getLong(NewProxyResultSet.java:2625) ... 60 more
Is this a bug in Hibernate 3.3.1 GA ? I have also tried using javassist, but the same problem occurs.
|