用mybatis执行一个查询,用浏览器第一次访问,没有问题,一刷新,就出错了,错误如下
org.apache.ibatis.exceptions.PersistenceException: 
### Error querying database.  Cause: org.apache.ibatis.executor.ExecutorException: Executor was closed.
### The error may exist in com/test/cms/backmanager/DAO/implement/Channel.xml
### The error may involve com.test.cms.model.Channel.searchChannel
### The error occurred while executing a query
### Cause: org.apache.ibatis.executor.ExecutorException: Executor was closed.
重启服务器,出现如下错误
An internal error has occurred.
java.lang.NullPointerException用debug发现这条代码有错
list = session.selectList("com.test.cms.model.Channel.searchChannel", map);
对应的配置文件如下
<select id="searchChannel" parameterType="map" resultType="Channel">
select * from t_channel
<if test="name != null" >
where name like #{name}
</if>
limit #{offset},#{pagesize}
</select> <select id="searchChannel_count" parameterType="map" resultType="int">
select count(*) from t_channel
<if test="name != null" >
where name like #{name}
</if>
</select>小弟刚学,菜的很,求高手帮个忙,解决一下,万分感谢……