JDBC Cancel works in development but not in production

I am working on a J2EE application that uses Oracle 10.2 as the database. I have a requirement to implement a cancelable query feature using the statement.cancel() function. I developed code that works against our development database instance. The code fails to work in testing on production - the query executes to completion. We use BEA Weblogic as our application server. I have checked the settings on Weblogic and am pretty sure that we are running with the same application server settings in development and production. What do I need to check on the database that might stop the cancel from running? I got a few moments of an Oracle DBAs time and he didn't see anything obvious.

Hi,
Statement.cancel() sends a message to the DB and waits for a reply. If the DB is not responding, for whatever reason, then the cancel will hang until the socket read times out. I'd investigate the workload on the production database and any network/sockets.
Kuassi - blog @ http://db360.blogspot.com/
------ book http://www.amazon.com/gp/product/1555583296/

Similar Messages

  • BAPI works in test but not in production

    3rd party software uses BAPI to input data into SAP. This works in test but not in production. We have checked that user 3rd party software uses have same rights in both systems. BAPI is standard SAP BAPI. We can connect to production with SM59.
    Is there anything in SAP that could cause this?

    No. Better you check with the PATCH Levels.. etc to know is there any changes in the BAPI (BASIS people can help you) > Otherwise go to SYSTEM in the MENUBAR> STATUS--> Compare the Status there
    After that check the data once...
    Reward if helpful...

  • Error Determining Smartform - Smartform working in Development but not in Q

    Hello all,
    I'm currenlty working on a smartform in a development box and it is working as expected after doing the testing in that box but after transporting the change to Q, the new changes are not displayed in the smartform. I already revised the changes and both smartforms are the same in both boxes, it was activated and the code is the same but for some reason the smartform is not displaying the new and modified changes. Does anyone have received a similar error before? Can anyone help me in this issue?
    Thanks

    There can be only 2 possibilities.
    1. Check you Form interface/Tables...whether all the tables, structures are there as in development, if  not transport the missing structures and tables.
    2. There might be a issue with function module "DO NOT HARD CODE THE SMARTFORM GENERATED FUNCTION MODULE"
    Declare as follows:
    data : formname type rs38l_fnam.
    call function 'SSF_FUNCTION_MODULE_NAME'
      exporting
        formname           = 'ZFIM_CASHPMTVOUCHER' -
    >Please mention your form name here.
       variant            = ' '
       direct_call        = ' '
      importing
        fm_name            = formname----
    >this will store the generated function module
      exceptions
        no_form            = 1
        no_function_module = 2
        others             = 3.
    if sy-subrc <> 0.
      message id sy-msgid type sy-msgty number sy-msgno
              with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    exit.
    endif.
    call function formname        -
    >Then call the generated function module here.
    exporting
      archive_index              =
      archive_index_tab          =
      archive_parameters         =
      control_parameters         =
      mail_appl_obj              =
      mail_recipient             =
      mail_sender                =
      output_options             =
      user_settings              = 'x'
    importing
      document_output_info       =
      job_output_info            =
      job_output_options         =
      tables
        it_output                   = it_output                       -
    >Check whether all the tables that you pass to your smartform                                                                               
    interface is aval..are aval...and if any structure..then see it at
        it_bkpf                     = it_bkpf                                           data dictionary level...whether its available or not.
        it_ltext                    = it_ltext
       t_position                =
    exceptions
       formatting_error           = 1
       internal_error             = 2
       send_error                 = 3
       user_canceled              = 4
       others                     = 5
    if sy-subrc <> 0.
      message id sy-msgid type sy-msgty number sy-msgno
              with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    endif.
    This should certainly solve your problem.

  • Functionality to copy SO working in quality but not in Production system -

    HI Friends
    I have created a ztcode which uses bapi BAPI_SALESORDER_CREATEFROMDAT2 to create copies of a manually created sales order
    this function was working perfectly fine as till now we only had one line item per sales order
    last week we added a material which has 2 BOM items (both non stock)
    We passed only the parent item into the bapi so the orders created thru the bapi had only the parent item and the child items exploded on to the order because of the BOM config already in place.
    This works perfectly fine in Quality systems but failed in production
    Both the systems are identical in nature in all respects visa vis transports config and system patch as well.
    The BOM is maintained in CS01
    both the child items are marked as Relevant for sales and BOM usage is marked as 5
    I am failing to understand why it doesnt work in production
    And as we have used std bapi my tech consultant has been debugging without any sucess as well
    Would appreciate any thoughts on how to find a lead in solving this mystery.
    Regards
    Supreet Upadhyay

    HI Shiva
    Thanks for the answer ,we have reimported all the relevant transports thrice but in vain
    Also the config is in place,I forgot to mention earlier that the manual order that we create which is used as a reference to create copy orders explodes the child items
    So config doesnt seem to be an issue here.
    The code should also be ok coz it works in quality
    so we think somehow it has to do with the production system
    we are clueless in what direction should we investigate
    Supreet

  • Connection ... able to connect using sql developer, but not sqlplus or toad too

    Hi folks, having this issue, with only one of my so many databases, what might be the reason and how to fix/correct this, please assist.
    Able to connect using sql developer, but not sqlplus or toad too; sqlplus error: ORA-12154: TNS:could not resolve the connect identifier specified
    thanks in advance.

    SQLDEVELOPER works since it use JDBC Thin & does not use tnsnames.ora
    ORA-12154 ALWAYS only occurs on SQL Client & no SQL*Net packets ever leave client system
    ORA-12154 [B]NEVER[/B] involves the listener, the database itself or anything on the DB Server.
    ORA-12154 occurs when client requests a connection to some DB server system using some connection string.
    TNS-03505 is thrown by tnsping & is same error as ORA-12154 thrown by sqlplus or others.
    The lookup operation fails because the name provided can [B]NOT[/B] be resolved to any remote DB.
    The analogous operation would be when you wanted to call somebody, but could not find their name in any phonebook.
    The most frequent cause for the ORA-12154  error is when the connection alias can not be found in tnsnames.ora.
    The lookup operation of the alias can be impacted by the contents of the sqlnet.ora file; specifically DOMAIN entry.
    TROUBLESHOOTING GUIDE: ORA-12154 & TNS-12154 TNS:could not resolve service name [ID 114085.1]
    http://edstevensdba.wordpress.com/2011/02/26/ora-12154tns-03505/

  • CS6 Plugin works on windows but not mac

    Hi,
    We have been developing a plugin for InDesign since CS3 and have recently ported it to CS6 (it was ported to all previous versions too, as they came out).
    I followed the porting guide etc. and on windows it compiles and runs just ok - the plugin works correctly.
    But when i compiled the same files on our mac machine and put the .indesignPlugin file in th plugins directory i can't see our plugin's context menu.
    I can see that it is in fact loaded on startup (when i remove it ID loads 325 extensions, when i put it back - 326), but still it dosen't seem to work...
    I initially thought that the versioning was off but our PluginVersion resource relies solemnly on SDKDef.h , i also tried putiing the file in CS5's plugin directory and got an error message that CS6 is required - so the version info is fine i guess.
    We are using xCode 3.2.5 (because we have to support Mac OS 10.5 and 10.4) to build on mac and i've never had problems before - it worked on CS4, CS5 and CS5.5.
    The changes i made when porting were minor and only in the code - so what has changed? and how come it works on windows but not on mac?
    Any input is greatly appreciated, i've already spent days trying to understand this.
    Thanks,
    Dan.

    Hi and thank you for replying.
    The resources do get compiled correctly (i assume this because we do get a .indesign file at the end - which means the ODFRC ran ok). they are linked correctly in the mac project (i saw a file that determines the version - it's linked the same way against my win and mac projects and the win version works fine so i guess that's ok too).
    the context menu is just another menu on the "menu bar" (don't know how to call it?) - i.e where the "file" and "edit" etc. menus are.
    I can't seem to understand how come this works fine under windows but not under mac - they are essentially the same projects linked against the same resources (the difference being iCode vs VC10 projects).
    can this be related to the fact we're using xCode 3.2.5?
    Thank you.

  • Specific extractor works in DEV but not in QUAL

    Hello Everybody
    I have new problem : I created a specific extractor ZCRM_SRV_PROCESS_I based on specific FM based on RSAX_BIW_GET_DATA_SIMPLE.
    This extractor have to retrieve specific fields of Service Order Item (linked document type BUS2000116)
    In DEV it works fine for loading INIT & DELTA
    In QUAL, loading INIT does not work but loading works for some records...
    Loading finish with following message :
      System Response
      Caller 09 contains an error message.
      Further analysis:
      The error occurred in Extractor .
      Refer to the error message.
    Job is cancelled in source system with small text :
    19.04.2011  14:51:05  Job started
    19.04.2011  14:51:05  Step 001 started (program SBIE0001, variant &0000000022545, user ID ALEREMOTE)
    19.04.2011  14:51:05  Asynchronous transmission of info IDoc 2 in task 0001 (0 parallel tasks)
    Do you know why it works in DEV but not in QUAL ?
    Thank you
    Cyril
    Edited by: cyril meslin on Apr 20, 2011 9:53 AM

    There is no problem of authorization. In RSA3 it's ok for some records but too long for full of records.
    In fact, my FM make a first select after to be determined init or delta mode :
    IF i_updmode = 'D'.
            SELECT i~guid h~object_id h~guid h~process_type
                     INTO TABLE st_zcrmt_bw_i       
                     FROM crmd_orderadm_h AS h
                     INNER JOIN crmd_orderadm_i AS i ON h~guid = i~header
                     WHERE h~object_id    IN lr_object_id
                       AND h~changed_at   >= lv_timestp
                       AND i~guid         IN lr_item_guid
                       AND ( i~product_kind <> 'X' OR  i~product_kind <> '' )
                       AND ( h~process_type = 'ZSOL'
                          OR h~process_type = 'ZSPE'
                          OR h~process_type = 'ZSVO'
                          OR h~process_type = 'ZSVT' ).
          ELSE.
            SELECT i~guid h~object_id h~guid h~process_type
                     INTO TABLE st_zcrmt_bw_i         "PACKAGE SIZE I_MAXSIZE
                     FROM crmd_orderadm_h AS h
                     INNER JOIN crmd_orderadm_i AS i ON h~guid = i~header
    *                 UP TO I_MAXSIZE ROWS
                     WHERE h~object_id    IN lr_object_id
                       AND i~guid         IN lr_item_guid
                       AND ( i~product_kind <> 'X' OR  i~product_kind <> '' )
                       AND ( h~process_type = 'ZSOL'
                          OR h~process_type = 'ZSPE'
                          OR h~process_type = 'ZSVO'
                          OR h~process_type = 'ZSVT' ).
          ENDIF.
    Then FM CRM_ORDER_READ is running for 500 records to retrieve header data :
    CALL FUNCTION 'CRM_ORDER_READ'
        EXPORTING
          iv_no_auth_check     = abap_true
          it_header_guid       = it_guids      "500 records
          it_requested_objects = lt_requested_objects
        IMPORTING
          et_orderadm_h        = lt_orderadm_h
          et_service_os        = lt_service_os.
    Then this FM is running for 10 records for item data (max 10 because FM CRM_ORDER_READ does not work for more records) :
    CALL FUNCTION 'CRM_ORDER_READ'
        EXPORTING
          iv_only_spec_items   = abap_true
          it_item_guid         = it_guids         "10 records
          it_requested_objects = lt_requested_objects
        IMPORTING
          et_orderadm_i        = lt_orderadm_i
          et_sales             = lt_sales
          et_appointment       = lt_appointment
          et_status            = lt_status
          et_text              = lt_text
          et_subject           = lt_subject
          et_doc_flow          = lt_doc_flow
          et_customer_i        = lt_customer_i
    Perhaps if I succeeded to improve SELECT & call of CRM_ORDER_READ, it would be better but I don't know how to do...

  • Java calendar works in IE but not in Firefox

    This Java code works in IE but not in Firefox - any ideas - tks
    <pre><nowiki><TABLE bgColor=#ffffff border=1 cellPadding=0 cellSpacing=3 id=calendar style="DISPLAY: none; POSITION: absolute; Z-INDEX: 4; left: 28px; top: 365px">
    <TBODY>
    <TR>
    <TD colSpan=7 vAlign=center> <!-- Month combo box -->
    <SELECT id=month onchange=newCalendar()>
    <SCRIPT language=JavaScript>
    // Output months into the document.
    // Select current month.
    for (var intLoop = 0; intLoop < months.length; intLoop++)
    document.write("<OPTION " + (today.month == intLoop ? "Selected" : "") + ">" + months[intLoop]);
    </SCRIPT>
    </SELECT>
    <!-- Year combo box -->
    <SELECT id=year onchange=newCalendar()>
    <SCRIPT language=JavaScript>
    // Output years into the document.
    // Select current year.
    for (var intLoop = 1900; intLoop < 2028; intLoop++)
    document.write("<OPTION " + (today.year == intLoop ? "Selected" : "") + ">" + intLoop);
    </SCRIPT>
    </SELECT>
    </TD>
    </TR>
    <TR class=days> <!-- Generate column for each day. -->
    <SCRIPT language=JavaScript>
    // Output days.
    for (var intLoop = 0; intLoop < days.length; intLoop++)
    document.write("<TD>" + days[intLoop] + "</TD>");
    </SCRIPT>
    </TR>
    <TBODY class=dates id=dayList onclick="getDate('')" vAlign=center> <!-- Generate grid for individual days. -->
    <SCRIPT language=JavaScript>
    for (var intWeeks = 0; intWeeks < 6; intWeeks++)
    document.write("<TR>");
    for (var intDays = 0; intDays < days.length; intDays++)
    document.write("<TD></TD>");
    document.write("</TR>");
    </SCRIPT>
    <!-- Generate today day. --></TBODY> <TBODY>
    <TR>
    <TD class=today colSpan=5 id=todayday onclick=getTodayDay()></TD>
    <TD align=right colSpan=2><A href="javascript:HideCalendar();"><SPAN style="COLOR: black; FONT-SIZE: 10px"><B>Hide</B></SPAN></A></TD>
    </TR>
    </TBODY>
    </TABLE></nowiki></pre>

    Document.all doesn't work in Firefox, you need to use document.getElementById().<br />
    See https://developer.mozilla.org/En/DOM/document.getElementById
    <pre><nowiki> var parseYear = parseInt(document.all.year [document.all.year.selectedIndex].text);
    var newCal = new Date(parseYear , document.all.month.selectedIndex, 1);
    </nowiki></pre>

  • Custom F4 help in a BSP application working in Mozilla but not in IE

    Hi,
    I have created a custom F4 help in a BSP application.
    It is working in Mozilla but not in IE. I tried enabling javascript as well but still it is not working.
    Can someone please suggest a possible solution for this?

    Hi,
    See simmilar discussion in thread /thread/1883519 [original link is broken]
    I think this may be helpful for you.
    Thanks,
    Chandra

  • Why does the counter work in MAX, but not Labview?

    Please help, I have been away from Labview for over 3 months, and I am quite rusty....
    Last year, I successfully configured NI9401 to measure period (seconds) by counting the rising edges of my sensor signal.  Since then, I have aquired a new PC, and loaded all my software into it, including the Labview VI's that successfully worked on the old computer.
    I can see the digital signal using MAX and the test panel for the NI9401, so, I know my wiring and my TTL signal is OK, but, when I try to run the attached VI, nothing happens except the error below..  How do I tell this VI to look for the signal on MOD3/CTR0 and channel 14?
    Thanks. I am sure it is a small adjustment...this worked fine a few months ago...not sure what is wrong now.
    Thanks,
    Dave
    Solved!
    Go to Solution.
    Attachments:
    continuously measure period buffered_singlechannel_forum_feb_23_2012.vi ‏20 KB

    OK, now.  Resolved the issue. The vi is fine, but, some shaky wires were identified...worked in MAX but not in the vi.  Now that the connections have been tightened up, it works for both.  Sorry for the inconvenience.
    Dave

  • Works on emulators but not on mobile devices

    Hello,
    My project works on emulators but not on mobile devices (no image and on Samsung it says "unsupported file").
    Please help, I don't know what to do. My configurations: MIDP 2.1, CLDC 1.1.
    Thanks in advance.
    Edited by: Vitali.pom on Oct 27, 2011 12:01 PM

    Edit: I succeeded to solve it accidentally. I did the following: Sign the jar in Netbeans, clean and build, the jar didn't work, I wiped out the .ks from the jar and clean and build again. Now it worked.
    Edited by: Vitali.pom on Oct 30, 2011 1:28 AM

  • Wifi works at home but not when away from home

    My Wifi works at home but not when away from home, what is wrong?  I thought with a phone plan I didn't need to have a wifi connection.

    You either need WiFi or Cellular (or both). If you have neither, you can't connect to the internet.
    Most people use WiFi at home and Cellular while away from home, or connect to public WiFi networks where there are some.

  • Can't FaceTime anymore?  iPad states wifi connected and iPhone 4 states not connected?  I have wireless in my home? Not sure what happened.  Password works for iPad but not on phone?

    iPhone won't connect to wifi.  iPad is connected.  Password working on iPad but not on phone.  Can't upload software update of IOS 7.1 because phone not connecting to wifi?

    Connect iPhone to computer and open iTunes.  You will be prompted to update to iOS 7.0.  Keep your phone connected until the update is finished.

  • My apple id works on itunes but not on my ipod touch, what gives ?

    my apple id works on itunes but not on my ipod touch, what gives ?

    What are you trying to do on the iPod?
    Have you went to Settings>Store and sign out and then sign back in?

  • Album Art works for most, but not all

    I was reading previous forums on the subject, but no clear answer was given..
    The album art shows up fine in itunes and my library and works for most of my music on my ipod, but how come some album's art does appear? I have it set manually and select 'Get Info' then 'Artwork' and add it from there, then drag in the finished product to my ipod. I've been doing that and it works fine for most of the albums, but every so often, the album art will not appear on my ipod. Am I doing something wrong? I take them all from the same source (amazon.com) but it makes no sense to me how some randomly don't appear.
    I tried deleting the artwork and re-adding it, but nothing happened again. If you could answer why it works for most but not all or how I can get the album art to appear for the ones it will not by re-doing something, it would be appreciated. thanks.

    I encountered the same problem in the beginning. When I compared the size of the original images, the working ones seemed to be smaller in general, so I reduced the size of all covers I intended to upload on the pod to 300x300 pixels.
    This seemed to work - for 2 days. I bought the pod on friday, had pictures on sunday, but on Monday (after the first time the pod was fully discharged) none were left left.
    So I ended searching this forum for related problems...
    And decided to join my problem to this entry.

Maybe you are looking for

  • How to connect my Macbook into my HD TV?

    Hi, after reading a lot of post, I still do not know if I could connect my Macbook into a 42' plasma TV, I mean, how can I connect my macbook into my 42' plasma tv? I do not care if I have to used 2 different cables and/or adapters And I think it wou

  • Process chain - APAP-Program - Raise exception, messages and log

    Hello, I've got a process chain with a "ABAP program" process. How should I deal with an exceptions in the program? In a test, I created an exception. But I could not find it in the log of the process. How can I fill the log? Thanks for your help!

  • IPod touch 4g won't connect to home network

    I got my iPod two weeks ago and from day 1 I've had trouble with connecting it to my home network. Whenever I tried to press on my home network 2WIRE049, and enter the WEP code it would just do nothing. It never connects. Even though I have entered m

  • QuickTime Won't Install, Can't Find Newer Version OSX 10.4.11

    When QuickTime 7.6 released, the update caused problems on my Mac PPC G5 (OSX Tiger 10.4.11). I deleted it. I attempted to reinstall an older version of QT that I knew functioned. This was over a year ago. It didn't work. As it was not urgent, I forg

  • QuarkXPress 6.5 won't start after upgrading to OS 10.3.9

    I recently updgraded to OS 10.3.9 and now my QuarkXPress 6.5 won't start. The Quark window comes up, but then I get the spinning color wheel. It doesn't stop until I force quit. Are there any known issues with this upgrade? I have a ton of work to do