[jboss-jira] [JBoss JIRA] Created: (JBCACHE-1150) @Serializable triggers CCE in detach()
Jason T. Greene (JIRA)
jira-events at lists.jboss.org
Thu Jul 26 20:49:47 EDT 2007
@Serializable triggers CCE in detach()
--------------------------------------
Key: JBCACHE-1150
URL: http://jira.jboss.com/jira/browse/JBCACHE-1150
Project: JBoss Cache
Issue Type: Bug
Security Level: Public (Everyone can see)
Reporter: Jason T. Greene
Assigned To: Jason T. Greene
Fix For: 2.0.0.GA
Code:
_cache.start();
SystemW coreSystem = new SystemW();
coreSystem.setDo(new SystemS(100, 123, "core system", "CORE")); // <- @Serializable
_cache.attach("/systems/100", coreSystem);
_cache.attach("/systems/100", new SystemW()); // <- throws
whereas SystemW is advised and has a @org.jboss.cache.pojo.annotation.Serializable field _do. Something like this:
Code:
public class SystemW {
@org.jboss.cache.pojo.annotation.Serializable
private SystemS _do;
public void setDo(SystemS inDo) {
_do = inDo;
}
}
Stack trace:
Code:
java.lang.ClassCastException: ch.steria.jbcache.aopobjects.SystemS
at org.jboss.cache.pojo.impl.InternalHelper.getPojoReference(InternalHelper.java:46)
at org.jboss.cache.pojo.impl.InternalHelper.getPojo(InternalHelper.java:181)
at org.jboss.cache.pojo.impl.PojoCacheDelegate.getObject(PojoCacheDelegate.java:81)
at org.jboss.cache.pojo.impl.PojoCacheImpl.getObject(PojoCacheImpl.java:203)
at org.jboss.cache.pojo.impl.PojoCacheImpl.org$jboss$cache$pojo$impl$PojoCacheImpl$detach$aop(PojoC
acheImpl.java:150)
at org.jboss.cache.pojo.impl.PojoCacheImpl.detach(PojoCacheImpl.java)
at org.jboss.cache.pojo.impl.AdvisedPojoHandler.remove(AdvisedPojoHandler.java:215)
at org.jboss.cache.pojo.impl.PojoCacheDelegate.removeObject(PojoCacheDelegate.java:276)
at org.jboss.cache.pojo.impl.PojoCacheImpl.removeObject(PojoCacheImpl.java:170)
at org.jboss.cache.pojo.impl.PojoCacheImpl.org$jboss$cache$pojo$impl$PojoCacheImpl$detach$aop(PojoC
acheImpl.java:153)
at org.jboss.cache.pojo.impl.PojoCacheImpl.detach(PojoCacheImpl.java)
at org.jboss.cache.pojo.impl.PojoCacheDelegate.putObjectII(PojoCacheDelegate.java:143)
at org.jboss.cache.pojo.impl.PojoCacheImpl.putObject(PojoCacheImpl.java:136)
at org.jboss.cache.pojo.impl.PojoCacheImpl.org$jboss$cache$pojo$impl$PojoCacheImpl$attach$aop(PojoC
acheImpl.java:101)
at org.jboss.cache.pojo.impl.PojoCacheImpl.attach(PojoCacheImpl.java)
at org.jboss.cache.pojo.impl.PojoCacheImpl.attach(PojoCacheImpl.java:93)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list