Does executeBatch cause ResultSet to be closed?

The JDBC API Tutorial and Reference, Second Edition, states that the following method calls cause the calling statement object's current ResultSet to be close if open
- execute
- executeUpdate
- executeQuery
However, it does not include executeBatch.
Does an executeBatch command cause the calling statement object's current ResultSet to be close if open?

while the comments about executeBatch methods do not specifically refer
to this issue the API for Statement does read
All statement execute methods implicitly close a statment's current
ResultSet object if an open one exists.http://java.sun.com/j2se/1.4/docs/api/java/sql/Statement.html

Similar Messages

  • Why does captivate hang when it is closed in window 8.1 professional ? How is it solved?

    Why does captivate hang when it is closed in window 8.1 professional ? How is it solved?

    Hi,
    Do you see the issue every time you close captivate or is it only in some scenarios? Does it show any error messages? What captivate version are you using (64 bit or 32 bit)? Can you provide some more information or screenshots which can help us reproduce the issue.
    Tamish

  • When I plug in my Lacie Firewire 800 drive it causes certain apps to crash. Chrome will immediately crash when I open it, so will DVD player. It's only when I plug in my Firewire 800 drive, USB does not cause issues. What's the deal?

    When I plug in my Lacie Firewire 800 drive into my Mid-2009 Macbook Pro running Mountain Lion - 10.8.2,  it causes certain apps to crash. Chrome will immediately crash when I open it, so will DVD player. It's only when I plug in my Firewire 800 drive, USB does not cause issues. What's the deal?
    I've restarted, verfied the disk, repaired permissions, smc reset.. don't know what else to do..

    Contact Lacie since it's their product you are having issues with. 

  • My host name changes every few days, since Xmas adding a macbook its changed 6 times. Do I need to stop this? Does it cause problems with sharing between the iMac and macbook?

    my host name changes every few days, since Xmas adding a macbook its changed 6 times. Do I need to stop this? Does it cause problems with sharing between the iMac and macbook?

    There are several possible causes for this problem.
    1. Two (or more) computers on the local network have the same Bonjour name, such as "X's-MacBook-Pro.local".
    2. You have two simultaneous connections to the same local network: probably Ethernet and Wi-Fi. If applicable, disconnect the Ethernet cable or turn off Wi-Fi.
    3. A Mac wakes from sleep due to network traffic. This is due to a bug in OS X that may only affect some models.
    4. A device that gets its network address from the router wakes from sleep, and the address it was using before has been assigned to another device.
    5. A third-party wireless router has incompatible settings or firmware. In that case, refer to the manufacturer or ISP for support. Restarting the router may help, temporarily.
    6. See also this support article.
    Rename the computer in the Sharing preference pane.

  • New to Macbook Air. Screen suddenly expands to 4-500% for no apparent reason. Have to use back arrow to return but lose what I've been typing. What am I doing to cause this?

    New to Macbook Air. Screen suddenly expands to 4-500% for no apparent reason. Have to use back arrow to return but lose what I've been typing. What am I doing to cause this?

    Next time you want to put your iMac screen to sleep, try switching off the Magic Mouse, wait for the notification to come up on the screen telling you the Magic Mouse has been disconnected, wait for it to disappear then press the keyboard shortcut to put the screen to sleep. See if that helps and we'll go from there. If that doesn't help, can you just say wether the screen always turns back on the same time every time?
    Hope that helps
    David

  • Why does firefox cause windows vista to crash

    why does firefox cause windows vistra to crash

    hello, as long as the download-process isn't finished a file gets the .part extension appended - this is the expected behaviour in firefox...

  • Does it cause any harm to charge the iPhone 4 everyday from 70/60/50% to 100%?

    Does it cause any harm to charge the iPhone 4 everyday from 70/60/50% to 100%?
    I mean, not leaving it to the required 20% 10%...

    The iPhone can be charged at anytime for any amount. There is no requirement to wait until the percentage drops to 10%, 20%.

  • Satellite U400 does not wake up after I closed the lid

    When I want to do something like go out then I close the Lid and then I can't get the laptop to wake up again, I have tried some stuff but nothing seem to work.
    I don??t use Toshiba Power Save, I use the usual-normal XP energy and I even tried with Toshiba Power saver but not the software only from Start> Control Panel > but still the laptop does not wake up after I closed the Lid down.
    Anyone that can help me with this issue?
    thnx.

    These are good news but could you please post a short instruction how you have solved this? I think it would be interesting for other users here in the forum!

  • CrystalReportViewer 2008 does not release GDI objects after closing.

    We need help in resolving an issue with a WinForms application we have developed that makes use of the Crystal Reports 2008 viewer control to both generate reports based on various parameters the user supplies and to view these same reports having been previously saved in crystal 2008 format.
    The issue we are seeing is that GDI objects are being created during the report generation process but some are not being released when the report viewer window is closed down. This leads to the system running out of GDI objects (seen by using the Windows task manager) and ultimately the application crashes. It is only when the application is closed completely that GDI resources are returned to the system.
    In an effort to isolate the cause of this problem we created a much simplified WinForms application that simply allowed us to systematically open and close a WinForm  that contains a CrystalReportViewer  to display one of our example reports. We found that the behaviour is the same for this application too.
    Browsing the crystal reports forums reveals there have been a few questions about u201Cmemory leaksu201D like this (see "Thread: CrystalReportViewer memory usage increases until out of memory" as an example) and there has been a good deal of talk about manually "disposing" of report documents and viewers but trying this does not correct this issue
    The extent of the "GDI Object leak" does depend upon the kind of report that is pulled in. One report we have that is 360 pages long and contains graphs and tables of data leaks 390 object per test iteration.
    Is this a known issue with the Crystal Report Viewer and if so is there an update or a workaround available?
    Are we performing all the correct initialisation prior to using the viewer? For example we are supplying the report to the viewer through a ReportDocument object; is there something special we need to do with that?
    Do we have to do anything special when closing the viewer?
    Could it be to do with the design of our reports? We are using the Crystal Reports 2008 editor (sp1) to do this design.
    We urgently need to help in understanding why this is happening and to be able implement a solution that will address this problem.
    I have provided the following code snippets of this sample application to give a flavour of what we are doing and hopefully you can see that it is not complex. The example shows the crystal viewer being presented with a ReportDocument as a Report Source ... this is how our proper application does things but if you try supplying the filename of the crystal report directly, the problem is the same.
    This C# code was written using Visual Studio 2008.
    // ===================================================================================
    //                                                  Sample Code Snippets  
    // ===================================================================================
        static class Program
            /// <summary>
            /// The main entry point for the application.
            /// </summary>
            [STAThread]
            static void Main()
                Application.EnableVisualStyles();
                Application.SetCompatibleTextRenderingDefault(false);
                Application.Run(new MDIParent1());
    // ===================================================================================
    // ===================================================================================
        public partial class MDIParent1 : Form
            private int childFormNumber = 0;
            public MDIParent1()
                InitializeComponent();
            private void ShowNewForm(object sender, EventArgs e)
                Form childForm = new TestForm();
                childForm.MdiParent = this;
                childForm.Text = "Window " + childFormNumber++;
                childForm.Show();
            private void OpenFile(object sender, EventArgs e)
                OpenFileDialog openFileDialog = new OpenFileDialog();
                openFileDialog.InitialDirectory = Environment.GetFolderPath(Environment.SpecialFolder.Personal);
                openFileDialog.Filter = "Text Files (.txt)|.txt|All Files (.)|.";
                if (openFileDialog.ShowDialog(this) == DialogResult.OK)
                    string FileName = openFileDialog.FileName;
            private void SaveAsToolStripMenuItem_Click(object sender, EventArgs e)
                SaveFileDialog saveFileDialog = new SaveFileDialog();
                saveFileDialog.InitialDirectory = Environment.GetFolderPath(Environment.SpecialFolder.Personal);
                saveFileDialog.Filter = "Text Files (.txt)|.txt|All Files (.)|.";
                if (saveFileDialog.ShowDialog(this) == DialogResult.OK)
                    string FileName = saveFileDialog.FileName;
            private void ExitToolsStripMenuItem_Click(object sender, EventArgs e)
                this.Close();
            private void CutToolStripMenuItem_Click(object sender, EventArgs e)
            private void CopyToolStripMenuItem_Click(object sender, EventArgs e)
            private void PasteToolStripMenuItem_Click(object sender, EventArgs e)
            private void ToolBarToolStripMenuItem_Click(object sender, EventArgs e)
                toolStrip.Visible = toolBarToolStripMenuItem.Checked;
            private void StatusBarToolStripMenuItem_Click(object sender, EventArgs e)
                statusStrip.Visible = statusBarToolStripMenuItem.Checked;
            private void CascadeToolStripMenuItem_Click(object sender, EventArgs e)
                LayoutMdi(MdiLayout.Cascade);
            private void TileVerticalToolStripMenuItem_Click(object sender, EventArgs e)
                LayoutMdi(MdiLayout.TileVertical);
            private void TileHorizontalToolStripMenuItem_Click(object sender, EventArgs e)
                LayoutMdi(MdiLayout.TileHorizontal);
            private void ArrangeIconsToolStripMenuItem_Click(object sender, EventArgs e)
                LayoutMdi(MdiLayout.ArrangeIcons);
            private void CloseAllToolStripMenuItem_Click(object sender, EventArgs e)
                foreach (Form childForm in MdiChildren)
                    childForm.Close();
    // ===================================================================================
    // ===================================================================================
        public partial class TestForm : Form
            private ReportDocument crDocument;
            public TestForm()
                InitializeComponent();
            private void TestForm_Load(object sender, EventArgs e)
                crDocument = new ReportDocument();
                crDocument.Load(@"C:\Reports\Sample1.rpt");
                this.crystalReportViewer1.ReportSource = crDocument;
    //            this.crystalReportViewer1.ReportSource = @"C:\Reports\Sample1.rpt";
            private void TestForm_FormClosing(object sender, FormClosingEventArgs e)
                this.crDocument.Dispose();
    // ===================================================================================

    Hi Martyn,
    I tested this and found after using this code to re-initialize the report viewer there we still 400 GDI objects not getting released. This may or may not be a CR issue. Still testing.
    Try this also, I simply created a close button but you should be able to do this in your form close method also depending on how you do it:
            private void CloseReport_Click(object sender, EventArgs e)
                rptClientDoc.Close();
                crystalReportViewer1.Dispose();
                GC.Collect();
                this.crystalReportViewer1 = new CrystalDecisions.Windows.Forms.CrystalReportViewer();
                InitializeComponent();
                crystalReportViewer1.ShowExportButton = true;
                crystalReportViewer1.EnableRefresh = true;
                crystalReportViewer1.Controls.Count.ToString();
                crystalReportViewer1.BackColor.IsNamedColor.ToString();
                crystalReportViewer1.EnableToolTips = true;
                crystalReportViewer1.Refresh();
    The issue has now been tracked - Problem_Report:  ADAPT01301248
    Thanks again
    Don
    Edited by: Don Williams on Sep 15, 2009 11:01 AM

  • How do I find the root cause of a NetConnection closed event?

    Hi,
    I am maintaining a large project developed in Flex/Actionscript.
    The application is using tunneling (RTMPT), and we often get Netconnection "closed" events.
    There is no problem with the physical network.
    I think the event may be caused by either a TCP/HTTP/RTMP event, or may be caused by
    some function in the client calling close() on the connection.
    How can I find the root cause of the "closed" event being thrown?
    Thanks,
    David

    Thanks for the information.  It is helpful but it seems there must be a specification of
    what the client side is expecting, independent of any server implementation. 
    When I say client side, I mean the Adobe communication libraries.
    Where is the specification or source code for how the client libraries treat HTTP tunneled requests and responses?
    One question in particular:  How does the client side library treat a
       Connection: Keep-Alive
    versuse
       Connection:close
    HTTP header setting?

  • I am using the same Apple id for my iPhone and iPad! Does this cause a problem with apps?

    I Was told I should use a whole different I'd with my iPad because if I have both my phone and iPad with the same Apple id it will cause conflict with the apps on each of them. Does this happen?

    No. I've been using the same Apple ID on my iPhone and iPad for years without problems. If fact, if both devices are yours and you use both devices having the same Apple ID on each of them is preferable.

  • Macbook pro does not go to sleep when closing lid

    Hi,
    I'm having a weird problem with my macbook pro. When I close the lid, my macbook does not go to sleep. Even more weird: when I put my macbook to sleep using cmd + alt + the eject button or using the apple button => sleep, my macbook stops sleeping as soon as I close the lid
    It seems like this problem occured after installing the Nosleep extension for mac (http://code.google.com/p/macosx-nosleep-extension/). I already deleted that program and rebooted, but that did not help.

    Please read this whole message before doing anything.
    I've tested these instructions only with the Safari web browser. If you use another browser, they may not work as described.
    This procedure is a diagnostic test. It won’t solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.
    Third-party system modifications are a common cause of usability problems. By a “system modification,” I mean software that affects the operation of other software — potentially for the worse. The following procedure will help identify which such modifications you've installed. Don’t be alarmed by the complexity of these instructions — they’re easy to carry out and won’t change anything on your Mac. 
    These steps are to be taken while booted in “normal” mode, not in safe mode. If you’re now running in safe mode, reboot as usual before continuing. 
    Below are instructions to enter some UNIX shell commands. The commands are harmless, but they must be entered exactly as given in order to work. If you have doubts about the safety of the procedure suggested here, search this site for other discussions in which it’s been followed without any report of ill effects. 
    Some of the commands will line-wrap or scroll in your browser, but each one is really just a single line, all of which must be selected. You can accomplish this easily by triple-clicking anywhere in the line. The whole line will highlight, and you can then copy it. The headings “Step 1” and so on are not part of the commands. 
    Note: If you have more than one user account, Step 2 must be taken as an administrator. Ordinarily that would be the user created automatically when you booted the system for the first time. The other steps should be taken as the user who has the problem, if different. Most personal Macs have only one user, and in that case this paragraph doesn’t apply. 
    Launch the Terminal application in any of the following ways: 
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.) 
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens. 
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid. 
    When you launch Terminal, a text window will open with a line already in it, ending either in a dollar sign (“$”) or a percent sign (“%”). If you get the percent sign, enter “sh” and press return. You should then get a new line ending in a dollar sign. 
    Step 1 
    Triple-click anywhere in the line of text below on this page to select it:
    kextstat -kl | awk '!/com\.apple/{printf "%s %s\n", $6, $7}' | open -ef 
    Copy the selected text to the Clipboard by pressing the key combination command-C. Then click anywhere in the Terminal window and paste (command-V). A TextEdit window will open with the output of the command. If the command produced no output, the window will be empty. Post the contents of the TextEdit window (not the Terminal window), if any — the text, please, not a screenshot. You can then close the TextEdit window. The title of the window doesn't matter, and you don't need to post that. No typing is involved in this step.
    Step 2 
    Repeat with this line:
    { sudo launchctl list | sed 1d | awk '!/0x|com\.(apple|openssh|vix\.cron)|org\.(amav|apac|cups|isc|ntp|postf|x)/{print $3}'; echo; sudo defaults read com.apple.loginwindow LoginHook; echo; sudo crontab -l; } 2> /dev/null | open -ef 
    This time you'll be prompted for your login password, which you do have to type. Nothing will be displayed when you type it. Type it carefully and then press return. You may get a one-time warning to be careful. Heed that warning, but don't post it. If you see a message that your username "is not in the sudoers file," then you're not logged in as an administrator. 
    Note: If you don’t have a login password, you’ll need to set one before taking this step. If that’s not possible, skip to the next step. 
    Step 3
    { launchctl list | sed 1d | awk '!/0x|com\.apple|org\.(x|openbsd)/{print $3}'; echo; crontab -l 2> /dev/null; } | open -ef 
    Step 4
    ls -A /e*/{cr,la,mach}* {,/}Lib*/{Ad,Compon,Ex,Fram,In,Keyb,La,Mail/Bu,P*P,Priv,Qu,Scripti,Servi,Spo,Sta}* L*/Fonts .la* 2> /dev/null | open -ef  
    Important: If you formerly synchronized with a MobileMe account, your me.com email address may appear in the output of the above command. If so, anonymize it before posting. 
    Step 5
    osascript -e 'tell application "System Events" to get name of login items' | open -ef 
    Remember, steps 1-5 are all copy-and-paste — no typing, except your password. Also remember to post the output. 
    You can then quit Terminal.

  • HT4613 But does new Apple TV HD  support closed captioning?

    Apple TV HD is new and small; but does it step forward software-wise to support Closed Captioning,  and SubTitles?

    It's a software issue plain and simple in my view (on AppleTV's side).  I don't think the optical hardware is limited - it's unlikely Apple would have sourced a non-standard optical solution and seeing as they come with the ability to do better quality audio I'd imagine this does too.
    Yes Macs support at least 24/96 over optical as I've just reattached my Mini to a Yamaha DSP to play some 24/96 studio masters from Linn.
    Greg Jarvis wrote:
    Wait a minute peeps - this isn't necessarily a problem with iTunes.  AFAIK iTunes does support 24-bit output - if you play a 24-bit ALE audio file via optical out of your Mac, it's 24-bit audio as far as I'm aware.
    I was under the impression that the issue is with the ATV optical output itself - it's limited to 16-bit. 

  • Why does this cause error (ORA 01008: Not all variables bound)

    When I assign values to parameters for a command object, I used the following code with the .NET provider:
    If oReq.CritSpec = Nothing Or oReq.CritSpec = "" Then
    cmdReq.Parameters.Add(":po5", DBNull.Value)
    Else
    cmdReq.Parameters.Add(":po5", oReq.CritSpec)
    End If
    This works fine, but when I switch to using ODP it generates the 'not all variables bound' error. I checked the parameter's status and it was Success. However, if I change the second line of the statement to
    If oReq.CritSpec = Nothing Or oReq.CritSpec = "" Then
    cmdReq.Parameters.Add(":po5", OracleDbType.Varchar2, DBNull.Value, ParameterDirection.Input)
    Else
    cmdReq.Parameters.Add(":po5", nReq.CritSpec)
    End If
    It seems to be OK. So my question is - why does the first statement generate the error? Am I misinterpreting the overloaded constructor or it it a bug in my code? Thanks.
    ck

    No need to answer, I solved it.
    For anyone else who might run into this, there were two issues:
    1. Assigning DBNull.Value to a parameter without specifying the parameter's type causes the Value property for that parameter to not be initialized. If you reference it, it will come back as a runtime error (check it first by testing for IsNot Nothing).
    2. In my update code, I have a lot of where clauses like "WHERE (COL1 = :1 OR COL1 IS NULL AND :1 IS NULL)". The default binding for parameters treats these two references to :1 as two different parameters. Setting BindByName to true solves the problem.
    ck
    Edited by: user536671 on Feb 15, 2009 7:04 PM

  • Programatically disclosing tab does not cause tab contents to be displayed

    I'm using Jdev 11g, update 2.
    I have a page with a panelStretchLayout. The Start facet has a tree component. The Center facet has a panelTabbed component with 2 showDetailItems, each with different panelForms.
    Manually clicking on the tabs shows the correct contents.
    The tree has a SelectionListener mapped to a managed bean method. When a node is selected, the bean method sets one of the showDetailItems to disclosed.
    There is PRR for the showDetailItems based on the tree.
    This code does cause the right tab to become current. The problem is that the tab contents do not also display IF that tab was not previously the disclosed one.
    An example:
    Tree shows Departments & Employees, The first tab shows the selected Dept from the tree in a form, the other shows the selected Employee from the tree in a form.
    When the page is run, the Dept tab is disclosed by default because it is the first one.
    Select a Dept in the tree. The Dept tab remains disclosed and the correct Dept is displayed.
    Select an Emp in the tree. The Emp tab become disclosed but it is blank. The Emp form does not appear.
    Select a Dept in the tree to reset tabs.
    Now manually click the Employee tab. The Employee formis displayed correctly with the last Emp selcted from the tree.
    Select a Dept in the tree. Now the Dept tab becomes disclosed but it is blank.
    My first thought was that this is a PRR problem with the tab children. But I've tried setting PRR on the panelForms so they are refreshed when the showDetailItems are refreshed. That didn't help.
    I've also tried setting the rendered and visible properties for the tab child (form) programatically. No luck.
    My current code for the selectionListener is:
    public void setSelData(SelectionEvent selevt)
    RichTree tree = (RichTree)selevt.getSource();
    RowKeySet sel = tree.getSelectedRowKeys();
    Iterator seliter = sel.iterator();
    while (seliter.hasNext())
    Object rowKey = seliter.next();
    tree.setRowKey(rowKey);
    FacesCtrlHierNodeBinding node =
    (FacesCtrlHierNodeBinding)tree.getRowData();
    String viewDefName = node.getHierTypeBinding().getStructureDefName();
    if (viewDefName.contains("Dept"))
    setSelDeptNo((oracle.jbo.domain.Number)node.getAttribute("Deptno"));
    OperationBinding ob =
    (OperationBinding)bindings.get("setCurrentRowWithKeyValue1");
    ob.execute();
    } else
    setSelEmpId((oracle.jbo.domain.Number)node.getAttribute("Empno"));
    OperationBinding ob =
    (OperationBinding)bindings.get("setCurrentRowWithKeyValue");
    ob.execute();
    if (viewDefName.contains("Dept"))
    panTab.getChildren().get(0).getAttributes().put("disclosed", false);
    panTab.getChildren().get(1).getAttributes().put("disclosed", true);
    empsTab.setDisclosed(false);
    empsTab.setDisabled(true);
    deptsTab.setDisabled(false);
    deptsTab.setDisclosed(true);
    } else
    deptsTab.setDisclosed(false);
    deptsTab.setDisabled(true);
    empsTab.setDisabled(false);
    empsTab.setDisclosed(true);*/
    panTab.getChildren().get(1).getAttributes().put("disclosed", false);
    panTab.getChildren().get(0).getAttributes().put("disclosed", true);
    }

    That was it. I don't need to set up PPR for the showDetailItems either - just the panelTabbed. I'll remember to walk up and try PPR on all the parent components next time. Thanks.

Maybe you are looking for

  • Macbook video out - double adapter to HDMI tv input?

    To connect my macbook to my HDTV, do I need to connect a mini DVI to DVI cable to the macbook, and then use a DVI to HDMI adapter to connect to the HDMI input on my HDTV? I know I need a separate audio input to the TV using the headphone/optical audi

  • WHT - No unpaid tax lines exist for the given selection criteria

    Before going to execute Create remittance challan J!INCHLN , i entered all the mentioned  parameters and  try to save but  i got error message  as follows No unpaid tax lines exist for the given selection criteria. Message no. 8I702 Diagnosis The cor

  • Math.sin(Math.PI)

    It's a circular pre-loader. When I add the "SecondHalf" the preloader doesn't work and gives an error saying the script is causing the flash player to run slowly. How can I fix this? This code is in:  _root.first_mc._second_mc previewImage.onLoadProg

  • Tables for Materials in Maintenance Order

    Hi experts, I need to implement a program that let me view the materials contained in the maintenance order, but I can not find the tables that contain this information. Can anyone help me or tell me how to get this information (Function or other)? T

  • AD user with no role assignment cannot login

    We have created AD users that are being authenticated through OBIEE 11g. In the AD we currently have the user, password and group information associated with all the users created. As per system behavior if an user's group is not mapped to a role wit