Forms 9i/ DB 10g - Form Hangs when function is called

Using 9i Web Forms on 10g Database Linux O/S
I have the following function call in a form within a loop:
:nbt02_lentrn.nbt_txn_descr := fn_get_trans_descr(ls_app_area_code,ls_txn_type);
The function being called contains this code:
FUNCTION fn_get_trans_descr(ps_app_area_code IN VARCHAR2,
ps_txn_code IN VARCHAR2) RETURN VARCHAR2 IS
CURSOR cur_txn_descr IS
SELECT descr
FROM financial_trans_types
WHERE code = ps_txn_code
AND aparea_code = ps_app_area_code;
ls_txn_descr financial_trans_types.descr%TYPE;
BEGIN
OPEN cur_txn_descr;
FETCH cur_txn_descr INTO ls_txn_descr;
CLOSE cur_txn_descr;
Return(ls_txn_descr);
END;
When the call is executed, the form hangs after the OPEN command. I have checked the parameters for their values and successfully executed the cursor in SQL.
When I hardcode the function parameter values, the code executes successfully. Also, and perhaps most unusually, if I do either of the following before the function call, the code runs successfully:
ls_txn_type     :=     ls_txn_type;
:nbt02_lentrn.nbt_txn_descr := fn_get_trans_descr(ls_app_area_code,ls_txn_type);
     ls_txn_type     :=     NVL(ls_txn_type,NULL);
:nbt02_lentrn.nbt_txn_descr := fn_get_trans_descr(ls_app_area_code,ls_txn_type);
I have also extracted the call and placed it into a different form where it works fine!
The variable ln_txn_type is populated via another call within the same loop. It's value alternates between null and a value for the record set.
The same code works fine Client/Server and although I have a solution, I'm not sure what the problem is! Does anyone have any clues?

Hello - your problem actually looks similar in symptoms to one I hit just a couple of days ago (see my post 'Forms hangs when using result of an OUT parameter to do an Insert ' on July 19th.)
The problem I was having was if I had a variable which already had a value, then passed into an IN OUT parameter of a db stored proc, the proc set the value to null, and then I tried to use the variable in a table insert. The form would just hang completely. Like you, one workaround for the problem was to have a line like:
my_var := NVL(my_var,NULL);
to somehow 'fix' the variable before trying to use it further. Even though the variable seems null, and returns true for IF ... IS NULL, something had gone wrong with it that rendered it toxic to my form. This workaround should have no net effect, but it does somehow solve the problem. Like your problem, mine doesn't occur on client server, only on the newer version.
I hit this problem using Forms 10g904, against a 9i database. Having talked it over with Oracle support, I've tried doing the same thing using 10g Release 2, and the problem disappears, so Oracle have obviously fixed it somewhere between the two releases - I'm currently investigating intermediate Patch Sets.
Don't know if this is helpful, but all I can suggest is that you ensure you've applied the latest patchsets to your Forms (you can try it on the Builder first before patching your apps server installation.) If that doesn't do it, I'm guessing it's a case of use the workarounds, or go up to a higher version altogether of Forms.
Sorry not to have any more optimistic advice!
James

Similar Messages

  • Migrating Forms 61 to 10g - Forms Builder Crashing

    We are migrating from Forms 6i to 10g. The application works on a HP-UX box, and since we do not have the necessary setup done in the Unix box yet, we are trying to compile the forms in Windows before-hand to see if we can pre-empt some errors.
    I have written a batch command to compile the 6i forms in windows (Windows XP) by invoking the 10g Forms Builder.
    While it works like a charm for most of the forms (we have around 500 forms), there are a few forms for which the compiler/builder simply crashes. The .err file created for this form has absolutely nothing, it is a 0KB file.
    When I try opening such forms in Forms Dev 10g, and then compile them, the Dev crashes. It gives no indication of the error.
    By crashing I mean that windows throws the error message saying "Application has to be closed. Send error report: yes/no"
    Can someone please tell me if you faced such a problem, and how you went about solving it?

    Try a Compile All ( Ctrl - K ), then Ctrl - T.
    Not sure about XP, but in Vista, the 10g Builder and batch compiler will crash if a PLL Library is not available when the form is compiled.
    Make sure the PLL Library is available, and all its objects compile in the 10g setup.
    If that does not help, then try a semicolon-to-semicolon replace all, then save the fmb. Then restart the Forms Builder, and open the fmb again, and try compiling.
    Here is an old link describing the issue:
        Re: FMB size shrinks dramatically

  • Cannot run form twice in 10g form builder

    i cannot run the form twice in 10g developer suite
    it will show the source code in html as below
    <html> <head> ORACLE FORMS.</head>
    <body onload="document.pform.submit();" >
    <form name="pform" action="http://salmana.asry.com:8891/forms90/f90servlet" method="POST">
    <input type="hidden" name="form" value="C:\report_para_form_with_lov.fmx">
    <input type="hidden" name="userid" value="*****/*****@*****">
    <input type="hidden" name="obr" value="yes">
    <input type="hidden" name="array" value="YES">
    </form> </body></html>

    Hi,
    Try any of the workaround mentioned in the thread
    Loading Forms Unsuccessfully
    Regards,
    Arun

  • N73 hangs when getting incomin call

    Some times my phone switches off or hangs when getting a incoming call, i formatted still the problem persists, any solution ? The same with 2 of my friends N73

    yup, 3D tones have some problems with the ring tones...turning it off solved that for me...

  • I am trying to connect oracle develper suit form with oracle 10g database

    i am trying to connect oracle develper suit form with oracle 10g database
    but when i pass username and password
    this message apperars
    ORA-12560:TNS:protocol adapter error
    every time even i try to connect Report or Designer each time same problem
    making no connection .
    can any body help can help me to reslove this prblem
    Arshad khan

    Duplicate thread:
    Re: connection problem

  • PDE- Per001 Internal Error deplu 3 - Oracle 10g Forms

    Hi all..
    When I'm trying to execute a form in Oracle 10g forms developer I'm getting this error... PDE- PER001-Internal Error deplu 3
    Please help me to correct this
    Thanks in advance,
    Nycy

    Hi Arniko,
    Thanks .. It worked...
    But I have one more doubt ...
    I saw in a forum that this happens due to :
    The error is a procedure builder error often seen while compilation when multiple forms are opened in a form builder and can be solved by reopening the form builder or open one form at a time and compile... ( This also works )
    Is that something related to any inbuilt procedure with Oracle 10g Forms builder...??Is there any way to correct that?
    Pls help me...
    Thanks in advance,
    Nycy

  • Menu in Oracle 10g form Builder

    I Build so many forms in ORACLE 10g form builder.
    Now I want to create a Menu form then i want to run it in Internet Explorer at my own PC at which i have build these forms.
    I also want to run seprate forms in internet explorer; as I can run form in Form builder but can't run then in Internet Explorer manually.
    Please help me to solve this problem

    Try the Forms forum @ Forms

  • Labview hangs when accessing dll

    Im accessing an active x dll using labview 8.21.   When we query the dll all parallel loops in labview hang until the dll returns.   Is there a way to get around this behaivour?

    HI,
    I do not know if this will help, but there is an issue with the Call Function Library node in LabVIEW 8.2.1 and is posted in the LabVIEW 8.2.1 Readme help here:
    If you configure a Call Library Function Node to call a LabVIEW DLL, place a checkmark in the Specify path on diagram checkbox on the Function page of the Call Library Function dialog box, and select Run in UI thread in the Thread control, LabVIEW hangs when executing the Call Library Function Node. To correct this problem, select Reentrant instead of Run in UI thread in the Thread
    control. If you configure the Call Library Function Node to call a DLL
    written in C with these same settings, LabVIEW works correctly.
    I hope this helps,
    Regards,
    Nadim
    Applications Engineering
    National Instruments

  • E71 hangs when call answered

    Hi Nokians,
    A moment ago, when I click "green" key to answer a call, my E71 hangs (No backgroud application is running)
    E71 is a great device but as days go by, more and more issue happened (refer below).
    I cannot accept a phone that hangs when answering a call. It does not improve my productivity at all. My previous Treo 680 had the same problem, that is why I switched to E61i, and now E71.
    To Nokia: you better improve! Cause E71 may be my last phone from Nokia.
    List of bugs
    1. Active Notes does not appear when call is make to the linked contact
    2. GPS not able to lock to satellite, and display current location on map (solved by changing the positioning server to supl.nokia.com)
    3. I connect to the email account and retrieve emails, the application shut down and returns to the home screen.
    4. I have 2 e-mail mailboxes, the 2nd mailbox disappeared when auto-retrieval is turned on, all e-mails are lost!
    5. Unable to terminate/hang-up when called number is busy (partially solved if automatic redial is diabled) or when an incoming call ends.
    6. When set powersaver to "None", when the screen goes to power save mode, it display a time. The time stops at that moment. And will no tick at all.
    7. Automatic Retrieval > E-Mail notifications > only in home network . When I open an incoming SMS, a warning message appeared, "Messaging: Memeory Full. Close some applications and try again." . I checked my phone's memory, it has 95MB free memory. I need to disable E-mail notifications, then only I am able to open an incoming SMS.
    8. The recent call list (in, out and missed) shows all icons as "mobile" despite the number is a telephone number.
    9. I am not able to enable both
    - Automatic retrieval > E-mail notifications
    - Automatic retrieval > E-mail retrieval
    E71 only allows either one of the above to be enabled
    10. Sometimes, E71 will hang when answering a call.
    200.21.118
    27-11-2008
    RM346
    NOKIA E71-1(26)
    Message Edited by mecool2008 on 11-Feb-2009 10:16 PM

    Hi,
    I am also facing some of the problems you have listed.
    My frined has Nokia E71 but with older FM 100..... He do not have much problems.
    Nokia has to fix these problems at the earliest.
    bye,
    raj707
    Mumbai - India
    =====
    200.21.118
    E71-1
    RM-346
    =====

  • Forms Hang when trying to open

    We are using Oracle 10.1, on 32 bit Windows XP SP2, IE 6, jre 1.6 on the client side. The end users at time uses multiple forms and also uses Oracle Discoverer 10 at the same time. Print out reports uses Adobe Reader 9.1(which is another story), with java 1.6.7
    We have team of developers that created the forms and application in oracle. I deal with the end users.
    Issues we have been getting are:
    1. Users attempt to open a form and the "hour glass" appears and then hangs. We close the application by closing the IE window.
    2. As time goes on we have been seeing more and more users with this issue. Those that use the application more heavily seem to be having more issues
    3. I called the development team and they have stated that they do not see anything in the database of their logs to indicate that something is wrong.
    What was done to remedy issue:
    1. Cleared IE temp files, cookies, history
    2. Cleared Java temp files - this seems to work for a while
    3. Uninstalled users profile and re-install - it helps for a bit and then the issues comes back
    4. Re-created a new PC from scratch
    On the client computer we do not see any error messages. The system just hangs. It is happening on a daily basis for some users and getting more frequent to others as they use the applications more.
    Does anyone else have this issues? The developer team said that it was a setting on the client side. I have been searching for a while, but have not come up with anything. Can someone assist? Thank you in advance for any assistance.

    New information:
    I was monitoring an end-user, when the freezing occoured during pressing a button. The applet freezes, hourglass is displayed, but I've noticed that I can drag/move the window around and it still gets updated. I didn't gray-out.
    I tried attaching the JConsole utility on the Java.exe process. After some digging I found the following:
    JCONSOLE
    Name: AWT-Windows
    State: BLOCKED on java.util.LinkedList@1367dca owned by: Forms-DialogThread56
    Total blocked: 54 Total waited: 0
    Stack trace:
    java.awt.KeyboardFocusManager.shouldNativelyFocusHeavyweight(Unknown Source)
    sun.awt.windows.WToolkit.eventLoop(Native Method)
    sun.awt.windows.WToolkit.run(Unknown Source)
    java.lang.Thread.run(Unknown Source)
    Name: Forms-DialogThread56
    State: RUNNABLE
    Total blocked: 0 Total waited: 0
    Stack trace:
    sun.awt.KeyboardFocusManagerPeerImpl.getNativeFocusOwner(Native Method)
    sun.awt.KeyboardFocusManagerPeerImpl.getCurrentFocusOwner(Unknown Source)
    java.awt.KeyboardFocusManager.getNativeFocusOwner(Unknown Source)
    java.awt.KeyboardFocusManager.processSynchronousLightweightTransfer(Unknown Source)
    - locked java.util.LinkedList@1367dca
    sun.awt.windows.WComponentPeer.processSynchronousLightweightTransfer(Native Method)
    sun.awt.windows.WComponentPeer.requestFocus(Unknown Source)
    java.awt.Component.requestFocusHelper(Unknown Source)
    java.awt.Component.requestFocusHelper(Unknown Source)
    java.awt.Component.requestFocus(Unknown Source)
    oracle.ewt.lwAWT.AbstractButton.requestFocus(Unknown Source)
    oracle.ewt.lwAWT.lwWindow.LWWindow._restoreFocus(Unknown Source)
    oracle.ewt.lwAWT.lwWindow.LWWindow.setActive(Unknown Source)
    oracle.ewt.lwAWT.lwWindow.LWWindow.setVisible(Unknown Source)
    oracle.ewt.lwAWT.lwWindow.LWWindow.setVisible(Unknown Source)
    oracle.forms.handler.DialogThread.doUserAlert(Unknown Source)
    oracle.forms.handler.DialogThread.run(Unknown Source)
    java.lang.Thread.run(Unknown Source)
    I seems like the AWT-Windows is blocked by the Forms-DialogThread56. Is this normal, when a alert is displayed?
    But!!!! Notice that the alert doesn't get displayed....
    I also tried using the "Detect deadlock" function in JConsole, which doesn't find anything.
    Edited by: Lerche on Jul 17, 2009 12:12 PM

  • Close Browser window when you close 10g forms

    Help Please.... I am trying to close browser window when I exit 10g forms:
    Per oracle Note:115905.1
    create close.html file Put the html file in the webserver root.
    I created the following file in $ORACLE_HOME/Apache directory (webserver directory??)
    1.)Create an html file (es. close.html):
    <html>
    <body onload="closeit()">
    <script>
    function closeit()
    win = top;
    win.opener = top;
    win.close ();
    </script>
    </body>
    </html>
    In exit form when button pressed I have the code
    web.show_document('http://apphost1.univ-wea.com:7777/close.html','_self');
    The brwser window does not close automatically.
    thanks,
    Anitha

    Hello this is saras from chennai.
    Now i m developing oracle forms using 6i. now i m running it independantly. that is i put forms in one folder and run these forms using shortcut. If i m using the same in client machine also. But now i want to run these forms in webbrowser(client-server). for this i done the followings.
    1. installing forms server and reports server.
    2.Also i install IIS Server and appachie server also.
    3. I had fmx files.
    now i dont know the procedure to configure these web server with forms server. And i hold the fmx files in inetpub\wwroot folder.
    Which one is the easy method appachiee server or iis server.
    Please help me to run these fmx files in web browser.
    I m eagerly waiting for your favourable reply.
    saras,
    [email protected]
    chennai

  • Forms 10g not supporting Analytical functions

    Hi all
    i try to use analytic funtion like
         row_number() over (partition by uuid order by timesheet_acct) rn
    but form did not compile this while when i run the same analytic function in SQL prompt it runs fine. is forms support Analytical functions?? if not then what can i do for performing this task at form??
    thx.

    Ok, so look at this stored function:
    CREATE OR REPLACE FUNCTION Return_Cursor
      PC$Select IN VARCHAR2
    ) RETURN SYS_REFCURSOR
    IS
      cc  SYS_REFCURSOR ;
    BEGIN
      OPEN cc FOR PC$Select ;
      RETURN cc ;
    END ;
    /Then imagine you can call it with ANY query like the following:
    SQL> set serveroutput on
    SQL> DECLARE
      2     cur SYS_REFCURSOR ;
      3     CURSOR c IS SELECT deptno, ename, sal FROM EMP ;
      4     rec c%ROWTYPE ;
      5     LC$Req  VARCHAR2(2000) ;  
      6    BEGIN
      7      LC$Req := 'SELECT deptno, ename, sal FROM ' ;
      8      LC$Req := LC$Req || '(SELECT deptno, ename, sal, row_number() over ' ;
      9      LC$Req := LC$Req || '(PARTITION BY deptno ORDER BY sal DESC) FROM EMP ORDER BY deptno, sal)' ;
    10      cur := Return_Cursor( LC$Req ) ;
    11      LOOP
    12        FETCH cur INTO rec ;
    13        EXIT WHEN cur%NOTFOUND ;
    14        dbms_output.put_line( rec.DEPTNO || '  ' || rec.ENAME || ' -> ' || rec.SAL ) ;
    15      END LOOP ;
    16      CLOSE cur ;
    17  END;
    18  /
    10  MILLER -> 1301
    10  CLARK -> 2450
    10  KING -> 5000
    20  SMITH -> 915
    20  ADAMS -> 1100
    20  JONES -> 2975
    20  SCOTT -> 3000
    20  FORD -> 3000
    30  JAMES -> 950
    30  WARD -> 1250
    30  MARTIN -> 1250
    30  TURNER -> 1500
    30  ALLEN -> 1600
    30  BLAKE -> 2850
    Procédure PL/SQL terminée avec succès.What do you think ?
    Francois

  • Forms 9 and JVM hangs when scrolling

    Hello!
    i have a big problem with forms 9.0.4 on windows.
    In my form i use multirecord-blocks or lovs with many records e.g. 500 or 1000.
    If the user scrolls down in any way (mouse or keyboard), forms and the jvm completly hangs.
    Even the Java-Console does not respond anymore.
    The only thing that is moving on the screen is the little slider in the forms status-bar.
    Try to close the browser-window does not function, the browser-task must be dropped in the taskmanager.
    It happens not always but very, very often.
    It seems, the Jinitiator is a little more tough with this than the Sun JVM.
    And it seems, that the slower the netword the most it's happen (but this is a supposition).
    i think it is a synchronization problem of local temporary files.
    i try to disable recordbuffering in formsweb.cfg but it does not help.
    Today i have built a form with one multirecord-block on sys.dba_tab_columns for testing.
    Query executed, scrolled down. About 15600 records. No problem.
    i've built a lov on the same table. List values, scrolldown. No problem.
    i start the form again, query, scroll down. Everything hangs.
    sometimes, but really very rare, the apllication comes back to live after 1 or 2 minutes.
    could somebody help me?

    There was a bug which sounds similar to this problem (3421989) - I'd strongly recommend upgrading to 10gR2 at least anyway - and for this issue, I'd try a test case in 10gR2 to see if its fixed (apply the latest patch as well). Do you have a visual attribute on the current record??
    Regards
    Grant

  • File upload hanging when called from another form

    Hi
    I have created a file upload form from the documentation I found on metalink and the form works fine on its own. I have then implemented the form into a multi form application and when the file upload form is called from another form it hangs trying to get to the client drive so that it can pick up a file. I have tried using the 'call_form', 'open_form' and 'new_form' built-ins but the results were all the same. Can anybody help me?
    Maria

    Hello,
    This is not the support, so there are no post more urgent than other.
    Francois

  • When i run my 10g form the internet explorer shows java exception.

    when i run my 10g form the internet explorer shows an exception.
    java.lang.ClassNotFound: oracle.forms.engine.Main
    can anyone help me?

    Press 5 in the jinit console to get a full exception list.
    Regards
    Grant

Maybe you are looking for

  • Pinch open and close zoom (mac) not working in latest beta update

    Anybody know why pinch open close for the mac track pad suddenly does not zoom in the lastest beta update?

  • How can I display the tooltip in a tree node?

    I implement a TreeCellRenderer and has already set the tooltiptext through the following code:     public Component getTreeCellRendererComponent(JTree tree, Object value,                            boolean selected, boolean expanded,                 

  • How to cancel autostart program settings in Lion?

    my issue may be deeper as Lion has really messed up so many of my programs.  tons of little issues and few big ones.  but anyway.  whenever i log in, mail, itues and safari auto open...even if i don't check the box asking if i want programs to autost

  • Oracle Sales Contract Understanding

    Dear All Kindly someone explain me the key functionality of oracle sales contract. As Balanket Sales agreement option already avaiilable in order management, is sales contract module function is just to link/ input contract clauses with it??? Kindly

  • Access violation messages

    What are these access violation messages I keep getting after downloading casual games?   The download goes through Ok, but when I try to open them, McAfee puts up these messages and terminates the procedure.   This never happened when I was with Ora