Exception Trap

Hello Experts,
I have the following error message been raised "ORA-14758: Last partition in the range section cannot be dropped" when i am trying to drop partition.
I have to trap this in exception part and if it get raised then i have to skip and proceed with partition process.
How can i do that?
Thanks fr ur comments...
PROCEDURE....
BEGIN..
     OPEN c_Part ;
         LOOP
            FETCH c_Part
             INTO lv_long_high_val, lv_part_name;
            EXIT WHEN c_Part%NOTFOUND;
            IF lv_long_high_val IS NOT NULL
            THEN
               -- Fetching the HIGH_VALUE and converting into CLOB type
               lv_high_val := TO_CLOB (lv_long_high_val);
               DBMS_OUTPUT.put_line
                  (   'High Value after converting to CLOB --> lv_high_val -> '
                   || lv_high_val
               BEGIN
                  SELECT TO_TIMESTAMP (TO_CHAR (DBMS_LOB.SUBSTR (lv_high_val,
                                                                 11,
                                                                 11
                                       'RRRR-MM-DD HH.MI.SSXFF AM'
                    INTO lv_tmp_high_value
                    FROM DUAL;
               EXCEPTION
                  WHEN NO_DATA_FOUND
                  THEN
                     lv_tmp_high_value := NULL;
               END;
                 IF lv_tmp_high_value <= (systimestamp - 30)
               THEN
                EXECUTE IMMEDIATE    'ALTER TABLE '
                                    ||  pv_multi_tab(i)
                                    || ' DROP PARTITION '
                                    || lv_part_name
                                    || ' UPDATE INDEXES ';
                    END IF;
            END IF;   
         END LOOP;
         CLOSE c_Part;
EXCEPTION
      WHEN OTHERS
      THEN
         IF c_Part%ISOPEN
         THEN
            CLOSE c_Part;
         END IF;
          DBMS_OUTPUT.put_line
            (   'Exception Raised in Package Procedure SQLCODE-->'
             || SQLCODE
             || 'SQLERRM-->'
             || SQLERRM
         RAISE;
END ;Edited by: Linus on Oct 22, 2010 4:31 AM

PROCEDURE....
IS
       lv_lst_part_err     EXCEPTION;
      PRAGMA EXCEPTION_INIT (lv_lst_part_err, -14758);
BEGIN..
     OPEN c_Part ;
         LOOP
            FETCH c_Part
             INTO lv_long_high_val, lv_part_name;
            EXIT WHEN c_Part%NOTFOUND;
            IF lv_long_high_val IS NOT NULL
            THEN
               -- Fetching the HIGH_VALUE and converting into CLOB type
               lv_high_val := TO_CLOB (lv_long_high_val);
               DBMS_OUTPUT.put_line
                  (   'High Value after converting to CLOB --> lv_high_val -> '
                   || lv_high_val
               BEGIN
                  SELECT TO_TIMESTAMP (TO_CHAR (DBMS_LOB.SUBSTR (lv_high_val,
                                                                 11,
                                                                 11
                                       'RRRR-MM-DD HH.MI.SSXFF AM'
                    INTO lv_tmp_high_value
                    FROM DUAL;
               EXCEPTION
                  WHEN NO_DATA_FOUND
                  THEN
                     lv_tmp_high_value := NULL;
               END;
                 IF lv_tmp_high_value <= (systimestamp - 30)
               THEN
           -------------Start of Newly added section ----------------    
               BEGIN
                EXECUTE IMMEDIATE    'ALTER TABLE '
                                    ||  pv_multi_tab(i)
                                    || ' DROP PARTITION '
                                    || lv_part_name
                                    || ' UPDATE INDEXES ';
              EXCEPTION
                 WHEN lv_lst_part_err  THEN
                  DBMS_OUTPUT.put_line
                    ('Trapped Error: --> Last partition in the range section during drop'
              END;
             -------------End of Newly added section ----------------                  
                    END IF;
            END IF;   
         END LOOP;
         CLOSE c_Part;
EXCEPTION
        WHEN lv_lst_part_err
      THEN
         DBMS_OUTPUT.put_line
            ('Trapped Error: --> Last partition in the range section during drop'
      WHEN OTHERS
      THEN
         IF c_Part%ISOPEN
         THEN
            CLOSE c_Part;
         END IF;
          DBMS_OUTPUT.put_line
            (   'Exception Raised in Package Procedure SQLCODE-->'
             || SQLCODE
             || 'SQLERRM-->'
             || SQLERRM
         RAISE;
END ;

Similar Messages

  • Debugger - unhandled exception trapping?

    3.1.681
    Can someone explain to me how to set up a Debugger trap for any unhandled exception?
    I use Debug | Run | Exception Breakpoint (lit) | Unhandled Exception Throw (lit ) but it doesn't seem to save (When I come back it is unlit again)? Is there something more that needs to be done?
    grin Is was fun looking at the documentation like "Step Over to Step Over the method" and then determining that "Step Over==Step" in other debuggers, and I can't find a "Step Over" ( or Skip ) function? sigh If each new town incorporated makes its own vocabulary, changing definitions while using the same words as another town.... well, I guess that's a really common issue in computer application tools.

    You make me smile! Ok, the terms are confusing. I'm not going to lash anyone with a wet noodle, but hopefully the docs will get better, without any tortellini torture.
    Ok, Step Over does execute the method without stopping (unless it encounters a real breakpoint somewhere). What you want is to NOT execute the method. Ok, we have such a feature (starting with JDev 3.1 I think), but it is only available with OJVM, which hopefully you are using! (Unless you specify -classic or -hotspot in the Java VM Parameters field of the Run/Debug tab in the project properties dialog box, then you are probably using OJVM).
    Click in the editor and place the text cursor on the line that you want to skip to. Don't put the text cursor on the line you want to skip over, but do put it on the line where you want to end up. Then go to the main menu and choose Debug -> Set Next Statement. That will move the execution point of the current thread to the line where the text cursor is, without executing any code.
    If the menu item is grayed, check the following:
    1. You are using ojvm. You can verify this by looking in the message view while you are debugging. The message view shows the command which was used to start your program in debug mode. After the "...\jre\bin\java" part, there should be a -XXdebug. Note that there are two Xs. If -XXdebug is present, it means that you are using OJVM. If you see -classic or -hotspot or -Xdebug (only one X), then you are not using OJVM.
    2. The text cursor in the code editor is on a valid and executable line of java code. Make sure it is not on a comment.
    3. The text cursor is within the same method as the execution point. We don't let you "jump" into a different method.
    Be very careful using this feature. We call it a buyer-beware feature. If you skip over initialization of local variables, you are likely to get into trouble very quickly, especially if the uninitialized variable is not a primitive type. If you skip over code which is "necessary" to the rest of you program, you are going to get into trouble.
    You can also use this feature to repeat the execution of a statement. For example, if you pressed Step Over but you meant to Trace Into, you can put the cursor BACK on the line you wanted to trace into, do Set Next Statement, and then do Trace Into. Again, buyer-beware: if the code you are repeating causes side effects, then it may not be safe to repeat it.
    About the exception breakpoint stuff. The problem arises from mixing old and new debugger architectures, which happened when we started supporting JDK 1.2 (new) and continued to support JDK 1.1 (old). The user interface was mostly written when we only supported JDK 1.1, and the UI basically matched the underlying debugging support. However, the debugging support we have in JDK 1.2 is a little different, so we try our best to match an old user interface to the new underlying debugging support.
    Did you happen to go to Oracle Open World and check out JDev 5, which was shown at the "campground"? With JDev 5, we can all look forward to a better product, where the UI can be re-designed (where necessary) to better match the underlying capabilities.
    Liz
    null

  • Disable JVM Exception Trap

    We're having a heartburn with weblogic 6.1 that appears to be in the native IO code - presumably this is JNI. Is there some mechanism to disable the JVM error trapping and allow the error to propagate to Dr. Watson?

    Mr Administrator !
    I ned moore information for "JVM Exception" , can you help me ?
    At.Sergio

  • Getting an error after executing batch process LTRPRT

    hi we are testing to check how the flat files are created for different customer contacts,for that we had ran the batch process LTRPRT batch process
    it got executed and ended abnormally with an error
    these are the parameters which were submitted during batch submission
    FILE-PATH=d:\spl
    FIELD-DELIM-SW=Y
    CNTL-REC-SW=N
    This is the following error
    ERROR (com.splwg.base.support.batch.GenericCobolBatchProgram) A non-zero code was returned from call to COBOL batch program CIPCLTPB: 2
    com.splwg.shared.common.LoggedException: A non-zero code was returned from call to COBOL batch program CIPCLTPB: 2
    *     at com.splwg.shared.common.LoggedException.raised(LoggedException.java:65)*
    *     at com.splwg.base.support.batch.GenericCobolBatchProgram.callCobolInCobolThread(GenericCobolBatchProgram.java:78)*
    *     at com.splwg.base.support.batch.GenericCobolBatchProgram.execute(GenericCobolBatchProgram.java:38)*
    *     at com.splwg.base.support.batch.CobolBatchWork$DoExecuteWorkInSession.doBatchWorkInSession(CobolBatchWork.java:81)*
    *     at com.splwg.base.support.batch.BatchWorkInSessionExecutable.run(BatchWorkInSessionExecutable.java:56)*
    *     at com.splwg.base.support.batch.CobolBatchWork.doExecuteWork(CobolBatchWork.java:54)*
    *     at com.splwg.base.support.grid.AbstractGridWork.executeWork(AbstractGridWork.java:69)*
    *     at com.splwg.base.support.grid.node.SingleThreadedGrid.addToWorkables(SingleThreadedGrid.java:49)*
    *     at com.splwg.base.support.grid.node.AbstractSingleThreadedGrid.processNewWork(AbstractSingleThreadedGrid.java:49)*
    *     at com.splwg.base.api.batch.StandaloneExecuter$ProcessNewWorkExecutable.execute(StandaloneExecuter.java:590)*
    *     at com.splwg.base.support.context.SessionExecutable.doInNewSession(SessionExecutable.java:38)*
    *     at com.splwg.base.api.batch.StandaloneExecuter.submitProcess(StandaloneExecuter.java:188)*
    *     at com.splwg.base.api.batch.StandaloneExecuter.runOnGrid(StandaloneExecuter.java:153)*
    *     at com.splwg.base.api.batch.StandaloneExecuter.run(StandaloneExecuter.java:137)*
    *     at com.splwg.base.api.batch.StandaloneExecuter.main(StandaloneExecuter.java:357)*
    *18:24:14,652 [main] ERROR (com.splwg.base.support.grid.node.SingleThreadedGrid) Exception trapped in the highest level of a distributed excecution context.*
    what could be the reason?

    you need to specify appropriate folder on the server.
    for e.g. choose +/spl/sploutput/letterextract/+

  • Old app recompiled with f77 failed but succeed with g77

    hello all,
    i need to recompile an old app written in fortran77, but it fails at the execution:
    Starting nonmem execution ...
    Note: IEEE floating-point exception flags raised:
        Inexact;  Underflow;  Invalid Operation;
    See the Numerical Computation Guide, ieee_flags(3M) after generating a core, dbx tells me:
    t@1 (l@1) program terminated by signal FPE (invalid floating point operation)
    Current function is cels
      103         IF (ICAT.NE.0.AND.CTLW.GE.CTUP) THEN
    (dbx) where
    current thread: t@1
    =>[1] cels(cnt = 0.0, p1 = ARRAY, p2 = ARRAY, ier1 = 0, ier2 = 0), line 103 in "CELS.f"
      [2] ncontr(cnt = 0.0, ier1 = 0, ier2 = 0, l2r = 0), line 329 in "NCONTR.f"
      [3] obj(o = -NaN.0), line 1636 in "OBJ.f"
      [4] zxmin1(funct = 0x80e8c10, nsig = 3, maxfn = 450, jopt = 0, w = ARRAY, opint = 5), line 222 in "ZXMIN1.f"
      [5] estim(ier = 0), line 156 in "ESTIM.f"
      [6] MAIN(), line 45 in "NONMEM.f"and:
    (dbx) print ICAT
    icat = 3
    (dbx) print CTLW
    ctlw = NaN
    (dbx) print CTUP
    ctup = -NaN.0what i don't understand is that the same sources compiled with g77 (2.95) works without problems. That is g77 is able to set ctlw and ctup correctly!?
    Is there a flag in f77 to mimic the g77 behaviour?
    here are the flags i'm using:
    f77 -g -C -fnonstdthanks in advance for help,
    gerard
    Edited by: mister_g on 24 juin 2009 09:27

    it seems that the problem is related to COMMON variables, as they are strangely declared, but as i said before, it's a "commercial" app, even if this is the responsibility of the customer to recompile it.
    What we observed is that, before entering into a function, a variable decalred in a COMMON has a correct value, but in the function, it contains NaN. In the earlier releases, according to the official docs, developers used to use sun compiler, so my guess is that something has changed in Sun f77 since the old times?
    i gave a try with old workshop WS6.u2, the program failed too, but i'm unable to generate a core or to tell the debugger to stop where the error occured:
    (/opt/SUNWspro.old/bin/../WS6U2/bin/sparcv9/dbx) catch
    HUP INT QUIT ILL TRAP ABRT EMT FPE BUS SEGV SYS PIPE ALRM TERM USR1 USR2 CLD PWR WINCH URG POLL STOP TSTP CONT TTIN TTOU VTALRM PROF XCPU XFSZ WAITING LWP FREEZE THAW CANCEL LOST XRES 39 40 RTMIN RTMIN+1 RTMIN+2 RTMIN+3 RTMIN+4 RTMIN+5 RTMIN+6 RTMIN+7
    (/opt/SUNWspro.old/bin/../WS6U2/bin/sparcv9/dbx) run < FCON > REPORT5
    Running: nonmem < FCON > REPORT5
    (process id 25314)
    Reading libc_psr.so.1
    Note: IEEE floating-point exception traps enabled:
        overflow;  division by zero;  invalid operation;
    Nonstandard floating-point mode enabled
    See the Numerical Computation Guide, ieee_handler(3M), ieee_sun(3M)
    execution completed, exit code is 0
    (/opt/SUNWspro.old/bin/../WS6U2/bin/sparcv9/dbx) where
    dbx: program is not active
    (/opt/SUNWspro.old/bin/../WS6U2/bin/sparcv9/dbx)Thanks in advance for help,
    gerard

  • External DB [SecurID.dll]: Failed to load 'aceclnt.dll'

    Hi all,
    ACS refuse to start, possibly after windows 2000 upgrade. The error message in the csauth log is :
    ADMN 05/05/2006 08:42:11 E 0360 1824 External DB [SecurID.dll]: Failed to load 'aceclnt.dll'
    ADMN 05/05/2006 08:42:11 E 0547 1824 AuthenLoadLibrary: DLL for RSA SecurID Token Server initialization function failed
    ADMN 05/05/2006 08:42:11 E 0028 1824 Exception trapped at D:\ccData\snapViews\Snap_rgoren_matis-build11@ismg_israel_acs@ACS-B-394\ismg_israel_acs\Acs\DZAuth\authentication_common.c:631 [Exception trapped in AuthenLoadSupplier]
    I have try to suppress windows update, but the problem is always here, this services refuses to start :
    * csradius
    * cstacas
    * csadmin
    * csauth
    Any ideas ??

    Hmm, the exception definately shouldnt happen - no matter what else may have occurred on your machine.
    Have you ever used the RSA authenticator? The aceclnt.dll is supplied by RSA and installed into system32 when you install the RSA client tools CD.
    If yes, its possible the OS upgrade managed to nuke the DLL accidentally. ALthough the error message "Failed to load aceclnt.dll" is actually quite normal. I get this and dont have RSA support installed.
    I think this will require a call to the TAC as you probably need a developer to track the crash... the sort thing I used to do!
    Darran

  • How to display a .txt file?

    i would like to ask if JAVA can open and display a text file by issuing a command from my application
    is it possible to do it without using a JEditorPane?
    something else too, how can i set the background for my application to be a .jpg image?
    i searched and realised there is no such method as
    setBackground(String url)

    Try this... Note you need to add adequate exception trapping and detect special cases like the file being larger than the allocatable size of a character array (in which case you can't convert the file to a string and will need to 'display' the file in sections)...
    import java.io.*;
    public class LoadFile {
      public static String fileToString(File file) throws IOException {
        char[] fileContents = new char[(int) file.length()];
        FileReader fr = new FileReader(file);
        if(fr.read(fileContents) != fileContents.length) {
          System.err.println("There was a problem reading the file contents");
          return null;
        else return new String(fileContents);
      public static void main(String[] args) throws IOException {
        if(args.length != 1) System.err.println("Usage:\n\tjava LoadFile <filename>");
        else {
          File f = new File(args[0]);
          try {
            String s = fileToString(f);
            System.out.println(s);
          } catch(IOException e) {
            System.err.println("Whoops");
    }Hope that helps...

  • Block based on Stored Procedures & Locking_Mode

    Hello,
    I'm creating a block in Forms 6.0.8 based on Stored Procedures. I'm using the example given in Metalink doc 52778.1. Updates to data work fine if locking_mode = 'Immediate'. If I set locking_mode to 'Delayed' and run the form, when I try to update and commit something, then the IF condition in lock-procedure (grp_lock) always returns TRUE and I run into the exception trapped there. It appears that Forms is passing NEW values in p_grp_data if locking_mode is Delayed and this is causing the problem. Is there any thing I could do in the form or procedure (preferably in the procedure) to solve this problem ? I'm trying to write procedures that will work with both Immediate and Delayed locking_modes
    thanks in advance..
    -- Table and package source:
    -- GRP
    create sequence grp_s
    create table grp
    id number constraint grp_pk primary key,
    name varchar2(10) not null constraint grp_uk unique,
    description varchar2(30) not null,
    active varchar2(1) default 'Y'
    create or replace trigger grp_bri before insert on grp for each row
    begin
    select grp_s.nextval
    into :new.id
    from dual ;
    end ;
    CREATE OR REPLACE PACKAGE grp_pkg AS
    TYPE grpidrec IS RECORD( id grp.id%TYPE ) ;
    TYPE grprec IS RECORD ( id grp.id%type, name grp.name%type, description grp.description%type, active grp.active%type ) ;
    TYPE grp_cursor IS REF CURSOR RETURN grp%rowtype ;
    TYPE grp_tab IS TABLE OF grp%rowtype INDEX BY BINARY_INTEGER ;
    TYPE grp_id_tab IS TABLE OF grpidrec INDEX BY BINARY_INTEGER ;
    PROCEDURE grp_refcur( p_grp_data IN OUT grp_cursor,
    p_group_name IN grp.name%type ) ; -- use if a ref cursor is required
    PROCEDURE grp_query( p_grp_data IN OUT grp_tab, p_group_name IN grp.name%TYPE ) ;
    PROCEDURE grp_insert( p_grp_data IN grp_tab ) ;
    PROCEDURE grp_update( p_grp_data IN grp_tab ) ;
    PROCEDURE grp_delete( p_grp_data IN grp_id_tab ) ;
    PROCEDURE grp_lock( p_grp_data IN grp_tab ) ;
    END grp_pkg ;
    sho err
    create or replace package body grp_pkg as
    -- ================================================================================
    PROCEDURE grp_refcur( p_grp_data IN OUT grp_cursor, p_group_name IN grp.name%type ) AS
    begin
    open p_grp_data FOR select id, name, description, active
    from grp
    where name = nvl( p_group_name, name ) ;
    end ;
    -- ================================================================================
    PROCEDURE grp_query( p_grp_data IN OUT grp_tab, p_group_name IN grp.name%TYPE ) AS
    i number ;
    CURSOR grp_select IS
    SELECT id, name, description, active
    FROM grp
    WHERE name = nvl( p_group_name, name ) ;
    begin
    OPEN grp_select ;
    i := 1 ;
    LOOP
    FETCH grp_select INTO p_grp_data(i).id, p_grp_data(i).name, p_grp_data(i).description, p_grp_data(i).active ;
    EXIT WHEN grp_select%NOTFOUND ;
    i := i + 1 ;
    END LOOP ;
    end ;
    -- ================================================================================
    PROCEDURE grp_insert( p_grp_data IN grp_tab ) AS
    i NUMBER ;
    begin
    FOR i in p_grp_data.FIRST .. p_grp_data.LAST
    LOOP
    INSERT INTO grp( name, description, active )
    VALUES ( p_grp_data(i).name, p_grp_data(i).description, p_grp_data(i).active ) ;
    END LOOP ;
    end ;
    -- ================================================================================
    PROCEDURE grp_update( p_grp_data in grp_tab ) AS
    i binary_integer ;
    rec_modified exception ;
    BEGIN
    FOR i in p_grp_data.first .. p_grp_data.last LOOP
    UPDATE grp
    SET name = p_grp_data(i).name,
    description = p_grp_data(i).description,
    active = p_grp_data(i).active
    WHERE id = p_grp_data(i).id ;
    if sql%rowcount = 0 then
    raise rec_modified ;
    else
    -- success
    null ;
    end if ;
    END LOOP ;
    exception
    when rec_modified then
    raise_application_error(-20006, 'Record already modified' ) ;
    when others then
    raise_application_error(-20007, 'Other error : ' || sqlerrm ) ;
    END ;
    -- ================================================================================
    PROCEDURE grp_delete( p_grp_data IN grp_id_tab ) AS
    i BINARY_INTEGER ;
    begin
    FOR i IN p_grp_data.FIRST .. p_grp_data.LAST LOOP
    DELETE FROM grp
    WHERE name = p_grp_data(i).id ;
    END LOOP ;
    end grp_delete ;
    -- ================================================================================
    PROCEDURE grp_lock( p_grp_data IN grp_tab ) AS
    i BINARY_INTEGER ;
    grec grprec ;
    err varchar2(255) ;
    errcd number ;
    rec_modified exception ;
    begin
    FOR i in p_grp_data.FIRST .. p_grp_data.LAST LOOP
    begin
    SELECT id, name, description, active
    INTO grec
    FROM grp
    WHERE id = p_grp_data(i).id
    FOR UPDATE OF description NOWAIT ;
    -- this part returns true
    -- if locking_mode = 'Delayed'
    -- Forms is passing NEW values in p_grp_data if mode is Delayed
    -- and OLD values if mode is Immediate
    if ( grec.name != p_grp_data(i).name
    OR grec.description != p_grp_data(i).description
    OR grec.active != p_grp_data(i).active ) THEN
    raise rec_modified ;
    end if ;
    exception
    when no_data_found then
    raise_application_error( -20007, 'Record deleted by another user' ) ;
    when rec_modified then
    raise_application_error(-20006, 'Record modified by another user' ) ;
    when others then
    raise_application_error(-20009, 'Others' ) ;
    end ;
    END LOOP ;
    end ;
    -- ================================================================================
    end grp_pkg ;
    show error package body grp_pkg

    Yes, I was hoping to use these procedures to map the collection type returned to the database to the block data. I guess I was wrong. Except for the initial query and reading some other information from the database, I don't have to use these procedures as I do not write anything to it.
    Thank you for your help, I will go on from there.
    So, it means that I will have to iterate through my collection inside Forms and manipulate my data row by row. Or, is there a way to pass an Oracle collection type between the database and the Forms client and have it displayed without having to iterate through the rows and mapping each field?
    adsm

  • Feedback requested: in backing bean, use AM svc method or operation binding

    Hello all,
    I'm posting this here to solicit feedback from both Oracle and from the community at large. The basic question is around what is the best/better practice for calling Application Module service methods from a backing bean. One choice is to call the service method directly on the application module; the other is to put an operation binding in the page definition and to execute that binding. The basic code for the two methods:
    ((MyAppModule) getBindings().getDataControl.getApplicationModule()).serviceMethod();or
    getBindings().getOperationBinding("serviceMethod").execute();My question comes up specifically because of differences in how the default error handling works. For testing, we created a simple AM with a single service method that throws a JboException (a kind of RuntimeException). Then, we created a simple ADF Faces page with an af:messages (to see how error handling works) and four af:commandButtons. The four command buttons are as follows (the code is in the backing bean for each of them):
    1). partialSubmit=false, calls application module service method directly
    2). partialSubmit=false, executes service method via operationBinding
    3). partialSubmit=true, calls application module service method directly
    4). partialSubmit=true, executes service method via operationBinding
    None of the backing bean methods catch any exceptions. Note that #2 and #4 could be bound directly to the methodBinding in the pagedef, but we did it via code in the backing bean to more accurately mimic some of the code in our application; in any case, the results were the same using either method for #2 and #4.
    The results when clicking each button:
    1). ugly stack trace in the browser window (yuck!)
    2). the af:messages component displays the JboException (nice)
    3). No stack trace, no error message (even worse than #1, user thinks "success," even though exception occurred)
    4). the af:messages component displays the JboException (nice)
    This leads me to think that perhaps calling via the binding container is the preferred method because the default error handling gives acceptable behaviour, whereas using the AM directly gives unacceptable behaviour.
    Another "benefit" of calling through the binding container is that the technology in the model layer could be changed without having to change the view layer. I say "benefit" in quotes because I personally believe that one should write applications to take full advantage of the technology they choose, not try to strive for technology/database independence (no flames on this one please - that's not the main point here ;).
    Having made the preliminary conclusion that the binding container is the preferred way to go for service methods - that could then ostensibly be extended to view objects as well. Should the view layer use iteratorBindings instead of dealing with view objects directly as well? This is a bit more shaky ground because there are some points in the view/controller layer (namely managed beans not associated with any page) where there is no binding container available. However, in backing beans, for re-executing queries we could make the "best practices" statement to always use iteratorBindings instead of accessing the AM/VO. I just completed a test comparing view object usage vs iterator binding usage (vo.executeQuery() vs myIter.executeQuery()) with similar results to the AM testing - the binding container route gives acceptable error handling, whereas the VO route forces me to implement my own error/exception trapping and message display.
    I am aware of one drawback to using the binding container instead of the AM directly - that is that each page that needs the service method must have something in it's pageDef for that method. Originally, we had some code in a superclass of some backing beans that called the AM directly, and we didn't need to touch the pageDefs of approximately 20 JSF pages - when changing to use the operation binding - we had to add it to a lot of page defs.
    I'm very interested in feedback from the community at large on my conclusions. If the discussion gets to be too big/complicated for here, we can change venues to perhaps the oracle wiki or another forum. I did do a quick review of SRDemo ADFBC and noted that all of the service method calls are done through operation bindings - I never noticed that before! Most of the discussion we see in the forums shows people calling them directly, which is why I thought it important to post here.
    Best regards,
    John

    What we did in our project was that we create a "Headless" pagedefinition, (that was how it was described in SRDemo documentation or in JDeveloper help, its on the latter part about Security).
    You have to create that pagedef manually. and it only has an
    <page id="yourPageDef_Id" path="..."> entry in your Databindings and no
    <page path=".../yourPageDef_id" usageId=".../???.jsp">And then in your faces_config and your managed bean name is backingSystemStateBean and is located at path.to.bean.SystemState add a Session scope bean entry like this:
      <managed-bean>
        <managed-bean-name>backingSystemStateBean</managed-bean-name>
        <managed-bean-class>path.to.bean.SystemState</managed-bean-class>
        <managed-bean-scope>session</managed-bean-scope>
        <managed-property>
          <property-name>bindings</property-name>
          <value>#{data.yourPageDef_Id}</value>
        </managed-property>

  • RE: (forte-users) [UNIX] "Too many open files" 3.0.M2question

    Actually, the stuff works in interpreted mode.
    It's only when having the server partition compiled that this happen.
    j-p
    -----Message d'origine-----
    De: Adamek, Zenon [mailto:ZAdamekpurolator.com]
    Date: lundi 25 septembre 2000 17:13
    &Agrave;: 'Jean-Paul.Gabriellisema.fr'
    Cc: Forte-userslists.xpedior.com
    Objet: RE: (forte-users) [UNIX] "Too many open files" 3.0.M2 question
    see Technote 10981
    -----Original Message-----
    From: Jean-Paul Gabrielli [SMTP:Jean-Paul.Gabriellisema.fr]
    Sent: Monday, September 25, 2000 11:02 AM
    To: zeForte-users
    Subject: (forte-users) [UNIX] "Too many open files" 3.0.M2 question
    Hi,
    running a server partition that reads a configuration file,
    and apparently doen't close it after, I have that exception:
    SYSTEM ERROR: System Error: Too many open files, opening '....'with mode
    'r'
    Class: qqos_FileResourceException
    1) Is there such a limit, or does this rely only on the OS one ?
    2) How is this error not trapped, as I only got itinteractively, whereas
    my server log does a exception trap/segmentation fault,
    thanlks
    j-p
    For the archives, go to: http://lists.xpedior.com/forte-users and use
    the login: forte and the password: archive. To unsubscribe,send in a new
    email the word: 'Unsubscribe' to: forte-users-requestlists.xpedior.com

    Hi Jean-Paul,
    As described in the Technote 10981 some Forte programs (Nodemanager and
    router) handle correct the high-file descriptor-use problem. It is possible
    that Forte interpreter do it correct too.
    Zenon
    -----Original Message-----
    From: Jean-Paul Gabrielli [SMTP:Jean-Paul.Gabriellisema.fr]
    Sent: Monday, September 25, 2000 12:11 PM
    To: Adamek, Zenon
    Cc: Forte-userslists.xpedior.com
    Subject: RE: (forte-users) [UNIX] "Too many open files" 3.0.M2
    question
    Actually, the stuff works in interpreted mode.
    It's only when having the server partition compiled that this happen.
    j-p
    -----Message d'origine-----
    De: Adamek, Zenon [mailto:ZAdamekpurolator.com]
    Date: lundi 25 septembre 2000 17:13
    &Agrave;: 'Jean-Paul.Gabriellisema.fr'
    Cc: Forte-userslists.xpedior.com
    Objet: RE: (forte-users) [UNIX] "Too many open files" 3.0.M2 question
    see Technote 10981
    -----Original Message-----
    From: Jean-Paul Gabrielli [SMTP:Jean-Paul.Gabriellisema.fr]
    Sent: Monday, September 25, 2000 11:02 AM
    To: zeForte-users
    Subject: (forte-users) [UNIX] "Too many open files" 3.0.M2 question
    Hi,
    running a server partition that reads a configuration file,
    and apparently doen't close it after, I have that exception:
    SYSTEM ERROR: System Error: Too many open files, opening '....'with mode
    'r'
    Class: qqos_FileResourceException
    1) Is there such a limit, or does this rely only on the OS one ?
    2) How is this error not trapped, as I only got itinteractively, whereas
    my server log does a exception trap/segmentation fault,
    thanlks
    j-p
    For the archives, go to: http://lists.xpedior.com/forte-users and use
    the login: forte and the password: archive. To unsubscribe,send in a new
    email the word: 'Unsubscribe' to:
    forte-users-requestlists.xpedior.com
    >
    For the archives, go to: http://lists.xpedior.com/forte-users and use
    the login: forte and the password: archive. To unsubscribe, send in a new
    email the word: 'Unsubscribe' to: forte-users-requestlists.xpedior.com

  • RE: (forte-users) Screen Scraping

    I think they changed their name since Conextions at least 2 times. Try this
    web site:
    http://www.wrq.com/products/apptrieve/
    noro
    -----Original Message-----
    From: Denver Jobs [mailto:fortejobsindenveryahoo.com]
    Sent: Monday, November 13, 2000 8:31 AM
    To: forte-userslists.xpedior.com
    Subject: Re: (forte-users) Screen Scraping
    Michael,
    We use Conextions for screen scraping from the
    mainframe - and I believe that it is supported by
    Forte. I tried checking their website to see if they
    offered it for Unix, but their site was down.?
    Some others you may want to check with are Pixel
    Science Technology or FileFrameVX. I also saw an
    interesting article on Eclipse Host Integration
    Server, but it appears they've shut down and
    transferred their knowledge base to a company called
    eNucleus.
    --- Michael Strauss <mstraussmazda.com.au> wrote:
    Has anyone performed any screen scraping either
    directly from Forte
    (sockets) or via C wrapping? I would be very
    interested to hear some
    feedback and pointers. I want to scrape from my
    Unix server and provide the
    scraped data to my GUI client (Win).
    TIA
    Michael Strauss
    >
    >
    Mazda Australia takes every precaution to ensure
    email messages
    are virus free.
    For extra protection you should virus scan this
    message yourself.
    >
    For the archives, go to:
    http://lists.xpedior.com/forte-users and use
    the login: forte and the password: archive. To
    unsubscribe, send in a new
    email the word: 'Unsubscribe' to:
    forte-users-requestlists.xpedior.com
    http://calendar.yahoo.com/
    For the archives, go to: http://lists.xpedior.com/forte-users and use
    the login: forte and the password: archive. To unsubscribe, send in a new
    email the word: 'Unsubscribe' to: forte-users-requestlists.xpedior.com

    Hi Jean-Paul,
    As described in the Technote 10981 some Forte programs (Nodemanager and
    router) handle correct the high-file descriptor-use problem. It is possible
    that Forte interpreter do it correct too.
    Zenon
    -----Original Message-----
    From: Jean-Paul Gabrielli [SMTP:Jean-Paul.Gabriellisema.fr]
    Sent: Monday, September 25, 2000 12:11 PM
    To: Adamek, Zenon
    Cc: Forte-userslists.xpedior.com
    Subject: RE: (forte-users) [UNIX] "Too many open files" 3.0.M2
    question
    Actually, the stuff works in interpreted mode.
    It's only when having the server partition compiled that this happen.
    j-p
    -----Message d'origine-----
    De: Adamek, Zenon [mailto:ZAdamekpurolator.com]
    Date: lundi 25 septembre 2000 17:13
    &Agrave;: 'Jean-Paul.Gabriellisema.fr'
    Cc: Forte-userslists.xpedior.com
    Objet: RE: (forte-users) [UNIX] "Too many open files" 3.0.M2 question
    see Technote 10981
    -----Original Message-----
    From: Jean-Paul Gabrielli [SMTP:Jean-Paul.Gabriellisema.fr]
    Sent: Monday, September 25, 2000 11:02 AM
    To: zeForte-users
    Subject: (forte-users) [UNIX] "Too many open files" 3.0.M2 question
    Hi,
    running a server partition that reads a configuration file,
    and apparently doen't close it after, I have that exception:
    SYSTEM ERROR: System Error: Too many open files, opening '....'with mode
    'r'
    Class: qqos_FileResourceException
    1) Is there such a limit, or does this rely only on the OS one ?
    2) How is this error not trapped, as I only got itinteractively, whereas
    my server log does a exception trap/segmentation fault,
    thanlks
    j-p
    For the archives, go to: http://lists.xpedior.com/forte-users and use
    the login: forte and the password: archive. To unsubscribe,send in a new
    email the word: 'Unsubscribe' to:
    forte-users-requestlists.xpedior.com
    >
    For the archives, go to: http://lists.xpedior.com/forte-users and use
    the login: forte and the password: archive. To unsubscribe, send in a new
    email the word: 'Unsubscribe' to: forte-users-requestlists.xpedior.com

  • Re: (forte-users) Cosnaming

    Thank you,
    I hope it will be soon available...
    Regards,
    Daniel
    ----- Original Message -----
    From: "James, Nick CWT-MSP" <njamesCarlson.com>
    To: "'Daniel Gonz&aacute;lez de Lucas'" <danieleam.es>
    Sent: Friday, November 03, 2000 1:48 PM
    Subject: RE: (forte-users) Cosnaming
    That is one of the new features in Forte 3.5
    Nick.
    -----Original Message-----
    From: Daniel Gonz&aacute;lez de Lucas [mailto:danieleam.es]
    Sent: Friday, November 03, 2000 2:58 AM
    To: Fort&eacute; Mailing List
    Subject: (forte-users) Cosnaming
    Hi,
    I'm working with Service Objects in IIOP-IDL mode,
    to access these Service Objects from a Java Client I'm using the IOR file
    generated by Fort&eacute;.
    Does anyone know if is it possible to use a Cosnaming service running inthe
    server instead of using the IOR file.
    Best regards,
    Daniel

    Hi Jean-Paul,
    As described in the Technote 10981 some Forte programs (Nodemanager and
    router) handle correct the high-file descriptor-use problem. It is possible
    that Forte interpreter do it correct too.
    Zenon
    -----Original Message-----
    From: Jean-Paul Gabrielli [SMTP:Jean-Paul.Gabriellisema.fr]
    Sent: Monday, September 25, 2000 12:11 PM
    To: Adamek, Zenon
    Cc: Forte-userslists.xpedior.com
    Subject: RE: (forte-users) [UNIX] "Too many open files" 3.0.M2
    question
    Actually, the stuff works in interpreted mode.
    It's only when having the server partition compiled that this happen.
    j-p
    -----Message d'origine-----
    De: Adamek, Zenon [mailto:ZAdamekpurolator.com]
    Date: lundi 25 septembre 2000 17:13
    &Agrave;: 'Jean-Paul.Gabriellisema.fr'
    Cc: Forte-userslists.xpedior.com
    Objet: RE: (forte-users) [UNIX] "Too many open files" 3.0.M2 question
    see Technote 10981
    -----Original Message-----
    From: Jean-Paul Gabrielli [SMTP:Jean-Paul.Gabriellisema.fr]
    Sent: Monday, September 25, 2000 11:02 AM
    To: zeForte-users
    Subject: (forte-users) [UNIX] "Too many open files" 3.0.M2 question
    Hi,
    running a server partition that reads a configuration file,
    and apparently doen't close it after, I have that exception:
    SYSTEM ERROR: System Error: Too many open files, opening '....'with mode
    'r'
    Class: qqos_FileResourceException
    1) Is there such a limit, or does this rely only on the OS one ?
    2) How is this error not trapped, as I only got itinteractively, whereas
    my server log does a exception trap/segmentation fault,
    thanlks
    j-p
    For the archives, go to: http://lists.xpedior.com/forte-users and use
    the login: forte and the password: archive. To unsubscribe,send in a new
    email the word: 'Unsubscribe' to:
    forte-users-requestlists.xpedior.com
    >
    For the archives, go to: http://lists.xpedior.com/forte-users and use
    the login: forte and the password: archive. To unsubscribe, send in a new
    email the word: 'Unsubscribe' to: forte-users-requestlists.xpedior.com

  • Stale JDBC Connections

    I have successfully added an ExceptionHandler to Toplink which does catch stale JDBC connections and refreshes them.
    However, once in while this does not work and I see this in the logs:
    2004-09-07 13:14:52 StandardWrapperValve[action]: Servlet.service() for servlet
    action threw exception
    java.lang.NullPointerException
    at oracle.toplink.internal.databaseaccess.DatabaseAccessor.reestablishCo
    nnection(DatabaseAccessor.java:1326)
    at us.fed.fs.toplink.ExceptionHandler.handleException(ExceptionHandler.j
    ava:71)
    at oracle.toplink.publicinterface.Session.handleException(Session.java:1
    824)
    at oracle.toplink.publicinterface.UnitOfWork.commitToDatabaseWithChangeS
    et(UnitOfWork.java:1108)
    at oracle.toplink.publicinterface.UnitOfWork.commitRootUnitOfWork(UnitOf
    Work.java:927)
    at oracle.toplink.publicinterface.UnitOfWork.commitAndResume(UnitOfWork.
    java:784)
    I suppose I could add another exception trap in the ExceptionHandler to retry the re-establish connection call, but I am afraid this would set up a never endling loop.
    Does anyone have insight on why reestablish connection sometimes fails? Is there an established procedure to deal with it?
    Thanks,
    Brad

    Hi. This is a consequence of DBMS policies. The client should not have
    to close it's connection(s), but should be able to close it's currently open
    prepared/callable statements and remake them.
    WebLogic is able to do that, and maybe your middleware can too, but
    if not, it's not a driver issue or anything the driver can handle automatically.
    The DBMS can invalidate the query plan at any time. It might be a DBMS
    enhancement request to have an option where existing clients remain
    old query plan (if possible), but that would be a difficult thing to implement.
    The DBMS would have to be able to interpret whether any give change in
    the DBMS schema would hurt the semantics and/or construction of all
    existing compiled query plans, and I bet those compiled query plans don't
    keep enough metadata to determine that. It would take a virtual recompile
    in any case to be sure.
    Joe Weinstein at BEA Systems

  • RE: (forte-users) Rose addin

    Hi Jan,
    There is a patch for supported Rose Forte Link customers that allows you to
    use Rose Forte Link with both Rose2000 and Rose2001. Please contact
    rfl-supportxpedior.com with your licence details and the patch will be
    forwarded to you. Also, any questions and issues you have with Rose Forte
    Link can be sent to rfl-supportxpedior.com.
    Regards,
    Allister Dickson
    Technical Architect
    Xpedior Australia
    www.xpedior.com
    Ph: +61-8-9485-0399
    Mob: +61-402-052-943
    Fax: +61-8-9486-8650
    -----Original Message-----
    From: Hollevoet Jan [mailto:jan.hollevoetordab.com]
    Sent: Tuesday, 6 March 2001 4:22
    To: 'forte-userslists.xpedior.com'
    Subject: (forte-users) Rose addin
    Hello
    We are using the Fort&eacute; addin for Rational Rose. Now we want to upgrade from
    Rose98i to Rose2001, but this addin is not working properly anymore. Does
    anyone know when the upgrade of this addin will be available?
    Best Regards
    Jan Hollevoet
    Orda-B
    Belgium
    =======================================================
    The Information contained in this message is intended
    for the addressee only and may contain confidential
    information. Any views or opinions presented are solely
    those of the author and do not necessarily represent
    those of Orda-B. Orda-B reserves the right to monitor
    the content of all e-mail messages it receives.
    For the archives, go to: http://lists.xpedior.com/forte-users and use
    the login: forte and the password: archive. To unsubscribe, send in a new
    email the word: 'Unsubscribe' to: forte-users-requestlists.xpedior.com

    Hi Jean-Paul,
    As described in the Technote 10981 some Forte programs (Nodemanager and
    router) handle correct the high-file descriptor-use problem. It is possible
    that Forte interpreter do it correct too.
    Zenon
    -----Original Message-----
    From: Jean-Paul Gabrielli [SMTP:Jean-Paul.Gabriellisema.fr]
    Sent: Monday, September 25, 2000 12:11 PM
    To: Adamek, Zenon
    Cc: Forte-userslists.xpedior.com
    Subject: RE: (forte-users) [UNIX] "Too many open files" 3.0.M2
    question
    Actually, the stuff works in interpreted mode.
    It's only when having the server partition compiled that this happen.
    j-p
    -----Message d'origine-----
    De: Adamek, Zenon [mailto:ZAdamekpurolator.com]
    Date: lundi 25 septembre 2000 17:13
    &Agrave;: 'Jean-Paul.Gabriellisema.fr'
    Cc: Forte-userslists.xpedior.com
    Objet: RE: (forte-users) [UNIX] "Too many open files" 3.0.M2 question
    see Technote 10981
    -----Original Message-----
    From: Jean-Paul Gabrielli [SMTP:Jean-Paul.Gabriellisema.fr]
    Sent: Monday, September 25, 2000 11:02 AM
    To: zeForte-users
    Subject: (forte-users) [UNIX] "Too many open files" 3.0.M2 question
    Hi,
    running a server partition that reads a configuration file,
    and apparently doen't close it after, I have that exception:
    SYSTEM ERROR: System Error: Too many open files, opening '....'with mode
    'r'
    Class: qqos_FileResourceException
    1) Is there such a limit, or does this rely only on the OS one ?
    2) How is this error not trapped, as I only got itinteractively, whereas
    my server log does a exception trap/segmentation fault,
    thanlks
    j-p
    For the archives, go to: http://lists.xpedior.com/forte-users and use
    the login: forte and the password: archive. To unsubscribe,send in a new
    email the word: 'Unsubscribe' to:
    forte-users-requestlists.xpedior.com
    >
    For the archives, go to: http://lists.xpedior.com/forte-users and use
    the login: forte and the password: archive. To unsubscribe, send in a new
    email the word: 'Unsubscribe' to: forte-users-requestlists.xpedior.com

  • Re: (forte-users) systemexception

    Hi There
    Segmentation violations can be caused by different
    situations. Force compiling works well in clearing
    most SV's. It is advisable to first clear all
    breakpoints, force-compile your plans and run your
    application. If you still get the SV then run in debug
    mode to identify the problem area.
    Hope this helps.
    Jairaj Rampershad
    System Consultant
    --- Forte App <[email protected]> wrote:
    Hi,
    iam getting system segmentation/access violation
    Fatal Error: system segmentation/access violation
    caught.
    Class: qqos_SystemException
    Error: [101, 321]
    Detected: qqos_MainSingHd1 on part5,
    Error: TMgr
    RunThread:task10.SAsync.AppServerInterfaceMgr
    Error:qq10_LomTaskInitiator
    what cause this type of error
    Thanks in advance
    For the archives, go to:
    http://lists.sageit.com/forte-users and use
    the login: forte and the password: archive. To
    unsubscribe, send in a new
    email the word: 'Unsubscribe' to:
    [email protected]

    Hi Jean-Paul,
    As described in the Technote 10981 some Forte programs (Nodemanager and
    router) handle correct the high-file descriptor-use problem. It is possible
    that Forte interpreter do it correct too.
    Zenon
    -----Original Message-----
    From: Jean-Paul Gabrielli [SMTP:Jean-Paul.Gabriellisema.fr]
    Sent: Monday, September 25, 2000 12:11 PM
    To: Adamek, Zenon
    Cc: Forte-userslists.xpedior.com
    Subject: RE: (forte-users) [UNIX] "Too many open files" 3.0.M2
    question
    Actually, the stuff works in interpreted mode.
    It's only when having the server partition compiled that this happen.
    j-p
    -----Message d'origine-----
    De: Adamek, Zenon [mailto:ZAdamekpurolator.com]
    Date: lundi 25 septembre 2000 17:13
    &Agrave;: 'Jean-Paul.Gabriellisema.fr'
    Cc: Forte-userslists.xpedior.com
    Objet: RE: (forte-users) [UNIX] "Too many open files" 3.0.M2 question
    see Technote 10981
    -----Original Message-----
    From: Jean-Paul Gabrielli [SMTP:Jean-Paul.Gabriellisema.fr]
    Sent: Monday, September 25, 2000 11:02 AM
    To: zeForte-users
    Subject: (forte-users) [UNIX] "Too many open files" 3.0.M2 question
    Hi,
    running a server partition that reads a configuration file,
    and apparently doen't close it after, I have that exception:
    SYSTEM ERROR: System Error: Too many open files, opening '....'with mode
    'r'
    Class: qqos_FileResourceException
    1) Is there such a limit, or does this rely only on the OS one ?
    2) How is this error not trapped, as I only got itinteractively, whereas
    my server log does a exception trap/segmentation fault,
    thanlks
    j-p
    For the archives, go to: http://lists.xpedior.com/forte-users and use
    the login: forte and the password: archive. To unsubscribe,send in a new
    email the word: 'Unsubscribe' to:
    forte-users-requestlists.xpedior.com
    >
    For the archives, go to: http://lists.xpedior.com/forte-users and use
    the login: forte and the password: archive. To unsubscribe, send in a new
    email the word: 'Unsubscribe' to: forte-users-requestlists.xpedior.com

Maybe you are looking for

  • Print RDLC Report Directly to Printer with SubReports!

    I am currently printing a report directly to the default printer using the code from this link.  http://msdn.AddHandler ReportViewer1.LocalReport.SubreportProcessing, AddressOf SubreportProcessingEventHandler and this code: Public Sub SubreportProces

  • Iphone 4 no longer pairs with acura tl

    Since I downloaded the new 4.3 firmward I can no longer pair my iphone with my 06 acura tl.  It stays in discovery mode till it times out. Is there a work around for this?

  • Can I back up macbook to external  time machine drive attached to my imac?

    I have an external hard disk attached to my iMac, which it uses for Time Machine backups. Can I configure Time Machine on my Macbook to use that same drive, and to connect to it over my network? Thanks.

  • Can I create an interactive PDF without distributing it?

    Hi guys, I am very new to this and I have been asked by the development team here at work to play around and create a form. The idea behind this is that we want to be able to create an interactive PDF form that can be saved without uploading it to an

  • Regarding MM ebooks

    hi experts if any one is having some links of MM ebooks free to download like Administering Sap R/3: Mm-Materials Management Module (Hardcover) please send me. thanks and regards abhishek