Difference in environment since last close.

Hallo developers.
We got a strange problem.
When we close the application its store and the environment we make a dump of the databases present in the environment and we count N databases; this number is not the same as we would expect. After we restart the application and opening again the environment we see that that size of the jdb files is grown and that the number of databases too (and is the same as we would expect the first time). We think that this is a strange behaviour.
Is it a bug or is it a feature?
Kind regards
Massimo

When you say "dump of the databases" what do you mean? A list of the DB names returned by >Environment.getDatabaseNames()? Or a dump of everything in the log files using DbPrintLog? Or a >dump of your specific databases using DbDump?Dump using DbDump.
If you are using DbDump or DbPrintLog while the application is running, the information that is >dumped may not be 100% complete. These utilities read the log files. The log files are written when >the log buffers fill up, when a transaction is committed (unless WriteNoSync is used), and when a >checkpoint is performed.To count the number of databases we stop the application, then we run DbDump and we count N databases.
Our test is made like this:
We got a bean Person with a relation 1:N with Animal:
@Entity(version=1)
public class Person {
     @PrimaryKey
     private String name;
     @SecondaryKey(relate = Relationship.MANY_TO_ONE)
     private String surname;
     private String address;
     @SecondaryKey(relate = Relationship.ONE_TO_ONE)
     private String job;
     @SecondaryKey(relate = Relationship.MANY_TO_ONE)
     private String age;
     @SecondaryKey(relate=Relationship.ONE_TO_MANY, relatedEntity=Animal.class, onRelatedEntityDelete=DeleteAction.NULLIFY)
     private Collection<String> cats = new ArrayList<String>();
     @SecondaryKey(relate=Relationship.ONE_TO_MANY, relatedEntity=Animal.class,onRelatedEntityDelete=DeleteAction.ABORT)
     private Collection<String> dogs = new ArrayList<String>();
Animal
@Entity
public class Animal {
     @PrimaryKey
     private String name;
And a bean Cat:
@Persistent(version=0)
public class Cat extends Animal{
     private String color;
     @SecondaryKey(relate=Relationship.MANY_TO_ONE, relatedEntity=Person.class, onRelatedEntityDelete=DeleteAction.NULLIFY)     
     private String owner;
Our test is very simple:
// Create and add an Animal of type Cat
Animal cat = new Cat("cat");
cat.setOwner("max");
dataAccessor.getCatByName().put(cat);
// Create and add an Animal of type Dog
Dog dog = new Dog("dog");
dataAccessor.getDogByName().put(dog);
// Create a person and add it 2 Animals
Person person = new Person("max");
person.setAge("29");
person.addCat(cat.getName());
person.addDog(dog.getName());
// add a Person
dataAccessor.getPersonByName().put(person);
person = dataAccessor.getPersonByName().get("max");                                        
System.out.println("Record added....");
When i close the application and run the DbDump this is the databases list:
persist#store#com.sleepycat.persist.formats
persist#store#dpl.beans.Animal
persist#store#dpl.beans.Person
persist#store#dpl.beans.Person#age
persist#store#dpl.beans.Person#cats
persist#store#dpl.beans.Person#dogs
persist#store#dpl.beans.Person#job
persist#store#dpl.beans.Person#surname
Notice that i haven't the database for the Cat's attribute owner.
When i run again the example showing the Person after this code line
personByName = entityStore.getPrimaryIndex(String.class, Person.class);
I obtain this databases list:
persist#store#com.sleepycat.persist.formats
persist#store#dpl.beans.Animal
persist#store#dpl.beans.Animal#owner
persist#store#dpl.beans.Person
persist#store#dpl.beans.Person#age
persist#store#dpl.beans.Person#cats
persist#store#dpl.beans.Person#dogs
persist#store#dpl.beans.Person#job
persist#store#dpl.beans.Person#surname
Now as you can see i got a new database, persist#store#dpl.beans.Animal#owner.
What is going on?
I got the example in a eclipse project if you want to check the code.
Kind regards
Massimo

Similar Messages

  • Since last update of Pages, my Pages app in iPad anda iPhone doesn't open, it closes suddenly. I already deleted it and reinstalled, but still not works.

    Since last update of Pages, my Pages app in iPad anda iPhone doesn't open, it closes suddenly. I already deleted it and reinstalled, but still not works.
    Can someone help? Do I need to wait for another update?
    Thanks

    This is my problem that has to originate from the update.  So glad that I did not purchase a MacBook!  Apple products/apps are appearing to be not different from Windows products.
    I have deleted and reinstalled from the device and desktop, resets, etc.  When I uninstalled and reinstalled while connected to my desktop, the older version of pages was installed.  I was able to see all of my files that were saved to the cloud.  I was forced to update again to access any of the saved files.  Once updated again, I could no longer open pages.  It began, to open and abruptly shut down.

  • Since last FF update I can't sign out of Yahoo and when I close FF it tells me it has crashed.

    Since last FF update I can't sign out of Yahoo and when I close FF it tells me it has crashed.
    When I try to sign out of Yahoo it comes up with:
    Secure Connection Failed
    An error occurred during a connection to login.yahoo.com. You have received an invalid certificate. Please contact the server administrator or email correspondent and give them the following information: Your certificate contains the same serial number as another certificate issued by the certificate authority. Please get a new certificate containing a unique serial number. (Error code: sec_error_reused_issuer_and_serial)
    The page you are trying to view cannot be shown because the authenticity of the received data could not be verified.
    Please contact the web site owners to inform them of this problem.
    I have run CCleaner and cleared cookies. Uninstalled and reinstalled FF to no availe.
    When I close FF a box comes up telling me it has crashed.
    I can sign out of Yahoo in IE.

    the benefit of this https scan feature is at least questionable. in order for it to work, avast has to perform a kind of man-in-the-middle "attack" in order to get to the content of the encrypted connection (firefox supports a feature called [http://monica-at-mozilla.blogspot.co.at/2014/08/firefox-32-supports-public-key-pinning.html key pinning] which can be used by websites to address such MITM attacks and which also seems to pick up AVAST's interference).
    when you download files over a https-connection, they will be scanned by your AV software once they land on your hard-disk anyway. on the other hand it should be the job of the browser to make it impossible to get infected by malicious software by just surfing around...
    ''edit: please try to restart the browser again, it may take a new session for the change to take effect.''

  • HT201317 Since last update I dont have my stream pictures on my PC, and I notice in the icloud control panel appears unmarked but if I marked save and close, next time I check is unmarked againg

    Since last update I dont have my stream pictures on my PC, and I notice in the icloud control panel appears unmarked but if I marked save and close, next time I check is unmarked againg

    Hi Amish,
    I should have mentioned that I have signed out of the iCloud Control Panel several times and no syncing occurs.
    Thanks for your response anyway. I appreciate your feedback.

  • Need a VB-Script that read a txt-file and only the lines that are new since last time

    Hi,
    I need help to write a VB script that read all new lines since the last time.
    For example:  The script reads the textfile at specific time, then 10 minutes later the script read the file again, and it should now only read the lines that are new since last time. Anyone that has such a script in your scriptingbox?
    cheers!
    DocHo
    Doc

    Based on the excellent idea by Pegasus, where is a VBScript solution. I use a separate file to save the last line count read from the file, then each time the file is read I update the line count. Only lines after the last count are output by the program:
    Option Explicit
    Dim strFile, objFSO, objFile, strCountFile, objCountFile, strLine, lngCount, lngLine
    Const ForReading = 1
    Const ForWriting = 2
    Const OpenAsASCII = 0
    Const CreateIfNotExist = True
    ' Specify input file to be read.
    strFile = "c:\Scripts\Example.log"
    ' Specify file with most recent line count.
    strCountFile = "c:\Scripts\Count.txt"
    ' Open the input file for reading.
    Set objFSO = CreateObject("Scripting.FileSystemObject")
    Set objFile = objFSO.OpenTextFile(strFile, ForReading)
    ' Check if the line count file exists.
    If (objFSO.FileExists(strCountFile) = False) Then
        ' Initial count is 0, so all lines are read.
        lngCount = 0
    Else
        ' Open the line count file.
        Set objCountFile = objFSO.OpenTextFile(strCountFile, ForReading)
        ' Read the most recent line count.
        Do Until objCountFile.AtEndOfStream
            lngCount = CLng(objCountFile.ReadLine)
        Loop
    End If
    ' Read the input file.
    lngLine = 0
    Do Until objFile.AtEndOfStream
        ' Count lines.
        lngLine = lngLine + 1
        strLine = objFile.ReadLine
        If (lngLine >= lngCount) Then
            ' Output the line.
            Wscript.Echo strLine
        End If
    Loop
    ' Close all files.
    objFile.Close
    If (lngCount > 0) Then
        objCountFile.Close
    End If
    ' Ignore last line of the file if it is blank.
    If (strLine = "") Then
        lngLine = lngLine - 1
    End If
    ' Save the new line count.
    Set objCountFile = objFSO.OpenTextFile(strCountFile, _
        ForWriting, CreateIfNotExist, OpenAsASCII)
    objCountFile.WriteLine CStr(lngLine + 1)
    objCountFile.Close
    Richard Mueller - MVP Directory Services

  • It came to my attention there a new program working with itune since last update named Apsdaemon.exe its been using 99% of my processor when its active any idea why so much and will it be fix eventually? And why is it so Heavy consuming ?

    It came to my attention there a new program working with itune since last update named Apsdaemon.exe its been using 99% of my processus when its active.
    Any idea why so much and will it be fix eventually because before last update i never encounter any issue using Itune? Now when that aplication or extention from Itune is working my computor froze to a huge alt. I play video games online and love listening to my music with itune playing in the background and normally was able to have firefox open and a program called ventrillo all working at the same time and now i can barelly have itune and play a game. As soon it start been choppy i just control alt delete wait 5 minute to close down apsdaemon.exe when i'm capable most of the time i have to restart my computor. And why is it so Heavy consuming on the process its memory utility is under the 100ko i believe so why 99% of my processus is been use ?
    a good exemple i could give is itune.exe working it shows process 02% for 123 000ko that is light and perfect.

    Wow, Karan Taneja, you've just embarrassed yourself on a worldwide support forum.  Not only is your post ridiculous and completely inappropriate for a technical support forum, but it also shows your ignorance as to whom you think the audience is.  Apple is not here.  It's users, like you. 
    If you would have spent half the time actually reading the Terms of Use of this forum that YOU agreed to by signing up to post, as you did composing that usesless, inappropriate post, you (and the rest of us on this forum) would have been much better off.

  • Morning. I download podcast on my iMac and listen to them on my iPhone. Since last week the iPhone plays the podcast back slower than recorded and with a echo. How can I solve this?  Regards,  Menno

    morning. I download podcast on my iMac and listen to them on my iPhone. Since last week the iPhone plays the podcast back slower than recorded and with a echo. How can I solve this?
    Regards,
    Menno

    Hello,
    If you're in a country where there's an apple shop (unfortunately not mine), go check it and ask the employee about it: he's gonna check your Iphone on a "device"
    I've got an iphone 5 and it's working very well with me but I have to admit that its battery lasts (slower) than my Ipad 2.
    Still i can help with some tips that may improve your iohone's battery by an hour in addition (hopefully):
    - close all apps by multitasking....
    - do NOT keep the brightness to the max
    Believe me you're gonna regret changing your phone to a samsung
    Hope i've helped and sorry for my bad english (has english as 3rd language)

  • Is it possible to import, only changes since last import using imp/impdp

    on our production environment, we export three times a day.(10.00AM,1.00PM,6:30PM)
    and We only want to import the evening export - we have to kind of make sure that if the online system fails _ we have a data up to yesterday evening.
    i.e. we want a sort of incremental import, for example we would have yesterday's evening import and today we only want to import all the changes since yesterday's evenings import - that means we want to import into existing database but we want to import only the changes since last import.
    it would be great to hear from you
    the database is 10g R1
    thank you

    Thank you all, for your prompt response
    I know about RMAN, but our management outsourced our data center and the guys there does not look comfortable around oracle - and me as a DBA was assigned to taking this export backup and import it to another PC once in a day
    so I was thinking if it was possible to import "incrementally"
    it is good to know that it is not possible, because I don't have to spend time looking for a solution which is not there.
    Thanks all

  • I have not been able to open and PDF since last update

    I have not been able to open any PDF since last update. It starts to open goes to blank text area. I am unable to use any ofthe buttons eg. help or fileopen... it then closes automaticly. I have uninstalled and reinstalled with the same issues. I have also installed just XL not 11.0.03 version to try something different.P
    Please help

    If you are in Windows (which we don't know), you can try using Windows Explorer to navigate to C:\Program Files (x86)\Adobe\Reader 11.0\Reader, then double-click on Eula.exe and accept the license agreement

  • Firefox issues since last upgrade - says xp - yet windows 7 ? won't run

    ever since last update - unable to open tabs, loading - hanging up - un-installed & re-installed - still same issues - also did the re-set - no help - when i went to download AGAIN to save file - defaulting - saying XP -Firefox - I have Windows 7 - never XP - so- not my computer - browser has glitch - anyone else?
    Since I not computer "friendly" had -person that is do all the work -
    so- unable to use firefox for mail, facebook, cannot open multiple tabs, hangs up & continues to be running even when task is ended, ...any fixes for this?
    I do not understand any of the troubleshoot info ..fyi.

    Certain Firefox problems can be solved by performing a ''Clean reinstall''. This means you remove Firefox program files and then reinstall Firefox. Please follow these steps:
    '''Note:''' You might want to print these steps or view them in another browser.
    #Download the latest Desktop version of Firefox from http://www.mozilla.org and save the setup file to your computer.
    #After the download finishes, close all Firefox windows (click Exit from the Firefox or File menu).
    #Delete the Firefox installation folder, which is located in one of these locations, by default:
    #*'''Windows:'''
    #**C:\Program Files\Mozilla Firefox
    #**C:\Program Files (x86)\Mozilla Firefox
    #*'''Mac:''' Delete Firefox from the Applications folder.
    #*'''Linux:''' If you installed Firefox with the distro-based package manager, you should use the same way to uninstall it - see [[Installing Firefox on Linux]]. If you downloaded and installed the binary package from the [http://www.mozilla.org/firefox#desktop Firefox download page], simply remove the folder ''firefox'' in your home directory.
    #Now, go ahead and reinstall Firefox:
    ##Double-click the downloaded installation file and go through the steps of the installation wizard.
    ##Once the wizard is finished, choose to directly open Firefox after clicking the Finish button.
    Please report back to see if this helped you!

  • [SOLVED] lxdm autologin won't work since last upgrade

    Hi,
    Since last upgrade, lxdm won't autologin anymore.
    I had a lxdm.conf.pacnew file wich added only a commented line that I added into the conf file, wich does look like this :
    [base]
    ## uncomment and set autologin username to enable autologin
    #autologin=dgod
    autologin=Olaff
    ## uncomment and set timeout to enable timeout autologin,
    ## the value should >=5
    # timeout=10
    ## default session or desktop used when no systemwide config
    session=/usr/bin/startlxde
    #session=/usr/bin/openbox-session
    ## uncomment and set to set numlock on your keyboard
    # numlock=0
    ## set this if you don't want to put xauth file at ~/.Xauthority
    # xauth_path=/tmp
    # not ask password for users who have empty password
    # skip_password=1
    ## greeter used to welcome the user
    greeter=/usr/lib/lxdm/lxdm-greeter-gtk
    [server]
    ## arg used to start xserver, not fully function
    arg=/usr/bin/X -background vt1
    # uncomment this if you really want xserver listen to tcp
    # tcp_listen=1
    # uncoment this if you want reset the xserver after logou
    # reset=1
    [display]
    ## gtk theme used by greeter
    gtk_theme=Clearlooks
    ## background of the greeter
    # bg=/usr/share/backgrounds/default.png
    ## if show bottom pane
    bottom_pane=1
    ## if show language select control
    lang=1
    ## if show keyboard layout select control
    keyboard=0
    ## the theme of greeter
    theme=Industrial
    [input]
    [userlist]
    ## if disable the user list control at greeter
    disable=0
    ## whitelist user
    white=
    ## blacklist user
    black=
    Since there were no uncommented lines added, I assumed it would make no difference.
    Edit :
    Now, the system goes to the login screen instead of autologin.
    lxdm brings me to my session if I log in however.
    Last edited by OlaffTheGreat (2013-09-21 18:00:09)

    Here is my current /etc/lxdm/lxdm.conf file.  Hope something in here can help you out. 
    [base]
    ## uncomment and set autologin username to enable autologin
    autologin=andy
    ## uncomment and set timeout to enable timeout autologin,
    ## the value should >=5
    # timeout=10
    ## default session or desktop used when no systemwide config
    session=/usr/bin/startlxde
    ## uncomment and set to set numlock on your keyboard
    numlock=1
    ## set this if you don't want to put xauth file at ~/.Xauthority
    # xauth_path=/tmp
    # not ask password for users who have empty password
    # skip_password=1
    ## greeter used to welcome the user
    #greeter=/usr/lib/lxdm/lxdm-greeter-gtk
    [server]
    ## arg used to start xserver, not fully function
    #arg=/usr/bin/X -background vt1
    # uncomment this if you really want xserver listen to tcp
    # tcp_listen=1
    # uncoment this if you want reset the xserver after logou
    # reset=1
    [display]
    ## gtk theme used by greeter
    gtk_theme=Clearlooks
    ## background of the greeter
    # bg=/usr/share/backgrounds/default.png
    ## if show bottom pane
    bottom_pane=1
    ## if show language select control
    lang=
    ## if show keyboard layout select control
    keyboard=0
    ## the theme of greeter
    theme=Industrial
    [input]
    [userlist]
    ## if disable the user list control at greeter
    disable=1
    ## whitelist user
    white=
    ## blacklist user
    black=
    Not sure why OlaffTheGreat uses LXDM, but I use it because you get it for free as part of the LXDE group, and I'm too lazy to change it.  My security is the 30 to 40 character passphrase I need to unlock my encrypted drives.  Then having to type in an 8 character easily guessed user password is beyond annoying.
    I just checked my pacman cache files and it looks like the upgrade to 0.4-1-25 is when I first got the error (currently listed as 9 days ago which would be about right).  I upgraded, booted and got the login screen that I was not supposed to.  I had just merged the pacnew file so it was fresh in my head and made the changes I described.  Booted again and got the autologin and I didn't think another thing about it until I saw this post earlier today.  Upgraded again this weekend to 0.4-1-27 with no problems.

  • Since last week indesign deletes 2 links AND the data (flv video and mp3), frustrated

    hallo everyone
    since last week indesign deletes 2 links and the data ... when it deletes i cant find it anywhere ...its just gone! cant understand it ...
    i tryed to relink  i tryed to delete the link and linked the same video with the same name and with another name ... i tryed to get it
    work on mac and windows ... always same issue
    where is the problem?!
    first it worked ...i published the site via html ...then i got to change things and suddenly crash ...
    before this happened indesign took the link, showed it on the swf file but NOT in the html or ftp server ?!
    hope to get some help 

    Hmm... Ok, so I took that project and tried importing it to a new project, still with no luck. Then I tried taking that project and creating a new timeline by dragging one of the stills to the new item icon so that I'd get whatever PrPro decided was the best timeline, and still no luck. Then I tried creating a new project and importing different footage and it worked. Tells me perhaps there's something wrong with the stills? I know not to use overly-large stills in a project, but they're all around 4k resolution or smaller... so surely that's not too big, right? 412 stills total 1.5GB which means an average of about 2.5 MB per file... certainly not too big. I even had a couple video clips in the timeline that were shot with a point-and-shoot still camera, and I tried taking those out just in case it was something in those, and still no success.
    So, ultimately this project got exported without CUDA, and I'm okay... but I also am wondering what caused the problem? I do a fair amount with stills (not a lot, but enough) and I need it to work... do I just go on with life, assuming that it was some weird fluke? Or do I try a complete wipe and reinstall of OS and Programs?
    Oh, one other tidbit... whenever PrPro crashed and closed, the application itself wouldn't close. I have to go into the program manager and force quit it...
    Thoughts? Recommendations?

  • If I YouTube have examinated small film I have been possible fix no longer on picture (since last update 26 july) now I have got a black planed in plate the blade ven the film. I cannot fast scrolle on picture.

    If I YouTube have examined small film I have been possible fix no longer on picture (Since last to update 26 july)
    now I have got a BLACK PLANED in plate the blade ven the film. Now I cannot fast scrolle on picture (since 26 july)
    I hope someone get the answer! In the Apple shop they say, may be by the next Udate it will be pepared?

    That is priceless!!!  Thanks!  I sure needed a good laugh after spending/wasting hours & days trying to either get my c6280 to give up on its Ink System Failure fixation, or find a decent replacement.  Unfortunately I need the Smart Web Printing feature that I guess only HP has, or I'd try a different brand. And now even HP has very few models with that available.
     My error msg is a little different from those previously stated, but close:  0xc18a0201.  Even tho there were frustrations with my c6280, I did like several of its unique features which are hard to find now under $100.  I hate how HP (& I suppose other brands also) are CONSTANTLY changing models & then of course ink cartridges.
    Oh heavens, I've had the c6280 a whopping 2 1/2 years!   I'm sure they want us poor slobs to have to buy a new one every year & a day!  To say nothing of the exorbitant prices for ink.  And now if this one is really dead in the water, I have SIX unused #02 ink cartridges which I cannot return---I got them in a combo pack, & for some reason have wound up with THREE lite pink & THREE lite blue cartridges, while having to buy extras of the other colors, that ran out before the others!!!   Yeah, & what's with that not being able to print in BLACK if a color runs out????
    Anyway I really loved your essay!   It's a classic!  And says it all!  I hate that we have to be 'slaves' to the electronic 'wonders'!!!

  • Since last update I get loud sound as atv is turning on?

    Since last Apple TV2 update I get a loud sound over the speakers for about 15 seconds when atv2 is initially turning on.  After the sound everything works OK.  Tried changing HDMI cables and HDMI port but problem remains.  This only started right after the update was completed.

    Sounds like an HDMI negotiation glitch in the current software.
    There is an audio setting on AppleTV for sound bit depth (8 bit or 12 bit I think - try both).
    If you've restarted AppleTV after unplugging and this persists, then I would personally restore AppleTV2 via iTunes:
    http://support.apple.com/kb/HT4367
    If that makes no difference it sounds like an issue in current firmware, so feedback TV make/model here:
    http://www.apple.com/feedback/appletv.html

  • External component modified since last VI save

    Hi !!
    it's been quite a bit that I'm stuck with this message "External component modified since last VI save". One explanation on the forum does not solve my problem.
    The problem is :
    I have a simple VI (enclosed) that I open on two different computers. Each time I save it on one computer and I open it on the second one Labview shows the mysterious message "External component modified..."... and I have to save the VI... Back to the first computer - same thing...
    Does anyone know where should I search to get rid of this message ?
    Thanks for any suggestions...
    Attachments:
    external_component_mod.vi ‏8 KB

    Yes, references are opened and closed the same way...
    In fact my problem is summarized in the VI I enclosed in my first post... There's one computer that has a different configuration from others here, and when I open that Vi on that computer Labview asks to save it before close (external component modified). I've checked the OS, the Excel version, ...

Maybe you are looking for

  • How to call the webservice in abap program

    Hi All, I have created a web service for my RFC .  The RFC has Import and export paramaters. I want call the same web service into my  ABAP REPORT and at the same time i want pass the values to webservice  and get the result from webservice in my aba

  • Debug plug-ins in XCode on Mac?

    I'm a fairly seasoned plug-in developer on the Windows side (since Acrobat 4), and I know how do debug a plug-in in Visual Studio. I am now trying to debug a plug-in on the Mac with Acrobat 9. I remember that with previous Acrobat releases, I was abl

  • Ipod touch not connecting to itunes 8.1, tried everything

    Hi, I was just wondering if someone could help me please? After going from forum to forum, post to post for days now, I really need someones help. I have an Ipod touch 2nd generation, and I recently updated to itunes 8.1, a few days later I plugged i

  • Need to add date field on select screen of report RM06INP0.

    Hi All, I have to create a new report ZRM06INP0 as a copy from RM06INP0 and add a field in the selection. When the selection "Price Determination w/o PO" is not picked then we need a maintainable field from the info record. The default for the date i

  • Can someone help me with a somewhat simple button function?

    I am working on a project and a small part of that project is creating a counter increases by one everytime a button is clicked. For example I have incuded a picture of a much simpler version of what I am doing. For some reason I can not get the code