IllegalStateException: There are 2 open Databases in the Environment.

Does anyone have any advice on properly handling these exceptions? I get this occasionally on an Environment.close call:
SEVERE: Exception in thread "pool-11-thread-4"
SEVERE: java.lang.IllegalStateException: There are 2 open Databases in the Environment.
Closing the following databases:
persist#Flow#com.sleepycat.persist.sequences persist#Flow#com.sleepycat.persist.formats
at com.sleepycat.je.Environment.closeInternal(Environment.java:472)
at com.sleepycat.je.Environment.close(Environment.java:321)
at name.justinthomas.flower.analysis.persistence.FlowReceiver.closeEnvironment(FlowReceiver.java:67)
at name.justinthomas.flower.analysis.persistence.FlowReceiver.addFlow(FlowReceiver.java:104)
at name.justinthomas.flower.collector.FlowWorker.parseData(FlowWorker.java:379)
at name.justinthomas.flower.collector.FlowWorker.v9(FlowWorker.java:112)
at name.justinthomas.flower.collector.FlowWorker.run(FlowWorker.java:62)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)
That is thrown on the "environment.close" line in this section:
private void closeEnvironment() {
if (environment != null) {
try {
environment.close();
} catch (DatabaseException e) {
System.err.println("Error closing environment: " + e.toString());
... which is called as a "finally" at the end of my insert function. Should I just catch these and ignore them? Or is there something I should be doing to prevent these from occurring?

Hi Justin,
JE data is stored via Database objects. When you using the DPL, your EntityStore opens and closes the Databases for you. If you don't call EntityStore.close, it won't close the Databases and you'll get this "warning exception" when you close the Environment. Note that if you open/construct an EntityStore more than once, you'll have to close each instance.
If you only see this message occasionally, I suspect that you're getting an exception during your app processing, before you close your store. The exception causes you to skip your normal shutdown code, that closes the store, so the store is not closed. You're probably not catching this exception and logging it, and it is not thrown upward because of the exception thrown by Environment.close. To find out what's happening, you'll need to catch and log the exception.
--mark                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

Similar Messages

  • IPhone 4s has yahoo mail icon permanently on safari when there are no open pages

    My iPhone 4s using iOS7.0.2 has a Yahoo mail icon displaying permanently on the top of Safari when there are no open pages. The icon did not disappear even when I deleted my Yahoo mail account. The icon also has my Yahoo username displayed below it. Is there any way I can remove the Yahoo mail icon from permanently displaying on Safari? I cleared my history, cookies and data, but the Yahoo icon is still there.

    I have the same issue and koban4max's sugggestion doesn't work (well, it works, but you'll need to do it once a day.) I am surprised this hasn't been widely reported either as an iphone, Verizon or Yahoo issue. I tried various suggestions (deleting/re-adding account, moving messages to a new folder and changing password on computer/iphone, etc.) It will push for a while but stop pushing in a few hours or a few days. This leads me to believe somewhere in the interface corrupts the process. I would love to know if it's unique to Verizon, iphone 4S or IOS 5, or all of the above. The phone doesn't even fetch according to schedule, only when you are in the application. BTW, the Exchange push solution for Gmail works wonderfully.
    iphone 4S, IOS 5, Verizon.

  • I have acquired windows office 2011 for my macbook but unable to open it. There are currently 3 files in the folder, 1 of which seems to be the actual program which is a hfs file. iv tried looking for programs to help me open it but failed

    i have acquired windows office 2011 for my macbook but unable to open it. There are currently 3 files in the folder, 1 of which seems to be the actual program which is a hfs file. iv tried looking for programs to help me open it but failed.
    when double clicking on the image it says unable to open and gives me the option to search the app store.
    any help would be much appreciated
    Adam

    Well, first, just make sure it's the Mac version and not the Windows version (which indeed would not run on your Mac). You say "Windows Office" which is why I mention it. I think you probably just mean "Microsoft Office" though.
    Next, is this on a disk (DVD), or did you purchase and download it from the Microsoft site?
    Matt

  • There was an error opening database for the library....

    my latpop had a kernel panic wihile i was using aperture to impor pictures "that yes i have deleated off the memory card," shut down and restarted. upon restarting i was presented with this error...

    there was an error opening database for the library....
    what is ....? Is the path to your main Aperture library printed there, or is Aperture trying to open a different location? If it is a different location, launch Aperture on your correct library, by double clicking the library.
    If it is indeed trying to open the correct library package, try if repairing and rebuilding the library with the "first aid tools" will help, see this manual page on how to do this:
         Aperture 3 User Manual: Repairing and Rebuilding Your Aperture Library
    If the problem persists, when trying to repair, check if there is a crash report and post the first 60 lines.
    Regards
    Léonie

  • Firefox keeps opening tabs on it's own whether I am on-line or not. I have reset several times and there are no pipe characters in the home page address.

    Firefox keeps opening tabs whether I am on-line or not. These are often games pages, but not always. I have reset several times and there are no pipe characters in the home page address. This is not the first time this has happened. The first time was a couple of months ago and a reset cured the problem, but this time it does not. How can I stop this occurring?

    '''''If this can happen with Firefox completely closed:'''''
    Some malware simply launches pages in your default browser from outside Firefox. Definitely scan for malware using some of the tools listed in our support article: [[Troubleshoot Firefox issues caused by malware]].
    There might be an additional step:
    Last year, many users reported advertising tabs opening randomly, sometimes even when Firefox was closed. It turned out that a program had created scheduled tasks to open those pages at certain times of day.
    You can check the Windows Task Scheduler:
    * Windows XP: Start button > [All] Programs > Accessories> System Tools > Scheduled Tasks
    * Windows Vista/7: Start button > Control Panel > System and Security > Administrative Tools > Task Scheduler
    * Windows 8: ?? You might try the charms bar search box if you don't find it in the control panel.
    * Past threads on the "dsite" problem:
    ** [https://support.mozilla.org/questions/967667 How can I keep Firefox from opening a window to website tofushopnews.com]
    ** [https://support.mozilla.org/questions/965048?page=2#answer-461509 How do I get rid of sponsorship tabs that open automatically?]

  • Hi, I have recently updated my OS X to Maverick. when I did, my mail programme (Mail) will not open - for me only. There are 4 other users of the iMac, and they don't appear to have any problems.

    Hi, I have recently updated my OS X to Maverick. when I did, my mail programme (Mail) will not open - for me only. There are 4 other users of the iMac, and they don't appear to have any problems.

    First, Safe Boot , (holding Shift key down at bootup), use Disk Utility from there to Repair Permissions, test if things work OK in Safe Mode.
    Then move these files to the Desktop for now...
    /Users/YourUserName/Library/Preferences/com.apple.finder.plist
    /Users/YourUserName/Library/Preferences/com.apple.systempreferences.plist
    /Users/YourUserName/Library/Preferences/com.apple.desktop.plist
    /Users/YourUserName/Library/Preferences/com.apple.recentitems.plist
    Reboot & test.
    PS. Safe boot may stay on the gray radian for a long time, let it go, it's trying to repair the Hard Drive.

  • I recently migrated my MacBook from 10.5.8 to 10.6.8, using the Snow Leopard CD I purchased from Apple. Since then I have noticed a strange ozone smell coming from the MacBook in the area where the hinges are to open and close the unit. I was told by Appl

    I recently migrated my MacBook from 10.5.8 to 10.6.8, using the Snow Leopard CD I purchased from Apple. Since then I have noticed a strange ozone smell coming from the MacBook in the area where the hinges are to open and close the unit. I was told by Apple that it probably is not serious and is coming from the fans in the MacBook. It is true that the smell/odor is more intense when the fans are working. Apple said I should take the MacBook to an Apple Store to have the hardware checked out. Everything seems to be working correctly. I am backing up automatically wirelessly to a Time Capsule, which I had not done until recently, although I had purchased the Time Capsule in 2009. I have not noticed this odor before. Does anyone suspect something more serious that may be going on?

    You may be smelling it because with the new OS the processor is having to work harder causing it to get hotter then it would with the other OS.  I can't say there is nothing wrong, but what could be happening is just that, it's getting hotter so the fan is spinning faster and moving more air so you are getting more of the smell then you would before.  I would still continue to back it up, and take it to the Apple Store at a Genius Bar and have them look at it to make sure.  Was the computer ever in a smoky environment??

  • Account Statement showing that there are no open items. Just Zero

    Dear friends,
    My customer wants the report with  showing that there are no open items. Just Zero balance on 13/08/2009 for the Tax purposes. But there are no line items done on this date.
    I am trying to generate statement in F.27 but it does not give statement on date wise though I select the option (0)Open Item Statement - Daily in Customer Master data in Correspondence.
    Please suggest how to get on 13/08/2009  though there is no balance/open items.
    Thanks,
    Venkata Raju

    Hi
    It may not be possible with the standard reports. The alternative way is to filter FBL5N based on date range (Posting Date Range). However, the same would work only if all the open items have been cleared in the system before your key date.Morever, your customer has to accept the SAP Format. Alternatively, you can look at the option of using balance confirmation Forms and Programs or do the procedure outside system after confirming the data from SAP by properly authorized person.
    Regards
    Sanil Bhandari

  • My ipad 2 mail inbox shows there are 12 emails still in the box, how do I get it to stop saying I have emails when I obviously do not?

    My ipad 2 shows that I have 12 emails in my hotmail inbox. There are absolutly no emails in the inbox. I deleted everything from the normal inbox, trash and spam. I have also tried closing out the app so it starts fresh, I have restarted my ipad etc. I really dont want to delete the account becasue I cannot remember the password and the password always gets sent to someone else and they wont let me change it. I will do this if it is my last resort. But does anyone have a clue how to fix my problem?

    When you do an upgrade, sometimes the pad goes back to the isp server for the unread count.  These are likely old e mails that you never opened, and are so far down the list that they dont make it to your oad.  In any event - go to the mail server via safari or on a computer and use webmail.  You can find those emails there and delete them -

  • IPod Updater error - "there may be open files on the iPod"

    I'm trying to help my nephew fix his scroll-wheel 10 gb iPod before he embarks on a long flight to India. When he plugged his iPod into his new iBook, iTunes launched, but wouldn't let him copy any purchased music to his iPod. It told him that he needed to upgrade his software. I've seen from the posts here that this is not uncommon.
    We went ahead and tried, but the only option was "restore", "updated" had been grayed out. Since he had already copied all of his music off of his iPod onto his new iBook with Senuti, we opted to restore. This failed and we now get a message from the updater saying that "an error occured. There may be open files on the iPod".
    If I disconnect the iPod from the computer, the screen displays a folder with an exclamation point and then alternates with an Apple logo. It looks like it's in a loop trying to start up, but then goes to the folder again, then goes blank for a second and displays the Apple logo, etc.
    If I plug in via USB, for a brief second I get the "do not disconnect message", but then it goes right to "OK to disconnect". After I disconnect, the "OK to disconnect" does not go away, I have to reset in order to get back to the alternating folder with exclamation and Apple logo.
    If I plug in via firewire, the iPod does mount in Finder and iTunes recognizes. It give me the message stating that version 2.3 is available and do I want to update. If I choose "cancel", the iPod docks in iTunes and I can manually add songs to the iPod (but not purchased music). But when I undock, it goes back to the alternating folder and logo.
    If I say I do want to update, the updater launches 11-17-05, but gives me the "there may be open files" error message.
    Anyone had this problem and/or know how to fix it? Another factor to throw into the mix: I'm pretty sure my nephew was using this machine with a PC and everything we've tried together has been on the Mac. I've tried docking using Virtual PC, but it doesn't recognize the iPod at all, using firewire or USB.
    Does anyone know if I SHOULD be able to update or restore this iPod using a Mac?
    Also, I've tried this on both my nephew's iBook and my Powerbook. Both are running 10.4.3 with iTunes 6.0.1.
    Any help is greatly appreciated.

    I am having precisely the same issue.
    I am running Adobe Acrobat XI Standard on Windows 8 Professional. All updates have been applied to both.
    (I have 4 other computers with identical configurations where this problem does not occur.)
    In the problem machine (and a 2nd computer with the same issue) I can easily open the file using a UNC path, e.g. \\server\h\filename.pdf in Adobe Acrobat.
    Using the drive mapping, net use h: \\server\h, I cannot access the file H:\filename.pdf.
    I can't open H: from within Adobe Acrobat either, not just the PDF.
    I can open any other file on that drive with any other program.
    I can open \\server\h\filename.pdf and the H: drive from Foxit Reader installed on the same computer.
    The specific problem is that Adobe Acrobat XI can't open or see a mapped drive by drive letter.
    Any ideas?

  • My auto install for Premiere Elements failed and told me i needed to do a restart and try installing again. Having restarted my laptop, how do I install the software? There are two .exe files in the folder - oem and start-up. Which should i run?

    My auto install for Premiere Elements failed and told me i needed to do a restart and try installing again. Having restarted my laptop, how do I install the software? There are two .exe files in the folder - oem and start-up. Which should i run?
    thanks

    for windows you should have an exe and a 7z file.  put both in the same directory and double click the exe.
    Downloadable installation files available:
    Suites and Programs:  CC 2014 | CC | CS6 | CS5.5 | CS5 | CS4, CS4 Web Standard | CS3
    Acrobat:  XI, X | 9,8 | 9 standard
    Premiere Elements:  13 | 12 | 11, 10 | 9, 8, 7 win | 8 mac | 7 mac
    Photoshop Elements:  13 |12 | 11, 10 | 9,8,7 win | 8 mac | 7 mac
    Lightroom:  5.7.1| 5 | 4 | 3
    Captivate:  8 | 7 | 6 | 5.5, 5
    Contribute:  CS5 | CS4, CS3
    Download and installation help for Adobe links
    Download and installation help for Prodesigntools links are listed on most linked pages.  They are critical; especially steps 1, 2 and 3.  If you click a link that does not have those steps listed, open a second window using the Lightroom 3 link to see those 'Important Instructions'.

  • There are no readers registered for the sql type.

    SQL Developer 4.0
    I added .sql and .ldr as file types via Tools > Preferences > File Types.
    When I try to open the export.sql file in SQL Developer using the "Import Data" option I get the message:
    There are no readers registered for the sql type.
    I can open the file with SQL Server Management Studio and see all of the insert statements that i would expect to see.
    When I created the export.sql file using the Export Wizard with "Format: insert" I received a message:
    "export.sql was not opened because it exceeds the maximum automatic open size."
    Can this limit be changed?

    The import data dialog is for taking a CSV/XLS/TXT type file.
    If you used the Export Wizard, you can now just run that file in the worksheet.

  • There are no readers registered for the txt type - Issue importing txt file

    Hello guys,
    I am working on SQL developer 3.2. and Oracle database 11g. I am trying to import a txt file with only two columns and 100 rows separated with a pipe. I can import the same file if its in *.CSV or *.xls format. I right click on the table > Import table > Choose the *.txt file > and then I get a message "There are no readers registered for the txt type". Why? Where do I get the reader? I am using the same exact method and the same exact data to import using a different file format and I do not get any errors. The wizard comes up and I am ready to load. I have scoured through this forum for a solution and I could not find one. Any help is very much appreciated.
    Thank you!

    It means we don't support that file type for doing imports. It sounds like a reasonable request to [add to the Exchange|sqldeveloper.oracle.com] though.

  • After upgrading to 3.6.8 none of the plugins load even though there are updates available. The updates will not install and even though the error states to look at the console error log there are no errors listed in the log.

    After upgrading to 3.6.8 none of the extensions load even though there are updates available. The updates will not install and even though the error states to look at the console error log there are no errors listed in the log. All extensions are listed in Addons>Extensions.
    == This happened ==
    Every time Firefox opened
    == Upgrading to newer Firefox version (3.6.8)

    I have been having the same issue for the last two weeks. No real indication as to why it ever began other than I had turned off my router and Airport Extreme Base Station off for a weekend while I was away from my place.
    iPad, iPhone, iPod Touch, all have no issues at all with my Airport Extreme Base Station. Can stay connected throughout my living room, bathroom, bedroom, no issues whatsoever.
    My 5 month old MacBook Pro 2.66 GHz Core i7 Airport is sometimes perfect, able to connect, DHCP, and browse without issue. Then, for no reason, I won't be able to join my wireless network, or when I can join, I can't pick up an IP address. And then it will connect, pick up and IP, and then it won't browse. No real rhyme or reason to when this will happen, or when it works.
    I thought that it was an issue with my MacBook Pro, but then my sister visited with her brand new MacBook Pro 2.26 Intel Core 2 Duo, and while a month ago she was able to connect, DHCP, and browse without issue, this weekend she had all of the same issues I was having.
    My XBOX 360 and MacBook Pro have absolutely no issues with the wired connection. Only my WAN seems to have this issue.
    Did you ever find anything more to this?

  • Query all applications that are connected to database in the current time

    Dears,
    I need to query all applications that are connected to database in the current time. I tried using v$session but i could not reach through it to the application that are logged now to database.
    As example, i connect to DB through Web Application and tried to search in v$session to can see Web Application session but i did not see it :(
    From searching in google, found that there is a package named "DBMS_APPLICATION_INFO". I expected that it can help me in my request but i could not use it.
    Please, advise me. Is this package help cover my requirements or there is another method ?
    Thanks & Best regards,

    sybrand_b,
    I think that i appreciated you once you replied me and what i wanted exactly from you "Provide me Link help me more for investigation" and you did not provide something.
    Where is the documentation that i could not read it !!!!!!
    FYI, you are not the only one that have information_
    Anyway ,as usual i will reply you in polite way.
    Thanks and i will not have more input here with you !!!
    Dear All,
    Sorry for wasting your time to read this but i had to reply.
    Please, if any one have more information regarding my issue, it will be highly appreciated.
    Really , thanks all for support.
    Thanks & Regards,

Maybe you are looking for

  • Roles page can not be displayed

    Hai... I have been working on EP for 4 weeks as well as I am taking care of the server too. My problem is that I am not able to get the role page displayed and we have already some users created previously I am not able to login using them too. I thi

  • Sharepoint 2013 - Can I use Visual Studio 2012 express edition for web-parts and app parts?

    I am new to sharepoint 2013. I want to develop the app and web parts using visual studio 2012 express edition. Can I use vs 2012 express edtion to create app and web parts for sharepoint 2013?

  • Menu Bar Widget - how to target li name="item_one"

    Hello, I am using CS5. I using spry widget menu bar ... simple layout and I want to target individuals element on li. Here is the code <body> <ul id="MenuBar1" class="MenuBarVertical">   <li name="item_one"><a href="#">Item 1</a>  </li>   <li name="i

  • Install Leaves Folder on Desktop

    The install left a folder [Adobe CS3] on the Desktop. I think it's where it "unpacked" the install bundle. Is it OK to delete this folder? Should I back it up first? TIA

  • Safari crashing repeatedly - tried turning off fraudulent sites option

    Hey everyone, Safari keeps crashing on me! Usually while trying a pull-down menu or contextual menu... Here's the report: Process: Safari [13707] Path: /Applications/Safari.app/Contents/MacOS/Safari Identifier: com.apple.Safari Version: 3.2.1 (5525.2