Forms hanging after multiple calls to Foreign Function Interface

Hi,
Can anyone help me with this problem. I'm getting a 'FRM-92100:
Your connection to the server was interrupted ... Details ...
Java Exception:java.io.EOFException' error message when i make
two calls to a c share object file using the ORA_FFI package.
Forms will hang with that error message when I call the foreign
function more than once and when the ORA_FFI.LOAD_LIBRARY
function is executed twice.
I've tried using the ORA_FFI.UNLOAD_LIBRARY function at the end
straight after the load library plus my processes and it still
hangs with that error message.
I've got a temporary work around which is not ideal but it
works. I've made another copy of the C shared object file and
renamed it and made my second call to load this library.
I would prefer to have one shared object file and make multiple
calls to it from forms. Any suggestions?
note : running forms 6.0 on three tier architecture with web
browser.

"Mush15" <[email protected]> wrote in
message
news:g7hela$flo$[email protected]..
> Ok the issue is a stack overflow caused by calling the
function
> recursivly.
>
> I have tried creating 2 functions and have each call the
other but still
> recieve a stack overflow.
>
> Any ideas help??
Try incrementing a counter every time you call the function
and decrementing
it on the way out. When you hit 2640 times, stop calling it.

Similar Messages

  • Multiple call of update function module

    Hi Everybody,
    I have made implementation to the definition MB_DOCUMENT_BADI( material Document creation).
    While executing this BADI I am getting short dum with this error  Multiple call of update function module.
    Here is the short dump--
    In the FORM routine Buchen_Ausfuehren (program SAPMM07M), an error
    message was issued by a Business Add-In (BAdI) or function module.
    This is not permitted, because it could lead to data             
    inconsistencies. For this reason, the update of the material     
    document was also terminated with a termination message (dump).  
    Note that this message (M7 372) is not the responsible error     
    message.                                                         
    Please any body suggest the way forward.
    Regards,
    Sandeep.

    Hi Kiran,
    Thanks for the reply.
    I have created one implementation to the BADI MB_DOCUMENT_BADI. This badi will hit while creation of material document.I have write the code in method MB_DOCUMENT_BEFORE_UPDATE such that it will act only for certain movement types specially for t-codeMb1a and MB31.
    What problem I am facing i have used a error message "MB_DOCUMENT_BEFORE_UPDATE" in this method.If we got the erroe message then we dont need to post the material dcoument,but here problem is that if the material document could not posted then it corrupt the material and when we performing 261/101 we got error message like " Inconsistency between MM and ML for material and plant"
    I have used following things like-
    1-while updating the customized table using " Commit Work".
    2-Call function vb_change_batch for updating the batch and not in update task.
    3. Dequeue the table after updating the table.
    Will thos things can create any inconsistency to  the MM and ML.
    Please suggest me uor thoughts.
    Thanks
    sandeep.
    Thanks ,
    sandeep.

  • Multiple calls of same function module do NOT initialize variables ?

    Hi all,
    ..so its my fist post here, this is a bit strange problem for me and maybe someone knows whats happening.
    So I have in SAP Solution Manager a function module 'Z', which calls a standard SAP class CL_SPROJECT_SOLAR_BASE_REPORT, which in turn calls the standard function module 'SPROJECT_GET_ADMIMP_SCREEN_BP'.
    During development, things worked fine, but now I run my Z-Program for more than one instance and even I do all FREE for the Class, apperently the function module SPROJECT_GET_ADMIMP_SCREEN_BP, which is called by the class CL_SPROJECT_SOLAR_BASE_REPORT, does not get it's variables from the global data of the function pool re-initialized, when it is called for the second, 3rd, ... time.
    This is a bit strane behavior for me, I would have expected that variables in a function module (or even in the global data of that function pool) get re-initialized each time that function module is called ?
    Actually, this is the only function in that function pool.
    Well, if not, does anyone has an idea how I can get the variables of this module pool re-initialized between the calls ? More concrete, the global data of function pool SAPLSPROJECT_SOLAR_ADMEVAL_BP define:
    DATA: g_v_with_var TYPE char1.
    In the function module line 36 (no reference to g_v_with_var, no module call, no changes to g_v_with_var before the IF-statement at all) it is querying:
      IF g_v_with_var IS INITIAL.
    So this is my problem, the second time I am calling the class  (which is 'free'ed and re-created between the calls) which calls this function module the 'g_v_with_var' is not initial and there seems to be no way to have it set to initial again ?
    So even thought this is in SolMan, I think the question & problem is a ABAP technical one ?
    Any thoughts, help or support would be very much appreciated,
    thank so much,
    Frank

    Hi Mae,
    ..thanks a lot for your fast reply, unfortunately there is only one function and no functions or forms at all for initializing. The variable I am fighting with is g_v_with_var and that is referenced only 4 times in the whole function pool:
    Global Data:   101 DATA: g_v_with_var TYPE char1.
    Function Module SPROJECT_GET_ADMIMP_SCREEN_BP (which is the only function module):
        36   IF g_v_with_var IS INITIAL.
       127       g_v_with_var = airep_true.
       193         CLEAR g_v_with_var.
    If in line 36 g_v_with_var is 'X', which it is always after the first call, the function will exit with an exception, so line 193 to clear it will actually never be executed...and it is not cleared  the next time the function module is called, so you never get back to have the function run...
    All the best,
    Frank

  • FRM-40734 when calling a foreign function requiring more than 1 dll

    I have been experiencing difficulties in calling external DLL functions from SECURSIGN.DLL. This time no peculiar type of parameter is involved, just four varchar2.
    A dump file "ifrun60_dump_nnn" is generated by FORMS every time I issue the aborted call to the foreign function.
    Inside the form dump file, apart from useless info like Registers and so on, the message: "Could not find Module32First"
    I know for sure that SECURSIGN.DLL needs also other DLLs, and that the first foreign function I call, calls other functions in other DLLs. I found that Module32First is a routine within each of the following DLLs:
    Cl32
    d2kwut32
    d2kwut60
    I copied all those DLLs in the current work directory along with my FMB/FMX, in ORANT\BIN, in C:\WINNT\SYSTEM.
    I modified the PROCEDURE LoadLibrary (part of the FFI-generated PLL code) to load those DLLs along with SECURSIGN.DLL: no problem in loading all the DLLs that I wish, but the error persists.
    How can I avoid all that mess and the FRM-40734 error?? Is there a specific problem in resolving the references to other DLLs?
    Please notice that - on the same computer - in Visual Basic everything (and the very same call in particular) works perfectly.

    I have noticed just now that a dump file having a name like ifrun60_dump_299, is generated by FORMS every time I issue the aborted call to the foreign function.
    Inside the form dump file, apart from useless info like Registers and so on, the message:
    "Could not find Module32First"
    By a FILE/FIND/CONTAINING TEXT I searched all the DLLs, and I noticed that Module32First is a routine that can be found within each of the following DLLs:
    Cl32
    d2kwut32
    d2kwut60
    I tried to load those DLLs along with SECURSIGN.DLL by modifying the PROCEDURE LoadLibrary into the FFI-generated PLL code, and I have apparently no problem in loading all the DLLs that I wish, but the error persists, and that dump file is constantly generated, always looking for the "Module32First" routine.
    How can I avoid all that mess and the FRM-40734 error??

  • Forms hang when it call reports

    Hi there,
    In a one of my forms, there is button call report
    the report object property like following:
    name: report17
    filename: f:\ora9ias_bi\reports\report11.rdf
    execution mode: batch
    communication mode:synchronous
    report destination type:cache
    report destination format:html
    report server : repserver90
    the trigger for the button is
    eclare
         report_id report_object;
         v_rep     VARCHAR2(100);
         rep_status VARCHAR2(20);
    begin
         report_id:=FIND_REPORT_OBJECT('report17');
         v_rep:=RUN_REPORT_OBJECT(report_id);
         rep_status:=REPORT_OBJECT_STATUS(v_rep);
         WHILE rep_status in('RUNNING','OPENNING_REPORT','ENQUEUED')
         LOOP
              rep_status := REPORT_OBJECT_STATUS(v_rep);
         end loop;
         if rep_status = 'FINISHED'or rep_status IS NULL THEN
              WEB.SHOW_DOCUMENT('HTTP://watfapp2.wat.michelin.com:7778/reports/
              rwservlet/getjobid'||substr(v_rep,instr(v_rep,'_',-1)+1)||'?'||'server=repserver90','_blank');
         else
              message('Error when running report');
         end if;
         end;
         when I click the button, the forms hangs for very long time.
    Could you please shed some light on it? thanks in advance
    Lionel liu

    I change trigger like the following
    eclare
         report_id report_object;
         v_rep     VARCHAR2(100);
         rep_status VARCHAR2(20);
    begin
         message('before find');
         report_id:=FIND_REPORT_OBJECT('report17');
         message('before run');
         v_rep:=RUN_REPORT_OBJECT(report_id);
         message('after run');
         WEB.SHOW_DOCUMENT('HTTP://watfapp2.wat.michelin.com:7778/reports/
              rwservlet/getjobid'||substr(v_rep,instr(v_rep,'_',-1)+1)||'?'||'server=repserver90','_blank');
         rep_status:=REPORT_OBJECT_STATUS(v_rep);
         WHILE rep_status in('RUNNING','OPENNING_REPORT','ENQUEUED')
         LOOP
              rep_status := REPORT_OBJECT_STATUS(v_rep);
         end loop;
         if rep_status = 'FINISHED'or rep_status IS NULL THEN
              WEB.SHOW_DOCUMENT('HTTP://watfapp2.wat.michelin.com:7778/reports/
              rwservlet/getjobid'||substr(v_rep,instr(v_rep,'_',-1)+1)||'?'||'server=repserver90','_blank');
         else
              message('Error when running report');
         end if;
         end;
    it hang on the command
    report_id:=FIND_REPORT_OBJECT('report17');
    the reports_classpath in default.env is
    REPORTS_CLASSPATH=<ORACLE>/jlib/zrclient.jar;<oralce_home>/reports/jlib/rwrun.jar
    What could cause the command report_id:=FIND_REPORT_OBJECT('report17');
    hang on?
    thanks again
    Lionel

  • Forms hangs after using FileUpload PJC  in our application

    1) I've successfully tested the stand-alone FileUpload demo form provided by Oracle for moving files from C/S to the middle tier machine. That tells me all the environment variables, etc. are good to go.
    2) When i try to use the same demo form from my application using the call_form function, it works till the point of transferring the file to the server. Then when I try to close the demo form by hitting the close button to go back to my application, the form hangs up with no error message either in the Java console or the Application.
    3) Even when i made changes to my application to implement the PJC as per the Oracle implementation paper, the same result as #2.
    We are using Forms 6i (v6.0.8.19.2), iAS Rel1 (v1.0.2.2.2a) running on W2000.
    BTW, the size of the file is 1K. The last message I see in the Java console is oracle/ewt/laf/basic/ProgressBarPainter.class
    Any ideas or help appreciated. Thanks.

    Hi,
    You can try a package named: JTwain, which is available at http://asprise.com/product/jtwain.
    JTwain supports all kinds of digital cameras and scanners. You can use Java to access, contorl digital cameras and scanners, and of course, to acquire images with flexible settings.
    The developers' guide is available @ http://asprise.com/product/jtwain/devGuide.php
    In the simplest case, one line of Java code can solve your problem.
    Good luck!

  • Adobe form hangs after error message

    Hi All,
    I developed interactive adobe form with 1 field as mandatory. Form is integrated with webdynpro and working fine but if user dont pass value to mandatory field, it gives error 'Atleast 1 required field empty' but after that form hangs. it is not responding so that i can fill the value.
    I made field object->value type as 'User entered - Required'.
    Please suggest if i am missing something.
    Thanks

    Solved by me

  • Multiple calls to the function

    I have an adf faces table and I have set the "value" to a function in my managed bean to return a List of values.
    public List<SomeObject> getTableData(){
    But my problem is when I select a row in the table multiple calls are made to this function in the bean and data is fetched again and again. Though the table is not refreshed again. I am not able to understand why is this happening?

    Yes. I have implemented a selectionListener. Based on the number of rows selected I am refreshing a button label with that number in that listener.

  • Oracle forms hanging after tabbing off a field

    Hi there,
    Our application is 10gR2. There are several fields on the form and when the user tabs off a particular field (say TextField1), forms hangs up. TextField1 has a LOV associated but since i am clicking on the button of TextField1, the select statement associated with LOV will not be executed right?
    There is no trigger attached to TextField1. This happens only on production and not on development database(replica of production).
    Any suggestions for me???
    Thanks

    the execution plan has nothing to do with tabbing out of a field, it just is determined when the lov-query is executed first.
    but the excution plan of a query is based on alot of information, besides the structure of the database (tables, indexes) it depends to a large amount on the statistics gathered in the database. The gathered statistics contain information of the data content of the tables and, and, and..
    So if the data in your env-environment is very different from the data in your prod-environment, or even if the last gathering of statistics is long ago in your dev, the execution plan can be completly different in two databases although the structure is the same.
    One reason for this problem may be is that in an dev-environment you sometimes have only a "small amount" of data to "save space". This can lead to totally different behaviour between dev-environment and prod-environment.
    hope this helps.

  • Oracle Foreign function interface

    Hi All,
    we have a form from which we invoke a second form using the CALL_FORM procedure as follows
    CALL_FORM(:GLOBAL.FILE_NAME,NO_HIDE, NO_REPLACE, NO_QUERY_ONLY, pl_Id );
    we cannot query in the called form i.e the second form.
    After debugging , we found that this FFI doesn't initialize.
    here "ue_select_item" is a PLL and "orf_init_ffi" is a C function.
    ffi_return := ue_select_item.orf_init_ffi(temp, proj_param,
    proj,lst_name,own,pass,scol,env,frm,session,select_state);
    does not initialize in the second form.
    Is there any limitation on the ffi?
    Has the application to be started only as a piped application instead?
    Thanks & Regards
    Gurjeet

    No there is no limitation in ORA_FFI in thie regard, but you've not been very precise as to what your problem is.
    In the called form I would still do a FIND_LIBRARY to get the handle to the .so / .dll even though Forms will have the library loaded, you need to get the handle to re-register the function etc, you can't just call the function directly without goings through the steps of getting the Library handle and registering the function again as pl/sql in the second form generally doesn't know what pl/sql in the first has done.

  • My iphone 5c hangs after missed call, My iphone 5c hangs after missed call

    My phone hangs afer ving a missed call and also in recieving call its slide touch doesnt work

    Its worth a shot but try going into Settings > General > Accessibility and turn on "Reduce Motion" I think that might help...

  • N97 screen lock hangs after reciving call

    helo everybody,currently i got a new nokia n97. phone is working fine, yesterday i updated mobile software with 11.0..x . my phone screen locks many times i tried to unlock it but it wouldnt unlock then finally i need to restart my phone then it comes in normal condition .plz give me some suggestion .i need ur helps...
    RM-505 V11.0.021

    Yes, the phone will often hang if you answer a call by sliding your finger across the screen. I suggest that you get used to unlocking your phone before you answer the call. There are so many people with this bug, that it's almost sure to be addressed in a future firmware update.

  • Comcast won't give me my refund after multiple calls over a 2 year period

    I am asking for any recommendations anyone here has.  I left comcast when I moved despite comcast being in my new location and being cheaper and faster than the alternative; I just couldn't deal with them anymore. Comcast was billing me for a modem rental despite me supplying my own modem and never renting one from them.  I called the first month they over charged me, then the next month, then a couple times the months after and then once the next year. I was always assured it would be changed and credited, yet it never happened.  I was not able to go to a customer building because my school kept me busy during their open hours and well school > comcast. When I closed my account they told me they could only do a 6 month credit but I could file a claim for the full amount of $195.  I gave them everything they wanted in the claim and never heard a response from them and when I called back they just told me the ticket was closed.  A lovely lady named Lisa gave me a number for comcast listens  (877 405 4783) tell me they would listen to my case and they can make desicions above anyone else I can talk to on the phone or in person.  However, this number is only for employees and they told me to call 1-800-COMCAST. I do not know what to do next, I want the money they owe me, but even more it's about morals and not letting comcast stomp on their customers.  I was told it is my legal responsibility to keep calling until it got resolved and since I did not continue to call every month that they do not legally owe me the full amount. What do I do next?

    Verizon required me to place a deposit on my account saying I'd get it back within 6 months of service. It's been over two years and I still haven't be given it back. I've called and can't get an honest response; I get transferred to different departments who say different things. I contacted the BBB about this and Verizon said that unless my payment history is crystal perfect including advance payments they don't have to return it. I found out this information after complaining to the BBB, if this was their policy they never told me about it. I'd switch to a different provider but I doubt I'd get my deposit back because Verizon is basically holding it hostage so I stay with them. I wouldn't doubt that the "positive" feedback you're getting is in fact Verizon moonlighting as actual customers who are giddy about Verizon.
    Verizon did to a family member when we switched to "friends and family" what they are doing to you. Verizon overdrew over $500 bucks from the initial payment after the service was set up. They never gave it back and only sent rebates that didn't equal what they withdrew. This was of course acting ignorant to what they did. I love the fact that they say that those who make the decisions to remedy their mistakes which Verizon will never admit to are in fact, people you can't reach in anyway whatsoever. It's like some kind of hidden death panel if it even exists.

  • 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

  • Form hangs while calling Report

    Hi, I am converting some Forms/reports from 6i to 10g.
    The form I am testing is calling a report repeatedly using the following code:
    rep_id := Find_Report_Object('FILE_RECORD_DESCRIPTION');
    <<open_files>>
    OPEN files;
    <<get_next_file>>
    FETCH files INTO file_name;
    IF files%NOTFOUND
         THEN
         CLOSE files;
         RETURN;
    END IF;
    :FILE_RECORD_DESC_STATUS := 'Doing file' || file_name;
    SYNCHRONIZE;
    IF :TYPE = 'PDF'
         THEN
         SET_REPORT_OBJECT_PROPERTY (rep_id,REPORT_DESNAME,'C:\DOC\PDF\' || file_name || '.pdf');
         SET_REPORT_OBJECT_PROPERTY (rep_id,REPORT_DESFORMAT,'PDF');
    SET_REPORT_OBJECT_PROPERTY (rep_id,REPORT_OTHER, 'P05_FILES="' || file_name || '"');
    END IF;
    IF :TYPE = 'HTML'
         THEN
         SET_REPORT_OBJECT_PROPERTY (rep_id,REPORT_DESNAME,'C:\DOC\' || file_name || '.htm');
         SET_REPORT_OBJECT_PROPERTY (rep_id,REPORT_DESFORMAT,'HTML');
    SET_REPORT_OBJECT_PROPERTY (rep_id,REPORT_OTHER, 'P05_FILES="' || file_name || '"');
    END IF;
    report := Run_Report_Object(rep_id);
    GOTO get_next_file;
    When REPORT_DESFORMAT is set to ‘HTML’, everything works well. Around 40 .htm documents are created on C:\DOC. But when REPORT_DESFORMAT is set to ‘PDF’ the form hang after creating 10 or 11 .pdf documents!!!
    Any idea what I am doing wrong? Do I have to free up some sort of buffer/memory/other things when creating .pdf document?
    Regards
    Yves

    I tried different things and it seams that the amount of data (i.e the size of the .pdf) determine how many times the report can be called before the form hangs. Form did hang after only 2 call for big report (around 20 pages each) but hangs after several calls for smaller ones???
    Yves

Maybe you are looking for

  • MSI Neo2 K8N Platinum - Freezing Issue during games

    First off greetings to everyone on these forums... I purchased the MSI Neo2 K8N Platinum motherboard from NewEgg back at the end of March to compliment the AMD 64 "Winchester" processor that I also purchased at that time to replace a slightly older A

  • Recover from migrated Groupwise Server

    My company migrated from Groupwise and Netware to Exchange and windows about 2 years ago. We have since discarded the equipment it was on. So now I need to recover some email from 3 years ago. I tried to rebuild another server using Netware 6 but the

  • FTPS with Oracle XML DB

    Hi all , I am thinking of using Jakarta Common net to implement FTP over SSL . Is that possible to do that ? Someone did it before ?

  • Installing Windows 7 on an X301 with no optical drive

    As the title says - how do you do it? I know the obvious solution is to buy an external optical drive, but I do not want to buy one specifically for the purpose and then have no use for it thereafter. Are the following options feasible (or possible!)

  • ZIPs close instantly when "Open with Windows Explorer" is selected

    If I download a ZIP file and tell Firefox to open the file in Explorer when it completes, the file will sometimes close by itself after a variable length of time (usually less than a second, sometimes as long as two or three). The problem does not oc