Closed GoogleCodeExporter closed 9 years ago
[deleted comment]
I find the cause is that the key is not serializable.
In net.sf.ehcache.Element#isKeySerializable(), if key is not an instance of
Serializable or null, it is not enable to record result in disk file.
Key's object is org.apache.ibatis.cache.CacheKey. CacheKey do not implement
Serializable interface. If CacheKey implements Serializable interface, select
result can be record in disk file.
Original comment by hmily...@gmail.com
on 25 Oct 2010 at 1:59
Hi hmilysls,
thanks for the feedback, you reported an evident defect, I tested ehcache in
memory only.
I need to work a little on the module, stay tuned!
Original comment by simone.t...@gmail.com
on 1 Nov 2010 at 12:50
Original comment by simone.t...@gmail.com
on 1 Nov 2010 at 12:50
Hi hmilysls,
I fixed that issue on /trunk, can you check it out and verify it works before
publishing the next release? Thanks in advance!
Simo
Original comment by simone.t...@gmail.com
on 7 Nov 2010 at 5:51
Hi Simo,
I checked src out from "http://mybatis.googlecode.com/svn/trunk/src". But this
issue still exists. I look at code of org.apache.ibatis.cache.CacheKey.
CacheKey is not Serializable. In which version, the issue is fixed?
hmilysls
Original comment by hmily...@gmail.com
on 16 Nov 2010 at 8:30
Hi hmilysls,
In the trunk I'm now using the org.apache.ibatis.cache.CacheKey hashCode() as
EHCache key, being int/Integer serializable.
BWT, you checked out from the wrong place, please follow the following simple
steps to verify the new version of ehcache integration:
svn co https://mybatis.googlecode.com/svn/sub-projects/caches/trunk
mybatis-caches
cd mybatis-caches
mvn install
now include the followinf dependency in your pom:
<dependency>
<groupId>org.mybatis.caches</groupId>
<artifactId>mybatis-ehcache</artifactId>
<version>1.0.0-SNAPSHOT</version>
</dependency>
so now you can check if the ehcache inserts go well.
Please let me know!
Simo
Original comment by simone.t...@gmail.com
on 16 Nov 2010 at 8:58
Hi Simo,
I have tried it. Select result can be record in disk file. The issue is solved.
Thanks for your help!
hmilysls
Original comment by hmily...@gmail.com
on 16 Nov 2010 at 10:32
Thanks to you for your feedbacks!!! New version will be published ASAP, stay
tuned! :)
Simo
Original comment by simone.t...@gmail.com
on 16 Nov 2010 at 10:48
Issue can be closed, fixed on /trunk
Original comment by simone.t...@gmail.com
on 16 Nov 2010 at 10:49
Original issue reported on code.google.com by
hmily...@gmail.com
on 22 Oct 2010 at 9:09