castor

Ehcache basic configuration

Details

  • Type: Test Test
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: 1.1.2
  • Component/s: JDO
  • Labels:
    None
  • Environment:
    MySql, Castor, Ehcache
  • Number of attachments :
    3

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)

  1. patch.c1947.20070429.txt
    29/Apr/07 5:43 AM
    0.8 kB
    Werner Guttmann

Activity

Hide
Werner Guttmann added a comment -

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 ?

Show
Werner Guttmann added a comment - 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 ?
Hide
Gonzalo Abollado added a comment -

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.

Show
Gonzalo Abollado added a comment - 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.
Hide
Werner Guttmann added a comment -

Thanks. And don't worry about the SVN part ... as long as you followed the remainder of the instructions.

Show
Werner Guttmann added a comment - Thanks. And don't worry about the SVN part ... as long as you followed the remainder of the instructions.
Hide
Gonzalo Abollado added a comment -

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.

Show
Gonzalo Abollado added a comment - 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.
Hide
Werner Guttmann added a comment -

Initial patch for review.

Show
Werner Guttmann added a comment - Initial patch for review.
Hide
Werner Guttmann added a comment -

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 .. .

Show
Werner Guttmann added a comment - 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 .. .

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: