DimensionChangeEvent firing twice in a row

The DimensionChangeEvent seems to fire twice in a row.
Once for the width and again for the height.
My thinking it should only fire once.
What is the use case for this behavior?
pPlayer.addEventListener( DimensionChangeEvent.DIMENSION_CHANGE, mDimensionChange );
============ First event ================
mDimensionChange [Event type="dimensionChange" bubbles=false cancelable=false eventPhase=2]
evt.newWidth = 600
evt.newHeight = 0
evt.oldWidth = 0
evt.oldHeight = 0
evt.currentTarget.width =  600
evt.currentTarget.height =  0
evt.currentTarget.view.calculatedWidth =  600
evt.currentTarget.view.calculatedHeight; =  800
============ Second event ================
mDimensionChange [Event type="dimensionChange" bubbles=false cancelable=false eventPhase=2]
evt.newWidth = 600
evt.newHeight = 800
evt.oldWidth = 600
evt.oldHeight = 0
evt.currentTarget.width =  600
evt.currentTarget.height =  800
evt.currentTarget.view.calculatedWidth =  600
evt.currentTarget.view.calculatedHeight; =  800

====== firing twice code ============
pPlayer.addEventListener(ViewEvent.DIMENSION_CHANGE, mDimensionChange);
====== code per your request ============
I now get a compiler error on the addEventListener:
pPlayer.addEventListener(ViewEvent.MEDIA_SIZE_CHANGE, mDimensionChange);
1119: Access of possibly undefined property MEDIA_SIZE_CHANGE through a reference with static type Class.
The online ViewEvent docs don't show a MEDIA_SIZE_CHANGE:
DIMENSION_CHANGE
Constant
public static const DIMENSION_CHANGE:String = "dimensionChange" 
The ViewEvent.DIMENSION_CHANGE constant defines the value of the type property of the event object for a dimensionChange event.
VIEW_CHANGE
Constant
public static const VIEW_CHANGE:String = "viewChange" 
Language Version:
ActionScript 3.0
Product Version:
OSMF 1.0
Runtime Versions:
Flash Player 10, AIR 1.5
The ViewEvent.VIEW_CHANGE constant defines the value of the type property of the event object for a viewChange event.

Similar Messages

  • ValueChanged getting fired twice !!

    When, in a JTable, a row is selected programaticaly, then valueChanged method is fired twice. Although this method always gets fired twice once while its adjusts data and then again after its done with adjusting.
    To cope up with this problem, getValueIsAdjusting() is checked for false.
    But when the row is selected programatically then the getValueIsAdjusting() is always false resulting twice execution.

    let me explain again what i am doing...
    quey is fire several time to populate the JTable. After each query is fired following code is executed
    dbTable[0].getSelectionModel().setLeadSelectionIndex(0);
    when query if fired for the first time then it works fine i.e. valueChanged is executed once only, but when query is fired again then valueChanged is executed twice

  • Database call fired twice when using actionListener in dataTable

    Hi all,
    I have a question regarding the request bean lifecylce in the current use case (using Sun JSF 1.2)
    I have a managed bean in request scope that contains an ArrayList which is used as the data provider in a dataTable on a faces page.
    The bean contains an init() method to populate the ArrayList using a database call.
    The dataTable also contains a column with a commandLink that calls a method via actionListener inside the managed bean to delete the current row.
    When I click the link the action gets called and deletes the row from the database. I also reload the data from the database and assign it to my ArrayList.
    However, the init Method is also called before the action is executed. So the database call is fired twice when hitting the link:
    - First time in the init() method of the bean
    - Second time in the actionListener method when reloading the data
    I can not remove the call from the actionListener, because the data has not deleted yet.
    Question:*
    How can I make sure the database call is fired once only? (and also making sure the ArrayList is populated appropriate)
    Maybe I am doing something wrong here? Thanks in advance for any help.
    Maik
    This is the request scope bean:
    public class UserBean implements Serializable {
        private List all;
        private Long userId = null;
        @PostConstruct
        public void init() {
            if(all == null) {
                new ArrayList();
                loadUserList();
         * Constructor
        public UserBean() {
            super();
         * @return the userId
        public Long getUserId() {
            return userId;
         * @param userId
         *            the userId to set
        public void setUserId(Long userId) {
            this.userId = userId;
         * @param all
         *            the all to set
        public void setAll(List all) {
            this.all = all;
        public List getAll() throws GeneralModelException {
            return all;
        public void loadUserList() {
            EntityManager em = Contexts.getEntityManager();
            Query q = em.createNamedQuery("user.findAll");
            all = q.getResultList();
        public void deleteAction(ActionEvent ae) {
            EntityManager em = Contexts.getEntityManager();
            Query q = em.createNamedQuery("user.byId");
            q.setParameter("id", userId);
            try {
                User user = (User) q.getSingleResult();
                if (user != null) {
                    em.remove(user);
                    loadUserList();
            } catch (NoResultException e) {
                // TODO
    }

    No, I do not call the init() method.
    Basically the init() is called before the deleteAction() so the ArrayList still contains the old value, unless a second database call is triggered after the entity has been deleted.
    Maybe I am missing something here...
    See also here (JSF 1.2 RI - Bean Instantiation and Annotation)
    [http://weblogs.java.net/blog/jhook/archive/2007/05/jsf_12_ri_backi.html]
    Here is the init() call stack trace
    Daemon Thread [http-8080-2] (Suspended (breakpoint at line 32 in UserBean))     
         UserBean.init() line: 32     
         NativeMethodAccessorImpl.invoke0(Method, Object, Object[]) line: not available [native method]     
         NativeMethodAccessorImpl.invoke(Object, Object[]) line: not available     
         DelegatingMethodAccessorImpl.invoke(Object, Object[]) line: not available     
         Method.invoke(Object, Object...) line: not available     
         DefaultAnnotationProcessor.postConstruct(Object) line: 79     
         Tomcat6InjectionProvider.invokePostConstruct(Object) line: 118     
         ManagedBeanBuilder(BeanBuilder).invokePostConstruct(Object, InjectionProvider) line: 223     
         ManagedBeanBuilder(BeanBuilder).build(InjectionProvider, FacesContext) line: 108     
         BeanManager.createAndPush(String, BeanBuilder, ELUtils$Scope, FacesContext) line: 368     
         BeanManager.create(String, FacesContext) line: 230     
         ManagedBeanELResolver.getValue(ELContext, Object, Object) line: 88     
         FacesCompositeELResolver(CompositeELResolver).getValue(ELContext, Object, Object) line: 53     
         FacesCompositeELResolver.getValue(ELContext, Object, Object) line: 72     
         AstIdentifier.getValue(EvaluationContext) line: 61     
         AstValue.getTarget(EvaluationContext) line: 59     
         AstValue.setValue(EvaluationContext, Object) line: 129     
         ValueExpressionImpl.setValue(ELContext, Object) line: 249     
         JspValueExpression.setValue(ELContext, Object) line: 85     
         RestoreViewPhase.doPerComponentActions(FacesContext, UIComponent) line: 240     
         RestoreViewPhase.doPerComponentActions(FacesContext, UIComponent) line: 245     
         RestoreViewPhase.doPerComponentActions(FacesContext, UIComponent) line: 245     
         RestoreViewPhase.execute(FacesContext) line: 195     
         RestoreViewPhase(Phase).doPhase(FacesContext, Lifecycle, ListIterator<PhaseListener>) line: 100     
         RestoreViewPhase.doPhase(FacesContext, Lifecycle, ListIterator<PhaseListener>) line: 104     
         LifecycleImpl.execute(FacesContext) line: 118     
         FacesServlet.service(ServletRequest, ServletResponse) line: 265     

  • When using the mouse or trackpad, the computer doesn't register when I click on something about 50% of the time. This usually happens if I try to hit the same icon twice in a row. How can I fix this?

    For example, if I try to hit the refresh button twice in a row in Chrome, the first time may work, but not the second. This occurs in all programs I use.

    The about:accounts page is a valid page in the current Firefox release.
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem.
    *Switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance
    *Do NOT click the Reset button on the Safe Mode start window
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • Oracle.apps.po.rcv.rcvtxn firing twice

    Hi,
    I am using oracle.apps.po.rcv.rcvtxn business event which is fired when we do a receipt trasaction in PO. I have created a pkg.function in which it just enters 2 values into a cutom table. I map this pkg.func to the subscription.
    Now when I test this subscription from Workflow Admin--> Business events -->Events with a key it fires properly as in it inserts 2 values into the custom table.
    But when I actually fire while saving a receipt transaction it inserts data into the table, but twice. I used a sequence and inserted it. 2 different sequnces were inserted. It means it is fired twice.
    Any clue where I am going wrong?

    Hi;
    What is your EBS and OS?
    Please check below notes which could help you on your issue:
    What are the Out-Of-The-Box Business Events Available in the Purchasing Module? [ID 558712.1]
    Where is Oracle.Apps.Po.Rcv.Rcvtxn Business Event Raised? [ID 428493.1]
    ORACLE.APPS.PO.RCV.RCVTXN Business Event Does Not Work For Batch Mode/ROI Receipts [ID 803313.1]
    Also see:
    Common Receiving Issues after Installing or Upgrading to 11.5.10 [ID 309896]
    Regard
    Helios

  • OnSelect event for dropdownbykey, getting fired twice in IE8

    When you click on key of dropdown , the event "On Select"  getting fired twice in IE8.
    If I try the application using Firefox, it's ok.
    Someone resolve apply the oss note 1461842  and 1411235, but in both notes there's nothing about dropdownbykey.
    Thanks a lot, !!!

    >
    Baskaran Senthivel wrote:
    > Hi,
    >
    > If i am not wrong IE8 is not in the supported list of browsers.
    IE8 is supported.  You can always check the latest supported browsers from the PAM (Platform Availability Matrix) http://service.sap.com/pam
    IE8 does require one of the later Support Package levels, however. See the PAM for the details.
    As far as the notes you reference, they might well fix your problem.  The Unified Rendering fix notes often don't list all the specific issues they address.  They simply list the patch level of the UR.  This problem does sound like a client side/UR problem.

  • Pre-query trigger firing twice

    I have a pre-query trigger on a block in a form to set the "default where" as
    SET_BLOCK_PROPERTY (BLOCK_ID, default_where,where_clause);
    but when I look at the current query for the session the where clause looks like
    WHERE screening_group_num = :1 AND (screening_group_num = :2)
    Why is this firing twice?
    I checked this thread : Re: pre-query firing twice but I dont have any calls to execute_query in the form.

    I am setting the where_clause in the pre_query trigger for that block.
    and the copy value is not set for the screening_group_num item or for that matter any other item in the block. For all other items, it dosent really matter if the comparison is done twice (as the values will be same) , but when I have text (string) items, then its a problem. For example:
    Where
    (event_description LIKE '%test%') --- this is from the pre_query trigger where I am doing a string_comparison using 'Like and %%'
    AND (event_description = :1) --i suppose this is from the default where clause of the block                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • A Characteristci appears twice under the Rows Column on the left hand side.

    Hi All,
    According to the requirement , there are 2 Material Numbers ,1 of them is used for Compounding,which is not required in the Report,but as it is used for Compounding ,we need to place that in the rows.
    We have put tat in "NO DISPLAY" mode,but  Material Number appears twice under the Rows  column, on the left hand side of the screen, in the Portal when we execute the Report.How Can we have to display only 1 Material Number on the left hand side of the screen?
    Thanks in Advance,
    Sravani

    the left hand side of the screen is reakky vague....you should be more specific...
    Probably you need to filter out the compounding characteristics in the global filter area.
    Thanks...
    Shambhu

  • Custom Trigger on MTL_SYSTEM_ITEMS_B firing twice from Item form

    Hi ,
    I wrote a custom trigger on MTL_SYSTEM_ITEMS_B for after update. When ever an item is update from the seeded Items Form, it is firing twice. When I do it from back end it is working fine. Any insights or fixes into issue will be much appreciated.
    Thanks.

    Obtain FRD log file to find out why the trigger is fired twice.
    R12: Forms Runtime Diagnostics (FRD), Tracing And Logging For Forms In Oracle Applications (Doc ID 438652.1)
    Steps To Take FRD Trace in 11.5.10 & R12 (Doc ID 867943.1)
    R12: How To Create An FRD (Forms Runtime Diagnostic) Log Using Forms 10g (Doc ID 445166.1)
    How To Collect And Use Forms Trace (FRD) in Oracle Applications Release 12 (Doc ID 373548.1)
    Thanks,
    Hussein

  • FDM event scripts firing twice during data loads

    Here's an interesting one. I have added the following to three different event scripts (one at a time, ensuring only one of these exists at any one time), to clear data before loading to Essbase:
    Event Script content:
    ' Declare local variables
    Dim objShell
    Dim strCMD
    ' Call MaxL script to run data clear calculation.
    Set objShell = CreateObject("WScript.Shell")
    strCMD = "D:\Oracle\Middleware\EPMSystem11R1\products\Essbase\EssbaseClient\bin\startMAXL.cmd D:\Test.mxl"
    API.DataWindow.Utilities.mShellAndWait strCMD, 0
    MaxL Script:
    login ******* identified by ******* on *******;
    execute calculation 'FIX("Member1","Member2") CLEARDATA "Member3"; ENDFIX' on *******.*******;
    exit;
    However, it appears that the clear is carried out twice, both before and after the data has been loaded to Essbase. This has been verified at each step by checking the Essbase application log:
    No event script:
    - No Essbase data clear in application log
    Adding above to "BefExportToDat" event script:
    - Script is executed once after clicking on Export in FDM Web Client (before the "Target System Load" modal popup is displayed). Entries are visible in Essbase Application log.
    - Script is then executed a second time when clicking on the OK button in the "Target System Load" modal popup. Entries are visible in Essbase Application log.
    Adding above to "AftExportToDat" event script:
    - Script is executed once after clicking on Export in FDM Web Client (before the "Target System Load" modal popup is displayed). Entries are visible in Essbase Application log.
    - Script is then executed a second time when clicking on the OK button in the "Target System Load" modal popup. Entries are visible in Essbase Application log.
    Adding above to "BefLoad" event script:
    - Script is NOT executed after clicking on Export in FDM Web Client (before the "Target System Load" modal popup is displayed).
    - Script is executed AFTER the data load to Essbase when clicking on the OK button in the "Target System Load" modal popup. Entries are visible in Essbase Application log.
    Some notes on the above:
    1. "BefExportToDat" and "AftExportToDat" are both executed twice, before and after the "Target System Load" modal popup. :-(
    2. "BefLoad" is executed AFTER the data is loaded to Essbase! :-( :-(
    Does anyone please have any idea how we might execute an Essbase database clear before loading data, and not after we have loaded fresh data? And perhaps on why the above event scripts appear to be firing twice?! There does not appear to be any logic to this!
    BefExportToDat - Essbase Application Log entries:
    +[Wed May 16 16:19:51 2012]Local/Monthly/Monthly/admin@Native Directory/140095859451648/Info(1013091)+
    +Received Command [Calculate] from user [admin@Native Directory]+
    +[Wed May 16 16:19:51 2012]Local/Monthly/Monthly/admin@Native Directory/140095859451648/Info(1013162)+
    +Received Command [Calculate] from user [admin@Native Directory]+
    +[Wed May 16 16:19:51 2012]Local/Monthly/Monthly/admin@Native Directory/140095859451648/Info(1012555)+
    +Clearing data from [Member3] partition with fixed members [Period(Member1); Scenario(Member2)]+
    +...+
    +[Wed May 16 16:20:12 2012]Local/Monthly/Monthly/admin@Native Directory/140095932016384/Info(1003037)+
    Data Load Updated [98] cells
    +[Wed May 16 16:20:12 2012]Local/Monthly/Monthly/admin@Native Directory/140095932016384/Info(1003024)+
    Data Load Elapsed Time : [0.52] seconds
    +...+
    +[Wed May 16 16:20:12 2012]Local/Monthly/Monthly/admin@Native Directory/140095930963712/Info(1013091)+
    +Received Command [Calculate] from user [admin@Native Directory]+
    +[Wed May 16 16:20:12 2012]Local/Monthly/Monthly/admin@Native Directory/140095930963712/Info(1013162)+
    +Received Command [Calculate] from user [admin@Native Directory]+
    +[Wed May 16 16:20:12 2012]Local/Monthly/Monthly/admin@Native Directory/140095930963712/Info(1012555)+
    +Clearing data from [Member3] partition with fixed members [Period(Member1); Scenario(Member2)]+
    AftExportToDat - Essbase Application Log entries:
    +[Wed May 16 16:21:32 2012]Local/Monthly/Monthly/admin@Native Directory/140095933069056/Info(1013091)+
    +Received Command [Calculate] from user [admin@Native Directory]+
    +[Wed May 16 16:21:32 2012]Local/Monthly/Monthly/admin@Native Directory/140095933069056/Info(1013162)+
    +Received Command [Calculate] from user [admin@Native Directory]+
    +[Wed May 16 16:21:32 2012]Local/Monthly/Monthly/admin@Native Directory/140095933069056/Info(1012555)+
    +Clearing data from [Member3] partition with fixed members [Period(Member1); Scenario(Member2)]+
    +...+
    +[Wed May 16 16:21:47 2012]Local/Monthly/Monthly/admin@Native Directory/140095930963712/Info(1003037)+
    Data Load Updated [98] cells
    +[Wed May 16 16:21:47 2012]Local/Monthly/Monthly/admin@Native Directory/140095930963712/Info(1003024)+
    Data Load Elapsed Time : [0.52] seconds
    +...+
    +[Wed May 16 16:21:47 2012]Local/Monthly/Monthly/admin@Native Directory/140095928858368/Info(1013091)+
    +Received Command [Calculate] from user [admin@Native Directory]+
    +[Wed May 16 16:21:47 2012]Local/Monthly/Monthly/admin@Native Directory/140095928858368/Info(1013162)+
    +Received Command [Calculate] from user [admin@Native Directory]+
    +[Wed May 16 16:21:47 2012]Local/Monthly/Monthly/admin@Native Directory/140095928858368/Info(1012555)+
    +Clearing data from [Member3] partition with fixed members [Period(Member1); Scenario(Member2)]+
    BefLoad - Essbase Application Log entries:
    +[Wed May 16 16:23:43 2012]Local/Monthly/Monthly/admin@Native Directory/140095932016384/Info(1013091)+
    +Received Command [Calculate] from user [admin@Native Directory]+
    +[Wed May 16 16:23:43 2012]Local/Monthly/Monthly/admin@Native Directory/140095932016384/Info(1013162)+
    +Received Command [Calculate] from user [admin@Native Directory]+
    +[Wed May 16 16:23:43 2012]Local/Monthly/Monthly/admin@Native Directory/140095932016384/Info(1012555)+
    +Clearing data from [Member3] partition with fixed members [Period(Member1); Scenario(Member2)]+
    +...+
    +[Wed May 16 16:23:44 2012]Local/Monthly/Monthly/admin@Native Directory/140095929911040/Info(1003037)+
    Data Load Updated [98] cells
    +[Wed May 16 16:23:44 2012]Local/Monthly/Monthly/admin@Native Directory/140095929911040/Info(1003024)+
    Data Load Elapsed Time : [0.52] seconds
    +...+
    +[Wed May 16 16:23:45 2012]Local/Monthly/Monthly/admin@Native Directory/140095860504320/Info(1013091)+
    +Received Command [Calculate] from user [admin@Native Directory]+
    +[Wed May 16 16:23:45 2012]Local/Monthly/Monthly/admin@Native Directory/140095860504320/Info(1013162)+
    +Received Command [Calculate] from user [admin@Native Directory]+
    +[Wed May 16 16:23:45 2012]Local/Monthly/Monthly/admin@Native Directory/140095860504320/Info(1012555)+
    +Clearing data from [Member3] partition with fixed members [Period(Member1); Scenario(Member2)]+

    Hi Larry,
    As mentioned, our exports do not appear to be generating the "-B.Dat" and "-C.Dat" files at present. However, you are correct with the Export and Load event scripts firing twice (once for the main TB file and again for the journal file). Does this also mean it could continue to fire an additional two times for the "-B.Dat" and "-C.Dat" files?
    On the last run, the output was as follows with the modified scripts:
    After clicking on Export in Workflow, the Target System Load modal popup is displayed, and the first two files have been generated:
    14.24.15.0527_BefExportToDat.txt
    14.24.17.0617_AftExportToDat.txt
    After clicking on OK in the Target System Load modal popup, the actual load to Essbase takes place. A further six files are generated:
    14.24.21.0289_BefLoad.txt
    14.24.22.0117_AftLoad.txt
    *14.24.22.0152_BefExportToDat-A.txt*
    *14.24.22.0414_AftExportToDat-A.txt*
    *14.24.22.0433_BefLoad-A.txt*
    *14.24.22.0652_AftLoad-A.txt*
    This makes a lot more sense, since one can see that the event scripts are being run a second time against the journal files during the data load. Many thanks, this solves my problem as I can now place my script where I want in the process chain. It's just a shame that there are not separate event scripts to distinguish between the various .Dat exports/loads, which are clearly occuring at separate times in the process chain.
    Many thanks! :-)
    P.S. Updated script below if anyone wishes to use it:
    Sub BefExportToDat(strLoc, strCat, strPer, strTCat, strTPer, strFile)
    Dim strF, fso, tf, t, temp, m, miliseconds, strSuf
    t = Timer
    temp = Int(t)
    m = Int((t-temp)*1000)
    miliseconds = String(4 - Len(m), "0") & m
    strF = "D:\TEST\" & Replace(Time, ":", ".") & "." & miliseconds & "_BefExportToDat"
    strSuf = UCase(Left(Right(strFile,6),2))
    If strSuf = "-A" Or strSuf = "-B" Or strSuf = "-C" Then
    strF = strF & UCase(strSuf) & ".txt"
    Else
    strF = strF & ".txt"
    End If
    Set fso = CreateObject("Scripting.FileSystemObject")
    Set tf = fso.CreateTextFile(strF, True)
    tf.WriteLine(strFile)
    tf.Close
    Set fso = Nothing
    End Sub

  • I recently re-installed Lion due to a kernel panic prob. A day after reinstallation, twice in a row it happened, but it stopped.

    Re: I recently re-installed Lion due to a kernel panic prob. A day after reinstallation, twice in a row it happened, but it stopped.
      I want to know if this happened just because it was recently installed, or is the kernel panic still bugging my computer? The kernel panics were 3rd party extensions. If the extension is still connected to me, how do I remove it? Again, It only happened twice since reinstallation.

    The panic did not have a thing to do with reinstalling Lion or not. There is some other cause. Post your recent panic log.

  • Item added & item updated events fired twice.

    Hello everyone, 
    I have item added and item updated events and both sends e-mails twice cos they are fired twice. 
    I tried the below method but the problem still continues. Any suggessions?
    base.EventFiringEnabled=false;
    base.EventFiringEnabled=true;
    note: my list is custom list. (not document lib)

    If you have required checkout enabled the events can be triggered twice. See this post for more information and how to bypass it:
    Managing ItemUpdating and ItemUpdated Events Firing Twice in a SharePoint Item Event Receiver

  • After Update Trigger executes twice when single row is uptd thro proc

    We have the below trigger in our db. When a single record is updated using a procedure the trigger is executed twice and it inserts two records in other table.
    But when i issue an update statement using any sql client tool it is executing only once and inserts only one record in other table.
    Can any one please help me to find the reason?
    Trigger:*
    create or replace TRIGGER CX_HEADER_ESCL_T1 AFTER UPDATE OF STATUS ON CX_HEADER
    FOR EACH ROW
    DECLARE
    "b1-CTRIYJ" boolean := FALSE;
    BEGIN
    IF UPDATING('STATUS') AND(:NEW.status = 'SUCCESS') THEN
    "b1-CTRIYJ" := TRUE;
    END IF;
    IF "b1-CTRIYJ" = TRUE THEN
    INSERT
    INTO siebel.s_escl_req(req_id, created, bt_row_id, rule_id, tbl_name, created_by, group_id)
    VALUES('11111111', CURRENT_DATE, :NEW.row_id, '1-CTRIYJ', 'CX_HEADER', :NEW.last_upd_by, '1-2CU3');
    "b1-CTRIYJ" := FALSE;
    END IF;
    END;
    Procedure:
    CREATE OR REPLACE
    PROCEDURE CLOSE_BATCH
    (ChildRecordCount IN NUMBER, HeaderId IN VARCHAR2, CompletionStatus OUT VARCHAR2) AS
    CafeChildCount NUMBER;
    BEGIN
    select count(*) into CafeChildCount from SIEBEL.CX_CHILD where HEADER_ID=HeaderId;
    IF ChildRecordCount = CafeChildCount THEN
    update SIEBEL.CX_HEADER set STATUS ='SUCCESS', MODIFICATION_NUM = MODIFICATION_NUM+1 where HEADER_ID=HeaderId;
    CompletionStatus := 'SUCCESS';
    ELSE
    update SIEBEL.CX_CHILD set STATUS='FAILED' where HEADER_ID=HeaderId;
    update SIEBEL.CX_HEADER set STATUS='FAILED' where HEADER_ID=HeaderId;
    CompletionStatus := 'FAILED';
    END IF;
    commit;
    /*CompletionStatus := 'SUCCESS';*/
    EXCEPTION
    WHEN OTHERS THEN
    CompletionStatus := SQLCODE;
    rollback;
    END;

    Your problem seems not be related to the trigger restart issue I have already mentioned because you are using a AFTER UPDATE trigger and not a BEFORE UPDATE trigger:
    >
    BEFORE Triggers Fired Multiple Times
    If an UPDATE or DELETE statement detects a conflict with a concurrent UPDATE, then Oracle Database performs a transparent ROLLBACK to SAVEPOINT and restarts the update. This can occur many times before the statement completes successfully. Each time the statement is restarted, the BEFORE statement trigger is fired again. The rollback to savepoint does not undo changes to any package variables referenced in the trigger. Your package should include a counter variable to detect this situation.
    >
    If you are sure that you update a single row and that your trigger fires twice and if you can easiily reproduce the issue, I recommend that you contact Oracle Support and create a Service Request for your issue that could be an Oracle bug.

  • My macbook pro ended up in safe boot mode randomly twice in a row...how do i fix this permanently??!

    And I think this issue is coming from a few different problems I've had with my MacBook Pro on lion...one major thing was probably the fact that I changed from Lion to Mountain Lion...and then changed right back (I think I did back up my stuff first), but somehow it didn't agree with my computer.  Also I've been wearing it out a lot by throwing it with the case into my car frequently...maybe a bit much, idk...also though I have a lot of trouble keeping up with the numerous files that build up on my desktop and don't know where to begin.  Let's just say my computer has pretty much had it, although for months it's been functioning normally.
    ...oh yeah and did I mention I had to get a brand new hard drive, with that not really making a difference as to how bad I, um, throw my computer around (it's not as bad as you think but to be candid, blech). I did bang my computer at one point in a rage attack and made sure no one really knew when I took it to get it fixed?  TMI...that's what I deserve....so.
    I did try this web link the second time in a row this happened which was about an hour or so that I managed to, uh, kind of fix it with the bottom advice on the page:
    http://applehelpwriter.com/2012/06/24/mac-keeps-starting-in-safe-mode/ 
    (sorry I couldn't get this to click)
    Anyways at the bottom of this help article you will notice the very end of PRAM reset directions where you hear the start up chime two times.  That did not happen, but somehow out of nowhere the computer stopped the safe boot mode routine and the progress bar didn't show up as I continued to hold down the given keys.  I really don't know where my luck came from there...and I also found an article that fixed my computer the first time and I cringe to say that it came from a person on Apple Discussions complaining about something similar that one of my friends helped me google. Planning to actually bookmark the applehelpwriter article in case I just happen to need it but i'm pretty sure someone will be on here with an answer at some point.
    SO....I did get my comp fixed twice now, but I hope that somebody will go back and read the beginning of my question explanation to see if I'm doing something that may be overwhelming my computer. If this safe boot thing happened to me instead of me testing the computer myself AND MORE THANA ONCE yikes...something needs to be done. Take note that the only reason I'm asking the community's advice is that I'm past my computer's contract so if I wanted to I couldn't take my computer to get it fixed and I planned to take one or two more classes in college again to complete my certificate.
    Please help, some people must run into this situation at some point, either way if they ask or don't I'm sure they're lucky to get it fixed somewhere.
    chels

    Only if your home/renters insurance doesn't cover such damage without raising your rates/dropping you.  Ask first of them if it is worthwhile the claim once you get an estimate for repair.  These repair places are pretty good:
    http://www.dttservice.com/
    http://www.powerbookresq.com/
    http://www.microdocusa.com/
    http://www.macspecialist.com/
    http://www.techrestore.com/

  • OSX unexpectedly quits twice in a row

    I installed leopard about a week ago and hadn't had this problem until last night.
    Yesterday I had my macbook pro on pretty much all day, asleep most of the day. Late last night I was using it, and the screen goes dark from top to bottom and says I need to restart my machine immediately. When I restarted it said osx had unexpectedly quit. I'd had this happen to me before while using tiger, not often though, and just figured that it happens sometimes. I continued using my computer and within half an hour it happened again. This time I shut down and have not restarted since.
    When this happened the computer was fully charged and connected to my power adapter. I let it sit all night and most of today still plugged in. When it happened I was running firefox, mail, and azureus.
    Should I be concerned that this happened twice in such a short amount of time?
    What exactly happens or causes my os to quit?

    If the screen looks like this it is a kernel panic. I see many issues with azureus causing kernel panics
    -mj
    [email protected]

Maybe you are looking for

  • How to create unique key column in ROLAP fact table?

    Hi all, Is there a way to create a single column primary key (or unique index) on my ROLAP cube (and fact tables) in OWB? if so, what I should do in my mappings? Thanks! - Andrew

  • Available balance in excise register

    Hi All I have captured and posted excise at the time of MIGO and Biling document.My PartII register is also showing entries against MIGO captured excise duty. I have posted FI JV for fund transfer to PLA on hold and then from J1iH transfered the same

  • Package javax.ejb not found error

    Hi there, I've downloaded j2se 1.4 and j2ee 1.3.1 and installed it on Windows XP. I set the environment variables as described. When I compile a .java file that imports the javax.ejb.* package, then I get an error "package javax.ejb not found". I fee

  • BT Inifinity 2 issue - BT given up?

    After getting consistently good results from Bt Infinity I decided to apply for Infinity 2. I placed the order and about 5 days later my modem disconnected and re-training seem to take place over a few days. On Infinity 1 - approx 36Mb down and 6Mb u

  • A general question only regarding math and computer

    Do you think the following statement that is a question? question 1) A set of all strings 0's and 1's not containing 101 as a substring it can be answered as Regular Expression, contructing a DFA or Others I would like to find out that as a Engineer