Hy everybody,
I have a problem with my application. I'm getting this error, but I appear randomly and in different point of my code. Many times it works on that line of code, sometime time not... I'm trying to fix it for some days ago...but I didn't have any chance to find where is the problem. Maybe there is a problem of configuration... for persistence.xml. ..I realy can't image where is it. I'm using jboss 7, ejb 3.0, hibernate 3(JPA) and spring. Here is some lines of my code :
OrganizationStructureBean.java is a my Ebj bean.
{ @EJB EntityPositionDAOLocal entityPositionDAO;
entityPositions = new HashSet<EntityPosition>( entityPositionDAO.getAllActiveByEntityBean(idEntity)); if (CollectionUtils.isNotEmpty(entityPositions)) { // check if it has positon and build second array of info for (EntityPosition epObj : entityPositions) {
EntityBean entityBean = epObj.getEntityBean();
Position position = epObj.getPosition(); String posCode = ""; String posLangName = ""; if (position != null) { posCode = position.getCode(); ...}
} Please, help me.
11:51:45,708 WARN [org.hibernate.engine.jdbc.spi.SqlExceptionHelper] (http--127.0.0.1-8080-2) SQL Error: 0, SQLState: null 11:51:45,709 ERROR [org.hibernate.engine.jdbc.spi.SqlExceptionHelper] (http--127.0.0.1-8080-2) The statement is closed. 11:51:45,709 INFO [org.hibernate.event.internal.DefaultLoadEventListener] (http--127.0.0.1-8080-2) HHH00327:Error performing load command : org.hibernate.exception.GenericJDBCException: The statement is closed. 11:51:45,711 ERROR [stderr] (http--127.0.0.1-8080-2) javax.ejb.EJBException: org.hibernate.exception.GenericJDBCException: The statement is closed.
11:51:45,711 ERROR [stderr] (http--127.0.0.1-8080-2) at org.jboss.as.ejb3.tx.CMTTxInterceptor.handleExceptionInOurTx(CMTTxInterceptor.java:160)
11:51:45,711 ERROR [stderr] (http--127.0.0.1-8080-2) at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:213)
11:51:45,711 ERROR [stderr] (http--127.0.0.1-8080-2) at org.jboss.as.ejb3.tx.CMTTxInterceptor.required(CMTTxInterceptor.java:284)
11:51:45,711 ERROR [stderr] (http--127.0.0.1-8080-2) at org.jboss.as.ejb3.tx.CMTTxInterceptor.processInvocation(CMTTxInterceptor.java:182)
11:51:45,711 ERROR [stderr] (http--127.0.0.1-8080-2) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:287)
11:51:45,711 ERROR [stderr] (http--127.0.0.1-8080-2) at org.jboss.as.ejb3.component.session.SessionInvocationContextInterceptor.processInvocation(SessionInvocationContextInterceptor.java:71)
11:51:45,711 ERROR [stderr] (http--127.0.0.1-8080-2) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:287)
11:51:45,711 ERROR [stderr] (http--127.0.0.1-8080-2) at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)
11:51:45,711 ERROR [stderr] (http--127.0.0.1-8080-2) at org.jboss.as.ee.component.ViewDescription$1.processInvocation(ViewDescription.java:146)
11:51:45,711 ERROR [stderr] (http--127.0.0.1-8080-2) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:287)
11:51:45,712 ERROR [stderr] (http--127.0.0.1-8080-2) at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)
11:51:45,712 ERROR [stderr] (http--127.0.0.1-8080-2) at org.jboss.as.ee.component.ProxyInvocationHandler.invoke(ProxyInvocationHandler.java:76)
11:51:45,712 ERROR [stderr] (http--127.0.0.1-8080-2) at ro.edata.core.bean.OrganizationStructureBeanLocal$$$view33.getChildrenForEntity(Unknown Source)
11:51:45,712 ERROR [stderr] (http--127.0.0.1-8080-2) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
11:51:45,712 ERROR [stderr] (http--127.0.0.1-8080-2) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
11:51:45,712 ERROR [stderr] (http--127.0.0.1-8080-2) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
11:51:45,712 ERROR [stderr] (http--127.0.0.1-8080-2) at java.lang.reflect.Method.invoke(Method.java:597)
11:51:45,712 ERROR [stderr] (http--127.0.0.1-8080-2) at org.springframework.ejb.access.LocalSlsbInvokerInterceptor.invokeInContext(LocalSlsbInvokerInterceptor.java:71)
11:51:45,712 ERROR [stderr] (http--127.0.0.1-8080-2) at org.springframework.ejb.access.AbstractSlsbInvokerInterceptor.invoke(AbstractSlsbInvokerInterceptor.java:189)
11:51:45,712 ERROR [stderr] (http--127.0.0.1-8080-2) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
11:51:45,712 ERROR [stderr] (http--127.0.0.1-8080-2) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
11:51:45,712 ERROR [stderr] (http--127.0.0.1-8080-2) at $Proxy44.getChildrenForEntity(Unknown Source)
11:51:45,712 ERROR [stderr] (http--127.0.0.1-8080-2) at ro.edata.core.service.OrganizationStructureService.getChildrenForEntity(OrganizationStructureService.java:48)
11:51:45,712 ERROR [stderr] (http--127.0.0.1-8080-2) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
11:51:45,712 ERROR [stderr] (http--127.0.0.1-8080-2) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
11:51:45,712 ERROR [stderr] (http--127.0.0.1-8080-2) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
11:51:45,713 ERROR [stderr] (http--127.0.0.1-8080-2) at java.lang.reflect.Method.invoke(Method.java:597)
11:51:45,713 ERROR [stderr] (http--127.0.0.1-8080-2) at ro.edata.core.servlet.BaseServlet.executeMethod(BaseServlet.java:312)
11:51:45,713 ERROR [stderr] (http--127.0.0.1-8080-2) at ro.edata.core.servlet.SecuredServlet.executeMethod(SecuredServlet.java:50)
11:51:45,713 ERROR [stderr] (http--127.0.0.1-8080-2) at ro.edata.core.servlet.SecuredServlet.dispatchMethod(SecuredServlet.java:42)
11:51:45,713 ERROR [stderr] (http--127.0.0.1-8080-2) at ro.edata.core.servlet.BaseServlet.processRequest(BaseServlet.java:80)
11:51:45,713 ERROR [stderr] (http--127.0.0.1-8080-2) at ro.edata.core.servlet.BaseServlet.doPost(BaseServlet.java:376)
11:51:45,713 ERROR [stderr] (http--127.0.0.1-8080-2) at javax.servlet.http.HttpServlet.service(HttpServlet.java:754)
11:51:45,713 ERROR [stderr] (http--127.0.0.1-8080-2) at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
11:51:45,713 ERROR [stderr] (http--127.0.0.1-8080-2) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329)
11:51:45,713 ERROR [stderr] (http--127.0.0.1-8080-2) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
11:51:45,713 ERROR [stderr] (http--127.0.0.1-8080-2) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)
11:51:45,713 ERROR [stderr] (http--127.0.0.1-8080-2) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)
11:51:45,713 ERROR [stderr] (http--127.0.0.1-8080-2) at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:139)
11:51:45,713 ERROR [stderr] (http--127.0.0.1-8080-2) at org.jboss.as.web.NamingValve.invoke(NamingValve.java:57)
11:51:45,713 ERROR [stderr] (http--127.0.0.1-8080-2) at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:49)
11:51:45,713 ERROR [stderr] (http--127.0.0.1-8080-2) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:154)
11:51:45,714 ERROR [stderr] (http--127.0.0.1-8080-2) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
11:51:45,714 ERROR [stderr] (http--127.0.0.1-8080-2) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
11:51:45,714 ERROR [stderr] (http--127.0.0.1-8080-2) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362)
11:51:45,714 ERROR [stderr] (http--127.0.0.1-8080-2) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877)
11:51:45,714 ERROR [stderr] (http--127.0.0.1-8080-2) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:667)
11:51:45,714 ERROR [stderr] (http--127.0.0.1-8080-2) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:952)
11:51:45,714 ERROR [stderr] (http--127.0.0.1-8080-2) at java.lang.Thread.run(Thread.java:662)
11:51:45,714 ERROR [stderr] (http--127.0.0.1-8080-2) Caused by: org.hibernate.exception.GenericJDBCException: The statement is closed.
11:51:45,714 ERROR [stderr] (http--127.0.0.1-8080-2) at org.hibernate.exception.internal.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:148)
11:51:45,714 ERROR [stderr] (http--127.0.0.1-8080-2) at org.hibernate.exception.internal.SQLStateConverter.convert(SQLStateConverter.java:136)
11:51:45,714 ERROR [stderr] (http--127.0.0.1-8080-2) at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:124)
11:51:45,714 ERROR [stderr] (http--127.0.0.1-8080-2) at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:109)
11:51:45,714 ERROR [stderr] (http--127.0.0.1-8080-2) at org.hibernate.engine.jdbc.internal.proxy.AbstractStatementProxyHandler.continueInvocation(AbstractStatementProxyHandler.java:131)
11:51:45,715 ERROR [stderr] (http--127.0.0.1-8080-2) at org.hibernate.engine.jdbc.internal.proxy.AbstractProxyHandler.invoke(AbstractProxyHandler.java:80)
11:51:45,715 ERROR [stderr] (http--127.0.0.1-8080-2) at $Proxy38.setLong(Unknown Source)
11:51:45,715 ERROR [stderr] (http--127.0.0.1-8080-2) at org.hibernate.type.descriptor.sql.BigIntTypeDescriptor$1.doBind(BigIntTypeDescriptor.java:57)
11:51:45,715 ERROR [stderr] (http--127.0.0.1-8080-2) at org.hibernate.type.descriptor.sql.BasicBinder.bind(BasicBinder.java:82)
11:51:45,715 ERROR [stderr] (http--127.0.0.1-8080-2) at org.hibernate.type.AbstractStandardBasicType.nullSafeSet(AbstractStandardBasicType.java:305)
11:51:45,715 ERROR [stderr] (http--127.0.0.1-8080-2) at org.hibernate.type.AbstractStandardBasicType.nullSafeSet(AbstractStandardBasicType.java:300)
11:51:45,715 ERROR [stderr] (http--127.0.0.1-8080-2) at org.hibernate.loader.Loader.bindPositionalParameters(Loader.java:1909)
11:51:45,715 ERROR [stderr] (http--127.0.0.1-8080-2) at org.hibernate.loader.Loader.bindParameterValues(Loader.java:1880)
11:51:45,715 ERROR [stderr] (http--127.0.0.1-8080-2) at org.hibernate.loader.Loader.prepareQueryStatement(Loader.java:1758)
11:51:45,715 ERROR [stderr] (http--127.0.0.1-8080-2) at org.hibernate.loader.Loader.doQuery(Loader.java:828)
11:51:45,715 ERROR [stderr] (http--127.0.0.1-8080-2) at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:289)
11:51:45,715 ERROR [stderr] (http--127.0.0.1-8080-2) at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:259)
11:51:45,715 ERROR [stderr] (http--127.0.0.1-8080-2) at org.hibernate.loader.Loader.loadEntity(Loader.java:2058)
11:51:45,715 ERROR [stderr] (http--127.0.0.1-8080-2) at org.hibernate.loader.entity.AbstractEntityLoader.load(AbstractEntityLoader.java:81)
11:51:45,715 ERROR [stderr] (http--127.0.0.1-8080-2) at org.hibernate.loader.entity.AbstractEntityLoader.load(AbstractEntityLoader.java:71)
11:51:45,715 ERROR [stderr] (http--127.0.0.1-8080-2) at org.hibernate.persister.entity.AbstractEntityPersister.load(AbstractEntityPersister.java:3681)
11:51:45,715 ERROR [stderr] (http--127.0.0.1-8080-2) at org.hibernate.event.internal.DefaultLoadEventListener.loadFromDatasource(DefaultLoadEventListener.java:446)
11:51:45,716 ERROR [stderr] (http--127.0.0.1-8080-2) at org.hibernate.event.internal.DefaultLoadEventListener.doLoad(DefaultLoadEventListener.java:427)
11:51:45,716 ERROR [stderr] (http--127.0.0.1-8080-2) at org.hibernate.event.internal.DefaultLoadEventListener.load(DefaultLoadEventListener.java:204)
11:51:45,716 ERROR [stderr] (http--127.0.0.1-8080-2) at org.hibernate.event.internal.DefaultLoadEventListener.onLoad(DefaultLoadEventListener.java:143)
11:51:45,716 ERROR [stderr] (http--127.0.0.1-8080-2) at org.hibernate.internal.SessionImpl.fireLoad(SessionImpl.java:958)
11:51:45,716 ERROR [stderr] (http--127.0.0.1-8080-2) at org.hibernate.internal.SessionImpl.immediateLoad(SessionImpl.java:895)
11:51:45,716 ERROR [stderr] (http--127.0.0.1-8080-2) at org.hibernate.proxy.AbstractLazyInitializer.initialize(AbstractLazyInitializer.java:158)
11:51:45,716 ERROR [stderr] (http--127.0.0.1-8080-2) at org.hibernate.proxy.AbstractLazyInitializer.getImplementation(AbstractLazyInitializer.java:195)
11:51:45,716 ERROR [stderr] (http--127.0.0.1-8080-2) at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:180)
11:51:45,716 ERROR [stderr] (http--127.0.0.1-8080-2) at ro.edata.core.model.nom.Position_$$_javassist_70.getCode(Position_$$_javassist_70.java)
11:51:45,716 ERROR [stderr] (http--127.0.0.1-8080-2) at ro.edata.core.bean.OrganizationStructureBean.getChildrenForEntity(OrganizationStructureBean.java:263)
11:51:45,716 ERROR [stderr] (http--127.0.0.1-8080-2) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
11:51:45,716 ERROR [stderr] (http--127.0.0.1-8080-2) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
11:51:45,716 ERROR [stderr] (http--127.0.0.1-8080-2) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
11:51:45,716 ERROR [stderr] (http--127.0.0.1-8080-2) at java.lang.reflect.Method.invoke(Method.java:597)
11:51:45,716 ERROR [stderr] (http--127.0.0.1-8080-2) at org.jboss.as.ee.component.ManagedReferenceMethodInterceptor.processInvocation(ManagedReferenceMethodInterceptor.java:52)
11:51:45,716 ERROR [stderr] (http--127.0.0.1-8080-2) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:287)
11:51:45,716 ERROR [stderr] (http--127.0.0.1-8080-2) at org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53)
11:51:45,717 ERROR [stderr] (http--127.0.0.1-8080-2) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:287)
11:51:45,717 ERROR [stderr] (http--127.0.0.1-8080-2) at org.jboss.as.jpa.interceptor.SBInvocationInterceptor.processInvocation(SBInvocationInterceptor.java:45)
11:51:45,717 ERROR [stderr] (http--127.0.0.1-8080-2) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:287)
11:51:45,717 ERROR [stderr] (http--127.0.0.1-8080-2) at org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:44)
11:51:45,717 ERROR [stderr] (http--127.0.0.1-8080-2) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:287)
11:51:45,717 ERROR [stderr] (http--127.0.0.1-8080-2) at org.jboss.as.ee.component.TCCLInterceptor.processInvocation(TCCLInterceptor.java:45)
11:51:45,717 ERROR [stderr] (http--127.0.0.1-8080-2) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:287)
11:51:45,717 ERROR [stderr] (http--127.0.0.1-8080-2) at org.jboss.invocation.InitialInterceptor.processInvocation(InitialInterceptor.java:21)
11:51:45,717 ERROR [stderr] (http--127.0.0.1-8080-2) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:287)
11:51:45,717 ERROR [stderr] (http--127.0.0.1-8080-2) at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)
11:51:45,717 ERROR [stderr] (http--127.0.0.1-8080-2) at org.jboss.as.ee.component.ViewDescription$ComponentDispatcherInterceptor.processInvocation(ViewDescription.java:202)
11:51:45,717 ERROR [stderr] (http--127.0.0.1-8080-2) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:287)
11:51:45,717 ERROR [stderr] (http--127.0.0.1-8080-2) at org.jboss.as.ejb3.component.pool.PooledInstanceInterceptor.processInvocation(PooledInstanceInterceptor.java:50)
11:51:45,717 ERROR [stderr] (http--127.0.0.1-8080-2) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:287)
11:51:45,717 ERROR [stderr] (http--127.0.0.1-8080-2) at org.jboss.as.ejb3.component.session.SessionInvocationContextInterceptor$CustomSessionInvocationContext.proceed(SessionInvocationContextInterceptor.java:126)
11:51:45,717 ERROR [stderr] (http--127.0.0.1-8080-2) at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:211)
11:51:45,718 ERROR [stderr] (http--127.0.0.1-8080-2) ... 47 more
11:51:45,718 ERROR [stderr] (http--127.0.0.1-8080-2) Caused by: com.microsoft.sqlserver.jdbc.SQLServerException: The statement is closed.
11:51:45,718 ERROR [stderr] (http--127.0.0.1-8080-2) at com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDriverError(SQLServerException.java:171)
11:51:45,718 ERROR [stderr] (http--127.0.0.1-8080-2) at com.microsoft.sqlserver.jdbc.SQLServerStatement.checkClosed(SQLServerStatement.java:958)
11:51:45,718 ERROR [stderr] (http--127.0.0.1-8080-2) at com.microsoft.sqlserver.jdbc.SQLServerPreparedStatement.setLong(SQLServerPreparedStatement.java:878)
11:51:45,718 ERROR [stderr] (http--127.0.0.1-8080-2) at org.jboss.jca.adapters.jdbc.CachedPreparedStatement.setLong(CachedPreparedStatement.java:163)
11:51:45,718 ERROR [stderr] (http--127.0.0.1-8080-2) at org.jboss.jca.adapters.jdbc.WrappedPreparedStatement.setLong(WrappedPreparedStatement.java:229)
11:51:45,718 ERROR [stderr] (http--127.0.0.1-8080-2) at sun.reflect.GeneratedMethodAccessor30.invoke(Unknown Source)
11:51:45,718 ERROR [stderr] (http--127.0.0.1-8080-2) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
11:51:45,718 ERROR [stderr] (http--127.0.0.1-8080-2) at java.lang.reflect.Method.invoke(Method.java:597)
11:51:45,718 ERROR [stderr] (http--127.0.0.1-8080-2) at org.hibernate.engine.jdbc.internal.proxy.AbstractStatementProxyHandler.continueInvocation(AbstractStatementProxyHandler.java:124)
11:51:45,718 ERROR [stderr] (http--127.0.0.1-8080-2) ... 97 more
|