Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Spring JIRA by Denis Davydkov, 1 year ago
via Spring JIRA by Denis Davydkov, 2 years ago
via Coderanch by Varun Nayudu, 1 year ago
via microsoft.com by Unknown author, 1 year ago
Session was already closed
via Google Groups by Patrick Lightbody, 2 years ago
org.hibernate.SessionException: Session was already closed	at org.hibernate.impl.SessionImpl.close(SessionImpl.java:312)	at org.hibernate.ejb.EntityManagerImpl.close(EntityManagerImpl.java:150)	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 org.springframework.orm.jpa.ExtendedEntityManagerCreator$ExtendedEntityManagerInvocationHandler.invoke(ExtendedEntityManagerCreator.java:365)	at $Proxy67.close(Unknown Source)	at org.springframework.orm.jpa.EntityManagerFactoryUtils.closeEntityManager(EntityManagerFactoryUtils.java:331)	at org.springframework.orm.jpa.support.OpenEntityManagerInViewInterceptor.afterCompletion(OpenEntityManagerInViewInterceptor.java:109)	at org.springframework.web.servlet.handler.WebRequestHandlerInterceptorAdapter.afterCompletion(WebRequestHandlerInterceptorAdapter.java:68)	at org.springframework.web.servlet.DispatcherServlet.triggerAfterCompletion(DispatcherServlet.java:1121)	at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:811)	at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:716)	at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:644)	at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:560)	at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)	at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)	at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:530)	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1216)	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:343)	at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:109)	at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83)	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355)	at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:97)	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355)	at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:100)	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355)	at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:78)	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355)	at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:54)	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355)	at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:35)	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355)	at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:188)	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355)	at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:105)	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355)	at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:79)	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355)	at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:149)	at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:237)	at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167)	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1187)	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:425)	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)	at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:494)	at org.eclipse.jetty.server.session.SessionHandler.handle(SessionHandler.java:182)	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:933)	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:362)	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:867)	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)	at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:245)	at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:126)	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:113)	at org.eclipse.jetty.server.Server.handle(Server.java:334)	at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:559)	at org.eclipse.jetty.server.HttpConnection$RequestHandler.content(HttpConnection.java:1007)	at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:747)	at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:209)	at org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:406)	at org.eclipse.jetty.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:462)	at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:436)	at java.lang.Thread.run(Thread.java:619)