Strange behavior of SPM

Hello

I'm doing some tests on the SQL plan management.

That's what I do

1, create a table t with asymmetric data (no relation to my question, just followed an example)

2, activate the automatic capture and fire twice, SQL created basis for a plan with FTS.

3, create indexes on the table and execute the SQL again, this time, another base created with the Scan range

4, to evolve new base line and make a plan accepted

5, delete the newly created index and the new fire declaration

Now the execution plan indicates he used the first base line, but creates a 3rd entry in the base with the same plan. Why this third section is necessary even if it is not used. The execution plan said anyway he uses the first line of base for FTS, but then what is the need for the third entry?

SQL>  desc t
 Name                                      Null?    Type
 ----------------------------------------- -------- ----------------------------
 COL1                                               NUMBER


SQL> select col1,count(*) from t group by col1;


      COL1   COUNT(*)
---------- ----------
         1          1
         2          3
         3       1536


SQL>
SQL> alter session set optimizer_capture_sql_plan_baselines=TRUE;


SQL>  select * from t where col1 = 1;


      COL1
----------
         1


SQL> alter session set optimizer_capture_sql_plan_baselines=FALSE;


Session altered.


SQL>  select SQL_TEXT,SQL_HANDLE, PLAN_NAME, ENABLED, ACCEPTED, FIXED from dba_sql_plan_baselines ;


SQL_TEXT                                                                         SQL_HANDLE                     PLAN_NAME                      ENA ACC FIX
-------------------------------------------------------------------------------- ------------------------------ ------------------------------ --- --- ---
 select * from t where col1 = 1                                                  SYS_SQL_1447ba3a1d83920f       SQL_PLAN_18jxu78fs74hg94ecae5c YES YES NO




SQL> create index t_idx on t(col1);


Index created.


SQL> exec DBMS_STATS.GATHER_INDEX_STATS(OWNNAME => 'TEST', INDNAME=>'T_IDX');


PL/SQL procedure successfully completed.


SQL> alter session set optimizer_capture_sql_plan_baselines=TRUE;


Session altered.


SQL>  select * from t where col1 = 1;


      COL1
----------
         1


SQL>  alter session set optimizer_capture_sql_plan_baselines=FALSE;


Session altered.


SQL_TEXT                                                                         SQL_HANDLE                     PLAN_NAME                      ENA ACC FIX
-------------------------------------------------------------------------------- ------------------------------ ------------------------------ --- --- ---
 select * from t where col1 = 1                                                  SYS_SQL_1447ba3a1d83920f       SQL_PLAN_18jxu78fs74hg0c80c615 YES NO  NO
 select * from t where col1 = 1                                                  SYS_SQL_1447ba3a1d83920f       SQL_PLAN_18jxu78fs74hg94ecae5c YES YES NO




SQL> set line 999
set pagesize 999
select * from table(dbms_xplan.display_sql_plan_baseline(plan_name=>'SQL_PLAN_18jxu78fs74hg94ecae5c'));
SQL> SQL>
PLAN_TABLE_OUTPUT
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------


--------------------------------------------------------------------------------
SQL handle: SYS_SQL_1447ba3a1d83920f
SQL text:  select * from t where col1 = 1
--------------------------------------------------------------------------------


--------------------------------------------------------------------------------
Plan name: SQL_PLAN_18jxu78fs74hg94ecae5c         Plan id: 2498539100
Enabled: YES     Fixed: NO      Accepted: YES     Origin: AUTO-CAPTURE
--------------------------------------------------------------------------------


Plan hash value: 1601196873


--------------------------------------------------------------------------
| Id  | Operation         | Name | Rows  | Bytes | Cost (%CPU)| Time     |
--------------------------------------------------------------------------
|   0 | SELECT STATEMENT  |      |    15 |    45 |     3   (0)| 00:00:01 |
|*  1 |  TABLE ACCESS FULL| T    |    15 |    45 |     3   (0)| 00:00:01 |
--------------------------------------------------------------------------


Predicate Information (identified by operation id):
---------------------------------------------------


   1 - filter("COL1"=1)


24 rows selected.


SQL> select * from table(dbms_xplan.display_sql_plan_baseline(plan_name=>'SQL_PLAN_18jxu78fs74hg0c80c615'));


PLAN_TABLE_OUTPUT
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------


--------------------------------------------------------------------------------
SQL handle: SYS_SQL_1447ba3a1d83920f
SQL text:  select * from t where col1 = 1
--------------------------------------------------------------------------------


--------------------------------------------------------------------------------
Plan name: SQL_PLAN_18jxu78fs74hg0c80c615         Plan id: 209765909
Enabled: YES     Fixed: NO      Accepted: NO      Origin: AUTO-CAPTURE
--------------------------------------------------------------------------------


Plan hash value: 2946670127


--------------------------------------------------------------------------
| Id  | Operation        | Name  | Rows  | Bytes | Cost (%CPU)| Time     |
--------------------------------------------------------------------------
|   0 | SELECT STATEMENT |       |    15 |    45 |     2   (0)| 00:00:01 |
|*  1 |  INDEX RANGE SCAN| T_IDX |    15 |    45 |    50   (0)| 00:00:01 |
--------------------------------------------------------------------------


Predicate Information (identified by operation id):
---------------------------------------------------


   1 - access("COL1"=1)


24 rows selected.


SQL> set long 10000
SQL> SELECT DBMS_SPM.evolve_sql_plan_baseline(sql_handle => 'SYS_SQL_1447ba3a1d83920f',plan_name=>'SQL_PLAN_18jxu78fs74hg0c80c615') from dual;


DBMS_SPM.EVOLVE_SQL_PLAN_BASELINE(SQL_HANDLE=>'SYS_SQL_1447BA3A1D83920F',PLAN_NA
--------------------------------------------------------------------------------


-------------------------------------------------------------------------------
                        Evolve SQL Plan Baseline Report
-------------------------------------------------------------------------------


Inputs:
-------
  SQL_HANDLE = SYS_SQL_1447ba3a1d83920f
  PLAN_NAME  = SQL_PLAN_18jxu78fs74hg0c80c615
  TIME_LIMIT = DBMS_SPM.AUTO_LIMIT
  VERIFY     = YES
  COMMIT     = YES


Plan: SQL_PLAN_18jxu78fs74hg0c80c615
------------------------------------
  Plan was verified: Time used .01 seconds.
  Plan passed performance criterion: 2.49 times better than baseline plan.
  Plan was changed to an accepted plan.


                            Baseline Plan      Test Plan       Stats Ratio
                            -------------      ---------       -----------
  Execution Status:              COMPLETE       COMPLETE
  Rows Processed:                       1              1
  Elapsed Time(ms):                  .101           .029              3.48
  CPU Time(ms):                      .111           .111                 1
  Buffer Gets:                          5              2               2.5
  Physical Read Requests:               0              0
  Physical Write Requests:              0              0
  Physical Read Bytes:                  0              0
  Physical Write Bytes:                 0              0
  Executions:                           1              1


-------------------------------------------------------------------------------
                                 Report Summary
-------------------------------------------------------------------------------
Number of plans verified: 1
Number of plans accepted: 1




SQL>  select SQL_TEXT,SQL_HANDLE, PLAN_NAME, ENABLED, ACCEPTED, FIXED from dba_sql_plan_baselines ;


SQL_TEXT                                                                         SQL_HANDLE                     PLAN_NAME                      ENA ACC FIX
-------------------------------------------------------------------------------- ------------------------------ ------------------------------ --- --- ---
 select * from t where col1 = 1                                                  SYS_SQL_1447ba3a1d83920f       SQL_PLAN_18jxu78fs74hg0c80c615 YES YES NO
 select * from t where col1 = 1                                                  SYS_SQL_1447ba3a1d83920f       SQL_PLAN_18jxu78fs74hg94ecae5c YES YES NO


SQL> /




SQL>  drop index t_idx;


Index dropped.


SQL>  select * from t where col1 = 1;


      COL1
----------
         1


SQL> SELECT * FROM table(DBMS_XPLAN.DISPLAY_CURSOR);


PLAN_TABLE_OUTPUT
--------------------------------------------------------------------------------
SQL_ID  afqh9ydnazfhz, child number 2
-------------------------------------
 select * from t where col1 = 1


Plan hash value: 1601196873


--------------------------------------------------------------------------
| Id  | Operation         | Name | Rows  | Bytes | Cost (%CPU)| Time     |
--------------------------------------------------------------------------
|   0 | SELECT STATEMENT  |      |       |       |     3 (100)|          |
|*  1 |  TABLE ACCESS FULL| T    |    15 |    45 |     3   (0)| 00:00:01 |


PLAN_TABLE_OUTPUT
--------------------------------------------------------------------------------
--------------------------------------------------------------------------


Predicate Information (identified by operation id):
---------------------------------------------------


   1 - filter("COL1"=1)


Note
-----
   - SQL plan baseline SQL_PLAN_18jxu78fs74hg94ecae5c used for this statement


SQL_TEXT                                                                         SQL_HANDLE                     PLAN_NAME                      ENA ACC FIX
-------------------------------------------------------------------------------- ------------------------------ ------------------------------ --- --- ---
 select * from t where col1 = 1                                                  SYS_SQL_1447ba3a1d83920f       SQL_PLAN_18jxu78fs74hg0c80c615 YES YES NO
 select * from t where col1 = 1                                                  SYS_SQL_1447ba3a1d83920f       SQL_PLAN_18jxu78fs74hg94ecae5c YES YES NO
 select * from t where col1 = 1                                                  SYS_SQL_1447ba3a1d83920f       SQL_PLAN_18jxu78fs74hgbeb264f6 YES NO  NO

> Then what would be the need for a 3rd entry in base?

I already said that I was unable to reproduce this behavior by using your test case, so it sounds like doubtful 11.2.0.1 behavior.

> What exactly happens when a plan reproduces by SPM? is this an analysis/run as any other SQL statement, or just to check SQLTEXT, bind variables and other environmental variables? If it's an analysis and execution, is not an additional load on the CPU?

Pretty much:

1. the optimizer generates the best cost plan.

If the best plan cost corresponds to a referenced job done store plan if the plan and processed to the next step:

2. use indicators in the plan/s referenced to attempt to generate the hash value of the plan referenced

If plan hash match then job done otherwise:

3 use the optimizer_features_enable indicator only to try to generate the hash value of the plan referenced.

If plan hash match then job done otherwise:

4. return cheaper plan generated in step 1.

There could be some overload the processor further analysis to the use of the base line.

The signature is the key used to match the SQL at the base - i.e. a reference level exists for the given sql statement

It's V$ SQL. EXACT_MATCHING_SIGNATURE and the DBA_SQL_PLAN_BASELINES. SIGNATURE.

The hash value of the plan is V$ SQL_PLAN. OTHER_XML. PLAN_HASH2 and stored in the underlying SYSTEM. SQLOBJ$ * tables as PLAN_ID.

The plan referenced hash must match that of the execution plan generated by the optimizer for the baseline to use.

This last piece of information is probably the key to why you managed to get 3 generated plans and I do not have.

But you would need to provide more information on the third plan and how it differs from other plans, including the advice of contour and plan_ids, plans of execution, etc. which perhaps involved to delve into the tables of sys.sqlobj$ *.

Tags: Database

Similar Questions

  • Firefox crashes (and other strange behaviors) due to gifs

    From a recent update Firefox displayed a strange behavior that surrounds the gifs. Sometimes, after viewing pages with a large number of gifs or several very large gifs, Firefox will do things like not animate gifs, or even do not load the images at all, an and will not stop until I have restart Firefox. What's more concerning is that sometimes in these situations, Firefox will simply hang and stop responding, forcing me to kill the process.
    This page shows the behavior of hanging fairly regularly: http://www.neogaf.com/forum/showthread.php?t=1021843 & page = 21
    It seems more likely to happen when I scroll the page quickly. The behavior persists when I restart Firefox mode without failure.

    39 of Firefox seems to have solved the problem.

  • I get a strange behavior of the bar tabs and the address bar in Firefox 29,0 for Mac.

    I just installed Firefox 29,0 for Mac.
    I have a strange behavior of the bar tabs and the address bar with this new version.
    Instead of the address bar, I get two rows of symbols. And it is impossible to write anything in the address bar.
    (I add a screenshot, but I can't find a way to do it).

    Firefox has an RSS icon in the palette of the toolbar that you can drag a toolbar (but not on the location bar container).

    • Firefox menu button > Options/Preferences > toolbars
    • View > toolbars > customize
  • Strange behavior USB Flash Drive Satellite A100-626

    Hello

    I did install Windows Vista Business Edition on my Satellite A100-626 (PSAA9) following the instructions provided in the Web page of drivers.

    So far, everything works as expected, except for one little (or no) question.

    When I ask Vista to 'Remove hardware safely' my USB Flash drive, a Popup appears telling me to remove it. So far, so good :D

    The only thing is that the flash player is not put out as could be expected and and yellow question mark appears in Device Manager.

    Opening of the question mark can read what follows:

    "Windows cannot use this hardware device because it has been developed to remove safely, but it has not been removed from the computer. (Code 47) To resolve this issue, disconnect the device from your computer and plug it in again. »

    Following the instructions above, the light turns off, lol...

    Someone else met this strange behavior? If so, any solution?

    I tried a few USB flashes that run well on XP and they both do the same thing.

    Thank you, Nuno!

    Hi Nuno

    It's very strange. I have the Satellite A100-504 (comes with Windows XP Home edition). Last week, I installed Vista and all the stuff followed Toshiba document instructions facilities. I use the mouse wireless, external HDD USB web cam. With the help of these external devices together I never noticed a similar behavior.

    You have the same situation with all the USB ports?

  • redeclenchables strange behavior digital output

    I created a redeclenchables digital dashboard task (finished) digital output as follows: (in DAQmx C)

    DAQmxCreateTask("",&_taskHandle);
    DAQmxCreateDOChan(_taskHandle,"/Dev2/port0/line6","",DAQmx_Val_ChanPerLine);
    DAQmxCfgSampClkTiming (_taskHandle, "" / Dev2/Ctr0InternalOutput ", _clockRate, DAQmx_Val_Rising, DAQmx_Val_FiniteSamps, static_cast (_sampleCount)");
    DAQmxCfgOutputBuffer (_taskHandle, static_cast (_sampleCount));
    DAQmxCfgDigEdgeStartTrig (_taskHandle, "/ Dev2/PFI4", DAQmx_Val_Rising ");
    DAQmxSetStartTrigRetriggerable (_taskHandle, true);
    DAQmxWriteDigitalLines (_taskHandle, static_cast(_sampleCount), FALSE,-1, DAQmx_Val_GroupByChannel, _pDigital, NULL, NULL);
    DAQmxStartTask (_taskHandle);

    sample clock:

    DAQmxCreateTask ("", & _taskHandleCO);
    DAQmxCreateCOPulseChanFreq (_taskHandleCO, "/ Dev2/ctr0","", DAQmx_Val_Hz, DAQmx_Val_Low, 0,0, _clockRate, 0.5 "");
    DAQmxCfgImplicitTiming (_taskHandleCO, DAQmx_Val_ContSamps, _numSamples);
    DAQmxStartTask (_taskHandleCO);

    When I run the task without redeclenchables parameter, it output a correct signal. However, if I run with redeclenchables it out almost exactly 2 times faster than normal. For example, a pulse whose width of 10 ms became 5 ms and repeats again to be 2 pulses of 5 ms. This is repeatable, no matter how much or how fast triggers provided.

    My card is PCIe-6363. I do not know what causes this strange behavior, and I hope someone can help on this.

    Thank you.

    It disappears after reset configuration. Might be interesting for future reviews.

  • Strange behavior with the function «Help in command line»

    So I do a little playing with the opening of the files compiled help (.chm) with the command-line help feature, and I saw a strange behavior when trying to index multi-level access keywords. According to the documentation, if you set the 'Key' operation, you can enter a value for ' string to search for "to access this section. The more precise help that:

    If this string contains a keyword index, the string must match the key of the index as it appears in the help index file. To access a topic with a multilevel index keyword, enter the keyword of the top-level index, a colon and the keyword of the second level index. Do not separate the elements with spaces. For example, a chain of error codes: GPIB jumps about a subject with a keyword of top-level index of error codes and a second level keyword index of GPIB.

    All right, seems simple enough. Except that when I tried, I couldn't work, even with the example provided. I tried the following simple test:

    Opens the help file, but it opens to this page, not to the page ' error codes: GPIB "non-descript. I saw this in 8.2 and 8.6. Anyone have any success with access to a multi-level keyword?

    Note - side

    Curiously, the Index for the help lvconcepts.chm file looks like this:

    In other words, the input index text is just "GPIB", but the text that appears in the keyword field is "codes error, GPIB. I'm curious to know how this was accomplished. I decompiled the lvconcepts.chm file and watched the .hhk file, and it is not immediately obvious to me. (By the way, if you try to use "error codes, GPIB" it does not either).

    Hello

    Please contact National Instruments!
    It is a very strange behavior.  I tested out and seen the exact
    same results you are experiencing.  This was reported to R & D (AUTO ID # 130246) for further investigations.
    From what I can tell the a possible workaround solution that we have documented
    in the post of root Canal.  I can't continue to look into this in order
    to see if there is no other workaround solution or a reason why it is
    run in this way.  Thanks much for the feedback!  If
    you have any other questions on this subject please post them here.
    Have a great day!

  • Strange behavior file open/create/replace

    Hi all

    I will make my question as broad as possible because I think someone must have met this behavior before. I use the function open/create/replace file to programmatically open a file, giving a path entry created in an earlier vi. Strange behavior, I see, is that although Labview returns 1 error when I give my file programmatically, it reads the file OK if I give as a constant. The constant path that I give is exactly the same as one I am tryinng to programmatically.

    Any suggestions? Is it to do with a string formatting problem? I enclose my portion of treated VI the path_in section.

    Thanks for your time,

    Kind regards

    Harry

    Wild guess: you must use 'build path' instead of 'concatenate strings' build path.

    (Also use a constant of diagram of the path (not a string!) to "c:\ni-rt\" and get rid of the "trim whitespace' and the 'chain of path")

    See if that makes a difference. (build path is OS independent, while the operations of independent channels are not).

    Never use the paths as strings. There are very few cases where this would be appropriate.

  • Issues coming out of "sleep mode" and strange behavior when restarting with GPU

    I use a desktop computer HP P7-1240 completely stock except for a GPU EVGA GeForce GTX 750 TI SC. The GPU works well when the computer is running (which is strange because the forums have several other discussions mentioning the 700 series must be incompatible with my BIOS).

    However, there are two main strange problems that have arisen since the installation of the GPU. One is that, every time that the computer enters mode "sleep", he refuses to wake back up correctly. It seems to me that the computer active but sends all the signals back panel (at the very least, no video because my monitors remain blank). On rare occasions, he wakes back correctly, but at least 90% of the time, it must be restarted. Upon reboot, the same problem sometimes (not), and the computer must be rebooted a second time until it will start again.

    This leads to the second problem. During startup, the computer goes to a black screen, listing the specifications of basic computer skills (see attached photo. In this screen, the computer does not meet any entry.  He proceeds to beep 3 times, all the same length and height spaced about 30 seconds of gap. After the third beep, the screen goes black and then the computer starts normally with no other strange behavior.

    Without the GPU, none of these problems occur. At the very least, not regularly.

    I saw another thread mentioned that, while the HP support for my office page lists not her, there is an update of the BIOS for my motherboard which has fixed issues related to the GPU more modern. By nature it is an update of the BIOS that does not (seem to) officially support Windows 7, I am reluctant to go forward with this potential solution.

    Although I intend to build myself a new computer from scratch at a certain point, I was hoping to get at least another year out of this machine, if not 2.  While this question does not seem to be immediately threatening the stability of the computer, I can't help but think that it is a question should I go quickly to avoid future problems (not to mention it would save me a good amount of electricity to be able to enter the mode 'sleep' on a regular basis).

    Any suggestions would be greatly appreciated!

    Problem has been solved!

    For those of you who have trouble sleeping with the p7-1240 or computers with a card mother identical (MSI Jasmine Ms 7778 ver 1.0), I suggest that you follow this thread:

    http://h30434.www3.HP.com/T5/desktop-hardware/unable-to-boot-with-new-graphics-card/TD-p/3930544/highlight/true

    It is to use an update for your BIOS that is intended only for PC under Windows 8, but that seems to work perfectly well with Windows 7 PC. It solved my problems of sleep and makes the computer to behave at least semi normally while restarting.

    However, as indicated in the wire, an update of the BIOS should be a last resort because it can turn your machine into a very heavy and expensive paperweight if something does not work. Do not forget that you have the worm 1.0 card mother MSI Ms 7778 Jasmine and remember that you update the BIOS version 8.18.

    As I am looking for 2aeo on HP.com currently (according to the thread leading up to), I'm not find the same links I found last week when I went through the update. However, you can find elsewhere.

  • Strange behavior of TM2 recharge battery - only charges when almost dead

    Hi people,

    I have a new 2200 TM2T who exhibits some strange behavior of battery charge.  When plugged in, the battery will say "connected, charge", but the battery does not charge at all, no matter how much time he has left in (reported remaining level remains the same).  However, if I leave the battery discharged completely, it will start loading again, all the way up to 100%.

    It's a kind of weird automatic battery calibration or something?  I am hoping there is a way to solve this problem, because it's really annoying to not be able to keep busy all the time.

    Hi people,

    I just wanted to report on the resolution of my battery problem.  Returned the laptop to HP, and technical support has replaced the motherboard.  Works fine now.

  • strange behavior

    Hello

    I have a strange behavior on the main screen of my application.

    My screen looks like this:

    1, 2, 3, 4 and 5 are bitmap with navigation button, click scope.

    I have a separate Thread for processing and this X thread updates the content of the label and label B.

    Whenever the thread call X function is update the function labels are running label.setText (newtext) on both labels.

    Stange behavior:

    When the x thread updated, the text of the labels (via the function Y) the emphasis is on button bitmap 1,2,3 or 4, the text of labels disappears and the screen looks like this:

    If we move to the development for bitmap button 5 or ListField labels updated successfully and the screen looks like this:

    I checked on debug only when the labels are updated that the text is not null.

    You have some ideas on what is the cause?

    Best regards

    Hello

    I found the solution for the strange behavior. I added a "HFMst.ivalidate ()"; on the function Y and that fixed the strange behavior.

    Thks simon_hain and arkadyz for your help.

  • Strange behavior of audio subsystem after update Dev Alpha 10 to 10.0.9.388

    Hello world!

    Has anyone noticed a strange behavior of the behavior of 10.0.9.388 audio subsystem firmware. Recently, after firmware update Dev Alpha 10 to 10.0.9.388 subsystem audio misbehavies in the following way:

    (1) if the external headphones/speakers connected to the audio line-out looks to be preprocessed by low-pass filter and surround effect. The device reported by AudioManager is/dev/snd/pcmPrefferedp. Would it be a bug in formware and re-routing audio internal speaker to the line-out socket did not exclude specific pre-treatment?

    (2) on the previous firmwares if audio goes out of the internal speaker and then the helmet is connected to Jack line out change of itinerary was seemlesly happening and he kept playing with headphones without additional measures in the application. Now, peripheral audio is not consume audio samples and so crashes until it is closed and reopened.

    On the previous firmwares were not all the problems of this kind. Would be - what a few unlucky flashing firmware try (if it is still possible) or bug of 10.0.9.388.

    It will be good to hear comments & thoughts about these questions.

    Best regards

    Dmitry.

    I suggest to create two entries Issue Tracker: https://www.blackberry.com/jira

  • Strange behavior with postGlobalEvent and eventOccurred()...

    Hello world

    I have a browser plugin for my application that will do two things:

    Firstly, when the BlackBerry browser is forwarded to a Web page with a particular MIME type, the browser plugin will say my application to go to the foreground. It works without any problem.

    Secondly, the browser plugin will display a global event at my request. My request, making use of eventOccurred(), will look for this event and the EC type-approval, it will execute an authorize() method that I have. This also works. However, I notice some strange behavior:

    The first time my application launches the BlackBerry browser and goes to the page specified (with a custom MIME type), everything works fine. If I had while my application to launch the browser and do it AGAIN, my authorize() method is running TWICE. If I open the browser of my application for the third time, so my authorize() method is started THREE times. See the model?

    .. .This is all this without leaving my application. If I had to leave and then start my application again, the 'sequence' prior would begin again. Thus, it seems that whenever x times that I repeat this process, the eventOccurred() method will receive x events.

    Here are a few snippets:

    public class Events {
        final public static int EVENT_AUTHORIZE = 1;
        final public static int EVENT_OTHER = 2;
    }
    
    manager.postGlobalEvent(pid, 0xCAFEBABE, 1, 0, null, null);
    
    public void eventOccurred(long guid, int event_type, int arg2, Object arg3,
                Object arg4) {
            if (guid == 0xCAFEBABE) {
                switch (event_type) {
                case Events.EVENT_AUTHORIZE:
                    authorize();
                    System.out.println("EVENT EXECUTION");
                    break;
                case Events.EVENT_OTHER:
                    break;
                }
            }
    
        }
    

    Can we see what is happening here? I've been "racking my brain" on this one for a while now...

    Thank you!

    "Thus, this can work any time the class is instantiated." The class is instantiated just before I open my browser".

    Application.getApplication().addGlobalEventListener(this);
    

    If you call the above (by instantiating your class) every time that you open the browser, applications to register this event listener again and again.

    If you're going to do it this way, make sure removeGlobalListener you when your application is done processing.

    "Can I make addGlobalListener when my application starts even if this class does not implement GlobalEventListener?"

    You can always have your UiApplication implement GlobalEventListener or just instantiate a new object that implements it in the constructor of your UiApplication.

  • HP Pavilion Slimline s5304y strange behavior and stops randomly

    To start, here is my card:

    HP Pavilion Slimline s5304y

    Windows 7 Home Premium 64 - bit SP1 Build 7601

    AMD Athlon II X processor 2 215

    4 GB of RAM, blah blah blah

    Here are the symptoms:

    -Win7 starts to act strangely, when the keys are depressed they'll keep recording (like that, but forever)

    -Then it will attempt to force the closure but I keep open Word 2007, which will block the closure and I gives me the option to cancel or to force stop word.

    -J' I usually Cancel to see what it does, sometimes it continues to operate normally, sometimes, attempts to stop become more frequent until it ask no more, and Word cannot veto the shutdown request.

    -When I look at the Event Viewer system, he says he is told what USER (me) has launched the stop, as if it were normal.

    -A little more digging in the event viewer application section says that before stopping, "HP Support Assistant Service" had a "PowerEvent handled successfully by the service" with EventRecordID of 10883.

    -Meet system Event ID 109

    Microsoft-Windows-Kernel-Power

    EventRecordID 45150

    -Meet

    "The process C:\Windows\System32\winlogon.exe (USER) has launched the power off computer USER for the user NT AUTHORITY\SYSTEM account for the following reason: no title for this reason could be found.

    Reason code: 0x500ff

    Type of closure: power off

    EventID: 1074

    [Qualification] 32768

    There is no indication that something went WRONG minidump, no discharges of any sort, sfc/scannow ran own just like chkdsk, memtest, tester of windows 7 and all other diagnostic tools.

    He did it before, but very rarely, so I thought nothing of it (which happened in the spans of the months apart) but now happened several times a day.

    Recent software additions:

    Installing the software and drivers Lexmark Prospect Pro205

    -Updated Nvidia graphics drivers Geforce 6150SE nForce 430 to 8.17.12.9573 and it's Helper service ver 295,73

    What I did to try to rectify the situation:

    -Scanned with each virus/malware free scan in existence - deleted an infected file from Java Java/CVE-2011-3544. O operate. And another unrelated to the advertising program.

    -Updated HP Assistant and Advisor

    -Updated several times with various updates for windows 7

    -Clean the case thought it was overheating, but nope - clean as a whistle, normal running time

    -Good fans checked

    -Extract from food - looked good, constant voltage

    I haven't checked the power extension cables. I heard there is a problem with shorting out on the 24-pin extensions, but I didn't have an extension of 24 pins on the power cables.

    I've heard others have had problems with HP stopping randomly with a strange behavior, so I wanted to see what you guys have to say.

    Could this be problems of power with my house? The wiring is old... Or more likely is a short circuit in the cable/PSU?

    How can I easily repair/test of this theory?

    -All right, so the system restore has nothing but destroy some files, because I couldn't not correctly backup the drive between the random stops.

    However, I found the solution to my problem, that you won't believe.

    Short answer: I replaced the stock HP keyboard (model KU-0841) who seems to have been short.

    The long answer:

    -When the computer kept shutting down even in safe mode after a destructive recovery, I started watching again material.

    -Noticed my typing would sometimes record, sometimes just go crazzzzzzzzzzzzzzzzzzzzzzzzzzzy (like this).

    -Then comes the keyboard no longer works. Thus, while the veto stops with WORD 2007 and using the keyboard on the screen in Win7, I thought it was a terrible virus - it wasn't.

    -When I unplugged the USB keyboard it's a strange electric 'bzz' sound, like what you hear when static is unloaded. It turns out that the USB port has been be short-circuited by the keyboard.

    On the keyboard and the USB plug was going well, so I don't know who is to blame again, however - if someone is having the same weird problems with events of the power of the nucleus and 1074 with 0x500ff errors-try to check your hardware.

    After replacing the keyboard, everything works perfectly.

  • Loss of data of strange behavior.

    Hi all

    I am facing a strange behavior, I have a table and a form of the VO even pointing the same iterator in the binding.i to change in shape and support bean that I try to get the new values by using the code below:

    DCIteratorBinding iterIntegration = (DCIteratorBinding) UtilityBean.getBindings () .get ("Integration1Iterator");

    Line = iterIntegration.getCurrentRow ();

    getAttributes

    but I get the old values. even if I try to commit before using:

    OperationBinding operationBinding is getBindings () .getOperationBinding ("Commit");.

    operationBinding.execute ();

    the form is loaded with the old values of the table.

    Thank you

    In test form to define the components (inputText, selectOneChoice..), autoSubmit = 'true '.

  • Strange behavior of the browser blocks SQLDEV DM

    Hello

    I feel some strange behaviors in the browser of Datamodeler.

    After the opening of my model

    I have doubleclick in the window of the browser to fetch a few properties of the index:

    Drawings and models > MyModel > relational models > my RelModel > models > Oracle Database 10g > Tables

    So far, everything that happens.

    -I can select the tables and

    -doubleclicking shows the properties of the table.

    -I can scroll vertically

    -Select other tables

    -open and close the subtree of this physical tables

    Now, as soon as I click on any 'more' in the physical tables (for example, the index node or node of the plate) the browser "tri-de gel".

    The tree is distorted, scrolling seems erratic and it is impossible to select. Most of the time the main menu is also distorted.

    If I make the browser window, most of the time I'm able to hit the "file > save" from the menu. The model seems to be registered properly.

    No damage seems to have been done to the template on the reopening

    I'm on Windows 8 pro with the 64-bit version of datamodeler version 4.1.2.895 (from datamodeler - x 64 - 4.1.2 - 895.zip)

    Any ideas anyone?

    any response greatly appreciated.

    concerning

    Wouter

    Hi Wouter,

    I'm sorry, this is a bug and we are preparing a new version with this bug fixed.

    If I make the browser window, most of the time I'm able to hit the "file > save.

    Close the Data Modeler (X - close button in the upper right corner) and it will ask to save the drawing it is changed.

    Philippe

Maybe you are looking for

  • script does not

    Firefox 5.0 keeps giving up a script error does not initially. NOTE my start page is subject: empty. I want to go back to version 4, but can't find it.

  • iTunes repeatedly ask you to authorize a song newly purchased on Windows 10.  I tried to remove the SC folder and disable notifications.  How can I fix?

    I'm on Windows 10 with the latest version of iTunes.  I recently bought an album on the iTunes store.  When I try to play the last song on the album I'm invited several times to allow the computer.  I followed the suggestions in the article of HT2031

  • Why is this problem: illogical

    Hello by making a gauge for this program based on state machine I note some entries as 0.9 and the center of her curly 200 addtion operating profit is negative while and their not negative number to the program! Why does this happen program + machine

  • KB915597 (definition 1.95.2986.0)

    After receiving this update December 31, my computer would not start, I have solved this problem, but I went left with a non-genuine copy of windows 7 and lack of iertutil.dll (though same sound in my system32 folder) that prevents me from having the

  • Help! Integrated Broadcom Gigabit Ethernet - M51

    For some reason any weird my entire on-board network card simply stopped work using my M51! It is displayed in the device with the yellow triangle Manager and when I look at the properties it gives a message "windows does not have load this driver -