Hi Jeff,

       Let me look into this issue. Also can you tell me if you have enough 
memory to hold that big of a cache? Also are you running into any OutOfMemory 
Exceptions in the logs or something?

Thanks
Sandhya

--- On Tue, 12/9/08, Boring, Jeff W (N-Viper) <[EMAIL PROTECTED]> wrote:
From: Boring, Jeff W (N-Viper) <[EMAIL PROTECTED]>
Subject: Strange issue with using DataCache
To: [email protected]
Date: Tuesday, December 9, 2008, 3:29 PM

Using OpenJpa v1.0.0

When the following properties exist in the persistence.xml file, entity
set's always have size of zero and test cases fail. 

        <property name="openjpa.DataCache"
value="true(CacheSize=5000000,          SoftReferenceSize=0)" />
        <property name="openjpa.RemoteCommitProvider"
value="sjvm"/>

Changing the DataCache property value to false corrects the issue; all
test pass.

I've used the DataCache before in a sample/simple app but now I am
trying to apply it to a production app. I implemented the DataCache fine
but noticed that test cases were failing. I then just turned it off and
everything worked again, but, of course, no cache. I then took out all
new code (except 2 properties above) including the @DataCache
annotations and reran the tests and it still fails when dataCache is set
to true. Passes when set to false.

I then debugged, stepping thru a test and discovered than the sets are
all empty.

Sorry for the long question. Thanks for any help you can give.

Jeff

Jeff W. Boring
Lockheed Martin
Orlando, Fl 32825



      

Reply via email to