Error querying database. Cause: org.apache.ibatis.executor.ExecutorException: Executor was closed.
How to Solve SSM Error: Error querying database Cause: org.apache.ibatis.executor. ExecutorException: Executor was closed.
Reason for error reporting
The method of querying Dao layer in impl of service layer is written in return, and sqlSession is closed on it
Solution:
Query the data before closing the resource
Read More:
- [Solved] org.apache.ibatis.executor.ExecutorException: No constructor found in void matching [java.lang.String]
- Code case of XXL job executor
- [Solved] Cause: org.apache.ibatis.builder.BuilderException: Error parsing SQL Mapper Configuration
- Mybatis Error: Cause: org.apache.ibatis.builder.BuilderException: Error creating document instance.
- [Solved] Error parsing SQL Mapper Configuration. Cause: org.apache.ibatis.builder.BuilderException
- [Solved] org.apache.ibatis.exceptions.PersistenceException: ### Error building SqlSession…
- [Solved] mybatis Error: Cause: org.apache.ibatis.builder.BuilderException: Error creating document instance.
- [Solved] nested exception is org.apache.ibatis.builder.BuilderException: Error invoking SqlProvider method
- Mybatis query error: Exception in thread “main” org.apache.ibatis.exceptions.PersistenceException…
- [Solved] Mybatis Error: Cause: org.apache.ibatis.builder.BuilderException: Error creating document instance.
- [Solved] Mybatis add dependencies Error: org.apache.ibatis.builder.BuilderException: Error parsing SQL Mapper Configuration.
- The number of control threads and concurrency number of concurrent executor of Java starting gun
- [Solved] mybatis Error querying database. Cause: java.sql.SQLException: The server time zone value
- Error querying database. Cause: java.sql.SQLSyntaxErrorException: Expression #2 of SELECT list is no
- [Solved] org.apache.maven.archiver.MavenArchiver.getManifest(org.apache.maven.project.MavenProject…
- Error querying database.Cause: java.sql.SQLException: Error setting driver on UnpooledDataSource.
- [Solved] SSM startup error: ClassNotFoundException: java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
- [Solved] JSP tag forwarding forword error: org.apache.jasper.JasperException
- [Solved] org.apache.flink.client.program.ProgramInvocationException: The main method caused an error
- [Solved] Java.lang.ClassNotFoundException: org.apache.commons.fileupload.FileItemFactory