Problem with closing environment

We ran into a problem where our Environments were not closing properly. After a bit of inspection, we found there was a ConcurrentModificationException being thrown and eaten in the Environment.close() method during the referring database cleanup:
       Iterator iter = referringDbs.iterator();
       while (iter.hasNext()) {
                        Database db = (Database) iter.next();
                         * Save the db name before we attempt the close, it's
                         * unavailable after the close.
                        String dbName = db.getDebugName();
                        errors.append(dbName).append(" ");
                        try {
                            db.close();
                        } catch (RunRecoveryException e) {
                            throw e;
                        } catch (DatabaseException DBE) {
                            errors.append("\nWhile closing Database ");
                            errors.append(dbName);
                            errors.append(" encountered exception: ");
                            errors.append(DBE).append("\n");
                    }The referringDbs set is being changed during the close process, invalidating the iterator -> db.close () calls Database.close() which calls closeInternal() which calls back to Environment.removeReferringHandle() which has this line in it: referringDbs.remove(db);
So once the ConcurrentModificationException is thrown, the finally block inside of Environment.close replaces that exception by throwing a new DatabaseException with the "There are 3 open database in the Environment..." message:
            if (errors.length() > 0) {
                throw new DatabaseException(errors.toString());
            }So we are looking for help/info in two areas:
1) The condition causing the ConcurrentModificationException
2) When an exception other than RunRecoveryException and DatabaseException are thrown in Environment.close(), it would be desirable if the message was propagated up in some way
Thanks

Thanks for the report Erik. I suspect you are not closing all the Database handles that you have opened against the Environment that you are closing and that if you do, this problem will go away. Let me know if that workaround works for you.
I'll work on a fix for this, but it probably won't be incorporated until the next release.
Charles Lamb

Similar Messages

  • Problems with Closed Captioning (subtitles)

    The last upgrade of the STB software fixed many of the problems with closed captioning.  However, there are still a number of problems.  For those of us with hearing impairment, it would really be nice if they got it right.  Now, at least all of the closed captioned dialog shows up (which it didn't used to do -- before, it would overwrite itself on certain stations).  However, some of the dialog shows up on the screen for only a fraction of a second -- too fast to read it.  Please help us hearing impaired people!!!!!

    http://forums.verizon.com/vrzn/board/message?board.id=FiOS_TV&thread.id=679
    Message Edited by CSimpson on 11-03-2008 01:20 PM

  • V 3.6.13 causes problems with closing "home" tab, and crashing.

    I installed v3.6.13 recently, and noted a problem in closing tabs.
    * The "home" or default 1st tab of the browser opens correctly and will correctly browse to other sites.
    * I can open and close other tabs, however I can not close that 1st or default tab.
    * When I have multiple tabs open, I have tried to close that tab with the |X| close tab button, with the left-click and close tab menu command, and using the wheel/center click button. None of these will close that window.
    * When I have multiple tabs open, and close all but one other tab, both of these tabs still navigate properly. BUT if I close that next-to-the-last tab, the problem closes or crashes.

    Start Firefox in [[Safe Mode]] to check if one of the add-ons is causing the problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    * Don't make any changes on the Safe mode start window.
    See:
    * [[Troubleshooting extensions and themes]]
    * [[Troubleshooting plugins]]
    If it does work in Safe-mode then disable all extensions and then try to find which is causing it by enabling one at a time until the problem reappears.
    * Use "Disable all add-ons" on the [[Safe mode]] start window to disable all extensions.
    * Close and restart Firefox after each change via "File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit")

  • Slight problem with the environment

    I have written code that works fine when i run it tthrough JCreator.
    But as soon as i run it via command prompt from windows plattform . it gives exception in main thread and gives the following message
    C:\java>java RandomDice.java
    Exception in thread "main" java.lang.NoClassDefFoundError: RandomDice/java
    The code is ok and works fine .
    Can someone explain what causes this problem and how to handle it

    Read question number 4
    "http://access1.sun.com/FAQSets/newtojavat
    echfaq.
    html]here
    Do you mean
    [url=http://access1.sun.com/FAQSets/newtojavatechfaq.h
    tml]here?[url=http://access1.sun.com/FAQSets/newtojavate
    chfaq.html]here[/url]
    There doesn't appear to be any problem with the
    classpath in this case.
    Oh! I overlooked this RandomDice.javaAnyways it would do the op a world of good if he reads the entire FAQ.

  • Problem with Closed Captioning

    I'm using Cp 5.5.  I have a click box that's set to Open Url or file.  I have selected the options to open the new url in a new window, and I've de-selected the checkbox to Continue playing the project.  So when the user clicks the click box, a new window opens with the linked-to web page, and the main project, including the audio, pauses.  So far, so good.  But the problem is with the closed captioning.  If the closed captioning is turned on, it acts as if the audio has not paused (even though it has), and when the audio would have finished, the closed captioning goes away.  When the user returns to the main project and clicks the Play/Pause button in the playbar, the audio picks up where it paused, but the closed captioning has already disappeared for that slide.
    Is this a bug?  Has anyone else seen this behavior?
    Thanks for any insights.
    Mister C.

    There have previously been some discussions here and on other forums on CC issues and my understanding is:
    1) the SD STB (QIP2500) does not support CC. What you are seeing is your TV interpreting the CC data, not the STB. So if something is being dropped, it is the TV doing it, not the STB, or maybe the characters really are not there.
    2) The HD STBs do support CC. I have seen some complaints here and on other forums about the text not remaining on the screen long enough; I do not use CC myself, but I have turned it on and off a number of times, and my HD DVR seems to leave it up a reasonable amount of time, but that is just my impression.
    There is no software upgrade available for now that I know of. There is supposed to be a new level later this year with new functions and fixes, I have no idea whether there is going to be anything in it that would address your CC issues.
    Hope this maybe helps a little bit.
    Justin
    Verizon FiOS TV, Internet, and phone
    QIP6416, IMG 1.6.2, Build 08.58
    Keller, TX 76248

  • Runtime.exec Problem with setting environment

    Hello
    I will run a command with a new process environment. As example I take "ls". If I use the "exec(String)" method it works fine (like it should; my PATH is ...:/usr/bin:...).
    Next when I use "exec(String cmd, String[] env)" with cmd = ls and env = {PATH=} then the programm also prints out the listing of the current directory. In my opinion this shoudn't work.
    I have the problem using jdk1.2.2 (Solaris VM (build olaris_JDK_1.2.2_10, native threads, sunwjit)) on Solaris 8.
    As I understand the exec the method should work like this:
    1. fork a new Process
    2 set environment for the new process
    3 exec the new Programm in this process
    Is this statement right?
    On Solaris 2.6 the program works fine and I get an IOException.
    Some hints way the env for the process isn't set?
    Thanks
    ========================================================
    import java.io.*;
    public class Test {
    /** Version der Klasse. */
    public static final String VERSION = "$Revision:$";
    public static void main(String[] arg) {
    try {
    call("ls", new String[]{"PATH="});
    } catch (Exception ex) {
    System.out.println(ex);
    private static void call(String cmd, String[] env)
    throws Exception
    Runtime rt = Runtime.getRuntime();
    try {
    System.out.println(cmd);
    Process p = rt.exec(cmd, env);
    StreamGobbler errorGobbler = new
    StreamGobbler(p.getErrorStream(), "ERROR", System.err);
    StreamGobbler outputGobbler = new
    StreamGobbler(p.getInputStream(), "OUTPUT", System.out);
    errorGobbler.start();
    outputGobbler.start();
    try {
    p.waitFor();
    } catch (InterruptedException e) {
    if (p.exitValue() != 0) {
    throw new Exception("Process failed");
    } catch (IOException ex) {
    System.out.println("IOException: " + ex.toString());
    class StreamGobbler extends Thread {
    private InputStream m_input;
    private OutputStream m_output;
    private String m_type;
    private StringBuffer m_message;
    StreamGobbler(InputStream is, String type, OutputStream os) {
    this.m_input = is;
    this.m_output = os;
    this.m_type = type;
    this.m_message = new StringBuffer();
    outputGobbler.start();
    try {
    p.waitFor();
    } catch (InterruptedException e) {
    if (p.exitValue() != 0) {
    throw new Exception("Process failed");
    } catch (IOException ex) {
    System.out.println("IOException: " + ex.toString());
    class StreamGobbler extends Thread {
    private InputStream m_input;
    private OutputStream m_output;
    private String m_type;
    private StringBuffer m_message;
    StreamGobbler(InputStream is, String type, OutputStream os) {
    this.m_input = is;
    this.m_output = os;
    this.m_type = type;
    this.m_message = new StringBuffer();
    public synchronized void run() {
    try {
    InputStreamReader reader = new InputStreamReader(m_input);
    BufferedReader bufferedReader = new BufferedReader(reader);
    PrintWriter writer = new PrintWriter(m_output, true);
    String line = null;
    while ( (line = bufferedReader.readLine()) != null) {
    writer.println(m_type + "> " + line);
    this.m_message.append(m_type + "> " + line + "\r\n");
    } catch (IOException ioe) {
    ioe.printStackTrace();
    public synchronized String getMessage() {
    return this.m_message.toString();

    I'm having the same problem...
    Have you been able to solve your problem yet?

  • Problem with initialization environment files

    I'm trying to get a .profile file to work in my login environment, but it just doesn't want to cooperate. I get errors on just about everything. In fact, the only thing I've been able to get to work is the echo command. It doesn't matter whether or not I use fully qualified paths for the commands or not. Here's a short list of some of the problems.
    1. Blank lines generate the following error...
    : command not found
    2. pwd command generates the following error...
    : command not found
    3. /bin/ls command generates the following error...
    : No such file or directory
    4. Echoing the PATH environment variable actually works...
    /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin
    BTW, these commands work just fine from the command line. But if I manually run .profile, or have it run automatically when I launch a terminal window, these errors appear. I'm very familiar with command line interfaces as I've used a multitude of shells over the years in both Solaris and Linux environments. I just don't get what's going on with the Mac. Searching with Google has also drawn a blank, so far. I'm hoping someone has a simple answer for this.

    First, by any chance did your .profile get transferred to your Mac via a Windows system so that it is now <CR><LF> terminated. That will mess up just about every Unix shell
    Here are the steps I used to initially get my environment files over to the Mac.
    1. Created a tar file on a linux platform with my pre-existing environment files.
    2. Tar file was compressed with gzip.
    3. Compressed tar file was then burned to CD.
    4. CD loaded onto a Windows platform.
    5. From Windows platform, tried to email tar file to myself but it was too big to send.
    6. From Windows used WinZip to uncompress and open the tar file.
    7. Extracted the contents to a folder.
    8. Removed unnecessary files from folder to make result smaller. Also split contents of folder into multiple folders.
    9. Used WinZip to zip new folders containing necessary files into multiple zip files.
    10. Emailed zipped files to my home email account.
    11. Opened email from Mac and downloaded zip files.
    12. From a terminal window unzipped files using /usr/bin/unzip.
    13. Copied environment files to home directory with a cp –pr command.
    14. Disabled all environment files (by adding different file extensions) so I could begin experimenting with what I needed to change.
    15. Started with the .profile file by commenting out most of the file and leaving just a few commands. This is when my problems began. BTW, I used xemacs to edit the file. Xemacs was download and installed via Macports a while back in preparation for creating a development environment for myself. Getting my login environment going was my next step in the process.
    16. Since I couldn't get it to work, I then put nothing but some simple shell commands in the .profile to see what would happen. Commands like pwd, ls, and echo. And as I explained in the original post, the only thing that worked was the echo command.
    Looking at the preceding steps, the files were never opened on the Windows platform… is it possible that the WinZip steps caused <CR><LF> characters to appear somehow? Or, is it possible that xemacs messed up my file? I use emacs and xemacs all the time on linux and solaris systems with no such problems. Actually, at one point in my messing with the .profile file, in frustration, I decided to open it with vi. I hate vi, but know just enough to be dangerous. What I did was to remove a blank line (remember, blank lines are generating errors too) and insert another one. I figured vi is about as basic and primitive an editor as you can get. So, if any funny control characters are present, that should at least alleviate the problem. Unfortunately, even that still generated the same error.
    Have you tried a simplified .profile?
    Yes. See #16 above.
    Do you have more than one shell initialization file. Bash will look for
    .bash_profile
    .bash_login
    .profile
    in that order and use the first one it finds, then stop looking. If you any of the 2 earlier initialization files, bash will not bother looking at your .profile
    No, I do not have more than one initialization file... at the moment. And yes, I know what bash looks for, and in what order. At the moment I am only using a .profile just to see if I can get things working. See #14 and #15 above.
    I am assuming your shell is 'bash', the current Mac OS X default, however, if you started using Macs back in the Jaguar days, and have just been upgrading, then you shell might be tcsh, which would not even look at .profile, and trying to run it interactively would generate strange results when interpreted by tcsh.
    And of course, it is always possible you intentionally changed your shell. If you did that would be useful information. I suspect you did not, but I figured I would ask.
    Yes, I'm using the bash shell. $SHELL returns /bin/bash, and $0 returns -bash.
    If your lines end in ^M, then your .profile has been DOS'ified.
    Ok, I did the cat command you've suggested. BTW, thanks for the options on the cat command. I didn’t realize cat had options to show special characters. I’ve used it for years and never really looked at the man page on it. I believe there is also a way to see control characters within xemacs, but I can’t remember how to do that.
    Anyway, the file is definitely showing ^M characters. My first question is, is ^M the same as <CR><LF>? The reason I ask is it may have been xemacs that put those there, or they may have already been there from the files I transferred from the linux platform. I'm pretty sure xemacs uses ^M's because whatever mode I was able to put xemacs in in the past to see control characters, I'm about 99% sure I've seen all lines ending in that. Of course, that brings me to my next question. If that's true, why do these files work on linux and solaris platforms and not OS X? Like I said, I do most of my editing with xemacs, and I know the environment files were originally created on the other platforms using xemacs.
    If you have any ideas on these questions, please enlighten me. In the mean time, I'll play around with trying to get rid of the ^M's to see what happens. Not sure how I'm going to do that though since I'm not that familiar with a lot of other editors, so I wouldn't know how to load the files and remove the invisible ^M characters. I also really do not want to hand type in all my environment files if this turns out to be the problem. And if I use xemacs to perform the editing, then it'll just save the file with ^M's anyway.
    Thanks for your help.

  • Problem with closing macbook pro and having to open it up and turn it back on

    Often after closing my macbook pro 13" i have to click the power button then It comes up with the blue startup screen and bars that light up from left to right and i don't know whats going on, if anyone knows whats going on please help, and thanks!

    Hi. You might have a memory problem. With one or more of your ram being bad. If this is so you can try removing the ram one at a time and try to restart . You can also switch ram slots to make sure ifs not the ram slot. Before you do this try a pram reset. Command/Option/P/R holding down these keys while starting up for three chimes. Also a SMC reset.http://support.apple.com/en-us/HT201295    http://support.apple.com/en-us/HT202768

  • Installation problem with Composition Environment 7.1 SR3 - Trial Version

    Hi guys,
    I'm installing that 1.6G version of Composite Environment. I encountered the following error just after I accepted the license agreement.
    An error occurred while processing service SAP NetWeaver CE Developer Edition > SAP NetWeaver CE Development System( Last error reported by the step :The subkey 'HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\DGAPIMon' does not exist on the 'localhost' host.). You may now
    choose Retry to repeat the current step.
    choose View Log to get more information about the error.
    stop the task and continue with it later.
    Log files are written to C:\Program Files/sapinst_instdir/CE71_DEV_ADA/INSTALL.
    I'd appreciate it very much if you could help me

    Hi,
    1. See to it that all previous instances of SAP trial versions of sw have been removed from your PC/laptop.
    2. Remove your laptop from any network and install Ms- loop back adapter or have a it connect to a network with proper IP.
    3. Have your DHCP enabled.
    Let us know if above suggestions worked for you.
    Cheers!!
    Sukanta Rudra

  • Problem with closing Goods Receipt PO

    Hello,
    I want to close a Goods Receipt PO Document.
    When I use the code below, an error occurs ( Date deviates from due date range,'208040' ) :
    Public oGoodsRPO As SAPbobsCOM.Documents = CType(oComp.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oPurchaseDeliveryNotes), SAPbobsCOM.Documents)
    oGoodsRPO.GetByKey(120210)
    Dim Derr As Integer = oGoodsRPO.Close()
                        If Derr  <>  0 Then
                            Dim serr As String = ""
                            oComp.GetLastError(Derr, serr)
                            Throw New Exception(serr)
                        Else
                        SBO_Application.SetStatusBarMessage("Goods Receipt was closed successfully")
                        End If
    I then tried to change the active period and set it in October 2006, but
    always the same problem.
    What's the Origin of this problem and how I can solve it.
    Thank You,
    Best Regards,
    Youssef El Bahmi.

    Hi,
    Try to get the Curren Period in a Message Box and Check whether you are closing the Document after Posting Date
    Mohamed Zubair

  • Problem with closing other firefox windows when window in use has more than 1 tab open

    If I have multiple firefox windows open, and the one that I am using has more than one tab open, when I try to close one of the windows that I am not using by hovering over the firefox icon on the taskbar, then clicking the cross on the other windows, a message appears asking me if I want to close a window with more than one tab open. This means that firefox is trying to close the window that I'm using, not the one I'm trying to close. Please note this only happens when I hover over the icon on the taskbar then click the cross for the window I want to close. If I open the window properly, then click the cross on the window itself, it works fine.
    Just wanted to know if anyone else has this problem, and if they do, then mozilla should probably fix it in their next update, it's getting really annoying now

    I can't find a bug on file for this on https://bugzilla.mozilla.org/ (although there are many taskbar-related issues under review).
    (1) Just to confirm, do you both have "Show tab previews in the Windows taskbar" turned off here:
    orange Firefox button (or Tools menu) > Options > Tabs
    (2) Have you tried disabling Firefox use of hardware graphics acceleration?
    You usually need to restart Firefox in order for this to take effect, so save all work first (e.g., mail you are composing, online documents you're editing, etc.).
    orange Firefox button (or Tools menu) > Options > Advanced
    On the "General" mini-tab, uncheck the box for "Use hardware acceleration when available"
    If you restart Firefox, do you notice any changes?

  • Problem with closing my game in iPAD?

    Hi.......Everyone
    I am using iPAD for testing my game , it is working perfectly.
    But it is not closed or Minimized When I PRESS the HOME button on my iPAD.
    Is there any Memory issues or any other?
    How can I identify  the Problem clearly & as well as the solution  for this?
    Thank you inadvance
    Srikanth

    my only idea would be convert copies of the podcasts to audio files (if they aren't protected files you should be able to use FFmpegX to do this). Sorry I can't be more helpful.

  • HT3131 Problem with closed Mac connected to power adapter

    Dear support, as far as i understand when my mac is connected to display and closed, i can not unplug mac from power  adapter - as the display will be off right away. Problem is - that i don't want my mac always be connected to power as it will harm the battery. Any Ideas?

    Thanks for the answer. So that means there is no way that u can use external display in Clamshell mode without power adaptor.  As far as I understood - I need to fully use my battery at least once a month, and then I can continue using power on all the time until next month, right?

  • Problem with my environment variable

    hello,
    I've set the following environment variables in Windows XP professional:
    JEE_HOME = C:\j2sdkee1.3.1
    JAVA_HOME = C:\j2sdk1.4.2_05
    PATH = ....... ;C:\j2sdkee1.3.1\bin
    When I wanted to run the J2EE server, I've got the following:
    C:\>j2ee
    Exception in thread "main" java.lang.NoClassDefFoundError: C:\j2sdkee1/3/1;C:\j2sdk1/4/2_05\lib\tools/jar;C:\j2sdkee1/3/1\lib\jhall/jar
    The "." changed in a "/"!
    Does somebody know how I can solve this problem?
    Thanks!

    So,
    I have in System PATH : C:\app\xps\product\11.2.0\dbhome_1\bin
    I have in HKEY_LOCAL_MACHINE > SOFTWARE > ORACLE > SYSMAN > OracleDBConsoleorcl : ORACLE_HOME value C:\app\xps\product\11.2.0\dbhome_1
    When i execute sqlplus / as sysdba comman, i receive error "the procedure entry point longjmp could not be found in the dynamic link lib. orauts.dll" and Error "ORA-12560"
    If i execute
    set ORACLE_HOME=C:\app\xps\product\11.2.0\dbhome_1
    C:\>set PATH=%ORACLE_HOME%\bin;%PATH%
    sqlplus "/ as sysdba"
    I don't receive Error.
    Why?

  • Session Problem With Cluster Environment

    Issue:
    To test our web application, we build a simply cluster environment containing 2 nodes, web server and admin. server. if we start all related servers and nodes in the following manner, the web server can not maintain the correct session ID, and mirror them across the nodes due to which the first session/request goes to the first node (node1) and the second request goes to the second (Node2). But Node2 does not have a successful session ID. Thus, our deployed application get a Session Time Out message.
    1.     Start WebLogic Application server
    2.     Started the nodes.
    3.     First start the Webserver
    However, when we change the start sequence as follows, the issue will disappear.
    1.     First start the WebServer
    2.     Start WebLogic Application server
    3.     Lastly started the nodes.
    Question:
    Why does the different start sequences effect the different result of Session Affinity in the cluster environment?
    Thanks for any responses!

    Hmmm... Never thought about it.
    Somehow I always start the environment in this sequence:
    - Admin Server
    - WebServer
    - Cluster
    I assume you are using the Apache HTTP server with the WebLogic proxy plug-in as your WebServer.
    Here you can configure
    - WebLogicCluster - which is a static starting point for the server list, and
    - DynamicServerList - enables that WebLogic automatically adds new servers to the server list when they become part of the cluster.
    What I can think of is that the last option is set to OFF in which case when new servers are added to the cluster, the plug-in cannot proxy requests to the new server.
    This could explain why the start-up sequence matters, i.e., when you first start the WebServer than the cluster nodes, the static list will do its work.
    When on the other hand, the cluster nodes are started before the WebServer the starting point for the server list is not created, because somehow
    to WebServer is not receiving notifications.
    One remark is in order, is that when you did not alter the DynamicServerList property, the default is ON.
    Hope the above makes some sense to you. (http://download.oracle.com/docs/cd/E12840_01/wls/docs103/plugins/index.html)

Maybe you are looking for