You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
select count(*) as totalCount, sum(topic_fraction) as totalScore
from relate_test_topic rtt
left join relate_topicset_test rtt2 on rtt.test_id = rtt2.test_id
where rtt2.topicset_id = #{topicsetId}
group by rtt.test_id
SQL2:
select topic_typeid,
topic_id,
CONCAT(topic_typeid, '-', relate_test_topic.topic_number) as labels,
topic_title as topicName,
topic_fraction
from relate_test_topic
left join relate_topicset_test rtt on relate_test_topic.test_id = rtt.test_id
where rtt.topicset_id = #{topicsetId}
and topic_typeid in (6, 7)
order by topic_typeid, topic_number
SQL3:
select ANY_VALUE(tp.test_name) as test_name,
rtt.topic_typeid,
ANY_VALUE(tt.type_description) as type_description,
count(rtt.topic_id) as topic_count,
sum(rtt.topic_fraction) as topic_fraction
from relate_test_topic rtt
left join relate_topicset_test rttt on rttt.test_id = rtt.test_id
left join test_paper tp on rtt.test_id = tp.test_id
left join topic_type tt on rtt.topic_typeid = tt.topic_typeid
where rttt.topicset_id = #{topicsetId}
group by rtt.topic_typeid
Error querying database. Cause: java.sql.SQLException: Operation not allowed after ResultSet closed
The error may exist in file [/home/ojhome/tomcat9/webapps/query/WEB-INF/classes/mapper/SubmitSubjectMapper.xml]
The error may involve defaultParameterMap
The error occurred while setting parameters
SQL: SELECT rtu.usergroup_id FROM relate_usergroup_user ruu JOIN relate_topicset_usergroup rtu ON rtu.usergroup_id = ruu.usergroup_id WHERE ruu.account_id = ? AND rtu.topicset_id = ? limit 1
Cause: java.sql.SQLException: Operation not allowed after ResultSet closed
; Operation not allowed after ResultSet closed; nested exception is java.sql.SQLException: Operation not allowed after ResultSet closed
at org.springframework.jdbc.support.SQLStateSQLExceptionTranslator.doTranslate(SQLStateSQLExceptionTranslator.java:110)
at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:70)
at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:79)
at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:79)
at org.mybatis.spring.MyBatisExceptionTranslator.translateExceptionIfPossible(MyBatisExceptionTranslator.java:92)
at org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:439)
at com.sun.proxy.$Proxy77.selectOne(Unknown Source)
at org.mybatis.spring.SqlSessionTemplate.selectOne(SqlSessionTemplate.java:160)
at com.baomidou.mybatisplus.core.override.MybatisMapperMethod.execute(MybatisMapperMethod.java:89)
at com.baomidou.mybatisplus.core.override.MybatisMapperProxy$PlainMethodInvoker.invoke(MybatisMapperProxy.java:152)
at com.baomidou.mybatisplus.core.override.MybatisMapperProxy.invoke(MybatisMapperProxy.java:89)
at com.sun.proxy.$Proxy82.getUsergroupId(Unknown Source)
The text was updated successfully, but these errors were encountered:
Database Type
MySQL
Database Version
MySQL 5.7
Druid Version
1.2.20
JDK Version
OpenJDK 8
Error SQL
Testcase Code
我的配置:
Stacktrace Info
No response
Error Info
2024-12-24 11:24:44.859 ERROR 1994 --- [nio-8080-exec-8] c.j.o.q.handle.GlobalExceptionHandler : 未知异常!
org.springframework.dao.TransientDataAccessResourceException:
Error querying database. Cause: java.sql.SQLException: Operation not allowed after ResultSet closed
The error may exist in file [/home/ojhome/tomcat9/webapps/query/WEB-INF/classes/mapper/SubmitSubjectMapper.xml]
The error may involve defaultParameterMap
The error occurred while setting parameters
SQL: SELECT rtu.usergroup_id FROM relate_usergroup_user ruu JOIN relate_topicset_usergroup rtu ON rtu.usergroup_id = ruu.usergroup_id WHERE ruu.account_id = ? AND rtu.topicset_id = ? limit 1
Cause: java.sql.SQLException: Operation not allowed after ResultSet closed
; Operation not allowed after ResultSet closed; nested exception is java.sql.SQLException: Operation not allowed after ResultSet closed
at org.springframework.jdbc.support.SQLStateSQLExceptionTranslator.doTranslate(SQLStateSQLExceptionTranslator.java:110)
at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:70)
at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:79)
at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:79)
at org.mybatis.spring.MyBatisExceptionTranslator.translateExceptionIfPossible(MyBatisExceptionTranslator.java:92)
at org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:439)
at com.sun.proxy.$Proxy77.selectOne(Unknown Source)
at org.mybatis.spring.SqlSessionTemplate.selectOne(SqlSessionTemplate.java:160)
at com.baomidou.mybatisplus.core.override.MybatisMapperMethod.execute(MybatisMapperMethod.java:89)
at com.baomidou.mybatisplus.core.override.MybatisMapperProxy$PlainMethodInvoker.invoke(MybatisMapperProxy.java:152)
at com.baomidou.mybatisplus.core.override.MybatisMapperProxy.invoke(MybatisMapperProxy.java:89)
at com.sun.proxy.$Proxy82.getUsergroupId(Unknown Source)
The text was updated successfully, but these errors were encountered: