SetQueryTimeout not use seconds

The functions setQueryTimeout() and getQueryTimeout() not use seconds. This function are using milliseconds. This is not JDBC compliant. I use the thin client of the oracle JDBC driver. Is there a fix available?
Another bug is that a very short query timeout of 20 milliseconds the timeout exception throw in the statement.close() and not int call of statement.execute().
Volker Berlin

Hello,
With which release do you tested it?
We are use the release: Oracle JDBC driver 8.0.5.2.0
What is the problem if the exception occurs after the time in milli seocnds.
Any help you could give us in resolving this matter would be greatly
appreciated.
Volker Berlin
Here is the java source code sequence that we tested:
Code:
try {
Statement st = con.createStatement();
long millis = System.currentTimeMillis();
try { st.setQueryTimeout(60); }
catch(Throwable t) {}
number = st.executeUpdate( "DELETE FROM tblUser" );
System.out.println("Number of rows: " + number);
long millis2 = System.currentTimeMillis();
try {
st.close();
System.out.println("after st.close: "+(millis2 - millis));
catch (Throwable t) {
System.out.println("Error st.close after millis: "+(millis2 - millis));
System.out.println("Can not close statement");
t.printStackTrace();
st = null;
} catch( ...And this is one output:
Output:
Number of rows: 4
Error st.close after millis: 150
Can not close statement
java.sql.SQLException: ORA-01013: user requested cancel of current operation
at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:208)
at oracle.jdbc.ttc7.Oclose.receive(Oclose.java:132)
at oracle.jdbc.ttc7.TTC7Protocol.close(TTC7Protocol.java:443)
at oracle.jdbc.driver.OracleStatement.close(OracleStatement.java:1250)and this is a second output
Error st.execute: 134
Can not execute statement
java.sql.SQLException: ORA-01013: user requested cancel of current operation
at oracle.jdbc.ttc7.TTIoer.processError(Compiled Code)
at oracle.jdbc.ttc7.Oall7.receive(Compiled Code)
at oracle.jdbc.ttc7.TTC7Protocol.doOall7(Compiled Code)
at oracle.jdbc.ttc7.TTC7Protocol.parseExecuteFetch(Compiled Code)
at oracle.jdbc.driver.OracleStatement.doExecuteOther(Compiled Code)
at oracle.jdbc.driver.OracleStatement.doExecuteWithBatch(Compiled Code)
at oracle.jdbc.driver.OracleStatement.doExecute(Compiled Code)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(Compiled Code)
at oracle.jdbc.driver.OracleStatement.execute(Compiled Code)

Similar Messages

  • Msi 7990 not using second gpu

    hi
    afterburner is saying gup one usage is 100% and gpu usage is 0%
    why is this
    how do i switch gpu 2 on
    thanks

    Hi Sema
    Is crossfire enabled in amd catalyst driver suite?
    Sent from my C6603 using Tapatalk 4

  • Good evening, my name is Ludmila I have a problem. im buy second hand iphone 5 but I can not use the screen shows asking me apple id but I do not know this is my first iphone I do not know what the police thought it was stolen or lost but I you can help m

    Good evening, my name is Ludmila I have a problem. im buy second hand iphone 5 but I can not use the screen shows asking me apple id but I do not know this is my first iphone I do not know what the police thought it was stolen or lost but I you can help me. Someone told me we should stop function Find my iphone but how?? email does not even know the first lord. It cost me 400 euros but may not use iphone. someone laugh at me because I deceived. Please help me tell me his email talk to you should stop off iCloud or ID

    Scuzati de engleza google translate

  • I can no longer login to receive my webmail with a second email address; i have already cleared my "saved passwords" and cleared my history, and still i can only login using one email address but not my second one, which i previously was able to do

    details are listed in the question; i login using one email address to this site but not my second, which i have always been able to do
    The error message is:
    Login failed because your username or password was entered incorrectly.
    However, all my login information is correct.

    try the hints found at
    http://support.apple.com/kb/TS1417

  • HT4293 i am trying to use dual monitors when editing with FCPX. I have a macbook pro and an apple cinema display monitor. I have connected them and opened Fcpx but the option to use second monitor is not active! what do i do ? please help going bonkers!

    i am trying to use dual monitors when editing with FCPX. I have a macbook pro and an apple cinema display monitor. I have connected them and opened Fcpx but the option to use second monitor is not active! what do i do ? please help going bonkers!

    <http://support.apple.com/kb/HT5891>
    You can use USB for the Apple trackpad.
    <http://www.mobeetechnology.com/the-power-bar.html>

  • Deleted iPhoto and now I can't reinstall it -I'm using a second hand iMac so not using the Apple ID used to register it

    I had trouble updating iPhoto so I uninstalled it but now I can't reinstall it. I'm using a second hand iMac so I'm not using the Apple ID that was used to first register it. When I go to the App Store and try to download iPhoto it just says (accept) I click this but nothing happens ?
    Please help 

    Maybe you need to register the computer with Apple:
    Register Your Apple Product
    Your Support Profile for Registered Purchases

  • I can import my first clip to the video library, but not the second clip. I tried dragging-dropping and using the "E" key, but only the first clip will show up in the library. I use IMovie 9.0.9 and OSX 10.8.5. with no problems until yesterday.

    I can drag my first clip from the New Event window into the Project Library, but not the second. I can highlight the second clip in the New Event window, but it won't "drag". The "E" key works for the first clip, but not the second.I've been using IMovie daily and the problem just appeared. No upgrades to the computer and no new software installed.  IMovie 9.0.9 and OSX 10.8.5

    Thanks victoryhat.  I learned some new things from this very clear tutorial.  But it didn't answer my question about why the titles don't stay with the video when I export it.
    He did mention something that might be a clue however.  When he talked about importing a title he created as an image, he noted that he was careful to make the image the same size as the video he was adding it to: 1280 x 720.  Since I took the video with an iPhone in the vertical position, my video image isn't the same size and orientation as the titles.
    Maybe there is a way I should be setting the screen for this size???  I'll go back and play around.  Meanwhile thanks for alerting me to Gary Rosenzweig's MacMost tutorials.  Very clear.  I'll look for more.

  • Where is the customer service? Can not use my subscribtion on the second computer, it does not download keeps seeying buy buy buy

    Where is the customer service? Can not use my subscribtion on the second computer, it does not download keeps seeying buy buy buy

    Where is the customer service? Can not use my subscribtion on the second computer, it does not download keeps seeying buy buy buy

  • Own Photoshop CS5.1 installed on two iMacs, when using second iMac, rarely used,got error message ~"not authorized to use program" on this second iMac I have two accounts one in my name one in my wife's both share photoshop...was in my wife's account when

    Own Photoshop CS5.1 installed on two iMacs, when using second iMac, rarely used,got error message ~"not authorized to use program" on this second iMac I have two accounts one in my name one in my wife's both share photoshop...was in my wife's account when I got message...never happened on my primary iMac on which I have my own account and one for guest account that doesn't share photoshop....what is wrong..am allowed to install program on two machines?

    Customer Care would have the authority to reset activations. We are basically users such as yourself and can't do this.
    Contact Customer Care
    Gene

  • I did the recent update on my ipad 7.0.4 and now it keeps freezing up and can not use it. Tried reboot and works for a second then freezes right up again. Anyone else have this issue or know a fix?

    I did the recent update on my ipad 7.0.4 and now it keeps freezing up and can not use it. Tried reboot and works for a second then freezes right up again. Anyone else have this issue or know a fix?

    Madmonkey,
    First thing to try is to reset your device. Press and hold the Home and Sleep buttons simultaneously until the Apple logo appears. Let go of the buttons and let the device restart. See if that fixes your problem.
    Gaylefromnewhope,
    Seems like you tried this all ready and it didn't help.
    Next might be to reset all settings.
    Settings > General > Reset > Reset all Settings
    Note that when you do this you will not lose data but you will have to enter all passwords again.
    If that doesn't help you might tries a restore of your iPad using iTunes on the computer you normall sync with. Do a backup and save all data first. Or
    Make an appointment at an Apple Store to have your device examined by a technician. Or contact Apple Support.

  • Cascaded routers: no internet access when second router not use NAT

    Cascaded routers: no internet access when second router not use NAT
    Here is my setup:
    [pre]
    WAN
    |
    | 74.96.170.x (WAN IP)         |
    | Router1(Verizon FiOS Router) |
    | Model: MI424WR-GEN2 (Rev F)  |
    | Firmware: 20.21.0.2          |
    | Def router: 74.96.170.1      |
    | 192.168.1.1 (Local IP)       |
    |
    |  192.168.1.22 (WAN IP)   |
    |  Router2(Linksys)        |
    |  Model: WRT54GL v1.1     |
    |  Firmware: v4.30.16      |
    |  Def Router: 192.168.1.1 |
    |  192.168.2.1 (Local IP)  |
    |
    | Computer 192.168.2.160   |
    | Def Router: 192.168.2.1  |
    "q.route" 120L, 4441C written
    [m.wang@m-wang-ltm2:/Users/m.wang/m/Network]
    $ more q.route 
    Cascaded routers: no internet access when second router not use NAT
    Here is my setup:
    [pre]
    WAN 

    | 74.96.170.x (WAN IP)         | 
    | Router1(Verizon FiOS Router) | 
    | Model: MI424WR-GEN2 (Rev F)  | 
    | Firmware: 20.21.0.2          |
    | Def router: 74.96.170.1      |
    | 192.168.1.1 (Local IP)       | 
    |
    |  192.168.1.22 (WAN IP)   | 
    |  Router2(Linksys)        | 
    |  Model: WRT54GL v1.1     |
    |  Firmware: v4.30.16      |
    |  Def Router: 192.168.1.1 |
    |  192.168.2.1 (Local IP)  |
    |
    | Computer 192.168.2.160   | 
    | Def Router: 192.168.2.1  | 
    | NO iptables, basic setup |
    [/pre]
    On computer, I have:
    [pre]
    # route
    Kernel IP routing table
    Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
    default         192.168.2.1     0.0.0.0         UG    2      0        0 enp2s0
    loopback        localhost       255.0.0.0       UG    0      0        0 lo
    192.168.2.0     *               255.255.255.0   U     0      0        0 enp2s0
    [/pre]
    On Router2, I have:
    [pre]
    Routing Table Entry List
    Destination LAN IP | Subnet Mask   | Gateway   | Hop Count | Interface
    192.168.2.0          255.255.255.0   0.0.0.0     1           LAN & Wireless
    192.168.1.0          255.255.255.0   0.0.0.0     1           WAN (Internet)
    0.0.0.0              0.0.0.0         192.168.1.1 1           WAN (Internet)
    [/pre]
    Router2's Operating Mode is Gateway. On Router1, I have: 
    [pre]
    [Router1] Routing Table
    Name                  Destination Gateway      Netmask       Metric   Status
    Network (Home/Office) 192.168.2.0 192.168.1.22 255.255.255.0 0        Applied 
    Network (Home/Office) 192.168.1.0 192.168.1.1  255.255.255.0 0        Applied 
    Routing Protocol: Internet Group Management Protocol (IGMP)
    Default Gateway: 74.96.170.1
    [/pre]
    On computer, I can run tcptraceroute to yahoo.com OK:
    [pre]
    # tcptraceroute yahoo.com
    Selected device enp2s0, address 192.168.2.160, port 46596 for outgoing packets
    Tracing the path to yahoo.com (206.190.36.45) on TCP port 80 (http), 30 hops max
     1  192.168.2.1  0.610 ms  0.729 ms  0.735 ms
     2  192.168.1.1  1.843 ms  1.378 ms  1.363 ms
     3  l100.washdc-vfttp-107.verizon-gni.net (96.241.146.1)  13.620 ms * *
    ... /* It reached the destination. */
    [/pre]
    I want to change Router2's Operating Mode from "Gateway" to "Router" because I
    want to turn off NAT on Router2 so that I can access all computers attached to
    Router2 by their individual IP instead of using port forwarding at Router2.
    The problem is after the mode change from "Gateway" to "Router", and regardless
    whether I disable RIP or enable RIP, and on what interfaces it is enabled, computer
    192.168.2.160 does not have internet connection. 
    Observations:
    [0] INTRAnet works as I can reach computer 192.168.2.160 from computer behind Router1
    192.168.1.x and vice versa.
    [1] ping and traceroute *work* on Router2 itself using the built-in dianostic tool.
    [2] nslookup on computer 192.168.2.160 always works on new lookup. It uses
    192.168.2.1 as the resolver.
    [3] tcptraceroute stops after step 2:
    [pre]
    # tcptraceroute yahoo.com
    Selected device enp2s0, address 192.168.2.160, port 45999 for outgoing packets
    Tracing the path to yahoo.com (98.139.183.24) on TCP port 80 (http), 30 hops max
     1  192.168.2.1  2.553 ms  0.534 ms  0.638 ms
     2  192.168.1.1  1.342 ms  0.964 ms  0.867 ms
     3  * * *
    [/pre]
    [4] tcpdump shows that computer 192.168.2.160 tries to reach out and nothing is returned:
    [pre]
    13:34:03.172828 IP 192.168.2.160.45999 > 98.139.183.24.http: Flags [S], seq 1122548929, win 0, length 0
    13:34:06.175786 IP 192.168.2.160.45999 > 98.139.183.24.http: Flags [S], seq 1122548929, win 0, length 0
    13:34:09.178804 IP 192.168.2.160.45999 > 98.139.183.24.http: Flags [S], seq 1122548929, win 0, length 0
    [/pre]
    This is not expected because NAT to internet should still be done by Router1, no? Computer
    behind Router1 with IP 192.168.1.x has internet connection.
    [5] It looks like I cannot change the Routing Table Entry on Router2. I do not think I need to change anything,
    just an observation.
    [6] If I use LAN to LAN connection, then both intranet and internet works. [The internet IP of Router2 can be
    anything not in the same subnet of the Router1, and DHCP on the local side should be disabled to avoid conflict
    with the the DHCP on Router1].

    I have a question. Unfortunately in order to ask my question, I have to have a lengthy description of my setup. Basically, I have a second Linksys router in "router" operating mode with NAT disabled connected to the Verizon router, and I have a computer which is in a different subnet (192.168.2.x) behind the Linksys router. This computer can communicate with computers behind Verizon router in subnet (192.168.1.x), but cannot reach internet. This is a simplified version of my question, full details are in the original post.
    If I setup the Linksys router in "gateway" operating mode, which means with NAT enabled, then both intranet and internet works, but there is no easy way to setup port forwarding for 10 compueters in 192.168.2.x network to communicate with 10 computers in 192.168.1.x network.
    If I setup the Linksys router in a LAN to LAN configuration with Verizon routers, but this way all computers are in the same subnet, I want them to be in different subnet for access control and things like that.
    I hope this makes things a little clear.
    Thanks.

  • HT1338 why does my imac keep making a noise every 30 seconds when I am not using it?

    My iMac keeping making a sound (sort of a clicking sound) every 30 seconds when I am not using it. It is very annoying; is therre a way to stop it?

    Bring it in to service, and ask them to tell you what the noise is.  Sometimes it just is the optical drive realigning itself.   It could be the sign of a dying hard drive.  Only they can tell the difference.

  • AFP-High CPU Load-Not Using Home Directories-10.5.6

    We recently rolled out a Leopard File server (AFP, SMB services only) this past Monday using 10.5.6. We have about 30 AFP and 15 SMB users. We have 5 Apple XRAIDS connected through a Sanbox 5200 switch to the Leopard server. We are not using home folders for the users.
    Similar to some users in this article (http://discussions.apple.com/thread.jspa?threadID=1685965&tstart=0), I have noticed an increase to 100% CPU usage in just a few hours, and the second day 200%. Although the server does keep allowing new logons, performance is being affected. As noted by others, manually disconnecting all active or sleeping connections does not lower the CPU usage.
    I though that following the suggestions in this article (http://support.apple.com/kb/HT1765) about disabling Allow Host Cache Flushing in the XRAID performance tab would help, and it did, but just for a short while, and then at about noon, when the XRAID had been accessed for about 6 hours, and the 20th AFP user logged in, the CPU usage spiked back to 100%.
    I am wondering if this is related to the number of AFP connections (more than 20), or if I have some client machine causing havoc when it logs in.
    Here's my XRAID configs:
    Use Controller Write Cache
    Not Allow Host Cache Flushing
    Use Drive Write Cache
    Read Prefetch: 8 stripes (512 KB/disk)
    Fiber Channel:
    Speed: Automatic
    Topology: Automatic
    Firmware: 1.5.1/1.51c
    At this point, I really am stumped as to why the AFP service won't let go of the CPU, even when users are kicked off. I haven't added any of my XRAID shares to the private portion of Spotlight, but the volumes have already been indexed long ago, and since then I've rebooted several times, and not many new files are getting created any way.
    At any rate, I don't think this issue has anything to do with Home Directory sharing, as I'm not using them.

    I'll also mention that most (95%) of our clients are still using Tiger 10.4.11. We have very few Leopard clients (10.5.5 & 10.5.6).

  • Can you create a form not using a php script?

    I need to create a contact us form on my website using DW and have researched how and understand the easiest way is using a php script.  Unfortuntately, my webhost server does not support this and will charge me an arm and a leg in order to to do it.  Is there another way to have a functioning contact form not using a php script?

    Yes and no.
    You could use a mailto link for your form action instead of a PHP script.
    There are several problems with this method though. First, when you do that, you are at the mercy of the viewer's computer set-up. Mailto links use whatever email client is installed on the machine in order to send the message. Public computers (libraries, colleges, etc) almost never have an email client installed, so when a viewer on one of those machines clicks the link, nothing happens. Secondly, your email address is open for spam harvesters, so you may end up with enlargement and nigerian scam emails flooding your inbox.
    Since your provider doesn't give you a way to do it the right way on your server, you may want to look into email form services online and see if they are less expensive than your current alternative.

  • HT5706 I have not used my apple tv in a few years, and just got it out of the bag. I connected it up, and it cannot set date, time.  it also does not interact with the remote.  Could it be as simple as a new batter is needed for remote?

    I have not used my Apple TV in a few years, and just got it out of the bag to use on a new TV.  I connected it up to power and with an HDMI cable toTV.  It attempts to set date and time and cannot.  I cannot get the remote to interact with the box also.  Could it be something as simple as needing a new battery?

    Hi kybriar,
    Thanks for using Apple Support Communities.  This article has steps you can take to troubleshoot the remote itself:
    Troubleshooting the Apple Remote
    http://support.apple.com/kb/ht1722
    For the issue of setting the date and time, these articles may help:
    Apple TV: Basic troubleshooting
    http://support.apple.com/kb/ht1551
    Reset Apple TV by unplugging it from the power outlet, waiting about five seconds, then plugging it in again.
    Power off your TV, wait five seconds, then power it back on.
    Apple TV (2nd and 3rd generation): Troubleshooting Wi-Fi networks and connectionshttp://support.apple.com/kb/TS4546
    Ensure that Apple TV is within range of your Wi-Fi router or base station.
    Confirm that your Wi-Fi router and cable/DSL modem are connected to power and turned on.
    Make sure other devices (computers, iPhone, iPad, for example) are able to connect to the Wi-Fi network and access the Internet.
    Check your Wi-Fi network settings on Apple TV:
    Select Settings > General > Network > Wi-Fi and press the center button on the remote to display nearby networks.
    Choose your Wi-Fi network from the list.
    If your Wi-Fi network uses a password, make sure you are entering it correctly.
    Restart your Apple TV by selecting Settings > General > Restart.
    Try restarting your Wi-Fi router or modem by turning it off and then on again.
    If possible, connect an Ethernet cable and verify your Internet connection. If you can connect to the Internet using an Ethernet connection, verify that your Apple TV is using the latest software by selecting Settings > General > Software Update. If your Apple TV can be updated, install the update and then try the steps again.
    Cheers,
    - Ari

Maybe you are looking for

  • For the love of god will someone please point me in the right direct

    I have a SoundBlaster Li've! 5. soundcard installed in my pc. My pc crashed and a new hard disk was required. I do not have the CD that came with the card,?I have managed to ?download Li'veDrvPack.exe, all be it from DriverGuide.com as i cannot find

  • Inventory postings to Dummy purchase A/c.

    Hi Team, If I do GR for sub-con PO (Say, Parent material- P100100 and Child- C100100), current postings are as below: Inventory A/c     Cr $100 for P100100 (101): Dummy purchase A/c     Dr $100 Inventory A/c     Dr $100 for C100100(543): Dummy purcha

  • Page not rendering correctly

    I have a site I am going to that is not rendering properly, instead of seeing a standard page I see a list of links, followed by pictures. Kind of like you usually see on a "Site Map" page. I have contacted the webmaster and he says it does render pr

  • Can somebody explain this?

    This would look better if it were in a fixed width font (viewable at [http://sites.google.com/site/jbo5112/oracle_problem]), but this is a direct copy out of my sqlplus window. I have not altered a single thing with my tables, querries, omitted anyth

  • Editable SALV Dropdown issue

    Hi Gurus, in WebDynpro for ABAP, I have a SALV based editable table in which lot of columns have dropdowns (Drop down by Index) and by default system is creating a roundtrip to the server whenever I make a selection in the drop down. Whenever data to