Details
Description
I receive this Exception if I try to update using Ehcache:
16 abr 2007 12:21:51.346 [INFO] [main] [org.exolab.castor.mapping.Mapping] - Loading mapping descriptors from mapping.xml
16 abr 2007 12:21:51.386 [INFO] [main] [org.castor.mapping.MappingUnmarshaller] - Loading mapping descriptors from mapping/User.xml
Exception in thread "main" org.exolab.castor.jdo.PersistenceException: No timestamp information for object com.mbook.base.UserBase with identity <2(2)> available in cache (anymore).
No timestamp information for object com.mbook.base.UserBase with identity <2(2)> available in cache (anymore).
at org.exolab.castor.persist.ClassMolder.update(ClassMolder.java:888)
at org.exolab.castor.persist.LockEngine.update(LockEngine.java:685)
at org.castor.persist.AbstractTransactionContext.markUpdate(AbstractTransactionContext.java:913)
at org.castor.persist.AbstractTransactionContext.update(AbstractTransactionContext.java:966)
at org.exolab.castor.jdo.engine.AbstractDatabaseImpl.update(AbstractDatabaseImpl.java:337)
at com.general.dataBase.castor.AbsCastorDataBase.modifyRecord(AbsCastorDataBase.java:115)
at com.general.dataBase.castor.AbsCastorDataBase.update(AbsCastorDataBase.java:101)
at com.general.dataBase.castor.AbsCastorDataBase.update(AbsCastorDataBase.java:62)
at com.mbook.test.UserTest.main(UserTest.java:20)
Attachments
-
$i18n.getText("admin.common.words.hide")
- ehcacheTest.zip
- 16/Apr/07 5:25 AM
- 3.99 MB
- Gonzalo Abollado
-
- ehcacheTest/build.xml 2 kB
- ehcacheTest/ehcacheTest.iml 4 kB
- ehcacheTest/ehcacheTest.ipr 10 kB
- ehcacheTest/ehcacheTest.iws 23 kB
- ehcacheTest/etc/castor.properties 9 kB
- ehcacheTest/etc/castor_config.xml 0.7 kB
- ehcacheTest/.../ehcache-1.2.4-remote-debugger.jar 246 kB
- ehcacheTest/etc/ehcache.xml 14 kB
- ehcacheTest/etc/ehcache.xsd 4 kB
- ehcacheTest/etc/ehcacheinfo.bat 0.1 kB
- ehcacheTest/etc/log4j.properties 1 kB
- ehcacheTest/etc/mapping/User.xml 0.8 kB
- ehcacheTest/etc/mapping.xml 0.1 kB
- ehcacheTest/lib/castor-1.1.jar 1.64 MB
- ehcacheTest/lib/commons-collections.jar 171 kB
- ehcacheTest/.../commons-logging-1.0.4.jar 37 kB
- ehcacheTest/lib/commons-logging.jar 37 kB
- ehcacheTest/lib/ehcache-1.2.4.jar 207 kB
- ehcacheTest/lib/jdbc-se2.0.jar 83 kB
- ehcacheTest/lib/jstl.jar 17 kB
- ehcacheTest/lib/jta1.0.1.jar 17 kB
- ehcacheTest/lib/log4j-1.2.13.jar 350 kB
- ehcacheTest/.../mysql-connector-java-3.1.10-bin.jar 409 kB
- ehcacheTest/lib/standard.jar 312 kB
- ehcacheTest/lib/xerces-J_1.4.0.jar 883 kB
- ehcacheTest/lib/xom-1.0.jar 106 kB
- ehcacheTest/mbook.log 1.0 kB
- ehcacheTest/README.txt 0.3 kB
- ehcacheTest/src/.../AbsCastorDataBase.java 5 kB
- ehcacheTest/.../CastorBaseCollection.java 7 kB
-
$i18n.getText("admin.common.words.hide")
- ehcacheTestV2.zip
- 19/Apr/07 11:21 AM
- 3.89 MB
- Gonzalo Abollado
-
- ehcacheTest/build.xml 2 kB
- ehcacheTest/classes/castor.properties 9 kB
- ehcacheTest/classes/.../castor.properties 9 kB
- ehcacheTest/classes/.../ehcache.xml 14 kB
- ehcacheTest/classes/.../EntityOne.class 1 kB
- ehcacheTest/classes/.../jdo-conf.xml 0.6 kB
- ehcacheTest/classes/.../log4j.properties 1 kB
- ehcacheTest/classes/.../mapping.xml 0.5 kB
- ehcacheTest/classes/.../TestTemplate.class 3 kB
- ehcacheTest/classes/ehcache.xml 14 kB
- ehcacheTest/classes/ehcache.xsd 4 kB
- ehcacheTest/classes/jdo-conf.xml 0.6 kB
- ehcacheTest/classes/log4j.properties 1 kB
- ehcacheTest/classes/mapping.xml 0.5 kB
- ehcacheTest/ehcacheTest.iml 4 kB
- ehcacheTest/ehcacheTest.ipr 10 kB
- ehcacheTest/ehcacheTest.iws 21 kB
- ehcacheTest/lib/castor-1.1.jar 1.64 MB
- ehcacheTest/lib/commons-collections.jar 171 kB
- ehcacheTest/.../commons-logging-1.0.4.jar 37 kB
- ehcacheTest/lib/commons-logging.jar 37 kB
- ehcacheTest/lib/ehcache-1.2.4.jar 207 kB
- ehcacheTest/lib/jdbc-se2.0.jar 83 kB
- ehcacheTest/lib/jstl.jar 17 kB
- ehcacheTest/lib/jta1.0.1.jar 17 kB
- ehcacheTest/lib/junit_3.8.2.jar 118 kB
- ehcacheTest/lib/log4j-1.2.13.jar 350 kB
- ehcacheTest/.../mysql-connector-java-3.1.10-bin.jar 409 kB
- ehcacheTest/lib/standard.jar 312 kB
- ehcacheTest/lib/xerces-J_1.4.0.jar 883 kB
$i18n.getText("admin.common.words.show")- ehcacheTestV2.zip
- 19/Apr/07 11:21 AM
- 3.89 MB
- Gonzalo Abollado
-
- patch.c1947.20070429.txt
- 29/Apr/07 5:43 AM
- 0.8 kB
- Werner Guttmann
Activity
Hello,
I try to follow the how-to-set a bug. I didnīt understand too good the last part so I try to do my best.
I have used the templates and you can run the test case but I didnīt manage to set the SVN part.
Please tell me if itīs ok to use the application inside the ZIP file.
Thanks a lot and best regards,
Gonzalo Abollado.
Thanks. And don't worry about the SVN part ... as long as you followed the remainder of the instructions.
Hello Werner,
Did you manage to compile and run my code?
Any idea of what can be the problem?
Thanks a lot and best regards,
Gonzalo Abollado.
Looks like you test case unearthed a classic bug. Have a look at the patch and you'll be able to see what I am referring to ..
.
Hi, I'd really appreciate a bit of help from your side. Can you please have a look at
http://castor.org/how-to-submit-a-bug.html
and remodel the test you attached to meet the guidelines ?