To_clob error

Hi all,
I am facing an error when using the to_clob function.The usage returns a error:
SQL> declare
2 dtd clob;
3 begin
4 dtd:=TO_CLOB("asas");
5 end;
6 /
dtd:=TO_CLOB("asas");
ERROR at line 4:
ORA-06550: line 4, column 6:
PLS-00201: identifier 'TO_CLOB' must be declared
ORA-06550: line 4, column 1:
PL/SQL: Statement ignored
Here the block doesn't do anything but used for testing the to_clob function.Actually i am using this function somewhere else and try to find out the actual error ,i have used this.Considering this as an actual implementation can anyone tell me where i am wrong.
The PLS-00201 is identified as :-
PLS-00201 identifier 'string' must be declared
Cause: An attempt was made to reference either an undeclared variable, exception, procedure, or other item, or an item to which no privilege was granted or an item to which privilege was granted only through a role.
Action:
Check your spelling and declaration of the referenced name.
Verify that the declaration for the referenced item is placed correctly in the block structure.
If the referenced item is indeed declared but you do not have privileges to refer to that item, for security reasons, you will b[i]Long postings are being truncated to ~1 kB at this time.

Hi Peter,
The oracle version that i am using is
Oracle8i Enterprise Edition Release 8.1.7.0.0 (oracle 8i).
So now how is this conversion possible.You must have seen what i have been trying to do.I just want to convert or make a clob object out of a varchar data in my version.Can you please elaborate on this method.What package or identification unit provides this function is provided,how can i know that this function is not directly supported by this version.
With Regards
Gopal

Similar Messages

  • Can not display long derived measure - ORA-33674

    I would need calculated measures for compiling some special URL, but there seems to be now way to have results longer than 60 characters. I tried creating the measure using AWM and using OLAP API. Both will result in:
    ORA-33674: Data block exceeds the maximum size of 60 bytes.
    ... so its not possible to view the auto-generated view any more. The whole thing seems to be similar to this [Cannot view dimension if description is more than 60 characters|http://wiki.oracle.com/thread/2121955/Cannot+View+Dimension+If+Description+Is+More+Than+60+Characters]
    But here it is about DerivedMeasures, so the workaround is not applicable. There is no corresponding option. Unfortunate this has not been fixed by BugFix 6940809 as described in [AWM 11.1.0.7.0B Readme|http://www.oracle.com/technology/products/bi/olap/11g/awm/awm11.1.0.7b_readme.html]
    I also tired to create the DerivedMeasure via OLAP API and casting it an CLOB. No success either, different Error.
    MdmDerivedMeasure msTemp = mdmCube.findOrCreateDerivedMeasure("TEST");
    StringExpression strexTemp = new StringExpression("Toooooooooooooooo Loooooooooooooooooooooong Txxxxxxxxxxxxxxxxxxt");
    +msTemp.setMeasureExpression( strexTemp.toCLOB() );+
    Exception in thread "main" Die Transaktion kann nicht festgeschrieben werden: "Auf dem Server ist ein Fehler aufgetreten
    Fehlerklasse: Express-Fehler
    Server-Fehlerbeschreibungen:
    DPR: Server-Cursor kann nicht erstellt werden, Allgemein in TxsOqDefinitionManager::generic<CommitRoot>
    +INI: XOQ-01600: OLAP DML-Fehler "Analytisches Arbeitsbereichsobjekt TO_CLOB ist nicht vorhanden." bei der Ausführung von DML "SYS.AWXML!R11_MANAGE_CALC_MEASURE('SALES_CUBE.URImdm.MEASURE' 'ALTER' 'TEXT' SYS.AWXML!___R11_LONG_ARG_VALUE(SYS.AWXML!___R11_LONG_ARG_DIM 1) NA NA)", Allgemein in TxsOqStdFormCommand::execute"+
    +     at oracle.olapi.transaction.BaseTransaction.commit(Unknown Source)+
    +     at oracle.olapi.transaction.BaseTransactionProvider.commitCurrentTransaction(Unknown Source)+
    +     at daemz.eval.createExpression.main(createExpression.java:103)+
    Translating from German: While writing to the DB he finds out he doesn't actually have some object called TO_CLOB. Does they API offer functionality not supported by the DB?
    Played around with this for quite a while - suggestions more than welcome.
    I'm evaluating on the OLAP Option, using AWM 11.1.0.7.0B, Oracel DB & OLAP 11.1.0.7.0, OLAP API 11.1.0.6.0 (delivered with AWM 11.1.0.7.B) and the Oracle OLAP 11g Sample Schema.
    Edited by: user7008111 on Jun 27, 2009 11:27 AM
    Edited by: user7008111 on Jun 27, 2009 11:27 AM

    This is similar, bot not quite the same problem as for attributes. In the case of attributes, the problem was bad defaulting of the VARCHAR2 length by AWM. To fix it is was just necessary to give an appropriate length.
    Your issue is more serious since it lies in the server itself, which attempts (badly in this case) to derive the data type from the expression. In this it determines that the data type is VARCHAR2, but it defaults the data length to 60 instead of deriving the length from the contents. I am not aware of any workarounds in 11.1.0.7 for this problem. CAST, for example, does not solve the problem. The bug is addressed in 11.2 beta releases, but it was a non-trivial project that is no likely to be back ported to 11.1.0.7. It may be possible to bump up the default of 60 to something higher, but this is not a general solution.
    The TO_CLOB error is due to the fact that the CLOB data type (and hence TO_CLOB function) is not supported by the AW. It is supported by relational tables, which is why it is listed in the OLAP API. It can be used, for example, in the mapping between cube and table as long as you resolve the CLOB into an AW data type again.

  • String literal too long error while invoking a package with clob variable

    I have a package.One of the input variables of the procedure in packae is clob.
    I want to invoke this package with a huge clob as input.
    when i invoke this package like that i am getting following error
    PLS-00172 string literal too long
    can't we pass clob(huge clob) as input .is there any solution for that ?
    Thanks
    Pramod Garre

    842802 wrote:
    If insert this data into a table , from sql prompt still i get the same error.Do you mean SQL*Plus? Then there is buffer limitation and it is better to split literal into, let say 1000 character chunks:
    SQL*Plus: Release 10.2.0.4.0 - Production on Tue Mar 29 16:17:26 2011
    Copyright (c) 1982, 2007, Oracle.  All Rights Reserved.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> select 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
    AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
    AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
    AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
    AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
    AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
    AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
    AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'
      6  from dual;
    from dual
    ERROR at line 6:
    ORA-01489: result of string concatenation is too long
    SQL> select to_clob('AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
    AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
    AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
    AAAAAAAAAAAAAAAAAAA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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
    AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
    AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
    AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
    AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'
      6  from dual;
    TO_CLOB('AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
    AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
    SQL> SY.

  • Error due to # in insert statement

    Guys there is a .sql file which we run in oracle DB using a batch process
    declare
    act_errors number(10, 0);
      at_least_one_exception  EXCEPTION;
      err_num NUMBER;
      err_msg VARCHAR2(1000);
    begin
    act_errors  := 0;
    dbms_output.put_line('Starting to process Case '|| 'C-9');
    begin
    insert into C_A(A_ID,
    C_ID,
    I_INFO)
    VALUES
    ('C-9' ,
    'C-9' ,
    to_clob('
    #5 Jessica Gardea-Cash Box open
    #6 Quan T Nguyen-Teller in question')) ;
    exception
      when others then
         act_errors := 154181;
          err_num := SQLCODE;
          err_msg := SUBSTR(SQLERRM, 1, 1000);
         dbms_output.put_line('Statement number ' || act_errors || ' failed (search for "act_errors := ' || act_errors || '" in the source file)');
         dbms_output.put_line(err_msg );
    end;
    IF act_errors <> 0 THEN
             RAISE at_least_one_exception;
    END IF;
    dbms_output.put_line('Case '|| 'C-9' || ' processed successfully');
    commit;
    exception
         when others then
           dbms_output.put_line('Error detected, rollbacking');
           rollback;
    end;
    /this above insert when run through toad , it runs fine... but when run as a btach process using sql plus
    it errors out with the following error message..
    Jessica Gardea-Cash Box open
    ERROR at line 5:
    ORA-06550: line 5, column 15:
    PLS-00103: Encountered the symbol "-" when expecting one of the following:
    := . ( @ % ; not null range default character if i remove the '#' alone or if i push the '#' with spaces before it... it runs fine... if the '#' is right after a 'enter' or it is at the begining of the line it fails with error....\
    Please help me solve it?? there are many such cases for it.. we cannot prevent '#' from coming at the start
    Edited by: Depakjan on Mar 24, 2011 12:12 PM
    Edited by: Depakjan on Mar 24, 2011 1:47 PM

    Try this in sqlplus.
    SET SQLPREFIX OFFAnd now execute your script.
    G.

  • SDO_UTIL.TO_CLOB odd head scratcher

    Hi folks,
    I'll try to submit this to support but thought I should log it here in case anyone is interested.
    Using Oracle 11.2.0.3.
    I am still occasionally poking at the uber SDO_GEOMETRY issue (see Re: upgrading to uber SDO_GEOMETRY, looking for comments Anyhow one of the deal breakers has been the hassles to move geometries back and forth between uber-installed instances and regular instances. With datapump off the table, its kind of a bummer. Anyhow, I noticed that for reasons I cannot explain (any takers?) the following works to move SDO_GEOMETRY across a database link between uber and regular instances:
    INSERT INTO local_table (shape)
    SELECT
    SDO_UTIL.FROM_CLOB(SDO_UTIL.TO_CLOB(a.shape))
    FROM
    remote_table@remote_instance a;I don't really understand why that works. But it does. Obviously over-sized geometries will fail if you try to move them to a regular instance. Performance is not too bad overall considering the deserialization and serialization taking place. I have not looked into what is occurring on what instance.
    The only problem I found is a weird bug I think with the SDO_UTIL.FROM_CLOB for geometries with crazy precision.
    SELECT
    SDO_UTIL.TO_CLOB(SDO_GEOMETRY(2001,8265,NULL,SDO_ELEM_INFO_ARRAY(1,1,1),SDO_ORDINATE_ARRAY(-106.496121500000000992258719634264707565,43.01151182000000261496097664348781108856)))
    FROM DUAL;When I plug the results into FROM_CLOB, I get
    ORA-06502: PL/SQL: numeric or value error
    ORA-06512: at "MDSYS.SDO_UTIL", line 3152
    SELECT
    SDO_UTIL.FROM_CLOB('2001||8265||NULL|NULL|NULL||1|1|1||-106.496121500000000992258719634264707565|43.01151182000000261496097664348781108856||')
    FROM DUAL;Some kind of odd math bug I think. If I knock off 12 digits, then it works fine.
    Cheers,
    Paul

    Paul,
    As you know full well no one can measure the earth to the precision of the numbers of your 8265 SRIDed SDO_GEOMETRY.
    Interestingly, the longitude in the example can't be represented in an Oracle NUMBER without loss of "precision" as can be seen following:
    SELECT length('496121500000000992258719634264707565') as longPrecLength
    FROM DUAL;
    -- Results
    LONGPRECLENGTH
    36
    -- The max precision for this longitude is 35.....
    SELECT cast(-106.496121500000000992258719634264707565 as number(38,35)) as longitude
    FROM DUAL;
    -- Result
    LONGITUDE
    -106.49612150000000099225871963426470757
    -- Trying to define 36 decimal digits throws an error
    SELECT cast(-106.496121500000000992258719634264707565 as number(38,36)) as longitude
    FROM DUAL;
    -- Result
    QL Error: ORA-01438: value larger than specified precision allowed for this column
    01438. 00000 -  "value larger than specified precision allowed for this column"
    *Cause:    When inserting or updating records, a numeric value was entered
               that exceeded the precision defined for the column.
    -- Try binary_double
    SELECT cast(-106.496121500000000992258719634264707565 as binary_double) as longitude
    FROM DUAL;
    -- Results
    LONGITUDE
    -106.4961215I have no idea what 1/10^36 decimal degrees of longitude or latitude is in meters but it ain't measurable via any GPS/Surveying method I know! Perhaps CERN can help!
    Thanks for the reference to my new article. It has been sitting on my computer hard disk now for well over 6 months. I often wonder how many people actually read my articles (just like I wonder if anyone uses GeoRaptor)!
    To be honest, when I first started using Oracle SDO_GEOMETRY I met end users who constantly asked why the number of decimal digits was greater than they expected. So, 10+ years ago I wrote a coordinate rounding function. (Perception management?) I never thought about the saving of space (most say it doesn't matter today due to large, cheap, fast disks, and fast networks) nor about performance aspects. I think my article points the way forward for others to investigate and, I hope, share* their results and experiences.
    regards
    Simon

  • CLOB with case statement not working getting error

    Can anyone help on this
    I write this sql
    select Case when to_clob(PROPERTY) = 'is_intradesk=Y' then 'Internal' end
    from JPM_CP;
    Where PROPERTY column is clob column and its giving the error "ORA-00932: inconsistent datatypes: expected - got CLOB"
    Is it not possible to use clob columns with case or decode !

    Its working but it does not fulfill my purpose
    In you answer it is looking for position right! means, does the column contain the value('Intradesk=Y' ) or not. means
    I am looking for exact match with CLOB column values, that is Clob column(PROPERTY) contains the exact value that value which I am comparing with i.e 'Intradesk=Y'
    I need this
    select * from table where clob_column = 'value' (exact).
    Edited by: sajalkdas on Feb 4, 2011 3:28 PM

  • Query in 10g DB gives error when size of element exceeds 4000 characters?

    I used this query give in this thread Need help in reading a _fmb.XML and writing the item properties to a table
    select x1.item_name
         , x1.item_type
         , x2.property
         -- to convert back entities such as
    to their character values :
         , utl_i18n.unescape_reference(x2.property_value) as property_value
         -- parent information :
         , x1.parent_item_name
         , x1.parent_item_type
    from xmltable(
           xmlnamespaces(default 'http://xmlns.oracle.com/Forms', 'http://xmlns.oracle.com/Forms' as "def")
         , 'for $i in /Module/descendant::*[@def:Name]
            return element item {
              attribute item_name {data($i/@def:Name)}
            , attribute item_type {local-name($i)}
            , attribute parent_item_name {data($i/parent::*/@def:Name)}
            , attribute parent_item_type {local-name($i/parent::*)}
            , $i
           passing xmltype(bfilename('TEST_DIR','length_test_fmb.xml'), nls_charset_id('AL32UTF8'))
           columns item_name         varchar2(50) path '@item_name'
                 , item_type         varchar2(50) path '@item_type'
                 , parent_item_name  varchar2(50) path '@parent_item_name'
                 , parent_item_type  varchar2(50) path '@parent_item_type'
                 , item              xmltype      path '.'
         ) x1
       , xmltable(
           xmlnamespaces(default 'http://xmlns.oracle.com/Forms', 'http://xmlns.oracle.com/Forms' as "def")
         , 'for $i in /item/*/attribute::def:*
            let $propname := local-name($i)
            where $propname != "Name"
            return element p {
              element name {$propname}
            , element value {data($i)}
           passing x1.item
           columns property       varchar2(50)  path 'name'
                 , property_value varchar2(4000) path 'value'
        ) x2
    ;This works perfectly, but I tried a form which has a program unit which exceeds 4000 characters, i.e. I converted a fmb to xml, I.E. PROPERTY VALUE. When you run the query then you get error "function returned value too large".
    I tried changing the VARCHAR2 to CLOB but then you get another error.
    We cannot migrated to 11g as yet, so how to handle this in 10g?
    Any help would be greatly appreciated.
    Edited by: Channa on Oct 25, 2011 6:40 AM

    Hi Channa,
    I should have mentioned it in the previous thread, a sound approach to the overall requirement would be to use object-relational storage for loading XML documents in the database.
    You can read more here : http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14259/xdb03usg.htm#g1055369
    However, that's not possible if we use the DUMP=ALL option to convert Forms files to XML because the generated files do not conform to the Forms XML schema.
    So unless you decide to use DUMP=OVERRIDDEN, you're stuck with the current situation.
    If I remember correctly, the ability to project large strings as CLOB with XMLTable was added in version 10.2.0.4.
    You're not out of options though.
    Here are two, one being "dirtier" than the other...
    1) Divide the property value into multiple chunks of 4000 characters (or less if the db uses a multi-byte character set), then rebuild the string as CLOB in the SELECT clause :
    select x1.item_name
         , x1.item_type
         , x2.property
         , to_clob(utl_i18n.unescape_reference(x2.property_value1)) ||
           to_clob(utl_i18n.unescape_reference(x2.property_value2)) as property_value
         , x1.parent_item_name
         , x1.parent_item_type
    from xmltable(
           xmlnamespaces(default 'http://xmlns.oracle.com/Forms', 'http://xmlns.oracle.com/Forms' as "def")
         , 'for $i in /Module/descendant::*[@def:Name]
            return element item {
              attribute item_name {data($i/@def:Name)}
            , attribute item_type {local-name($i)}
            , attribute parent_item_name {data($i/parent::*/@def:Name)}
            , attribute parent_item_type {local-name($i/parent::*)}
            , $i
           passing xmltype(bfilename('TEST_DIR','module2.xml'), nls_charset_id('AL32UTF8'))
           columns item_name         varchar2(50) path '@item_name'
                 , item_type         varchar2(50) path '@item_type'
                 , parent_item_name  varchar2(50) path '@parent_item_name'
                 , parent_item_type  varchar2(50) path '@parent_item_type'
                 , item              xmltype      path '.'
         ) x1
       , xmltable(
           xmlnamespaces(default 'http://xmlns.oracle.com/Forms', 'http://xmlns.oracle.com/Forms' as "def")
         , 'for $i in /item/*/attribute::def:*
            let $propname := local-name($i)
            let $propval := data($i)
            where $propname != "Name"
            return element p {
              element name {$propname}
            , element value1 {substring($propval,1,4000)}
            , element value2 {substring($propval,4001,4000)}
           passing x1.item
           columns property        varchar2(50)   path 'name'
                 , property_value1 varchar2(4000) path 'value1'
                 , property_value2 varchar2(4000) path 'value2'
        ) x2
    ;2) Output the property value as a text() node (XMLType datatype) and serialize as CLOB in the SELECT :
    select x1.item_name
         , x1.item_type
         , x2.property
         , dbms_xmlgen.convert(x2.property_value.getclobval(),1) as property_value
         , x1.parent_item_name
         , x1.parent_item_type
    from xmltable(
           xmlnamespaces(default 'http://xmlns.oracle.com/Forms', 'http://xmlns.oracle.com/Forms' as "def")
         , 'for $i in /Module/descendant::*[@def:Name]
            return element item {
              attribute item_name {data($i/@def:Name)}
            , attribute item_type {local-name($i)}
            , attribute parent_item_name {data($i/parent::*/@def:Name)}
            , attribute parent_item_type {local-name($i/parent::*)}
            , $i
           passing xmltype(bfilename('TEST_DIR','module2.xml'), nls_charset_id('AL32UTF8'))
           columns item_name         varchar2(50) path '@item_name'
                 , item_type         varchar2(50) path '@item_type'
                 , parent_item_name  varchar2(50) path '@parent_item_name'
                 , parent_item_type  varchar2(50) path '@parent_item_type'
                 , item              xmltype      path '.'
         ) x1
       , xmltable(
           xmlnamespaces(default 'http://xmlns.oracle.com/Forms', 'http://xmlns.oracle.com/Forms' as "def")
         , 'for $i in /item/*/attribute::def:*
            let $propname := local-name($i)
            where $propname != "Name"
            return element p {
              element name {$propname}
            , element value {data($i)}
           passing x1.item
           columns property        varchar2(50)   path 'name'
                 , property_value  xmltype        path 'value/text()'
        ) x2
    ;Edited by: odie_63 on 25 oct. 2011 17:03
    Edited by: odie_63 on 25 oct. 2011 17:04

  • DBMS_CRYPTO error

    Hi
    I have problem using dbms_crypto package.
    If I execute this code:
    declare
      c_text clob := to_clob('TEST TEXT');
      b_result blob;
      function crypt (ac_text clob) return blob as
         secret_key   RAW (32) := utl_raw.cast_to_raw('12345678901234567890123456789012');
         crypt_type   PLS_INTEGER := DBMS_CRYPTO.ENCRYPT_AES256 + DBMS_CRYPTO.CHAIN_CBC + DBMS_CRYPTO.PAD_PKCS5;
         crypted_text blob;
      BEGIN
         DBMS_CRYPTO.ENCRYPT(crypted_text, ac_text, crypt_type, secret_key, null);
         return crypted_text;
      END crypt;
    begin
      b_result := crypt(c_text);
    end;
    /it would return error:
    ORA-01405: fetched column value is NULL
    My database is 10.2.0.4 64bit...
    Any idea what might be wrong?

    I am pasting you real-life application encrypt procedure (slightly modified) that may help you (you will need first to convert your CLOB data to VARCHAR2)
    FUNCTION encrypt(text IN VARCHAR2, secretKey IN VARCHAR2) RETURN RAW IS
    encryptedText RAW(2000);
    BEGIN
    encryptedText := DBMS_CRYPTO.ENCRYPT(UTL_I18N.STRING_TO_RAW(text, 'AL32UTF8'), dbms_crypto.AES_CBC_PKCS5, UTL_I18N.STRING_TO_RAW(secretKey));
    RETURN encryptedText;
    END encrypt;

  • Error raised when concatenating to CLOB using implicit to_char conversion

    Hi there,
    Please consider the code below (Oracle 11.1.0.7.0):
    DECLARE
      c CLOB;
    BEGIN
      FOR i IN 1..10
      LOOP
        -- Please uncomment ONE of the lines below
        c := c ||  LPAD('x', 8000, 'z') || i; -- raises error ora-06502
        --c := c || (LPAD('x', 8000, 'z') || i);  -- works
        --c := c ||  LPAD('x', 8000, 'z') || to_char(i);  -- works
      END LOOP;
    END;Ok, maybe making use of implicit type conversion is not the best thing to do, but just out of curiosity is there any explanation for this error to happen?
    It seems that, when implicit conversion is involved without the aid of brackets, Oracle tries to convert the whole thing to varchar2 before concatenating it to the clob, raising the error.
    Thanks
    Luis

    Hi,
    Accordingly link below, I think this behavior can be explained
    http://download.oracle.com/docs/cd/B28359_01/appdev.111/b28370/datatypes.htm#CIHGBADF
    Case 1
    c := c ||  LPAD('x', 8000, 'z') || i
    How it going
    1. Evaluate expression  res1 = LPAD('x', 8000, 'z')
    2. Next oracle must to evaluate  c||res1 where c is clob and res1 is varchar2
    3. Oracle can and choose implicit conversation res1 to clob
    4. Evaluate expression  res2 = c||to_clob(res1);  where res2 now is clob
    5. Next oracle must to evaluate  res2||i where res2 is clob and i is number
    6. Oracle can implicitly convert number only to varchar2 not to clob so he choose implicit conversation i to varchar2
    6.1 Oracle implicitly try convert res2 to varchar2 and when res2 size more then 32627 then he raise error ORA-06502Case 2
    c := c || (LPAD('x', 8000, 'z') || i)
    How it going
    1. Evaluate expression  res1 = LPAD('x', 8000, 'z')
    2. Next oracle must to evaluate  res1||i where res1 is varchar2 and i is number
    3. So he convert i to varchar2 and evaluate res2 = res1||to_char(i)
    4. Next oracle must to evaluate  c||res2 where res2 is varchar2 and c is clob
    5. So he convert res2 to clob and evaluate c||to_clob(res2)Case 3
    c := c ||  LPAD('x', 8000, 'z') || to_char(i)
    How it going
    0. Evaluate res0 = to_char(i)
    1. Evaluate expression  res1 = LPAD('x', 8000, 'z')
    2. Next oracle must to evaluate  c||res1 where c is clob and res1 is varchar2
    3. Oracle can and choose implicit conversation res1 to clob
    4. Evaluate expression  res2 = c||to_clob(res1);  where res2 now is clob
    5. Next oracle must to evaluate  res2||res0 where res2 is clob and res0 is varchar2
    6. He evaluate  to_clob(res0)||res2

  • Packaged App Document Library 0.91 installs with errors in Apex 3.0

    Hello All,
    I get these errors when I try to install Document Library packaged application in Apex 3.0
    Script name          success          errors          total
    tab.sql               137          1          137
    doclib.pkb          0          1          1
    sync_index.sql          1          1          2
    When I try to run the app, I am prompted for user name and password. I enter the user name I’ve selected during the install process as parsing schema, and I get this error:
    ORA-04063: package body "DOADMIN.DOCLIB" has errors ORA-06508: PL/SQL: could not find program unit being called: "DOADMIN.DOCLIB"
    ERR-1082 Error in executing authorization scheme code.
    How can I find the object that caused errors during install? Is there any installation log?
    Thank you,
    Daniel

    I’ve attempted to install the document library app into completely new workspace, with new parsing user. I still get the same errors:
    Errors     
    tab.sql
    create index doclib_docs_idx2 on doclib_documents(contents) indextype is ctxsys.context
    ORA-29833: indextype does not exist
    doclib.pkb
    create or replace package body doclib as
    g_html_email_header constant varchar2(4000) := '<html lang="en-us" xmlns:htmldb="http://htmldb.oracle.com">
    <head>
    <style type="text/css">
    *{font-size:12px;font-family:Arial, Helvetica, Geneva, sans-serif;}
    body{background-color:#fff;margin:0;padding:0;font-family:Arial, Helvetica, Geneva, sans-serif;font-size:12px;}
    body *{font-size:12px;}
    img{border:0;margin:0;}
    hr{color:#bbb;height:1px;}
    br{clear:both;}
    p{font-size:12px;}
    a:link,a:visited{text-decoration:none;font-size:-1;color:#7f7f7f;}
    a:active,a:hover{text-decoration:underline;font-size:-1;color:#ff6600;}
    </style>
    <title></title>
    <body>';
    g_html_email_footer constant varchar2(30) := '</body></html>';
    function get_member_id (
    p_user_name in varchar2
    ) return number
    is
    l_user_id number;
    begin
    for c1 in (select user_id
    from doclib_members
    where upper(p_user_name) = user_name ) loop
    l_user_id := c1.user_id;
    end loop;
    return l_user_id;
    end get_member_id;
    function get_member_email (
    p_user_name in varchar2
    ) return varchar2
    is
    l_email varchar2(255);
    begin
    for c1 in (select email_address
    from doclib_members
    where upper(p_user_name) = user_name ) loop
    l_email := c1.email_address;
    end loop;
    return l_email;
    end get_member_email;
    function get_acl_id (
    p_user_name in varchar2
    ) return number
    is
    l_acl_id number := 0;
    begin
    for c1 in (select role_id
    from doclib_members
    where upper(p_user_name) = user_name ) loop
    l_acl_id := c1.role_id;
    end loop;
    return l_acl_id;
    return 3;
    end get_acl_id;
    function get_local_name (
    p_filename in varchar2
    ) return varchar2
    is
    begin
    return substr(p_filename,instr(p_filename,'/')+1);
    end get_local_name;
    function doc_is_checkedout_by (
    p_doc_id in varchar2
    ) return varchar2
    is
    begin
    for c1 in (select checkedout_by
    from doclib_documents
    where doc_id = p_doc_id ) loop
    return c1.checkedout_by;
    end loop;
    return null;
    end doc_is_checkedout_by;
    function get_doc_name (
    p_doc_id in varchar2
    ) return varchar2
    is
    begin
    for c1 in (select name
    from doclib_documents
    where doc_id = p_doc_id ) loop
    return c1.name;
    end loop;
    return null;
    end get_doc_name;
    function doc_already_exists (
    p_name in varchar2
    ) return boolean
    is
    begin
    for c1 in (select null
    from doclib_documents
    where name = p_name ) loop
    return true;
    end loop;
    return false;
    end doc_already_exists;
    function alert_todo_already_exists (
    p_user_id in number
    ) return boolean
    is
    l_found boolean := false;
    begin
    for c1 in (select null
    from doclib_alerts a, doclib_alerts_todo b
    where a.alert_id = b.alert_id
    and a.doctask_id = 0
    and a.user_id = p_user_id ) loop
    l_found := true;
    exit;
    end loop;
    return l_found;
    end alert_todo_already_exists;
    function parse_search_string(
    p_search_str in varchar2 ) return varchar2
    is
    l_temp_value varchar2(1000);
    l_temp_value2 varchar2(1000);
    l_return_value varchar2(1000) := NULL;
    l_start_token number := 1;
    l_in_token boolean := FALSE;
    l_quotes number;
    l_phrases dbms_sql.varchar2s;
    n number;
    begin
    if nvl(length(p_search_str),0) = 0 then
    return NULL;
    end if;
    l_quotes := length(p_search_str) - length(replace(p_search_str,'"', ''));
    if ( l_quotes > 0 and mod(l_quotes,2) = 0 ) then
    l_temp_value2 := lower(p_search_str);
    for i in 1 .. l_quotes/2 loop
    n := instr( l_temp_value2, '"' );
    l_temp_value := l_temp_value || substr( l_temp_value2, 1, n-1 );
    l_temp_value2 := substr( l_temp_value2, n+1 );
    n := instr( l_temp_value2, '"' );
    l_phrases(i) := substr( l_temp_value2, 1, n-1 );
    l_temp_value2 := substr( l_temp_value2, n+1 );
    end loop;
    l_temp_value := l_temp_value || l_temp_value2;
    else
    l_temp_value := lower(p_search_str);
    end if;
    l_temp_value := trim(replace( l_temp_value, ':', ' '));
    l_temp_value := trim(replace( l_temp_value, ';', ' '));
    l_temp_value := trim(replace( l_temp_value, '"', ' '));
    l_temp_value := trim(replace( l_temp_value, ':'',', ' '));
    l_temp_value := trim(replace( l_temp_value, '(', ' '));
    l_temp_value := trim(replace( l_temp_value, ')', ' '));
    l_temp_value := trim(replace( l_temp_value, '!', ' '));
    l_temp_value := trim(replace( l_temp_value, '&', ' '));
    l_temp_value := trim(replace( l_temp_value, '+', ' '));
    l_temp_value := trim(replace( l_temp_value, '-', ' '));
    l_temp_value := trim(replace( l_temp_value, ',', ' '));
    l_temp_value := trim(replace( l_temp_value, '\', ' '));
    l_temp_value := trim(replace( l_temp_value, ' and ', ' ' ));
    l_temp_value := trim(replace( l_temp_value, ' or ', ' ' ));
    if length(l_temp_value) > 0 then
    l_in_token := TRUE;
    end if;
    for i in 1..nvl(length(l_temp_value),0) loop
    if substr(l_temp_value,i,1) = ' ' then
    if l_in_token = TRUE then
    l_return_value := l_return_value || '{' || substr(l_temp_value,l_start_token, i-l_start_token) || '}' || ' and ';
    l_in_token := FALSE;
    end if;
    elsif l_in_token = FALSE then
    l_in_token := TRUE;
    l_start_token := i;
    end if;
    end loop;
    if l_in_token = TRUE then
    l_return_value := l_return_value || '{' || substr(l_temp_value,l_start_token) || '} and ';
    end if;
    for i in 1 .. nvl(l_phrases.count,0) loop
    l_return_value := l_return_value || ' {' || l_phrases(i) || '} and ';
    end loop;
    return trim( substr( l_return_value, 1, length(l_return_value)-4 ) );
    end parse_search_string;
    function doc_has_revisions (
    p_doc_id in varchar2
    ) return number
    is
    l_revisions number := 0;
    begin
    for c1 in (select count(*) cnt
    from doclib_documents
    where deleted_as_of = to_date('22-04-2004','DD-MM-YYYY')
    and revision_of = p_doc_id ) loop
    l_revisions := c1.cnt;
    end loop;
    return l_revisions;
    end doc_has_revisions;
    function get_checkout_list (
    p_user_name in varchar2
    ) return varchar2
    is
    l_chkout_lst varchar2(32000);
    begin
    for c1 in (select '<li>'||name||'</li>' name
    from doclib_documents
    where deleted_as_of = to_date('22-04-2004','DD-MM-YYYY')
    and revision_of = 0
    and checkedout_by = p_user_name ) loop
    l_chkout_lst := l_chkout_lst || c1.name;
    end loop;
    if l_chkout_lst is null then
    l_chkout_lst := 'None.';
    else
    l_chkout_lst := '<ul>'||l_chkout_lst||'</ul>';
    end if;
    return l_chkout_lst;
    end get_checkout_list;
    procedure return_xml (
    p_doc_id in number,
    p_action in varchar2,
    p_message in varchar2,
    p_chkout_lst in varchar2,
    p_result in varchar2,
    p_user_name in varchar2
    is
    begin
    owa_util.mime_header('text/xml', FALSE );
    htp.p('Cache-Control: no-cache');
    htp.p('Pragma: no-cache');
    owa_util.http_header_close;
    htp.p('<div class="return" id="'||p_doc_id||'" action="'||p_action||'" result="'||p_result||'">');
    htp.p('<div class="message" id="primary">'||p_message||'</div>');
    htp.p('<div class="message" id="chkoutlst">'||p_chkout_lst||'</div>');
    htp.p('<div id="checkoutby">'||p_user_name||'</div>');
    htp.p('<div id="modifiedby">'||p_user_name||'</div>');
    htp.p('</div>');
    end;
    procedure add_document (
    p_doc_id in varchar2 default null,
    p_name in varchar2 default null,
    p_filename in varchar2,
    p_user_name in varchar2,
    p_description in varchar2,
    p_attr1 in varchar2,
    p_attr2 in varchar2,
    p_attr3 in varchar2
    is
    l_content blob;
    l_mime_type varchar2(48);
    l_name varchar2(255);
    begin
    if get_acl_id(p_user_name) < 2 then
    raise_application_error(-20001,'You are not authorized to add documents.');
    end if;
    if p_name is null then
    l_name := get_local_name(p_filename);
    for c1 in (select doc_id, name
    from doclib_documents
    where revision_of = 0
    and name = l_name ) loop
    --document already exists, so update it
    update_document(c1.doc_id, c1.name, p_filename, p_user_name, p_description, p_attr1, p_attr2, p_attr3);
    goto end_add;
    end loop;
    else
    l_name := p_name;
    end if;
    for c1 in (select mime_type, blob_content
    from apex_application_files
    where name = p_filename ) loop
    l_content := c1.blob_content;
    l_mime_type := c1.mime_type;
    end loop;
    insert
    into doclib_documents (doc_id, name, description, mime_type, contents, attr1, attr2, attr3)
    values (p_doc_id, l_name, p_description, l_mime_type, l_content, p_attr1, p_attr2, p_attr3);
    delete
    from apex_application_files
    where name = p_filename;
    if p_name is null then
    do_alerts('D',0,null);
    end if;
    commit;
    <<end_add>>
    null;
    exception when others then
    raise_application_error(-20001, 'Exception encountered adding document: '||sqlerrm);
    end add_document;
    procedure add_member (
    p_user_name in varchar2,
    p_member in varchar2,
    p_email in varchar2,
    p_acl_id in varchar2
    is
    begin
    if get_acl_id(p_user_name) < 3 then
    raise_application_error(-20001,'You are not authorized to add members.');
    end if;
    insert
    into doclib_members (user_name, email_address, role_id)
    values (p_member, p_email, p_acl_id);
    commit;
    exception when dup_val_on_index then
    raise_application_error(-20001,'The user is already a member of this workspace.');
    when others then
    raise_application_error(-20001,'Exception encountered adding member: '||sqlerrm);
    end add_member;
    procedure add_task (
    p_user_name in varchar2,
    p_assigned_to in varchar2,
    p_name in varchar2,
    p_description in varchar2,
    p_start_date in varchar2,
    p_end_date in varchar2,
    p_priority in varchar2,
    p_status in varchar2,
    p_pct_complete in varchar2,
    p_doc_id in varchar2
    is
    l_start_date date;
    l_due_date date;
    begin
    if get_acl_id(p_user_name) < 2 then
    raise_application_error(-20001,'You are not authorized to add tasks.');
    end if;
    l_start_date := to_date(p_start_date,'DD-MM-YYYY HH24:MI');
    l_due_date := to_date(p_end_date, 'DD-MM-YYYY HH24:MI');
    insert
    into doclib_tasks (assigned_to, name, description, start_date, due_date, priority_id, status_id, pct_complete, doc_id)
    values (p_assigned_to, p_name, p_description, l_start_date, l_due_date, p_priority, p_status, p_pct_complete, p_doc_id);
    do_alerts('T',0,null);
    commit;
    exception when others then
    raise_application_error(-20001,'Exception encountered adding task: '||sqlerrm);
    end add_task;
    procedure add_link (
    p_user_name in varchar2,
    p_name in varchar2,
    p_url in varchar2
    is
    begin
    if get_acl_id(p_user_name) < 2 then
    raise_application_error(-20001,'You are not authorized to add links.');
    end if;
    insert
    into doclib_links (name, url)
    values (p_name, p_url);
    commit;
    exception when others then
    raise_application_error(-20001,'Exception encountered adding link: '||sqlerrm);
    end add_link;
    procedure add_announcement (
    p_user_name in varchar2,
    p_title in varchar2,
    p_description in varchar2,
    p_expire_date in varchar2
    is
    l_expire_date date;
    begin
    if get_acl_id(p_user_name) < 2 then
    raise_application_error(-20001,'You are not authorized to add announcements.');
    end if;
    l_expire_date := to_date(p_expire_date,'DD-MM-YYYY HH24:MI');
    insert
    into doclib_announcements (title, description, expire_date)
    values (p_title, p_description, l_expire_date);
    commit;
    exception when others then
    raise_application_error(-20001,'Exception encountered adding announcement: '||sqlerrm);
    end add_announcement;
    procedure add_alert (
    p_user_name in varchar2,
    p_alert_type in varchar2,
    p_alert_interval in varchar2,
    p_doctask_id in varchar2
    is
    l_user_id number;
    begin
    l_user_id := get_member_id(p_user_name);
    insert
    into doclib_alerts (user_id, alert_type, alert_interval, doctask_id)
    values (l_user_id, p_alert_type, p_alert_interval, p_doctask_id);
    commit;
    exception when others then
    raise_application_error(-20001,'Exception adding alert: '||sqlerrm);
    end add_alert;
    procedure delete_alert (
    p_alert_id in varchar2
    is
    begin
    delete
    from doclib_alerts
    where alert_id = p_alert_id;
    commit;
    end delete_alert;
    procedure do_alerts (
    p_alert_type in varchar2,
    p_doctask_id in number,
    p_newdoc_id in number default null
    is
    l_subject varchar2(2000);
    l_url varchar2(4000);
    l_body clob;
    l_body_html clob;
    begin
    l_body := ' ';
    if p_alert_type = 'D' then
    --Do document alerts on specific document
    if p_doctask_id != 0 then
    for c1 in (select c.email_address, c.user_id, b.name, a.alert_interval, a.alert_id
    from doclib_alerts a, doclib_documents b, doclib_members c
    where a.alert_type = p_alert_type
    and a.doctask_id = b.doc_id
    and a.user_id = c.user_id
    and a.doctask_id = p_doctask_id ) loop
    l_subject := 'Document '||c1.name||' has been updated.';
    l_url := v('BASE_URL')||'/f?p='||v('APP_ID')||':2:::::P2_DOC_ID:'||p_newdoc_id;
    l_body_html := g_html_email_header||'<p />'||l_subject||'<p />Click to view.'||
    g_html_email_footer;
    if c1.alert_interval = 'I' then
    apex_mail.send(
    p_to => c1.email_address,
    p_from => c1.email_address,
    p_body => l_body,
    p_body_html => l_body_html,
    p_subj => l_subject );
    else --it is a daily alert, insert into todos
    if not alert_todo_already_exists(c1.user_id) then --make sure non-specific daily alert isn't already recorded
    insert
    into doclib_alerts_todo (alert_id, alert_url)
    values (c1.alert_id, l_url);
    end if;
    end if;
    end loop;
    update doclib_alerts
    set doctask_id = p_newdoc_id
    where alert_type = 'D'
    and doctask_id = p_doctask_id;
    end if;
    --Do document alerts on generic documents
    for c1 in (select c.email_address, c.user_id, a.alert_id, a.alert_interval
    from doclib_alerts a, doclib_members c
    where a.alert_type = p_alert_type
    and a.doctask_id = 0
    and a.user_id = c.user_id ) loop
    l_subject := 'A document has been added or updated in the document workspace.';
    l_url := v('BASE_URL')||'/f?p='||v('APP_ID')||':1';
    l_body_html := g_html_email_header||'<p />'||l_subject||'<p />Click to view.'||
    g_html_email_footer;
    if c1.alert_interval = 'I' then
    apex_mail.send(
    p_to => c1.email_address,
    p_from => c1.email_address,
    p_body => l_body,
    p_body_html => l_body_html,
    p_subj => l_subject );
    else --it is a daily alert, insert into todos
    if not alert_todo_already_exists(c1.user_id) then --make sure non-specific daily alert isn't already recorded
    insert
    into doclib_alerts_todo (alert_id, alert_url)
    values (c1.alert_id, l_url);
    end if;
    end if;
    end loop;
    else
    if p_doctask_id != 0 then
    --Do task alerts on specific tasks
    for c1 in (select c.email_address, c.user_id, b.name, a.alert_interval, a.alert_id
    from doclib_alerts a, doclib_tasks b, doclib_members c
    where a.alert_type = p_alert_type
    and a.doctask_id = b.task_id
    and a.user_id = c.user_id
    and a.doctask_id = p_doctask_id ) loop
    l_subject := 'Task '||c1.name||' has been updated.';
    l_url := v('BASE_URL')||'/f?p='||v('APP_ID')||':75:::::P75_TASK_ID:'||p_doctask_id;
    l_body_html := g_html_email_header||'<p />'||l_subject||'<p />Click to view.'||
    g_html_email_footer;
    if c1.alert_interval = 'I' then
    apex_mail.send(
    p_to => c1.email_address,
    p_from => c1.email_address,
    p_body => l_body,
    p_body_html => l_body_html,
    p_subj => l_subject );
    else --it is a daily alert, insert into todos
    if not alert_todo_already_exists(c1.user_id) then --make sure non-specific daily alert isn't already recorded
    insert
    into doclib_alerts_todo (alert_id, alert_url)
    values (c1.alert_id, l_url);
    end if;
    end if;
    end loop;
    end if;
    --Do task alerts on generic tasks
    for c1 in (select c.email_address, c.user_id, a.alert_id, a.alert_interval
    from doclib_alerts a, doclib_members c
    where a.alert_type = p_alert_type
    and a.doctask_id = 0
    and a.user_id = c.user_id ) loop
    l_subject := 'A task has been added or updated in the document workspace.';
    l_url := v('BASE_URL')||'/f?p='||v('APP_ID')||':1';
    l_body_html := g_html_email_header||'<p />'||l_subject||'<p />Click to view.'||
    g_html_email_footer;
    if c1.alert_interval = 'I' then
    apex_mail.send(
    p_to => c1.email_address,
    p_from => c1.email_address,
    p_body => l_body,
    p_body_html => l_body_html,
    p_subj => l_subject );
    else --it is a daily alert, insert into todos
    if not alert_todo_already_exists(c1.user_id) then --make sure non-specific daily alert isn't already recorded
    insert
    into doclib_alerts_todo (alert_id, alert_url)
    values (c1.alert_id, l_url);
    end if;
    end if;
    end loop;
    end if;
    end do_alerts;
    procedure do_alert_todos
    is
    l_subject varchar2(2000);
    l_body clob;
    l_body_html clob;
    begin
    wwv_flow_api.set_security_group_id;
    l_body := ' ';
    l_subject := 'Documents or tasks have been updated.';
    for c1 in (select distinct(c.email_address), b.user_id
    from doclib_members c, doclib_alerts b, doclib_alerts_todo a
    where a.alert_id = b.alert_id
    and b.user_id = c.user_id ) loop
    l_body_html := g_html_email_header||'<p />The following documents or tasks have been added or updated.';
    for c2 in (select b.alert_url
    from doclib_alerts a, doclib_alerts_todo b
    where a.alert_id = b.alert_id
    and a.user_id = c1.user_id ) loop
    l_body_html := l_body_html || '<p />'||c2.alert_url||'';
    end loop;
    l_body_html := l_body_html ||g_html_email_footer;
    apex_mail.send(
    p_to => c1.email_address,
    p_from => c1.email_address,
    p_body => l_body,
    p_body_html => l_body_html,
    p_subj => l_subject );
    end loop;
    delete from doclib_alerts_todo;
    commit;
    end do_alert_todos;
    procedure update_document (
    p_doc_id in varchar2,
    p_name in varchar2,
    p_filename in varchar2,
    p_user_name in varchar2,
    p_description in varchar2,
    p_attr1 in varchar2,
    p_attr2 in varchar2,
    p_attr3 in varchar2
    is
    l_doc_id number;
    l_checked_out_by varchar2(255);
    l_mime_type varchar2(48);
    l_cnt number;
    l_num_over number;
    begin
    if get_acl_id(p_user_name) < 2 then
    raise_application_error(-20001,'You are not authorized to update documents.');
    end if;
    l_checked_out_by := doc_is_checkedout_by(p_doc_id);
    --this can be optimistic locking mechanism
    if l_checked_out_by is not null and upper(l_checked_out_by) != upper(p_user_name) then
    raise_application_error(-20001,'This document is locked by '||l_checked_out_by);
    end if;
    for c1 in (select mime_type
    from apex_application_files
    where name = p_filename ) loop
    l_mime_type := c1.mime_type;
    end loop;
    for c1 in (select mime_type
    from doclib_documents
    where doc_id = p_doc_id ) loop
    if l_mime_type != c1.mime_type then
    delete
    from apex_application_files
    where name = p_filename;
    raise_application_error(-20001,'The document type to be checked in does not match the document type of the original document.');
    end if;
    end loop;
    if l_checked_out_by is not null then
    checkin(p_doc_id, p_user_name);
    end if;
    l_doc_id := doclib_nextval;
    add_document(l_doc_id, p_name, p_filename, p_user_name, p_description, p_attr1, p_attr2, p_attr3);
    update doclib_documents
    set revision_of = l_doc_id
    where doc_id = p_doc_id;
    l_cnt := 1;
    for c1 in (select count(*) cnt
    from doclib_documents
    where revision_of != 0
    and deleted_as_of = to_date('22-04-2004','DD-MM-YYYY') -- don't count logically deleted docs
    and name = p_name ) loop
    l_cnt := l_cnt + c1.cnt;
    end loop;
    --check whether we have hit max revisions as defined in workspace setting
    if v('DOC_WORKSPACE_VERSIONS') != '0' and l_cnt > to_number(v('DOC_WORKSPACE_VERSIONS')) then
    l_num_over := l_cnt - to_number(v('DOC_WORKSPACE_VERSIONS'));
    for c2 in (select doc_id
    from (select doc_id
    from doclib_documents
    where name = p_name
    order by version_no)
    where rownum <= l_num_over ) loop
    delete
    from doclib_documents
    where doc_id = c2.doc_id;
    end loop;
    end if;
    update doclib_documents
    set revision_of = l_doc_id
    where (revision_of != 0 or deleted_as_of != to_date('22-04-2004','DD-MM-YYYY'))
    and name = p_name;
    --preserve lock
    if l_checked_out_by is not null then
    update doclib_documents
    set checkedout_by = l_checked_out_by
    where doc_id = l_doc_id;
    end if;
    --do alerts
    do_alerts('D',p_doc_id, l_doc_id);
    --update tasks
    update doclib_tasks
    set doc_id = l_doc_id
    where doc_id = p_doc_id;
    commit;
    exception when others then
    raise_application_error(-20001,'Exception encountered updating document: '||sqlerrm);
    end update_document;
    procedure update_doc_attributes (
    p_doc_id in varchar2,
    p_user_name in varchar2,
    p_description in varchar2,
    p_attr1 in varchar2,
    p_attr2 in varchar2,
    p_attr3 in varchar2
    is
    begin
    if get_acl_id(p_user_name) < 2 then
    raise_application_error(-20001,'You are not authorized to update document attributes.');
    end if;
    update doclib_documents
    set description = p_description,
    attr1 = p_attr1,
    attr2 = p_attr2,
    attr3 = p_attr3
    where doc_id = p_doc_id;
    commit;
    exception when others then
    raise_application_error(-20001,'Exception encountered updating document attributes: '||sqlerrm);
    end update_doc_attributes;
    procedure checkout (
    p_doc_id in varchar2,
    p_user_name in varchar2
    is
    l_chkout_lst varchar2(32000);
    begin
    if get_acl_id(p_user_name) < 2 then
    --raise_application_error(-20001,'You are not authorized to checkout documents.');
    return_xml(p_doc_id,'CHECKOUT','You are not authorized to lock documents.',null,'FAILED',p_user_name);
    return;
    end if;
    --This can be the optimistic locking scheme
    if doc_is_checkedout_by(p_doc_id) is not null then
    --raise_application_error(-20001,'This document is already checked out.');
    return_xml(p_doc_id,'CHECKOUT','This document is already locked.',null,'FAILED',p_user_name);
    return;
    end if;
    update doclib_documents
    set checkedout_by = p_user_name
    where doc_id = p_doc_id;
    commit;
    l_chkout_lst := get_checkout_list(p_user_name);
    return_xml(p_doc_id,'CHECKOUT','Document successfully locked.',l_chkout_lst,'SUCCESS',p_user_name);
    exception when others then
    --raise_application_error(-20001,'Expection encountered checking out document: '||sqlerrm);
    return_xml(p_doc_id,'CHECKOUT','Expection encountered checking out document: '||sqlerrm,null,'FAILED',p_user_name);
    end checkout;
    procedure checkin (
    p_doc_id in varchar2,
    p_user_name in varchar2
    is
    begin
    if doc_is_checkedout_by(p_doc_id) is null then
    raise_application_error(-20001,'This document is not locked.');
    end if;
    update doclib_documents
    set checkedout_by = null
    where doc_id = p_doc_id;
    commit;
    exception when others then
    raise_application_error(-20001,'Exception encountered checking in document: '||sqlerrm);
    end checkin;
    procedure uncheckout (
    p_doc_id in varchar2,
    p_user_name in varchar2
    is
    l_checkedout_by varchar2(255);
    l_chkout_lst varchar2(32000);
    begin
    l_checkedout_by := doc_is_checkedout_by(p_doc_id);
    if l_checkedout_by is null then
    --raise_application_error(-20001,'This document is not checked out.');
    return_xml(p_doc_id,'UNCHECKOUT','This document is not locked.',null,'FAILED',p_user_name);
    return;
    end if;
    --This can be optimistic locking scheme
    if upper(l_checkedout_by) != upper(p_user_name) and get_acl_id(p_user_name) < 3 then
    --raise_application_error(-20001,'You are not authorized to uncheckout this document.');
    return_xml(p_doc_id,'UNCHECKOUT','You are not authorized to unlock this document.',null,'FAILED',p_user_name);
    return;
    end if;
    update doclib_documents
    set checkedout_by = null
    where doc_id = p_doc_id;
    commit;
    l_chkout_lst := get_checkout_list(p_user_name);
    return_xml(p_doc_id,'UNCHECKOUT','Unlock was successfull',l_chkout_lst,'SUCCESS',p_user_name);
    exception when others then
    --raise_application_error(-20001,'Exception encountered unchecking out document: '||sqlerrm);
    return_xml(p_doc_id,'UNCHECKOUT','Exception encountered unlocking document: '||sqlerrm,null,'FAILED',p_user_name);
    end uncheckout;
    procedure update_member (
    p_user_name in varchar2,
    p_member_id in varchar2,
    p_email in varchar2,
    p_acl_id in varchar2,
    p_retrieved in varchar2
    is
    l_retrieved date;
    begin
    l_retrieved := to_date(p_retrieved,'DD-MM-YYYY HH24:MI:SS');
    if get_acl_id(p_user_name) < 3 then
    raise_application_error(-20001,'You are not authorized to update members.');
    end if;
    --optimistic locking
    for c1 in (select null
    from doclib_members
    where user_id = p_member_id
    and updated_on > l_retrieved ) loop
    raise_application_error(-20001,'The member has been updated since you retrieved the data. Refresh and try again.');
    end loop;
    update doclib_members
    set email_address = p_email,
    role_id = p_acl_id
    where user_id = p_member_id;
    commit;
    exception when others then
    raise_application_error(-20001,'Exception encountered updating member: '||sqlerrm);
    end update_member;
    procedure update_member_email (
    p_user_name in varchar2,
    p_email in varchar2,
    p_retrieved in varchar2
    is
    l_user_id number;
    l_retrieved date;
    begin
    l_user_id := get_member_id(p_user_name);
    l_retrieved := to_date(p_retrieved,'DD-MM-YYYY HH24:MI:SS');
    --optimistic locking
    for c1 in (select null
    from doclib_members
    where user_id = l_user_id
    and updated_on > l_retrieved ) loop
    raise_application_error(-20001,'Remarkably, your email address changed since you retrieved the data. Refresh and try again.');
    end loop;
    update doclib_members
    set email_address = p_email
    where user_id = l_user_id;
    commit;
    exception when others then
    raise_application_error(-20001,'Exception encountered updating email: '||sqlerrm);
    end update_member_email;
    procedure update_task (
    p_task_id in varchar2,
    p_title in varchar2,
    p_user_name in varchar2,
    p_assigned in varchar2,
    p_priority in varchar2,
    p_status in varchar2,
    p_pct_complete in varchar2,
    p_description in varchar2,
    p_start_date in varchar2,
    p_due_date in varchar2,
    p_doc_id in varchar2,
    p_retrieved in varchar2
    is
    l_start_date date;
    l_due_date date;
    l_retrieved date;
    begin
    if get_acl_id(p_user_name) < 2 then
    raise_application_error(-20001,'You are not authorized to update tasks.');
    end if;
    l_retrieved := to_date(p_retrieved,'DD-MM-YYYY HH24:MI:SS');
    l_start_date := to_date(p_start_date,'DD-MM-YYYY HH24:MI');
    l_due_date := to_date(p_due_date, 'DD-MM-YYYY HH24:MI');
    --optimistic locking
    for c1 in (select null
    from doclib_tasks
    where task_id = p_task_id
    and updated_on > l_retrieved ) loop
    raise_application_error(-20001,'This task has been updated since you retrieved the data. Refresh and try again.');
    end loop;
    update doclib_tasks
    set assigned_to = p_assigned,
    priority_id = p_priority,
    status_id = p_status,
    pct_complete = p_pct_complete,
    name = p_title,
    description = p_description,
    start_date = l_start_date,
    due_date = l_due_date,
    doc_id = p_doc_id
    where task_id = p_task_id;
    do_alerts('T',p_task_id,null);
    commit;
    exception when others then
    raise_application_error(-20001,'Exception encountered updating task: '||sqlerrm);
    end update_task;
    procedure update_link (
    p_link_id in varchar2,
    p_user_name in varchar2,
    p_name in varchar2,
    p_url in varchar2,
    p_retrieved in varchar2
    is
    l_retrieved date;
    begin
    if get_acl_id(p_user_name) < 2 then
    raise_application_error(-20001,'You are not authorized to update links.');
    end if;
    l_retrieved := to_date(p_retrieved,'DD-MM-YYYY HH24:MI:SS');
    --optimistic locking
    for c1 in (select null
    from doclib_links
    where link_id = p_link_id
    and updated_on > l_retrieved ) loop
    raise_application_error(-20001,'This link has been updated since you retrieved the data. Refresh and try again.');
    end loop;
    update doclib_links
    set name = p_name,
    url = p_url
    where link_id = p_link_id;
    commit;
    exception when others then
    raise_application_error(-20001,'Exception encountered updating link: '||sqlerrm);
    end update_link;
    procedure update_announcement (
    p_an_id in varchar2,
    p_user_name in varchar2,
    p_title in varchar2,
    p_description in varchar2,
    p_expire_date in varchar2,
    p_retrieved in varchar2
    is
    l_expire_date date;
    l_retrieved date;
    begin
    if get_acl_id(p_user_name) < 2 then
    raise_application_error(-20001,'You are not authorized to update announcements.');
    end if;
    l_retrieved := to_date(p_retrieved,'DD-MM-YYYY HH24:MI:SS');
    l_expire_date := to_date(p_expire_date,'DD-MM-YYYY HH24:MI');
    --optimistic locking
    for c1 in (select null
    from doclib_announcements
    where an_id = p_an_id
    and updated_on > l_retrieved ) loop
    raise_application_error(-20001,'This task has been updated since you retrieved the data. Refresh and try again.');
    end loop;
    update doclib_announcements
    set title = p_title,
    description = p_description,
    expire_date = l_expire_date
    where an_id = p_an_id;
    commit;
    exception when others then
    raise_application_error(-20001,'Exception encountered updating announcement: '||sqlerrm);
    end update_announcement;
    procedure delete_document (
    p_doc_id in varchar2,
    p_user_name in varchar2,
    p_delete_all in varchar2 default null
    is
    l_date date := sysdate;
    l_checkedout_by varchar2(255);
    l_chkout_lst varchar2(32000);
    begin
    if get_acl_id(p_user_name) < 2 then
    --raise_application_error(-20001,'You are not authorized to delete documents.');
    return_xml(p_doc_id,'DELETE','You are not authorized to delete documents.',null,'FAILED',p_user_name);
    return;
    end if;
    l_checkedout_by := doc_is_checkedout_by(p_doc_id);
    if l_checkedout_by is not null and upper(l_checkedout_by) != upper(p_user_name) then
    --raise_application_error(-20001,'This document is currently checked out by '||l_checkedout_by);
    return_xml(p_doc_id,'DELETE','This document is currently locked by '||l_checkedout_by,null,'FAILED',p_user_name);
    return;
    end if;
    if p_delete_all = 'Y' then
    update doclib_documents
    set deleted_as_of = l_date
    where doc_id = p_doc_id
    or revision_of = p_doc_id;
    else
    update doclib_documents
    set deleted_as_of = l_date
    where doc_id = p_doc_id;
    end if;
    commit;
    l_chkout_lst := get_checkout_list(p_user_name);
    return_xml(p_doc_id,'DELETE','Document successfully deleted.',l_chkout_lst,'SUCCESS',p_user_name);
    exception when others then
    --raise_application_error(-20001,'Exception encountered deleting document: '||sqlerrm);
    return_xml(p_doc_id,'DELETE','Exception encountered deleting document: '||sqlerrm,null,'FAILED',p_user_name);
    end delete_document;
    procedure really_delete_document (
    p_user_name in varchar2,
    p_doc_id in varchar2
    is
    begin
    if get_acl_id(p_user_name) < 3 then
    raise_application_error(-20001,'You are not authorized to really delete documents.');
    end if;
    delete
    from doclib_documents
    where doc_id = p_doc_id;
    commit;
    exception when others then
    raise_application_error(-20001,'Exception encountered deleting document: '||sqlerrm);
    end really_delete_document;
    procedure delete_member (
    p_user_name in varchar2,
    p_user_id in varchar2
    is
    begin
    if get_acl_id(p_user_name) < 3 then
    raise_application_error(-20001,'You are not authorized to delete members.');
    end if;
    delete
    from doclib_members
    where user_id = p_user_id;
    commit;
    exception when others then
    raise_application_error(-20001,'Exception encountered deleting member: '||sqlerrm);
    end delete_member;
    procedure delete_task (
    p_user_name in varchar2,
    p_task_id in varchar2
    is
    begin
    if get_acl_id(p_user_name) < 2 then
    raise_application_error(-20001,'You are not authorized to delete tasks.');
    end if;
    delete
    from doclib_tasks
    where task_id = p_task_id;
    commit;
    exception when others then
    raise_application_error(-20001,'Exception encountered deleting task: '||sqlerrm);
    end delete_task;
    procedure delete_announcement (
    p_user_name in varchar2,
    p_an_id in varchar2
    is
    begin
    if get_acl_id(p_user_name) < 2 then
    raise_application_error(-20001,'You are not authorized to delete announcements.');
    end if;
    delete
    from doclib_announcements
    where an_id = p_an_id;
    commit;
    exception when others then
    raise_application_error(-20001,'Exception encountered deleting announcement: '||sqlerrm);
    end delete_announcement;
    procedure delete_link (
    p_user_name in varchar2,
    p_link_id in varchar2
    is
    begin
    if get_acl_id(p_user_name) < 2 then
    raise_application_error(-20001,'You are not authorized to delete links.');
    end if;
    delete
    from doclib_links
    where link_id = p_link_id;
    commit;
    exception when others then
    raise_application_error(-20001,'Exception encountered deleting link: '||sqlerrm);
    end delete_link;
    procedure make_doc_current (
    p_user_name in varchar2,
    p_name in varchar2,
    p_doc_id in varchar2
    is
    l_name varchar2(255);
    l_checkedout_by varchar2(255);
    l_curr_doc_id number;
    begin
    if get_acl_id(p_user_name) < 2 then
    raise_application_error(-20001,'You are not authorized to make this document current.');
    end if;
    l_checkedout_by := doc_is_checkedout_by(p_doc_id);
    if l_checkedout_by is not null and upper(l_checkedout_by) != upper(p_user_name) then
    raise_application_error(-20001,'This document is currently locked by '||l_checkedout_by);
    end if;
    for c1 in (select doc_id
    from doclib_documents
    where deleted_as_of = to_date('22-04-2004','DD-MM-YYYY')
    and revision_of = 0
    and name = p_name ) loop
    l_curr_doc_id := c1.doc_id;
    exit; -- this should only get one row, but just in case
    end loop;
    l_checkedout_by := doc_is_checkedout_by(l_curr_doc_id);
    if l_checkedout_by is not null and upper(l_checkedout_by) != upper(p_user_name) then
    raise_application_error(-20001,'This document is currently locked by '||l_checkedout_by);
    end if;
    update doclib_documents
    set revision_of = p_doc_id,
    checkedout_by = null --Revisions can't be locked
    where name = p_name
    and doc_id != p_doc_id;
    update doclib_documents
    set revision_of = 0,
    checkedout_by = l_checkedout_by --In case original document was locked by p_user_name
    where doc_id = p_doc_id;
    --do alerts
    do_alerts('D',l_curr_doc_id, p_doc_id);
    commit;
    exception when others then
    raise_application_error(-20001,'Exception encountered making document current: '||sqlerrm);
    end make_doc_current;
    procedure undelete_document (
    p_user_name in varchar2,
    p_doc_id in varchar2
    is
    begin
    if get_acl_id(p_user_name) < 3 then
    raise_application_error(-20001,'You are not authorized to undelete a document.');
    end if;
    update doclib_documents
    set deleted_as_of = to_date('22-04-2004','DD-MM-YYYY')
    where doc_id = p_doc_id;
    commit;
    exception when others then
    raise_application_error(-20001,'Exception encountered undeleting document: '||sqlerrm);
    end undelete_document;
    procedure send_invitation (
    p_user_name in varchar2,
    p_url in varchar2,
    p_email in varchar2,
    p_acl_id in varchar2,
    p_subject in varchar2,
    p_body in varchar2
    is
    l_body clob;
    l_role_name varchar2(30);
    l_from varchar2(255);
    begin
    for c1 in (select name
    from doclib_roles
    where role_id = p_acl_id ) loop
    l_role_name := c1.name;
    end loop;
    for c1 in (select email_address
    from doclib_members
    where user_name = p_user_name ) loop
    l_from := c1.email_address;
    end loop;
    l_body := g_html_email_header||chr(13)||'<p />'||p_body||chr(13);
    l_body := l_body ||chr(13)||'<p />'||p_user_name||' has granted you access to '||p_url||'.';
    l_body := l_body ||chr(13)||' Click the link to view the site. You have been granted access to the workspace with ';
    l_body := l_body ||chr(13)||'the role of: '||l_role_name||'.'||g_html_email_footer;
    apex_mail.send(
    p_to => p_email,
    p_from => l_from,
    p_body => to_clob(' '),
    p_body_html => l_body,
    p_subj => p_subject );
    end send_invitation;
    procedure delete_document_multi (
    p_doc_ids in varchar2,
    p_user_name in varchar2
    is
    l_date date := sysdate;
    l_checkedout_by varchar2(255);
    l_chkout_lst varchar2(32000);
    l_vc_arr2 apex_application_global.vc_arr2;
    l_doc_id number;
    l_curr_doc_id number;
    begin
    if get_acl_id(p_user_name) < 2 then
    --raise_application_error(-20001,'You are not authorized to delete documents.');
    return_xml(p_doc_ids,'DELETE_MULTI','You are not authorized to delete documents.',null,'FAILED',p_user_name);
    return;
    end if;
    l_vc_arr2 := apex_util.string_to_table(p_doc_ids,',');
    for c1 in (select revision_of
    from doclib_documents
    where doc_id = l_vc_arr2(1) ) loop
    l_curr_doc_id := c1.revision_of;
    end loop;
    for z in 1..l_vc_arr2.count loop
    l_checkedout_by := doc_is_checkedout_by(l_vc_arr2(z));
    if l_checkedout_by is not null and upper(l_checkedout_by) != upper(p_user_name) then
    --raise_application_error(-20001,'This document is currently checked out by '||l_checkedout_by);
    return_xml(l_vc_arr2(z),'DELETE_MULTI','This document is currently locked by '||l_checkedout_by,null,'FAILED',p_user_name);
    return;
    end if;
    update doclib_documents
    set deleted_as_of = l_date
    where doc_id = l_vc_arr2(z);
    end loop;
    commit;
    l_chkout_lst := get_checkout_list(p_user_name);
    return_xml(l_curr_doc_id,'DELETE_MULTI','Documents successfully deleted',l_chkout_lst,'SUCCESS',p_user_name);
    exception when others then
    --raise_application_error(-20001,'Exception encountered deleting document: '||sqlerrm);
    return_xml(p_doc_ids,'DELETE_MULTI','Exception encountered deleting documents '||sqlerrm,null,'FAILED',p_user_name);
    end delete_document_multi;
    procedure rollback_document (
    p_doc_id in varchar2,
    p_user_name in varchar2
    is
    l_date date := sysdate;
    l_checkedout_by varchar2(255);
    l_chkout_lst varchar2(32000);
    begin
    if get_acl_id(p_user_name) < 2 then
    return_xml(p_doc_id,'ROLLBACK','You are not authorized to rollback documents.',null,'FAILED',p_user_name);
    return;
    end if;
    l_checkedout_by := doc_is_checkedout_by(p_doc_id);
    --can be used as optimistic locking
    if l_checkedout_by is not null and upper(l_checkedout_by) != upper(p_user_name) then
    return_xml(p_doc_id,'ROLLBACK','This document is currently locked by '||l_checkedout_by,null,'FAILED',p_user_name);
    return;
    end if;
    update doclib_documents
    set deleted_as_of = l_date
    where doc_id = p_doc_id;
    for c1 in (select doc_id, name
    from doclib_documents
    where deleted_as_of = to_date('22-04-2004','DD-MM-YYYY')
    and revision_of = p_doc_id
    and version_no = (select max(version_no)
    from doclib_documents
    where deleted_as_of = to_date('22-04-2004','DD-MM-YYYY')
    and revision_of = p_doc_id) ) loop
    doclib.make_doc_current(
    p_user_name => p_user_name,
    p_name => c1.name,
    p_doc_id => c1.doc_id );
    apex_util.set_session_state('DOC_ID',c1.doc_id);
    end loop;
    commit;
    l_chkout_lst := get_checkout_list(p_user_name);
    return_xml(p_doc_id,'ROLLBACK','Document successfully rolled back',l_chkout_lst,'SUCCESS',p_user_name);
    exception when others then
    return_xml(p_doc_id,'ROLLBACK','Exception encountered rolling back document: '||sqlerrm,null,'FAILED',p_user_name);
    end rollback_document;
    /* Begin CBackstrom procedures and functions */
    PROCEDURE return_all_docs(p_doc_type IN VARCHAR2) IS
    l_checkedout_by VARCHAR2(4000);
    l_attr1 VARCHAR2(4000);
    l_attr2 VARCHAR2(4000);
    l_attr3 VARCHAR2(4000);
    BEGIN
    l_checkedout_by := v('P9_MEMBERS');
    l_attr1 := v('P9_ATTR1');
    l_attr2 := v('P9_ATTR2');
    l_attr3 := v('P9_ATTR3');
    IF(p_doc_type = 'XML') THEN
    owa_util.mime_header('text/xml', FALSE);
    htp.p('Cache-Control: no-cache');
    htp.p('Pragma: no-cache');
    owa_util.http_header_close;
    END IF;
    htp.p('<div id="filelist">');
    --htp.p('<div style="width:150px;"></div>');
    IF v('P9_DESC') IS NOT NULL THEN
    FOR c1 IN
    (SELECT score(1) sc,
    name,
    doc_id,
    checkedout_by,
    '<img src="' || decode(mime_type, 'application/vnd.oasis.opendocument.text', '' || v('APP_IMAGES') || 'icodt.GIF', 'application/vnd.ms-excel', '' || v('APP_IMAGES') || 'ICXLS.GIF', 'application/msword', '' || v('APP_IMAGES') || 'ICDOC.GIF', 'application/pdf', '' || v('APP_IMAGES') || 'icpdf.GIF', 'application/vnd.ms-powerpoint', '' || v('APP_IMAGES') || 'ICPPT.GIF', 'application/vnd.oasis.opendocument.spreadsheet', '' || v('APP_IMAGES') || 'iccalc.GIF', 'application/vnd.oasis.opendocument.presentation', '' || v('APP_IMAGES') || 'icodp.GIF', 'text/plain', '' || v('APP_IMAGES') || 'ICTXT.GIF', 'application/x-zip-compressed', '' || v('APP_IMAGES') || 'ICZIP.GIF', '' || v('APP_IMAGES') || 'ICGEN.GIF') || '" width="16" height="16" border="0" />' img
    FROM doclib_documents
    WHERE deleted_as_of = to_date('22-04-2004', 'DD-MM-YYYY')
    AND revision_of = 0
    AND(checkedout_by = l_checkedout_by OR l_checkedout_by = '0')
    AND(attr1 = l_attr1 OR l_attr1 = '0')
    AND(attr2 = l_attr2 OR l_attr2 = '0')
    AND(attr3 = l_attr3 OR l_attr3 = '0')
    AND contains(contents, doclib.parse_search_string(v('P9_DESC')), 1) > 0
    ORDER BY sc DESC)
    LOOP
    IF c1.checkedout_by IS NULL THEN
    htp.p('<a href="javascript:void(0) onclick="GetDoc(this,''' || c1.doc_id || ''')" id="' || c1.doc_id || '">' || c1.img || '  (' || c1.sc || ') '|| c1.name || '</a>');
    ELSIF c1.checkedout_by = apex_application.g_user THEN
    htp.p('<a href="javascript:void(0) onclick="GetDoc(this,''' || c1.doc_id || ''')" id="' || c1.doc_id || '" class="checkedoutme">' || c1.img || '  (' || c1.sc || ') ' || c1.name || '(' || c1.sc || ')</a>');
    ELSE
    htp.p('<a href="javascript:void(0) onclick="GetDoc(this,''' || c1.doc_id || ''')" id="' || c1.doc_id || '" class="checkedout">' || c1.img || '  (' || c1.sc || ') '|| c1.name || '(' || c1.sc || ')</a>');
    END IF;
    END LOOP;
    ELSE
    FOR c1 IN
    (SELECT name,
    doc_id,
    checkedout_by,
    '<img src="' ||decode(mime_type,'application/vnd.oasis.opendocument.text', ''|| v('APP_IMAGES')||
    'icodt.GIF','application/vnd.ms-excel',''||v('APP_IMAGES')||'ICXLS.GIF','application/msword',''||
    v('APP_IMAGES')||'ICDOC.GIF','application/pdf',''||v('APP_IMAGES')||'icpdf.GIF','application/vnd.ms-powerpoint',''||
    v('APP_IMAGES')||'ICPPT.GIF','application/vnd.oasis.opendocument.spreadsheet',''||v('APP_IMAGES')||
    'iccalc.GIF','application/vnd.oasis.opendocument.presentation',''||v('APP_IMAGES')||'icodp.GIF','text/plain',''||
    v('APP_IMAGES')||'ICTXT.GIF','application/x-zip-compressed',''||v('APP_IMAGES')||'ICZIP.GIF',''||v('APP_IMAGES')||
    'ICGEN.GIF')||'" width="16" height="16" border="0" />' img
    FROM doclib_documents
    WHERE deleted_as_of = to_date('22-04-2004', 'DD-MM-YYYY')
    AND revision_of = 0
    AND(checkedout_by = l_checkedout_by OR l_checkedout_by = '0')
    AND(attr1 = l_attr1 OR l_attr1 = '0')
    AND(attr2 = l_attr2 OR l_attr2 = '0')
    AND(attr3 = l_attr3 OR l_attr3 = '0')
    order by name, updated_on desc)
    LOOP
    IF c1.checkedout_by IS NULL THEN
    htp.p('<a href="javascript:void(0) onclick="GetDoc(this,''' || c1.doc_id || ''')" id="' || c1.doc_id || '">' || c1.img || '  ' || c1.name || '</a>');
    ELSIF c1.checkedout_by = apex_application.g_user THEN
    htp.p('<a href="javascript:void(0) onclick="GetDoc(this,''' || c1.doc_id || ''')" id="' || c1.doc_id || '" class="checkedoutme">' || c1.img || '  ' || c1.name || '</a>');
    ELSE
    htp.p('<a href="javascript:void(0) onclick="GetDoc(this,''' || c1.doc_id || ''')" id="' || c1.doc_id || '" class="checkedout">' || c1.img || '  ' || c1.name || '</a>');
    END if;
    END LOOP;
    END IF;
    htp.p('</div>');
    END;
    PROCEDURE doc_versions(p_doc_id IN VARCHAR2) IS
    l_checkedout_by VARCHAR2(4000);
    l_doc_name VARCHAR2(4000);
    BEGIN
    htp.p('<table id="doc_versions" cellpadding="0" border="0" cellspacing="0">');
    htp.p('<tr>');
    htp.p('<th><input type="checkbox" onclick="html_CheckAll(''doc_versions'',this.checked)" /></th>');
    htp.p('<th>Version</th>');
    htp.p('<th>Created</th>');
    htp.p('<th>Created By</th>');
    htp.p('</tr>');
    FOR c2 IN
    (SELECT doc_id,
    decode(revision_of,0,' ',apex_item.checkbox(1,doc_id)) a,
    name,
    version_no,
    created_on,
    created_by
    FROM doclib_documents
    WHERE deleted_as_of = to_date('22-04-2004', 'DD-MM-YYYY')
    AND(doc_id = p_doc_id OR revision_of = p_doc_id)
    ORDER BY version_no DESC)
    LOOP
    htp.p('<tr>');
    htp.p('<td>' || c2.a || '</td>');
    htp.p('<td><a id="filehref" href="apex_util.count_click?p_url=' || v('OWNER') || '.get_doc?p=' || c2.doc_id || '&p_cat=DOCS&p_id=' || c2.doc_id || '&p_user=' || v('APP_USER') || '&p_workspace=' || apex_custom_auth.get_security_group_id || '">' || c2.version_no || '</a></td>');
    htp.p('<td>' || to_char(c2.created_on, 'MM/DD/YYYY HH:MI AM') || '</td>');
    htp.p('<td>' || c2.created_by || '</td>');
    htp.p('</tr>');
    END LOOP;
    htp.p('</table>');
    END;
    FUNCTION doc_is_updated_by(p_doc_id IN VARCHAR2) RETURN VARCHAR2 IS
    BEGIN
    FOR c1 IN
    (SELECT updated_by
    FROM doclib_documents
    WHERE doc_id = p_doc_id)
    LOOP
    RETURN c1.updated_by;
    END LOOP;
    RETURN NULL;
    END doc_is_updated_by;
    FUNCTION doc_updated_date(p_doc_id IN VARCHAR2) RETURN VARCHAR2 IS
    BEGIN
    FOR c1 IN
    (SELECT to_char(updated_on, 'MM/DD/YYYY HH:MI AM') updated_on
    FROM doclib_documents
    WHERE doc_id = p_doc_id)
    LOOP
    RETURN c1.updated_on;
    END LOOP;
    RETURN NULL;
    END doc_updated_date;
    FUNCTION doc_created_date(p_doc_id IN VARCHAR2) RETURN VARCHAR2 IS
    BEGIN
    FOR c1 IN
    (SELECT to_char(created_on, 'MM/DD/YYYY HH:MI AM') created
    FROM doclib_documents
    WHERE doc_id = p_doc_id)
    LOOP
    RETURN c1.created;
    END LOOP;
    RETURN NULL;
    END doc_created_date;
    FUNCTION doc_linked_image(p_doc_id IN VARCHAR2) RETURN VARCHAR2 IS l_image_link VARCHAR2(4000);
    l_image_prefix VARCHAR2(4000);
    BEGIN
    l_image_link := '<a id="filehref" href="apex_util.count_click?p_url=' || v('OWNER') || '.get_doc?p=' || p_doc_id || '&p_cat=DOCS&p_id=' || p_doc_id || '&p_user=' || v('APP_USER') || '&p_workspace=' || apex_custom_auth.get_security_group_id || '">';
    l_image_prefix := v('APP_IMAGES');
    FOR c1 IN
    (SELECT mime_type,
    l_image_link || '<img src="' || decode(mime_type, 'application/vnd.oasis.opendocument.text', l_image_prefix || 'icodt.GIF', 'application/vnd.ms-excel', l_image_prefix || 'ICXLS.GIF', 'application/msword', l_image_prefix || 'ICDOC.GIF', 'application/pdf', l_image_prefix || 'icpdf.GIF', 'application/vnd.ms-powerpoint', l_image_prefix || 'ICPPT.GIF', 'application/vnd.oasis.opendocument.spreadsheet', l_image_prefix || 'iccalc.GIF', 'application/vnd.oasis.opendocument.presentation', l_image_prefix || 'icodp.GIF', 'text/plain', l_image_prefix || 'ICTXT.GIF', 'application/x-zip-compressed', l_image_prefix || 'ICZIP.GIF', l_image_prefix || 'ICGEN.GIF') || '" width="16" height="16" border="0" /></a>' image
    FROM doclib_documents
    WHERE doc_id = p_doc_id)
    LOOP
    RETURN c1.image;
    END LOOP;
    RETURN NULL;
    END doc_linked_image;
    FUNCTION doc_file_type(p_doc_id IN VARCHAR2) RETURN VARCHAR2 IS l_file_type VARCHAR2(4000);
    BEGIN
    FOR c1 IN
    (SELECT mime_type
    FROM doclib_documents
    WHERE doc_id = p_doc_id)
    LOOP
    RETURN c1.mime_type;
    END LOOP;
    RETURN NULL;
    END doc_file_type;
    PROCEDURE doc_attribute_tab(p_doc_id IN VARCHAR2, p_user_name IN VARCHAR2) IS
    BEGIN
    for c1 in (select attr1, attr2, attr3, description
    from doclib_documents
    where doc_id = p_doc_id ) loop
    htp.p('<table id="doc_attribute" cellpadding="0" cellspacing="0" border="0">');
    htp.p('<tr><th>'||v('DOC_WORKSPACE_LBL1')||'</th><td>'||APEX_ITEM.SELECT_LIST_FROM_LOV(1,c1.attr1,'ATTR1',null,'NO',null,null,'ATTR1')||'</td></tr>');
    htp.p('<tr><th>'||v('DOC_WORKSPACE_LBL2')||'</th><td>'||APEX_ITEM.SELECT_LIST_FROM_LOV(2,c1.attr2,'ATTR2',null,'NO',null,null,'ATTR2')||'</td></tr>');
    htp.p('<tr><th>'||v('DOC_WORKSPACE_LBL3')||'</th><td>'||APEX_ITEM.SELECT_LIST_FROM_LOV(3,c1.attr3,'ATTR3',null,'NO',null,null,'ATTR3')||'</td></tr>');
    htp.p('<tr><td colspan="2"><b>Description</b>
    <textarea id="desc">' || c1.description || '</textarea></td></tr>');
    htp.p('<tr><td colspan="2"><input type="button" onclick="doc_attribute_update()" value="Update Attributes" /></td></tr>');
    htp.p('</table>');
    end loop;
    END;
    PROCEDURE doc_detail(p_doc_id IN VARCHAR2, p_user_name IN VARCHAR2) IS
    l_checkedout_by VARCHAR2(4000);
    l_updated_by VARCHAR2(4000);
    l_created_date VARCHAR2(4000);
    l_updated_date VARCHAR2(4000);
    l_mime_type VARCHAR2(4000);
    l_doc_name VARCHAR2(4000);
    l_acl_id VARCHAR2(4000);
    BEGIN
    l_checkedout_by := doclib.doc_is_checkedout_by(p_doc_id);
    l_doc_name := doclib.get_doc_name(p_doc_id);
    l_acl_id := doclib.get_acl_id(p_user_name);
    l_updated_by := doc_is_updated_by(p_doc_id);
    l_mime_type := doc_file_type(p_doc_id);
    l_updated_date := doc_updated_date(p_doc_id);
    l_created_date := doc_created_date(p_doc_id);
    apex_util.set_session_state('DOC_ID', p_doc_id);
    apex_util.set_session_state('DOC_NAME', l_doc_name);
    htp.p('<div id="doc_detail">');
    htp.p('<div id="doc_header">');
    htp.p('<div id="doc_name"><a href="apex_util.count_click?p_url=' || v('OWNER') || '.get_doc?p=' || p_doc_id || '&p_cat=DOCS&p_id=' || p_doc_id || '&p_user=' || v('APP_USER') || '&p_workspace=' || apex_custom_auth.get_security_group_id || ">' || l_doc_name || '</a></div>');
    htp.p('<table><tr><td valign="top">');
    htp.p('<table>');
    htp.p('<tr><th>View :</th><td>' || doc_linked_image(p_doc_id) || '</td></tr>');
    htp.p('<tr><th>Locked By :</th><td id="checkedoutby">' || l_checkedout_by || '</td></tr>');
    htp.p('<tr><th>Modified By :</th><td id="modifiedby">' || l_updated_by || '</td></tr>');
    htp.p('</table>');
    htp.p('</td><td width="100">
    <td><td valign="top">');
    htp.p('<table>');
    htp.p('<tr><th>Updated Date :</th><td id="updateddate">' || l_updated_date || '</td></tr>');
    htp.p('<tr><th>Created Date :</th><td id="createddate">' || l_created_date || '</td></tr>');
    htp.p('<tr><th>Send Link :</th><td id="sendlink"><a href="mailto:' || doclib.get_member_email(p_user_name) || '?subject=' || l_doc_name || '&body=' || v('BASE_URL') || '/f?p=' || v('APP_ID') || ':2:::::P2_DOC_ID:' || p_doc_id || ">Click Here</a></td></tr>');
    htp.p('</table>');
    htp.p('</td></tr></table>');
    htp.p('</div>');
    htp.p('<div id="doc_actions">Actions : ');
    IF l_acl_id > 1 THEN
    IF l_checkedout_by IS NULL THEN
    htp.p('<a href="javascript:doc_Action(this,''' || p_doc_id || ''',''CHECKOUT'') id="checkout_button">Lock</a>');
    ELSIF l_checkedout_by = p_user_name OR l_acl_id > 2 THEN
    htp.p('<a href="javascript:doc_Action(this,''' || p_doc_id || ''',''UNCHECKOUT'') id="checkout_button">Unlock</a>');
    END IF;
    IF l_checkedout_by IS NULL OR l_checkedout_by = p_user_name THEN
    htp.p('Add Version');
    htp.p('Delete');
    END IF;
    -- htp.p('<a href="f?p=&APP_ID.:5:&SESSION.::::P5_NAME,P5_DOC_ID:' || l_doc_name || ',' || p_doc_id || ' id="versions_button">Versions</a>');
    END IF;
    htp.p('<a href="apex_util.count_click?p_url=' || v('OWNER') || '.get_doc?p=' || p_doc_id || '&p_cat=DOCS&p_id=' || p_doc_id || '&p_user=' || p_user_name || '&p_workspace=' || apex_custom_auth.get_security_group_id || ">View</a>');
    htp.p('<a href="f?p=' || v('APP_ID') || ':95:' || v('SESSION') || '::::P95_ALERT_TYPE,P95_ALERT_INTERVAL,P95_DOC_ID:D,,' || v('DOC_ID') || ">Alert Me</a>');
    htp.p('</div>');
    htp.p('<div id="action_message"></div>');
    htp.p('<div id="doc_tabs">');
    htp.p('<div id="doc_tabsbuttons">Versions<a id="tab3" href="javascript:void(0)" onclick="doc_Comments_Tab(''tab3'')">Comments</a>');
    if doclib.GET_ACL_ID(v('APP_USER')) > 1 then
    htp.p('Attributes');
    end if;
    htp.p('</div>');
    htp.p('<div id="doc_tabsbody">');
    htp.p('<div id="tab1_content">');
    doc_versions(p_doc_id);
    IF (l_checkedout_by IS NULL OR l_checkedout_by = p_user_name) and get_acl_id(v('APP_USER')) > 1 THEN
    htp.p('<hr /><input type="button" value="Delete All Versions" onclick="doc_Action(this,''' || p_doc_id || ''',''DELETE'')" />');
    if doc_has_revisions(p_doc_id) > 0 then
    htp.p('<input type="button" value="Delete Checked Versions" onclick="doc_Action(this,''' || p_doc_id || ''',''DELETE_CHECKED'')" />');
    htp.p('<input type="button" value="Delete Current Version (Rollback Version)" onclick="doc_Action(this,''' || p_doc_id || ''',''ROLLBACK'')" />');
    end if;
    END IF;
    htp.p('</div>');
    htp.p('<div id="tab2_content" style="display:none;">');
    doc_attribute_tab(p_doc_id, p_user_name);
    htp.p('</div>');
    htp.p('<div id="tab3_content" style="display:none;"><div id="doc_comments">
    </div></div>');
    htp.p('</div>');
    htp.p('</div>');
    htp.p('</div>');
    END;
    PROCEDURE doc_comments(p_doc_id IN VARCHAR2) IS
    BEGIN
    htp.p('<div>');
    htp.p('<table id="doc_versions" cellpadding="0" border="0" cellspacing="0">');
    htp.p('<tr><th>Member</th><th>Date</th><th>Comment</th></tr>');
    FOR c2 IN
    (SELECT description,
    created_by,
    created_on
    FROM doclib_documents
    WHERE(doc_id = p_doc_id OR revision_of = p_doc_id)
    AND(description IS NOT NULL OR description != '')
    AND deleted_as_of = to_date('22-04-2004','DD-MM-YYYY')
    ORDER BY created_on DESC)
    LOOP
    htp.p('<tr>' || '<td>' || c2.created_by || '</td><td>' || to_char(c2.created_on, 'MM/DD/YYYY HH:MI AM') || '</td><td>' || c2.description || '</td></tr>');
    END LOOP;
    htp.p('</table>');
    htp.p('</div>');
    END;
    /* End CBackstrom procedures and functions */
    end doclib;
    Error at line 1230: PL/SQL: SQL Statement ignored
    sync_index.sql
    declare
    l_job_id binary_integer;
    begin
    for c1 in (select job
    from user_jobs
    where what = 'ctx_ddl.sync_index(''doclib_docs_idx2'', ''2M'');' ) loop
    dbms_job.remove(c1.job);
    end loop;
    dbms_job.submit(
    job => l_job_id,
    what => 'ctx_ddl.sync_index(''doclib_docs_idx2'', ''2M'');',
    next_date => sysdate + 15/1440,
    interval => 'sysdate + 15/1440');
    end;
    ORA-06550: line 1, column 93:
    PLS-00201: identifier 'CTX_DDL.SYNC_INDEX' must be declared
    ORA-06550: line 1, column 93:
    PL/SQL: Statement ignored
    I would appreciate any suggestions.
    Thank you for your time.
    DanielD

  • Error in starting Adobe Bridge in Photoshop CS2

    I've just installed Photoshop CS2, however upon opening Adobe Bridge this error message appears " The application has failed to start because libagluc28.dll was not found. Reinstalling to application may fix the problem"
    I have reinstalled and click repair but to no avail
    I followed Adobe Support Knowledgebase solution and run CMD and this appears:
    c:Documents and Settings/Jesus M Ferraris>
    then i entered the command
    cacls c:\windows\installer /T /E /C /G administrators:F
    but an error message appears - 'cacls' is not recognized as an internal or external command, operable program or bathc file
    I also entered the next command
    cacls "c:\documents and setting\all users" /Y /E /C /G administrators:F
    still the same error as above appears, Please help, have I miss something or was my procedure correct...
    P4, 512ram, WXP 80gHD

    Very useful.
    Good Luck.
    My
    Si
    tes

  • Windows Vista: Ipod Error Message, no longer read by PCs

    Hello,
    I have a 5th generation black ipod video with 30GB of memory.
    The other day I hooked it up to my laptop (Toshiba, 4 months old) that it's been functioning on with no problems whatsoever. This weird error message flashed twice about it not being able to sync because of some software problem.
    Eversince then, the only thing I can charge my ipod on is the family treadmill in the basement (~_~) as no other computer in the house recognizes it. I can't even charge it through the wall sockets, either.
    I have changed the ipod cord, still no luck. I've also reset the device about 3 or 4 times and uninstalled, restarted the laptop then reinstalled itunes. I would like to reset it back to factory settings but that's impossible as computers/laptops don't pick it up. I live very far from a Mac store...
    What's a girl to do? I can't live without my Busta Rhymes and Wu-Tang Clan!
    Any advice would be greatly appreciated! Thanks!

    you have to update Vista go to this site and up-date http://windowsupdate.microsoft.com

  • Error while offsetting a variable

    Hello Experts
    I want to display the data for last 5 years in my query. So I tried using the SAP exit variable Current Calendar Year (0CYEAR) and the offset it by 5. However, I am getting the following error message for the query "System error in program SAPLRR12 and form REP_ASSIGN_INITIAL_OPT-01"
    Any Help on this is appreciated and points will be assigned.
    Thanks

    Thanks Chetan for your prompt reply. I have assigned points.
    But I would appreciate if you help me clear my understanding of offseting a variable.
    Say if the Current Calendar Year variable returns 2008, then will offseting that variable by 5 return me the data for years 2008, 2007, 2006, 2005 , 2004. Or, will it just return me the data for 2008 - 5 = 2004 only.
    Thanks
    Rishi

  • Safari doesn't open and comes up with this error report.

    Please help.
    Process:         Safari [474]
    Path:            /Applications/Safari.app/Contents/MacOS/Safari
    Identifier:      com.apple.Safari
    Version:         7.0.4 (9537.76.4)
    Build Info:      WebBrowser-7537076004000000~3
    Code Type:       X86-64 (Native)
    Parent Process:  launchd [180]
    Responsible:     Safari [474]
    User ID:         501
    Date/Time:       2014-06-01 17:47:34.928 +0100
    OS Version:      Mac OS X 10.9.3 (13D65)
    Report Version:  11
    Anonymous UUID:  C44E082E-A9DF-3DBD-218D-A6DF6F4FFD83
    Crashed Thread:  17
    Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
    Exception Codes: EXC_I386_GPFLT
    External Modification Warnings:
    Thread creation by external task.
    Application Specific Information:
    Process Model:
    Multiple Web Processes
    Thread 0:: Dispatch queue: com.apple.main-thread
    0   com.apple.JavaScriptCore                0x000000010d1b8320 ***::HashTableAddResult<***::HashTableIterator<unsigned long, ***::KeyValuePair<unsigned long, unsigned long>, ***::KeyValuePairKeyExtractor<***::KeyValuePair<unsigned long, unsigned long> >, ***::IntHash<unsigned long>, ***::HashMapValueTraits<***::HashTraits<unsigned long>, ***::HashTraits<unsigned long> >, ***::HashTraits<unsigned long> > > ***::HashTable<unsigned long, ***::KeyValuePair<unsigned long, unsigned long>, ***::KeyValuePairKeyExtractor<***::KeyValuePair<unsigned long, unsigned long> >, ***::IntHash<unsigned long>, ***::HashMapValueTraits<***::HashTraits<unsigned long>, ***::HashTraits<unsigned long> >, ***::HashTraits<unsigned long> >::add<***::HashMapTranslator<***::HashMapValueTraits<***::HashTraits<unsigned long>, ***::HashTraits<unsigned long> >, ***::IntHash<unsigned long> >, unsigned long, unsigned long>(unsigned long const&, unsigned long const&) + 0
    1   com.apple.JavaScriptCore                0x000000010d0e3507 ***::MetaAllocator::incrementPageOccupancy(void*, unsigned long) + 119
    2   com.apple.JavaScriptCore                0x000000010d0e2b9a ***::MetaAllocator::allocate(unsigned long, void*) + 234
    3   com.apple.JavaScriptCore                0x000000010d0e2a46 JSC::ExecutableAllocator::allocate(JSC::VM&, unsigned long, void*, JSC::JITCompilationEffort) + 54
    4   com.apple.JavaScriptCore                0x000000010d0e2990 JSC::LinkBuffer::linkCode(void*, JSC::JITCompilationEffort) + 64
    5   com.apple.JavaScriptCore                0x000000010d0e1d50 JSC::nativeForGenerator(JSC::VM*, JSC::CodeSpecializationKind) + 4320
    6   com.apple.JavaScriptCore                0x000000010d0e0c60 JSC::nativeCallGenerator(JSC::VM*) + 16
    7   com.apple.JavaScriptCore                0x000000010d0e0648 JSC::JITThunks::ctiStub(JSC::VM*, JSC::MacroAssemblerCodeRef (*)(JSC::VM*)) + 104
    8   com.apple.JavaScriptCore                0x000000010d0e05cc JSC::JIT::privateCompileCTINativeCall(JSC::VM*, long long (*)(JSC::ExecState*)) + 28
    9   com.apple.JavaScriptCore                0x000000010d0e0155 JSC::JITThunks::hostFunctionStub(JSC::VM*, long long (*)(JSC::ExecState*), long long (*)(JSC::ExecState*)) + 165
    10  com.apple.JavaScriptCore                0x000000010d0dffc6 JSC::JSFunction::create(JSC::ExecState*, JSC::JSGlobalObject*, int, ***::String const&, long long (*)(JSC::ExecState*), JSC::Intrinsic, long long (*)(JSC::ExecState*)) + 118
    11  com.apple.JavaScriptCore                0x000000010d0dfd9c JSC::FunctionPrototype::addFunctionProperties(JSC::ExecState*, JSC::JSGlobalObject*, JSC::JSFunction**, JSC::JSFunction**) + 108
    12  com.apple.JavaScriptCore                0x000000010d0da5e6 JSC::JSGlobalObject::reset(JSC::JSValue) + 838
    13  com.apple.JavaScriptCore                0x000000010d0fd025 JSGlobalContextCreateInGroup + 533
    14  com.apple.Safari.framework              0x000000010ca2b0e1 Safari::SearchProvidersController::sortSearchProviders(***::Vector<***::RefPtr< Safari::SearchProvider>, 0ul, ***::CrashOnOverflow>&, NSString*) + 47
    15  com.apple.Safari.framework              0x000000010ca2e87a Safari::SearchProvidersController::parseProvidersFromManifest(Safari::CF::Dicti onary const&, ***::Vector<***::RefPtr<Safari::SearchProvider>, 0ul, ***::CrashOnOverflow>&, Safari::SearchProvider const*&, int&) + 576
    16  com.apple.Safari.framework              0x000000010ca2afbc Safari::SearchProvidersController::loadAllProviders(Safari::CF::URL const&) + 120
    17  com.apple.Safari.framework              0x000000010ca2ae9d Safari::SearchProvidersController::SearchProvidersController() + 123
    18  com.apple.Safari.framework              0x000000010ca2adee Safari::SearchProvidersController::shared() + 46
    19  com.apple.Safari.framework              0x000000010c8a95ce -[BrowserWindowControllerMac _defaultSearchProviderDisplayName] + 11
    20  com.apple.Safari.framework              0x000000010c89b6f1 -[BrowserWindowControllerMac unifiedFieldPlaceholderString] + 65
    21  com.apple.Safari.framework              0x000000010c8a9657 -[BrowserWindowControllerMac _updateSearchFieldProviderText] + 61
    22  com.apple.Safari.framework              0x000000010c8a9d90 -[BrowserWindowControllerMac _setUpLocationBar] + 203
    23  com.apple.Safari.framework              0x000000010c899610 -[BrowserWindowControllerMac windowDidLoad] + 907
    24  com.apple.AppKit                        0x00007fff8c1273ac -[NSWindowController _windowDidLoad] + 450
    25  com.apple.Safari.framework              0x000000010cacbc13 -[WindowController _windowDidLoad] + 43
    26  com.apple.AppKit                        0x00007fff8c10dfa6 -[NSWindowController window] + 110
    27  com.apple.Safari.framework              0x000000010c899c9a -[BrowserWindowControllerMac showWindow:] + 50
    28  com.apple.AppKit                        0x00007fff8c1db5f5 -[NSDocument showWindows] + 100
    29  com.apple.Safari.framework              0x000000010c86800b -[BrowserDocument showWindows] + 39
    30  com.apple.AppKit                        0x00007fff8c1da168 -[NSDocumentController openUntitledDocumentAndDisplay:error:] + 458
    31  com.apple.AppKit                        0x00007fff8c1d9f5f -[NSDocumentController newDocument:] + 36
    32  com.apple.Safari.framework              0x000000010c9fb4e3 -[WindowReopener reopenWithArrayOfWindowControllerNames:] + 120
    33  com.apple.Safari.framework              0x000000010c9fb6a4 -[WindowReopener init] + 117
    34  com.apple.Safari.framework              0x000000010c9fb7b3 +[WindowReopener reopenWindows] + 43
    35  com.apple.Safari.framework              0x000000010c7dd0f7 -[AppController _openUntitledFileWhileLaunching:] + 157
    36  com.apple.Safari.framework              0x000000010c7d9fa3 -[AppController applicationOpenUntitledFile:] + 22
    37  com.apple.AppKit                        0x00007fff8c108db0 -[NSApplication _doOpenUntitled] + 447
    38  com.apple.AppKit                        0x00007fff8c02bdf1 __58-[NSApplication(NSAppleEventHandling) _handleAEOpenEvent:]_block_invoke + 254
    39  com.apple.AppKit                        0x00007fff8c02bb80 __95-[NSPersistentUIManager restoreAllPersistentStateRegisteringAsReadyWhenDone:completionHandler:]_block_i nvoke538 + 37
    40  com.apple.AppKit                        0x00007fff8c02bb13 __78-[NSDocumentController(NSInternal) _autoreopenDocumentsWithCompletionHandler:]_block_invoke_2 + 140
    41  com.apple.AppKit                        0x00007fff8c02b6fd -[NSDocumentController(NSInternal) _autoreopenDocumentsWithCompletionHandler:] + 746
    42  com.apple.AppKit                        0x00007fff8c023aa5 -[NSPersistentUIRestorer finishedRestoringWindowsWithZOrder:completionHandler:] + 1714
    43  com.apple.AppKit                        0x00007fff8be980b9 -[NSPersistentUIRestorer restoreStateFromRecords:usingDelegate:completionHandler:] + 2110
    44  com.apple.AppKit                        0x00007fff8be97759 -[NSPersistentUIManager restoreAllPersistentStateRegisteringAsReadyWhenDone:completionHandler:] + 398
    45  com.apple.AppKit                        0x00007fff8be96a56 -[NSApplication _reopenWindowsAsNecessaryIncludingRestorableState:registeringAsReady:completion Handler:] + 398
    46  com.apple.AppKit                        0x00007fff8be96799 -[NSApplication(NSAppleEventHandling) _handleAEOpenEvent:] + 557
    47  com.apple.AppKit                        0x00007fff8be961fb -[NSApplication(NSAppleEventHandling) _handleCoreEvent:withReplyEvent:] + 242
    48  com.apple.Foundation                    0x00007fff95c9bf0a -[NSAppleEventManager dispatchRawAppleEvent:withRawReply:handlerRefCon:] + 294
    49  com.apple.Foundation                    0x00007fff95c9bd7d _NSAppleEventManagerGenericHandler + 106
    50  com.apple.AE                            0x00007fff8e96de1f aeDispatchAppleEvent(AEDesc const*, AEDesc*, unsigned int, unsigned char*) + 381
    51  com.apple.AE                            0x00007fff8e96dc32 dispatchEventAndSendReply(AEDesc const*, AEDesc*) + 31
    52  com.apple.AE                            0x00007fff8e96db36 aeProcessAppleEvent + 315
    53  com.apple.HIToolbox                     0x00007fff91463161 AEProcessAppleEvent + 56
    54  com.apple.AppKit                        0x00007fff8be920d6 _DPSNextEvent + 1026
    55  com.apple.AppKit                        0x00007fff8be918bb -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 122
    56  com.apple.Safari.framework              0x000000010c82cd00 -[BrowserApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 161
    57  com.apple.AppKit                        0x00007fff8be859bc -[NSApplication run] + 553
    58  com.apple.AppKit                        0x00007fff8be707a3 NSApplicationMain + 940
    59  com.apple.Safari.framework              0x000000010c9fec8d SafariMain + 267
    60  libdyld.dylib                           0x00007fff94b0c5fd start + 1
    Thread 1:
    0   libsystem_kernel.dylib                  0x00007fff96d0ae6a __workq_kernreturn + 10
    1   libsystem_pthread.dylib                 0x00007fff9509af08 _pthread_wqthread + 330
    2   libsystem_pthread.dylib                 0x00007fff9509dfb9 start_wqthread + 13
    Thread 2:: Dispatch queue: com.apple.libdispatch-manager
    0   libsystem_kernel.dylib                  0x00007fff96d0b662 kevent64 + 10
    1   libdispatch.dylib                       0x00007fff8eff2421 _dispatch_mgr_invoke + 239
    2   libdispatch.dylib                       0x00007fff8eff2136 _dispatch_mgr_thread + 52
    Thread 3:
    0   libsystem_kernel.dylib                  0x00007fff96d0ae6a __workq_kernreturn + 10
    1   libsystem_pthread.dylib                 0x00007fff9509af08 _pthread_wqthread + 330
    2   libsystem_pthread.dylib                 0x00007fff9509dfb9 start_wqthread + 13
    Thread 4:: Dispatch queue: com.apple.CFURLCACHE_work_queue
    0   libsystem_kernel.dylib                  0x00007fff96d0b422 getdirentriesattr + 10
    1   com.apple.CoreServicesInternal          0x00007fff974cb938 ftsattr_build + 1019
    2   com.apple.CoreServicesInternal          0x00007fff974cadbe ftsattr_read$INODE64 + 377
    3   com.apple.CoreServicesInternal          0x00007fff974c79ba _GetDirectoryURLs(_CFURLEnumerator*) + 1378
    4   com.apple.CoreServicesInternal          0x00007fff974c68dc _URLEnumeratorGetNextURL + 157
    5   com.apple.CFNetwork                     0x00007fff8e52df7a CFURLCacheFS::getFileSystemUsage() const + 178
    6   com.apple.CFNetwork                     0x00007fff8e52dd4a __CFURLCache::GetFileSystemPersistentStoreSizeFromDisk() const + 58
    7   com.apple.CFNetwork                     0x00007fff8e52cdc5 __CFURLCache::OpenDatabase() + 555
    8   com.apple.CFNetwork                     0x00007fff8e52cb3f __CFURLCache::ProcessCacheTasks0(bool) + 1373
    9   com.apple.CFNetwork                     0x00007fff8e52c481 __CFURLCache::ProcessCacheTasks(bool) + 53
    10  com.apple.CFNetwork                     0x00007fff8e52bf56 __CFURLCache::_CFURLCacheTimerCallback0() + 286
    11  com.apple.CFNetwork                     0x00007fff8e52bdd7 __CFURLCache::_CFURLCacheTimerCallback(void*) + 43
    12  com.apple.CFNetwork                     0x00007fff8e52bcff ___ZN12__CFURLCache29SignalWorkerTaskToPerformWorkEv_block_invoke + 18
    13  libdispatch.dylib                       0x00007fff8eff31bb _dispatch_call_block_and_release + 12
    14  libdispatch.dylib                       0x00007fff8eff028d _dispatch_client_callout + 8
    15  libdispatch.dylib                       0x00007fff8eff2673 _dispatch_queue_drain + 451
    16  libdispatch.dylib                       0x00007fff8eff39c1 _dispatch_queue_invoke + 110
    17  libdispatch.dylib                       0x00007fff8eff1f87 _dispatch_root_queue_drain + 75
    18  libdispatch.dylib                       0x00007fff8eff3177 _dispatch_worker_thread2 + 40
    19  libsystem_pthread.dylib                 0x00007fff9509aef8 _pthread_wqthread + 314
    20  libsystem_pthread.dylib                 0x00007fff9509dfb9 start_wqthread + 13
    Thread 5:: WebCore: IconDatabase
    0   libsystem_kernel.dylib                  0x00007fff96d0b962 pread + 10
    1   libsqlite3.dylib                        0x00007fff8b8161d4 unixRead + 100
    2   libsqlite3.dylib                        0x00007fff8b83c5ee readDbPage + 478
    3   libsqlite3.dylib                        0x00007fff8b83b18d sqlite3PagerAcquire + 349
    4   libsqlite3.dylib                        0x00007fff8b8e83a1 checkTreePage + 289
    5   libsqlite3.dylib                        0x00007fff8b8e87ca checkTreePage + 1354
    6   libsqlite3.dylib                        0x00007fff8b863d53 sqlite3VdbeExec + 59651
    7   libsqlite3.dylib                        0x00007fff8b85440a sqlite3_step + 666
    8   com.apple.WebCore                       0x000000010db3bec9 WebCore::SQLiteStatement::step() + 73
    9   com.apple.WebCore                       0x000000010e285d5e WebCore::IconDatabase::checkIntegrity() + 110
    10  com.apple.WebCore                       0x000000010db3b7b1 WebCore::IconDatabase::performOpenInitialization() + 65
    11  com.apple.WebCore                       0x000000010db3b0c3 WebCore::IconDatabase::iconDatabaseSyncThread() + 259
    12  com.apple.JavaScriptCore                0x000000010d0c9f3f ***::wtfThreadEntryPoint(void*) + 15
    13  libsystem_pthread.dylib                 0x00007fff95099899 _pthread_body + 138
    14  libsystem_pthread.dylib                 0x00007fff9509972a _pthread_start + 137
    15  libsystem_pthread.dylib                 0x00007fff9509dfc9 thread_start + 13
    Thread 6:
    0   libsystem_kernel.dylib                  0x00007fff96d0ae6a __workq_kernreturn + 10
    1   libsystem_pthread.dylib                 0x00007fff9509af08 _pthread_wqthread + 330
    2   libsystem_pthread.dylib                 0x00007fff9509dfb9 start_wqthread + 13
    Thread 7:
    0   libsystem_kernel.dylib                  0x00007fff96d0ae6a __workq_kernreturn + 10
    1   libsystem_pthread.dylib                 0x00007fff9509af08 _pthread_wqthread + 330
    2   libsystem_pthread.dylib                 0x00007fff9509dfb9 start_wqthread + 13
    Thread 8:
    0   libsystem_kernel.dylib                  0x00007fff96d0ae6a __workq_kernreturn + 10
    1   libsystem_pthread.dylib                 0x00007fff9509af08 _pthread_wqthread + 330
    2   libsystem_pthread.dylib                 0x00007fff9509dfb9 start_wqthread + 13
    Thread 9:
    0   libsystem_kernel.dylib                  0x00007fff96d0ae6a __workq_kernreturn + 10
    1   libsystem_pthread.dylib                 0x00007fff9509af08 _pthread_wqthread + 330
    2   libsystem_pthread.dylib                 0x00007fff9509dfb9 start_wqthread + 13
    Thread 10:: com.apple.CoreAnimation.render-server
    0   libsystem_kernel.dylib                  0x00007fff96d06a1a mach_msg_trap + 10
    1   libsystem_kernel.dylib                  0x00007fff96d05d18 mach_msg + 64
    2   com.apple.QuartzCore                    0x00007fff961c3377 CA::Render::Server::server_thread(void*) + 195
    3   com.apple.QuartzCore                    0x00007fff961c32ad thread_fun + 25
    4   libsystem_pthread.dylib                 0x00007fff95099899 _pthread_body + 138
    5   libsystem_pthread.dylib                 0x00007fff9509972a _pthread_start + 137
    6   libsystem_pthread.dylib                 0x00007fff9509dfc9 thread_start + 13
    Thread 11:: com.apple.NSURLConnectionLoader
    0   libsystem_kernel.dylib                  0x00007fff96d06a1a mach_msg_trap + 10
    1   libsystem_kernel.dylib                  0x00007fff96d05d18 mach_msg + 64
    2   com.apple.CoreFoundation                0x00007fff96abcfc5 __CFRunLoopServiceMachPort + 181
    3   com.apple.CoreFoundation                0x00007fff96abc5e9 __CFRunLoopRun + 1161
    4   com.apple.CoreFoundation                0x00007fff96abbf25 CFRunLoopRunSpecific + 309
    5   com.apple.Foundation                    0x00007fff95ce1967 +[NSURLConnection(Loader) _resourceLoadLoop:] + 348
    6   com.apple.Foundation                    0x00007fff95ce176b __NSThread__main__ + 1318
    7   libsystem_pthread.dylib                 0x00007fff95099899 _pthread_body + 138
    8   libsystem_pthread.dylib                 0x00007fff9509972a _pthread_start + 137
    9   libsystem_pthread.dylib                 0x00007fff9509dfc9 thread_start + 13
    Thread 12:: com.apple.appkit-heartbeat
    0   libsystem_kernel.dylib                  0x00007fff96d0aa3a __semwait_signal + 10
    1   libsystem_c.dylib                       0x00007fff904bcdc0 nanosleep + 200
    2   libsystem_c.dylib                       0x00007fff904bccb2 usleep + 54
    3   com.apple.AppKit                        0x00007fff8c0f617d -[NSUIHeartBeat _heartBeatThread:] + 2132
    4   com.apple.Foundation                    0x00007fff95ce176b __NSThread__main__ + 1318
    5   libsystem_pthread.dylib                 0x00007fff95099899 _pthread_body + 138
    6   libsystem_pthread.dylib                 0x00007fff9509972a _pthread_start + 137
    7   libsystem_pthread.dylib                 0x00007fff9509dfc9 thread_start + 13
    Thread 13:: JavaScriptCore::BlockFree
    0   libsystem_kernel.dylib                  0x00007fff96d0a716 __psynch_cvwait + 10
    1   libsystem_pthread.dylib                 0x00007fff9509bc3b _pthread_cond_wait + 727
    2   com.apple.JavaScriptCore                0x000000010d0d50f6 ***::ThreadCondition::timedWait(***::Mutex&, double) + 118
    3   com.apple.JavaScriptCore                0x000000010d0d4c15 JSC::BlockAllocator::blockFreeingThreadMain() + 117
    4   com.apple.JavaScriptCore                0x000000010d0c9f3f ***::wtfThreadEntryPoint(void*) + 15
    5   libsystem_pthread.dylib                 0x00007fff95099899 _pthread_body + 138
    6   libsystem_pthread.dylib                 0x00007fff9509972a _pthread_start + 137
    7   libsystem_pthread.dylib                 0x00007fff9509dfc9 thread_start + 13
    Thread 14:: JavaScriptCore::Marking
    0   libsystem_kernel.dylib                  0x00007fff96d0a716 __psynch_cvwait + 10
    1   libsystem_pthread.dylib                 0x00007fff9509bc3b _pthread_cond_wait + 727
    2   com.apple.JavaScriptCore                0x000000010d0d5717 JSC::GCThread::waitForNextPhase() + 119
    3   com.apple.JavaScriptCore                0x000000010d0d55a8 JSC::GCThread::gcThreadMain() + 88
    4   com.apple.JavaScriptCore                0x000000010d0c9f3f ***::wtfThreadEntryPoint(void*) + 15
    5   libsystem_pthread.dylib                 0x00007fff95099899 _pthread_body + 138
    6   libsystem_pthread.dylib                 0x00007fff9509972a _pthread_start + 137
    7   libsystem_pthread.dylib                 0x00007fff9509dfc9 thread_start + 13
    Thread 15:: JavaScriptCore::Marking
    0   libsystem_kernel.dylib                  0x00007fff96d0a716 __psynch_cvwait + 10
    1   libsystem_pthread.dylib                 0x00007fff9509bc3b _pthread_cond_wait + 727
    2   com.apple.JavaScriptCore                0x000000010d0d5717 JSC::GCThread::waitForNextPhase() + 119
    3   com.apple.JavaScriptCore                0x000000010d0d55a8 JSC::GCThread::gcThreadMain() + 88
    4   com.apple.JavaScriptCore                0x000000010d0c9f3f ***::wtfThreadEntryPoint(void*) + 15
    5   libsystem_pthread.dylib                 0x00007fff95099899 _pthread_body + 138
    6   libsystem_pthread.dylib                 0x00007fff9509972a _pthread_start + 137
    7   libsystem_pthread.dylib                 0x00007fff9509dfc9 thread_start + 13
    Thread 16:: JavaScriptCore::Marking
    0   libsystem_kernel.dylib                  0x00007fff96d0a716 __psynch_cvwait + 10
    1   libsystem_pthread.dylib                 0x00007fff9509bc3b _pthread_cond_wait + 727
    2   com.apple.JavaScriptCore                0x000000010d0d5717 JSC::GCThread::waitForNextPhase() + 119
    3   com.apple.JavaScriptCore                0x000000010d0d55a8 JSC::GCThread::gcThreadMain() + 88
    4   com.apple.JavaScriptCore                0x000000010d0c9f3f ***::wtfThreadEntryPoint(void*) + 15
    5   libsystem_pthread.dylib                 0x00007fff95099899 _pthread_body + 138
    6   libsystem_pthread.dylib                 0x00007fff9509972a _pthread_start + 137
    7   libsystem_pthread.dylib                 0x00007fff9509dfc9 thread_start + 13
    Thread 17 Crashed:
    0   libsystem_c.dylib                       0x00007fff904ae4a1 __xvprintf + 106
    Thread 17 crashed with X86 Thread State (64-bit):
      rax: 0x000000015436a864  rbx: 0x00007fff7b840002  rcx: 0x00007fff7b84e940  rdx: 0x00007fff7b84f4a0
      rdi: 0xffffffffffffffff  rsi: 0x0000000000000000  rbp: 0x000000015436ae44  rsp: 0x000000015436a844
       r8: 0x0000000154509c37   r9: 0x000000015436af34  r10: 0x0000000000000000  r11: 0x0000000000000206
      r12: 0x000000000000000a  r13: 0x0000000000000000  r14: 0xffffffffffffffff  r15: 0x00007fff7b84f4a0
      rip: 0x00007fff904ae4a1  rfl: 0x0000000000010202  cr2: 0x0000000154369050
    Logical CPU:     0
    Error Code:      0x00000000
    Trap Number:     13
    Binary Images:
           0x10c7c6000 -        0x10c7c6ffd  com.apple.Safari (7.0.4 - 9537.76.4) <BE71E110-8F31-3710-AC01-96EFEEE5037C> /Applications/Safari.app/Contents/MacOS/Safari
           0x10c7d0000 -        0x10ccd6ffb  com.apple.Safari.framework (9537 - 9537.76.4) <28E2BB7D-87E5-357C-B22E-D4091B5AF7EE> /System/Library/StagedFrameworks/Safari/Safari.framework/Versions/A/Safari
           0x10d0c1000 -        0x10d438ff6  com.apple.JavaScriptCore (9537 - 9537.76.1) <EB1F11D7-80BA-366C-8807-159575F41CE7> /System/Library/StagedFrameworks/Safari/JavaScriptCore.framework/Versions/A/Jav aScriptCore
           0x10d531000 -        0x10d667ffc  com.apple.WebKit (9537 - 9537.76.4) <D3F786EA-9E87-3BFA-9B39-C938C0EC1F5A> /System/Library/StagedFrameworks/Safari/WebKit.framework/Versions/A/WebKit
           0x10d75c000 -        0x10d94dff3  com.apple.WebKit2 (9537 - 9537.76.4) <7753BA2C-1279-396D-8044-AE1D001A5A57> /System/Library/StagedFrameworks/Safari/WebKit2.framework/Versions/A/WebKit2
           0x10db35000 -        0x10e989ff3  com.apple.WebCore (9537 - 9537.76.4) <4DC363A5-28FB-343B-9E56-D261D321D97B> /System/Library/StagedFrameworks/Safari/WebCore.framework/Versions/A/WebCore
           0x15422a000 -        0x154231fff  com.apple.SyncedDefaults (1.3 - 91.30.1) <26F0AD10-86CC-31A4-899C-097269680E05> /System/Library/PrivateFrameworks/SyncedDefaults.framework/SyncedDefaults
        0x7fff686cf000 -     0x7fff68702817  dyld (239.4) <042C4CED-6FB2-3B1C-948B-CAF2EE3B9F7A> /usr/lib/dyld
        0x7fff8abd4000 -     0x7fff8ac01ff2  com.apple.frameworks.CoreDaemon (1.3 - 1.3) <43A137C4-3E72-37DC-945F-92569C12AAD4> /System/Library/PrivateFrameworks/CoreDaemon.framework/Versions/B/CoreDaemon
        0x7fff8ac02000 -     0x7fff8b050fef  com.apple.VideoToolbox (1.0 - 1273.54) <4699BB55-7387-3981-9217-869215F00CA9> /System/Library/Frameworks/VideoToolbox.framework/Versions/A/VideoToolbox
        0x7fff8b051000 -     0x7fff8b052fff  libquit.dylib (161.2) <7B9C07B6-8993-32C8-89C2-23D2E7FA85BA> /usr/lib/libquit.dylib
        0x7fff8b053000 -     0x7fff8b055ff3  libsystem_configuration.dylib (596.15) <4998CB6A-9D54-390A-9F57-5D1AC53C135C> /usr/lib/system/libsystem_configuration.dylib
        0x7fff8b24d000 -     0x7fff8b583fff  com.apple.MediaToolbox (1.0 - 1273.54) <E11683F7-BB60-37EB-98B6-BD519D93CB30> /System/Library/Frameworks/MediaToolbox.framework/Versions/A/MediaToolbox
        0x7fff8b80e000 -     0x7fff8b8f8fff  libsqlite3.dylib (158) <00269BF9-43BE-39E0-9C85-24585B9923C8> /usr/lib/libsqlite3.dylib
        0x7fff8b8f9000 -     0x7fff8b94cfff  com.apple.ScalableUserInterface (1.0 - 1) <CF745298-7373-38D2-B3B1-727D5A569E48> /System/Library/Frameworks/QuartzCore.framework/Versions/A/Frameworks/ScalableU serInterface.framework/Versions/A/ScalableUserInterface
        0x7fff8b94d000 -     0x7fff8ba53ff7  com.apple.ImageIO.framework (3.3.0 - 1043) <C4ADE5B1-A540-34E1-A043-118185489C9D> /System/Library/Frameworks/ImageIO.framework/Versions/A/ImageIO
        0x7fff8ba54000 -     0x7fff8bb0cff7  com.apple.DiscRecording (8.0 - 8000.4.6) <CDAAAD04-A1D0-3C67-ABCC-EFC9E8D44E7E> /System/Library/Frameworks/DiscRecording.framework/Versions/A/DiscRecording
        0x7fff8be6e000 -     0x7fff8c9e4ff7  com.apple.AppKit (6.9 - 1265.20) <D2A7AF23-0FEA-3D7D-9CF5-B4E262224577> /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
        0x7fff8c9e5000 -     0x7fff8cba3fff  com.apple.GeoServices (1.0 - 702.15.12) <5A4D463F-689F-3822-BF26-A19D51503019> /System/Library/PrivateFrameworks/GeoServices.framework/Versions/A/GeoServices
        0x7fff8cba4000 -     0x7fff8cbb0fff  com.apple.CalendarAgentLink (7.0 - 138.2) <D56910F9-5CC0-32D8-BA85-0631240F9B71> /System/Library/PrivateFrameworks/CalendarAgentLink.framework/Versions/A/Calend arAgentLink
        0x7fff8cbb1000 -     0x7fff8cd69ffb  libicucore.A.dylib (511.32) <A7CE7DAD-D3AD-36A2-BE4F-25C5F21FADBB> /usr/lib/libicucore.A.dylib
        0x7fff8cd83000 -     0x7fff8cea5fff  com.apple.avfoundation (2.0 - 651.12.1) <FF001F98-E198-3B1D-A7EB-A8C48E6E34A3> /System/Library/Frameworks/AVFoundation.framework/Versions/A/AVFoundation
        0x7fff8ceb5000 -     0x7fff8cec6fff  com.apple.idsfoundation (10.0 - 1000) <D3E6646B-4118-30D3-B4F7-DA9A28B396E4> /System/Library/PrivateFrameworks/IDSFoundation.framework/Versions/A/IDSFoundat ion
        0x7fff8ceca000 -     0x7fff8cf15fff  com.apple.ImageCaptureCore (5.0 - 5.0) <F529EDDC-E2F5-30CA-9938-AF23296B5C5B> /System/Library/Frameworks/ImageCaptureCore.framework/Versions/A/ImageCaptureCo re
        0x7fff8cf16000 -     0x7fff8cf18fff  com.apple.Mangrove (1.0 - 1) <72F5CBC7-4E78-374E-98EA-C3700136904E> /System/Library/PrivateFrameworks/Mangrove.framework/Versions/A/Mangrove
        0x7fff8cf19000 -     0x7fff8cf2aff7  libsystem_asl.dylib (217.1.4) <655FB343-52CF-3E2F-B14D-BEBF5AAEF94D> /usr/lib/system/libsystem_asl.dylib
        0x7fff8cf45000 -     0x7fff8d099ff3  com.apple.audio.toolbox.AudioToolbox (1.10 - 1.10) <69B273E8-5A8E-3FC7-B807-C16B657662FE> /System/Library/Frameworks/AudioToolbox.framework/Versions/A/AudioToolbox
        0x7fff8d09a000 -     0x7fff8d0a6ff7  com.apple.KerberosHelper (4.0 - 1.0) <6D64703B-D7A3-3EF7-89AB-16F7F89333FC> /System/Library/PrivateFrameworks/KerberosHelper.framework/Versions/A/KerberosH elper
        0x7fff8d0a7000 -     0x7fff8d0afff3  libCGCMS.A.dylib (599.23.13) <59F7AEED-90EB-35C2-85A6-5BC44CC9B3FA> /System/Library/Frameworks/CoreGraphics.framework/Versions/A/Resources/libCGCMS .A.dylib
        0x7fff8d0ca000 -     0x7fff8d18cff5  com.apple.CoreText (367.20 - 367.20) <B80D086D-93A9-3C35-860E-9C3FDD027F3B> /System/Library/Frameworks/CoreText.framework/Versions/A/CoreText
        0x7fff8d5f4000 -     0x7fff8d5fcff7  com.apple.AppleSRP (5.0 - 1) <ABC7F088-1FD5-3768-B9F3-847F355E90B3> /System/Library/PrivateFrameworks/AppleSRP.framework/Versions/A/AppleSRP
        0x7fff8d5fd000 -     0x7fff8d636ff7  com.apple.QD (3.50 - 298) <C1F20764-DEF0-34CF-B3AB-AB5480D64E66> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ QD.framework/Versions/A/QD
        0x7fff8d637000 -     0x7fff8d638ffb  libremovefile.dylib (33) <3543F917-928E-3DB2-A2F4-7AB73B4970EF> /usr/lib/system/libremovefile.dylib
        0x7fff8d639000 -     0x7fff8d682fff  com.apple.CoreMedia (1.0 - 1273.54) <CAB7303A-9AB2-317A-99C3-BEAA8AE8764B> /System/Library/Frameworks/CoreMedia.framework/Versions/A/CoreMedia
        0x7fff8d689000 -     0x7fff8d692ffd  com.apple.CommonAuth (4.0 - 2.0) <32BA436F-6319-3A0B-B5D2-2EB75FF36B5B> /System/Library/PrivateFrameworks/CommonAuth.framework/Versions/A/CommonAuth
        0x7fff8d693000 -     0x7fff8d6dafff  libFontRegistry.dylib (127) <A77A0480-AA5D-3CC8-8B68-69985CD546DC> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ATS.framework/Versions/A/Resources/libFontRegistry.dylib
        0x7fff8d6db000 -     0x7fff8d705ff7  libsandbox.1.dylib (278.11) <BD3D8652-8871-36DB-A27D-3BE4F18428B4> /usr/lib/libsandbox.1.dylib
        0x7fff8d706000 -     0x7fff8d874ff7  libBLAS.dylib (1094.5) <DE93A590-5FA5-32A2-A16C-5D7D7361769F> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.fr amework/Versions/A/libBLAS.dylib
        0x7fff8d8f4000 -     0x7fff8d9a4ff7  libvMisc.dylib (423.32) <049C0735-1808-39B9-943F-76CB8021744F> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.fr amework/Versions/A/libvMisc.dylib
        0x7fff8d9a5000 -     0x7fff8dbffffd  com.apple.security (7.0 - 55471.14.4) <1D5DA20E-DB48-3E1D-9BF5-BAA694192B25> /System/Library/Frameworks/Security.framework/Versions/A/Security
        0x7fff8dc00000 -     0x7fff8dc25ff7  com.apple.ChunkingLibrary (2.0 - 155.1) <B845DC7A-D1EA-31E2-967C-D1FE0C628036> /System/Library/PrivateFrameworks/ChunkingLibrary.framework/Versions/A/Chunking Library
        0x7fff8dc3e000 -     0x7fff8dc3eff7  libkeymgr.dylib (28) <3AA8D85D-CF00-3BD3-A5A0-E28E1A32A6D8> /usr/lib/system/libkeymgr.dylib
        0x7fff8dc3f000 -     0x7fff8dc4ffff  libbsm.0.dylib (33) <2CAC00A2-1352-302A-88FA-C567D4D69179> /usr/lib/libbsm.0.dylib
        0x7fff8dc50000 -     0x7fff8dd19fff  com.apple.LaunchServices (572.26 - 572.26) <EF8A4A15-0861-35C5-9744-5E1BC5C26DD9> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchS ervices.framework/Versions/A/LaunchServices
        0x7fff8dd1a000 -     0x7fff8dd68ff7  com.apple.opencl (2.3.59 - 2.3.59) <044485A4-A50C-34CE-A1F9-35A50CC68313> /System/Library/Frameworks/OpenCL.framework/Versions/A/OpenCL
        0x7fff8dd69000 -     0x7fff8dd6cff7  com.apple.LoginUICore (3.0 - 3.0) <1ECBDA90-D6ED-3333-83EB-9C8232DFAD7C> /System/Library/PrivateFrameworks/LoginUIKit.framework/Versions/A/Frameworks/Lo ginUICore.framework/Versions/A/LoginUICore
        0x7fff8dd6d000 -     0x7fff8de5cfff  libFontParser.dylib (111.1) <835A8253-6AB9-3AAB-9CBF-171440DEC486> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ATS.framework/Versions/A/Resources/libFontParser.dylib
        0x7fff8de5d000 -     0x7fff8deaafff  com.apple.AppleVAFramework (5.0.27 - 5.0.27) <608D91BD-9D88-3FAB-9A06-24C1DAEA092D> /System/Library/PrivateFrameworks/AppleVA.framework/Versions/A/AppleVA
        0x7fff8deab000 -     0x7fff8df0effb  com.apple.SystemConfiguration (1.13.1 - 1.13.1) <2C8E1A73-5AD6-3A7D-8ED8-D6755555A993> /System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfi guration
        0x7fff8e0ce000 -     0x7fff8e0cffff  com.apple.TrustEvaluationAgent (2.0 - 25) <334A82F4-4AE4-3719-A511-86D0B0723E2B> /System/Library/PrivateFrameworks/TrustEvaluationAgent.framework/Versions/A/Tru stEvaluationAgent
        0x7fff8e0d0000 -     0x7fff8e130fff  com.apple.ISSupport (1.9.9 - 57) <E1E343D7-222C-3458-9D1F-FC600B7F1C50> /System/Library/PrivateFrameworks/ISSupport.framework/Versions/A/ISSupport
        0x7fff8e131000 -     0x7fff8e137ff7  com.apple.XPCService (2.0 - 1) <2CE632D7-FE57-36CF-91D4-C57D0F2E0BFE> /System/Library/PrivateFrameworks/XPCService.framework/Versions/A/XPCService
        0x7fff8e138000 -     0x7fff8e519ffe  libLAPACK.dylib (1094.5) <7E7A9B8D-1638-3914-BAE0-663B69865986> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.fr amework/Versions/A/libLAPACK.dylib
        0x7fff8e51a000 -     0x7fff8e68aff4  com.apple.CFNetwork (673.4 - 673.4) <F3BF6020-99BE-3844-A7B8-352B93AD02F3> /System/Library/Frameworks/CFNetwork.framework/Versions/A/CFNetwork
        0x7fff8e68b000 -     0x7fff8e75cfff  com.apple.QuickLookUIFramework (5.0 - 622.7) <13841701-34C2-353D-868D-3E08D020C90F> /System/Library/Frameworks/Quartz.framework/Versions/A/Frameworks/QuickLookUI.f ramework/Versions/A/QuickLookUI
        0x7fff8e789000 -     0x7fff8e793ff7  com.apple.bsd.ServiceManagement (2.0 - 2.0) <2D27B498-BB9C-3D88-B05A-76908A8A26F3> /System/Library/Frameworks/ServiceManagement.framework/Versions/A/ServiceManage ment
        0x7fff8e794000 -     0x7fff8e7abffa  libAVFAudio.dylib (32.2) <52DA516B-DE79-322C-9E1B-2658019289D7> /System/Library/Frameworks/AVFoundation.framework/Versions/A/Resources/libAVFAu dio.dylib
        0x7fff8e915000 -     0x7fff8e916ff7  libodfde.dylib (20) <C00A4EBA-44BC-3C53-BFD0-819B03FFD462> /usr/lib/libodfde.dylib
        0x7fff8e917000 -     0x7fff8e95fff7  com.apple.ExchangeWebServices (4.0 - 193) <867EDAF0-5863-397E-BA75-855878D68949> /System/Library/PrivateFrameworks/ExchangeWebServices.framework/Versions/A/Exch angeWebServices
        0x7fff8e960000 -     0x7fff8e9bbffb  com.apple.AE (665.5 - 665.5) <BBA230F9-144C-3CAB-A77A-0621719244CD> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/AE.fram ework/Versions/A/AE
        0x7fff8e9bc000 -     0x7fff8e9bcfff  com.apple.AOSMigrate (1.0 - 1) <ABA8F3F2-BC96-3F89-AAF4-1AA459A0BCBD> /System/Library/PrivateFrameworks/AOSMigrate.framework/Versions/A/AOSMigrate
        0x7fff8e9e8000 -     0x7fff8e9ecff7  libheimdal-asn1.dylib (323.92.1) <CAE21FFF-5763-399C-B7C5-EEBFFEEF2242> /usr/lib/libheimdal-asn1.dylib
        0x7fff8e9ed000 -     0x7fff8e9efff7  com.apple.securityhi (9.0 - 55005) <18C42525-688C-3D47-B9C9-1E0F8F58FA64> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SecurityHI.fr amework/Versions/A/SecurityHI
        0x7fff8eef7000 -     0x7fff8eef7fff  com.apple.Accelerate.vecLib (3.9 - vecLib 3.9) <F8D0CC77-98AC-3B58-9FE6-0C25421827B6> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.fr amework/Versions/A/vecLib
        0x7fff8eef8000 -     0x7fff8ef36ff7  libGLImage.dylib (9.6.1) <5E02B38C-9F36-39BE-8746-724F0D8BBFC0> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLImage.dyl ib
        0x7fff8ef37000 -     0x7fff8ef3cfff  com.apple.DiskArbitration (2.6 - 2.6) <A4165553-770E-3D27-B217-01FC1F852B87> /System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration
        0x7fff8efef000 -     0x7fff8f009fff  libdispatch.dylib (339.92.1) <C4E4A18D-3C3B-3C9C-8709-A4270D998DE7> /usr/lib/system/libdispatch.dylib
        0x7fff8f014000 -     0x7fff8f020ff7  com.apple.OpenDirectory (10.9 - 173.90.1) <256C265B-7FA6-326D-9F60-18DADF5F3A0E> /System/Library/Frameworks/OpenDirectory.framework/Versions/A/OpenDirectory
        0x7fff8f096000 -     0x7fff8f0bbff7  com.apple.CoreVideo (1.8 - 117.2) <4674339E-26D0-35FA-9958-422832B39B12> /System/Library/Frameworks/CoreVideo.framework/Versions/A/CoreVideo
        0x7fff8f0bc000 -     0x7fff8f180ff7  com.apple.backup.framework (1.5.3 - 1.5.3) <088FEDED-BF5C-33F4-A51A-646C8149BDAA> /System/Library/PrivateFrameworks/Backup.framework/Versions/A/Backup
        0x7fff8f3af000 -     0x7fff8f437ff7  com.apple.CorePDF (4.0 - 4) <92D15ED1-D2E1-3ECB-93FF-42888219A99F> /System/Library/PrivateFrameworks/CorePDF.framework/Versions/A/CorePDF
        0x7fff8f44b000 -     0x7fff8f463ff7  com.apple.openscripting (1.4 - 157) <B3B037D7-1019-31E6-9D17-08E699AF3701> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/OpenScripting .framework/Versions/A/OpenScripting
        0x7fff8f4ab000 -     0x7fff8f4daff9  com.apple.GSS (4.0 - 2.0) <44E914BE-B0D0-3E05-9451-CA9E539AFA52> /System/Library/Frameworks/GSS.framework/Versions/A/GSS
        0x7fff8f563000 -     0x7fff8f56eff7  com.apple.NetAuth (5.0 - 5.0) <C811E662-9EC3-3B74-808A-A75D624F326B> /System/Library/PrivateFrameworks/NetAuth.framework/Versions/A/NetAuth
        0x7fff8f56f000 -     0x7fff8f5fbff7  com.apple.ink.framework (10.9 - 207) <8A50B893-AD03-3826-8555-A54FEAF08F47> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Ink.framework /Versions/A/Ink
        0x7fff8f647000 -     0x7fff8f647fff  com.apple.Accelerate (1.9 - Accelerate 1.9) <509BB27A-AE62-366D-86D8-0B06D217CF56> /System/Library/Frameworks/Accelerate.framework/Versions/A/Accelerate
        0x7fff8f648000 -     0x7fff8f677fd2  libsystem_m.dylib (3047.16) <B7F0E2E4-2777-33FC-A787-D6430B630D54> /usr/lib/system/libsystem_m.dylib
        0x7fff8f69c000 -     0x7fff8f8e4ff7  com.apple.CoreData (107 - 481.3) <E78734AA-E3D0-33CB-A014-620BBCAB2E96> /System/Library/Frameworks/CoreData.framework/Versions/A/CoreData
        0x7fff8f99b000 -     0x7fff902baf43  com.apple.CoreGraphics (1.600.0 - 599.23.13) <3A1952C7-1D67-3DEC-A5AB-5399FF4F2A92> /System/Library/Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics
        0x7fff902c0000 -     0x7fff9038bfff  libvDSP.dylib (423.32) <3BF732BE-DDE0-38EB-8C54-E4E3C64F77A7> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.fr amework/Versions/A/libvDSP.dylib
        0x7fff9038c000 -     0x7fff9038effb  libutil.dylib (34) <DAC4A6CF-A1BB-3874-9569-A919316D30E8> /usr/lib/libutil.dylib
        0x7fff9038f000 -     0x7fff903edff7  com.apple.corelocation (1486.17 - 1486.24) <9FBB29F0-E000-3190-A96C-9EAA5CCCA2A0> /System/Library/Frameworks/CoreLocation.framework/Versions/A/CoreLocation
        0x7fff903ee000 -     0x7fff90440fff  libc++.1.dylib (120) <4F68DFC5-2077-39A8-A449-CAC5FDEE7BDE> /usr/lib/libc++.1.dylib
        0x7fff90441000 -     0x7fff904caff7  libsystem_c.dylib (997.90.3) <6FD3A400-4BB2-3B95-B90C-BE6E9D0D78FA> /usr/lib/system/libsystem_c.dylib
        0x7fff904cb000 -     0x7fff904cdff7  libquarantine.dylib (71) <7A1A2BCB-C03D-3A25-BFA4-3E569B2D2C38> /usr/lib/system/libquarantine.dylib
        0x7fff904ce000 -     0x7fff90525fff  com.apple.ViewBridge (1.0 - 46.2) <4AF3CB98-7691-39A2-8DC3-ABE5CC55CE7F> /System/Library/PrivateFrameworks/ViewBridge.framework/Versions/A/ViewBridge
        0x7fff90526000 -     0x7fff9052cff7  libsystem_platform.dylib (24.90.1) <3C3D3DA8-32B9-3243-98EC-D89B9A1670B3> /usr/lib/system/libsystem_platform.dylib
        0x7fff9055a000 -     0x7fff90571ff7  com.apple.CFOpenDirectory (10.9 - 173.90.1) <EBC0A1F2-9054-3D39-99AE-A3F655E55D6A> /System/Library/Frameworks/OpenDirectory.framework/Versions/A/Frameworks/CFOpen Directory.framework/Versions/A/CFOpenDirectory
        0x7fff90572000 -     0x7fff90572fff  com.apple.CoreServices (59 - 59) <7A697B5E-F179-30DF-93F2-8B503CEEEFD5> /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices
        0x7fff90573000 -     0x7fff9059aff7  libsystem_network.dylib (241.3) <8B1E1F1D-A5CC-3BAE-8B1E-ABC84337A364> /usr/lib/system/libsystem_network.dylib
        0x7fff9059b000 -     0x7fff905a4ffb  libCGInterfaces.dylib (271) <68EFBEFE-7506-3235-99A2-5B69EDBFD7B8> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vImage.fr amework/Versions/A/Resources/libCGInterfaces.dylib
        0x7fff905a5000 -     0x7fff905d3ff7  com.apple.securityinterface (9.0 - 55047) <0346D8A9-2CAA-38F3-A741-5FBA5E9F1E7C> /System/Library/Frameworks/SecurityInterface.framework/Versions/A/SecurityInter face
        0x7fff905d4000 -     0x7fff905e3ff8  com.apple.LangAnalysis (1.7.0 - 1.7.0) <8FE131B6-1180-3892-98F5-C9C9B79072D4> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ LangAnalysis.framework/Versions/A/LangAnalysis
        0x7fff905e4000 -     0x7fff90614fff  com.apple.IconServices (25 - 25.17) <4751127E-FBD5-3ED5-8510-08D4E4166EFE> /System/Library/PrivateFrameworks/IconServices.framework/Versions/A/IconService s
        0x7fff9061b000 -     0x7fff90674fff  libTIFF.dylib (1043) <D7CAE68F-6087-3B40-9CB8-EC6DB47BF877> /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libTIFF.dylib
        0x7fff90675000 -     0x7fff9068bfff  com.apple.CoreMediaAuthoring (2.2 - 947) <F1886A05-1C29-3F88-88C0-4A1013530AD1> /System/Library/PrivateFrameworks/CoreMediaAuthoring.framework/Versions/A/CoreM ediaAuthoring
        0x7fff9068c000 -     0x7fff906dafff  libcorecrypto.dylib (161.1) <F3973C28-14B6-3006-BB2B-00DD7F09ABC7> /usr/lib/system/libcorecrypto.dylib
        0x7fff906db000 -     0x7fff90716fff  com.apple.bom (14.0 - 193.1) <EF24A562-6D3C-379E-8B9B-FAE0E4A0EF7C> /System/Library/PrivateFrameworks/Bom.framework/Versions/A/Bom
        0x7fff9077e000 -     0x7fff907e0ff7  com.apple.WhitePagesFramework (10.7.0 - 141.0) <F95E1174-37B7-300C-8ECE-E67A711B6721> /System/Library/PrivateFrameworks/WhitePages.framework/Versions/A/WhitePages
        0x7fff907e1000 -     0x7fff907e2ffc  com.apple.SafariServices.framework (9537 - 9537.76.4) <33EBCBCD-6A93-3DED-AA0A-5237B878C3FE> /System/Library/PrivateFrameworks/SafariServices.framework/Versions/A/SafariSer vices
        0x7fff907f6000 -     0x7fff90800ff7  com.apple.ProtocolBuffer (1 - 182.1.3) <82E68598-A8AA-3AF1-843E-2A64F19472D4> /System/Library/PrivateFrameworks/ProtocolBuffer.framework/Versions/A/ProtocolB uffer
        0x7fff90801000 -     0x7fff90803ff7  com.apple.diagnosticlogcollection (10.0 - 1000) <5CA6D8A2-DEA6-33C3-91BC-F3B076C0500B> /System/Library/PrivateFrameworks/DiagnosticLogCollection.framework/Versions/A/ DiagnosticLogCollection
        0x7fff90804000 -     0x7fff90d27fff  com.apple.QuartzComposer (5.1 - 319) <8B90921F-911B-3240-A1D5-3C084F3E6A36> /System/Library/Frameworks/Quartz.framework/Versions/A/Frameworks/QuartzCompose r.framework/Versions/A/QuartzComposer
        0x7fff90d28000 -     0x7fff90d28fff  com.apple.quartzframework (1.5 - 1.5) <3B2A72DB-39FC-3C5B-98BE-605F37777F37> /System/Library/Frameworks/Quartz.framework/Versions/A/Quartz
        0x7fff90d29000 -     0x7fff90db2fff  com.apple.ColorSync (4.9.0 - 4.9.0) <B756B908-9AD1-3F5D-83F9-7A0B068387D2> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ColorSync.framework/Versions/A/ColorSync
        0x7fff90db3000 -     0x7fff90dc0ff4  com.apple.Librarian (1.2 - 1) <F1A2744D-8536-32C7-8218-9972C6300DAE> /System/Library/PrivateFrameworks/Librarian.framework/Versions/A/Librarian
        0x7fff90ded000 -     0x7fff90f1cfef  com.apple.MediaControlSender (2.0 - 200.34.4) <FC24EC8D-2E46-3F76-AF63-749F30857B96> /System/Library/PrivateFrameworks/MediaControlSender.framework/Versions/A/Media ControlSender
        0x7fff90f1d000 -     0x7fff90f4efff  com.apple.MediaKit (15 - 709) <23E33409-5C39-3F93-9E73-2B0E9EE8883E> /System/Library/PrivateFrameworks/MediaKit.framework/Versions/A/MediaKit
        0x7fff90f4f000 -     0x7fff90f9cff2  com.apple.print.framework.PrintCore (9.0 - 428) <8D8253E3-302F-3DB2-9C5C-572CB974E8B3> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ PrintCore.framework/Versions/A/PrintCore
        0x7fff90f9d000 -     0x7fff91271fc7  com.apple.vImage (7.0 - 7.0) <D241DBFA-AC49-31E2-893D-EAAC31890C90> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vImage.fr amework/Versions/A/vImage
        0x7fff912b1000 -     0x7fff9134efff  com.apple.imcore (10.0 - 1000) <DF924E35-74AB-389C-9279-1828518218F8> /System/Library/PrivateFrameworks/IMCore.framework/Versions/A/IMCore
        0x7fff9134f000 -     0x7fff91378ff7  libc++abi.dylib (49.1) <21A807D3-6732-3455-B77F-743E9F916DF0> /usr/lib/libc++abi.dylib
        0x7fff9138c000 -     0x7fff91397fff  libkxld.dylib (2422.100.13) <67D079F8-6C48-3F42-9FBE-26F1ADA03DC4> /usr/lib/system/libkxld.dylib
        0x7fff91428000 -     0x7fff916d2ff5  com.apple.HIToolbox (2.1.1 - 698) <A388E773-AE7B-3FD1-8662-A98E6E24EA16> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.fra mework/Versions/A/HIToolbox
        0x7fff919be000 -     0x7fff919e8ff7  libpcap.A.dylib (42) <91D3FF51-D6FE-3C05-98C9-1182E0EC3D58> /usr/lib/libpcap.A.dylib
        0x7fff919fa000 -     0x7fff91a2fffc  com.apple.LDAPFramework (2.4.28 - 194.5) <4ADD0595-25B9-3F09-897E-3FB790AD2C5A> /System/Library/Frameworks/LDAP.framework/Versions/A/LDAP
        0x7fff91a30000 -     0x7fff91a32fff  com.apple.OAuth (25 - 25) <22D42C60-CA67-31D7-A4A4-AFD8F35408D7> /System/Library/PrivateFrameworks/OAuth.framework/Versions/A/OAuth
        0x7fff91a33000 -     0x7fff91a33fff  com.apple.Carbon (154 - 157) <45A9A40A-78FF-3EA0-8FAB-A4F81052FA55> /System/Library/Frameworks/Carbon.framework/Versions/A/Carbon
        0x7fff91a67000 -     0x7fff91a6bfff  com.apple.CommonPanels (1.2.6 - 96) <6B434AFD-50F8-37C7-9A56-162C17E375B3> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CommonPanels. framework/Versions/A/CommonPanels
        0x7fff91a6c000 -     0x7fff91a94ffb  libRIP.A.dylib (599.23.13) <FFE421E6-CB15-3F9D-ADF4-679E26B09892> /System/Library/Frameworks/CoreGraphics.framework/Versions/A/Resources/libRIP.A .dylib
        0x7fff921f2000 -     0x7fff921fafff  libMatch.1.dylib (19) <021293AB-407D-309A-87F5-8E782F46753E> /usr/lib/libMatch.1.dylib
        0x7fff9220b000 -     0x7fff923b8f27  libobjc.A.dylib (551.1) <AD7FD984-271E-30F4-A361-6B20319EC73B> /usr/lib/libobjc.A.dylib
        0x7fff923b9000 -     0x7fff92444fff  libCoreStorage.dylib (380) <DE9B3F8C-045C-3010-9A25-C8CD72F1066B> /usr/lib/libCoreStorage.dylib
        0x7fff92445000 -     0x7fff924b2fff  com.apple.SearchKit (1.4.0 - 1.4.0) <B9B8D510-A27E-36B0-93E9-17146D9E9045> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SearchK it.framework/Versions/A/SearchKit
        0x7fff924bc000 -     0x7fff924cafff  com.apple.opengl (9.6.1 - 9.6.1) <B22FA400-5824-36AF-9945-5FEC31995A0E> /System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL
        0x7fff924cb000 -     0x7fff924cefff  com.apple.AppleSystemInfo (3.0 - 3.0) <61FE171D-3D88-313F-A832-280AEC8F4AB7> /System/Library/PrivateFrameworks/AppleSystemInfo.framework/Versions/A/AppleSys temInfo
        0x7fff924cf000 -     0x7fff924ebfff  libresolv.9.dylib (54) <11C2C826-F1C6-39C6-B4E8-6E0C41D4FA95> /usr/lib/libresolv.9.dylib
        0x7fff924ec000 -     0x7fff92531ff6  com.apple.HIServices (1.23 - 468) <5970AF5C-F5BD-3B6A-97C9-95B2CA98D71D> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ HIServices.framework/Versions/A/HIServices
        0x7fff92546000 -     0x7fff92546fff  com.apple.SafariDAVNotifier (1.1.1 - 1) <6FD70177-7044-3EFE-905F-08F1D2D40ECA> /System/Library/PrivateFrameworks/BookmarkDAV.framework/Versions/A/Frameworks/S afariDAVNotifier.framework/Versions/A/SafariDAVNotifier
        0x7fff92547000 -     0x7fff925a4fff  com.apple.imfoundation (10.0 - 1000) <122D84B9-871D-3885-9D8D-840CD529028F> /System/Library/PrivateFrameworks/IMFoundation.framework/Versions/A/IMFoundatio n
        0x7fff925a5000 -     0x7fff925d1ff7  com.apple.framework.SystemAdministration (1.0 - 1.0) <6FD03EF6-32B6-397D-B9D7-D68E89A462F5> /System/Library/PrivateFrameworks/SystemAdministration.framework/Versions/A/Sys temAdministration
        0x7fff9273f000 -     0x7fff92749ff7  com.apple.CrashReporterSupport (10.9 - 539) <B25A09EC-A021-32EC-86F8-05B4837E0EDE> /System/Library/PrivateFrameworks/CrashReporterSupport.framework/Versions/A/Cra shReporterSupport
        0x7fff9274a000 -     0x7fff9275efff  com.apple.aps.framework (4.0 - 4.0) <2D42DCDD-055E-3EE1-97F8-FC447B495D3E> /System/Library/PrivateFrameworks/ApplePushService.framework/Versions/A/ApplePu shService
        0x7fff9275f000 -     0x7fff92760fff  libunc.dylib (28) <62682455-1862-36FE-8A04-7A6B91256438> /usr/lib/system/libunc.dylib
        0x7fff92761000 -     0x7fff9277eff7  com.apple.framework.Apple80211 (9.3.2 - 932.59) <DA61BF63-978E-342D-8F7F-83D0169A7F48> /System/Library/PrivateFrameworks/Apple80211.framework/Versions/A/Apple80211
        0x7fff9277f000 -     0x7fff927dbfff  com.apple.coredav (1.0.1 - 229.6) <6D2B49E8-E81D-36C7-BC24-FD54FA35E5BC> /System/Library/PrivateFrameworks/CoreDAV.framework/Versions/A/CoreDAV
        0x7fff927dc000 -     0x7fff927e0fff  libpam.2.dylib (20) <B93CE8F5-DAA8-30A1-B1F6-F890509513CB> /usr/lib/libpam.2.dylib
        0x7fff927e1000 -     0x7fff92832fff  com.apple.QuickLookFramework (5.0 - 622.7) <17685CEC-C94B-3F83-ADE1-B24840B35E44> /System/Library/Frameworks/QuickLook.framework/Versions/A/QuickLook
        0x7fff92833000 -     0x7fff9284eff7  libsystem_malloc.dylib (23.10.1) <A695B4E4-38E9-332E-A772-29D31E3F1385> /usr/lib/system/libsystem_malloc.dylib
        0x7fff928a4000 -     0x7fff928ebff7  libcups.2.dylib (372.4) <36EA4350-43B4-3A5C-9904-10685BFDA7D4> /usr/lib/libcups.2.dylib
        0x7fff9293f000 -     0x7fff92940ff7  com.apple.print.framework.Print (9.0 - 260) <EE00FAE1-DA03-3EC2-8571-562518C46994> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Print.framewo rk/Versions/A/Print
        0x7fff92941000 -     0x7fff92943fff  libCVMSPluginSupport.dylib (9.6.1) <FB37F4C4-1E84-3349-BB03-92CA0A5F6837> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libCVMSPluginS upport.dylib
        0x7fff93797000 -     0x7fff937b2ff7  libCRFSuite.dylib (34) <FFAE75FA-C54E-398B-AA97-18164CD9789D> /usr/lib/libCRFSuite.dylib
        0x7fff937b3000 -     0x7fff93804ff3  com.apple.audio.CoreAudio (4.2.0 - 4.2.0) <BF4C2FE3-8BC8-30D1-8347-2A7221268794> /System/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio
        0x7fff93805000 -     0x7fff93817ff7  com.apple.MultitouchSupport.framework (245.13 - 245.13) <E51DE5CA-9859-3C13-A24F-37EF4385C1D6> /System/Library/PrivateFrameworks/MultitouchSupport.framework/Versions/A/Multit ouchSupport
        0x7fff93822000 -     0x7fff9382eff3  com.apple.AppleFSCompression (56 - 1.0) <5652B0D0-EB08-381F-B23A-6DCF96991FB5> /System/Library/PrivateFrameworks/AppleFSCompression.framework/Versions/A/Apple FSCompression
        0x7fff9382f000 -     0x7fff9384bfff  com.apple.frameworks.preferencepanes (16.0 - 16.0) <059E99D8-67C2-3B59-B5E7-850DD7A92D75> /System/Library/Frameworks/PreferencePanes.framework/Versions/A/PreferencePanes
        0x7fff93874000 -     0x7fff93878ff7  libsystem_stats.dylib (93.90.3) <4E51D5B0-92A0-3D0D-B90E-495A1ED3E391> /usr/lib/system/libsystem_stats.dylib
        0x7fff93879000 -     0x7fff93ab4fff  com.apple.CalendarPersistence (7.0 - 138.4) <BDD9B054-F274-357F-8343-6F8DAC7B0B36> /System/Library/PrivateFrameworks/CalendarPersistence.framework/Versions/A/Cale ndarPersistence
        0x7fff93ab5000 -     0x7fff93ac7fff  com.apple.ImageCapture (9.0 - 9.0) <BE0B65DA-3031-359B-8BBA-B9803D4ADBF4> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/ImageCapture. framework/Versions/A/ImageCapture
        0x7fff93ac8000 -     0x7fff93d29fff  com.apple.imageKit (2.5 - 774) <AACDE16E-ED9F-3B3F-A792-69BA1942753B> /System/Library/Frameworks/Quartz.framework/Versions/A/Frameworks/ImageKit.fram ework/Versions/A/ImageKit
        0x7fff93d2a000 -     0x7fff93d51ffb  libsystem_info.dylib (449.1.3) <7D41A156-D285-3849-A2C3-C04ADE797D98> /usr/lib/system/libsystem_info.dylib
        0x7fff93d52000 -     0x7fff93d83ff7  libtidy.A.dylib (15.12) <BF757E3C-733A-3B6B-809A-A3949D46466E> /usr/lib/libtidy.A.dylib
        0x7fff93d84000 -     0x7fff93db8fff  libssl.0.9.8.dylib (50) <B15F967C-B002-36C2-9621-3456D8509F50> /usr/lib/libssl.0.9.8.dylib
        0x7fff93db9000 -     0x7fff93e08ff7  com.apple.framework.internetaccounts (2.1 - 210) <D7175985-03A5-315B-B788-FBDC0019B0EA> /System/Library/PrivateFrameworks/InternetAccounts.framework/Versions/A/Interne tAccounts
        0x7fff941a2000 -     0x7fff941a6ff7  libcache.dylib (62) <BDC1E65B-72A1-3DA3-A57C-B23159CAAD0B> /usr/lib/system/libcache.dylib
        0x7fff941a7000 -     0x7fff941b8ff7  libz.1.dylib (53) <42E0C8C6-CA38-3CA4-8619-D24ED5DD492E> /usr/lib/libz.1.dylib
        0x7fff941b9000 -     0x7fff941d1ff7  com.apple.GenerationalStorage (2.0 - 160.3) <64749B08-0212-3AC8-9B49-73D662B09304> /System/Library/PrivateFrameworks/GenerationalStorage.framework/Versions/A/Gene rationalStorage
        0x7fff941d2000 -     0x7fff941d9ff7  com.apple.phonenumbers (1.1.1 - 105) <767A63EB-244C-34F1-9FFA-D1A6BED60C31> /System/Library/PrivateFrameworks/PhoneNumbers.framework/Versions/A/PhoneNumber s
        0x7fff941da000 -     0x7fff941dbff7  libsystem_sandbox.dylib (278.11) <B46E4040-A8C6-3EBC-91F8-F1CB01106614> /usr/lib/system/libsystem_sandbox.dylib
        0x7fff941dc000 -     0x7fff9446ffff  com.apple.RawCamera.bundle (5.05 - 743) <ACFD986B-59D0-313C-941A-5F239CDF9AA7> /System/Library/CoreServices/RawCamera.bundle/Contents/MacOS/RawCamera
        0x7fff94470000 -     0x7fff94701ff7  com.apple.AOSKit (1.06 - 176) <35525B2F-B02F-31FD-A3B2-FD6AE6D32C11> /System/Library/PrivateFrameworks/AOSKit.framework/Versions/A/AOSKit
        0x7fff94702000 -     0x7fff94709fff  libcompiler_rt.dylib (35) <4CD916B2-1B17-362A-B403-EF24A1DAC141> /usr/lib/system/libcompiler_rt.dylib
        0x7fff9470a000 -     0x7fff94739ff7  com.apple.CoreAVCHD (5.7.0 - 5700.4.3) <404369C0-ED9F-3010-8D2F-BC55285F7808> /System/Library/PrivateFrameworks/CoreAVCHD.framework/Versions/A/CoreAVCHD
        0x7fff9473a000 -     0x7fff94741ff8  liblaunch.dylib (842.90.1) <38D1AB2C-A476-385F-8EA8-7AB604CA1F89> /usr/lib/system/liblaunch.dylib
        0x7fff94742000 -     0x7fff94742ffd  libOpenScriptingUtil.dylib (157) <19F0E769-0989-3062-9AFB-8976E90E9759> /usr/lib/libOpenScriptingUtil.dylib
        0x7fff94743000 -     0x7fff9474cfff  com.apple.DisplayServicesFW (2.8 - 360.8.14) <816A9CED-1BC0-3C76-8103-1B9BE0F723BB> /System/Library/PrivateFrameworks/DisplayServices.framework/Versions/A/DisplayS ervices
        0x7fff94ac5000 -     0x7fff94ae3ff7  com.apple.Accounts (113 - 113) <FEB37642-C973-3CD2-B279-142492266A16> /System/Library/Frameworks/Accounts.framework/Versions/A/Accounts
        0x7fff94ae4000 -     0x7fff94b08fff  libxpc.dylib (300.90.2) <AB40CD57-F454-3FD4-B415-63B3C0D5C624> /usr/lib/system/libxpc.dylib
        0x7fff94b09000 -     0x7fff94b0cff7  libdyld.dylib (239.4) <7C9EC3B7-DDE3-33FF-953F-4067C743951D> /usr/lib/system/libdyld.dylib
        0x7fff94b0d000 -     0x7fff94b15fff  libsystem_dnssd.dylib (522.90.2) <A0B7CF19

    These are the results it gave me andyBall_uk.
    EtreCheck version: 1.9.11 (43) - report generated 2 June 2014 15:10:46 BST
    Hardware Information:
              iMac (21.5-inch, Late 2012)
              iMac - model: iMac13,1
              1 2.7 GHz Intel Core i5 CPU: 4 cores
              8 GB RAM
    Video Information:
              NVIDIA GeForce GT 640M - VRAM: 512 MB
    System Software:
              OS X 10.9.3 (13D65) - Uptime: 0 days 0:5:10
    Disk Information:
              APPLE HDD ST1000LM024 disk0 : (1 TB)
                        EFI (disk0s1) <not mounted>: 209.7 MB
                        Macintosh HD (disk0s2) / [Startup]: 999.35 GB (833.4 GB free)
                        Recovery HD (disk0s3) <not mounted>: 650 MB
    USB Information:
              HP Deskjet 3050A J611 series
              Apple Inc. FaceTime HD Camera (Built-in)
              Apple Inc. BRCM20702 Hub
                        Apple Inc. Bluetooth USB Host Controller
    Thunderbolt Information:
              Apple Inc. thunderbolt_bus
    Gatekeeper:
              Anywhere
    Kernel Extensions:
              [kext loaded] com.Cycling74.driver.Soundflower (1.6.6 - SDK 10.6) Support
              [not loaded] com.makemkv.kext.daspi (1) Support
    Launch Daemons:
              [loaded] com.adobe.fpsaud.plist Support
              [not loaded] com.adobe.SwitchBoard.plist Support
              [loaded] com.genieoinnovation.macextension.client.plist Support
              [loaded] com.google.keystone.daemon.plist Support
              [loaded] com.oracle.java.Helper-Tool.plist Support
              [loaded] com.oracle.java.JavaUpdateHelper.plist Support
    Launch Agents:
              [not loaded] com.adobe.AAM.Updater-1.0.plist Support
              [loaded] com.adobe.CS5ServiceManager.plist Support
              [running] com.genieoinnovation.macextension.plist Support
              [loaded] com.google.keystone.agent.plist Support
              [loaded] com.oracle.java.Java-Updater.plist Support
              [running] org.chromium.chromoting.plist Support
    User Launch Agents:
              [loaded] com.adobe.AAM.Updater-1.0.plist Support
              [loaded] com.valvesoftware.steamclean.plist Support
    User Login Items:
              iTunesHelper
              Google Drive
              Knock
              CrossOver CD Helper
              CrossOver CD Helper
              Android File Transfer Agent
    Internet Plug-ins:
              o1dbrowserplugin: Version: 5.4.1.18709 Support
              Unity Web Player: Version: UnityPlayer version 4.3.5f1 - SDK 10.6 Support
              Default Browser: Version: 537 - SDK 10.9
              Silverlight: Version: 5.1.20513.0 - SDK 10.6 Support
              FlashPlayer-10.6: Version: 13.0.0.214 - SDK 10.6 Support
              LogMeIn: Version: 1.0.961 - SDK 10.7 Support
              Flash Player: Version: 13.0.0.214 - SDK 10.6 Support
              QuickTime Plugin: Version: 7.7.3
              LogMeInSafari32: Version: 1.0.961 - SDK 10.7 Support
              SharePointBrowserPlugin: Version: 14.3.8 - SDK 10.6 Support
              googletalkbrowserplugin: Version: 5.4.1.18709 Support
              JavaAppletPlugin: Version: Java 7 Update 55 Check version
    Audio Plug-ins:
              BluetoothAudioPlugIn: Version: 1.0 - SDK 10.9
              AirPlay: Version: 2.0 - SDK 10.9
              AppleAVBAudio: Version: 203.2 - SDK 10.9
              iSightAudio: Version: 7.7.3 - SDK 10.9
    iTunes Plug-ins:
              Quartz Composer Visualizer: Version: 1.4 - SDK 10.9
    User Internet Plug-ins:
              NPRoblox: Version: 1.0.2.12 - SDK 10.9 Support
              Google Earth Web Plug-in: Version: 7.1 Support
    3rd Party Preference Panes:
              remoting_host_prefpane  Support
              Flash Player  Support
              FUSE for OS X (OSXFUSE)  Support
              Java  Support
    Time Machine:
              Time Machine not configured!
    Top Processes by CPU:
                   1%          fontd
                   1%          mds
                   0%          Google Chrome
                   0%          WindowServer
                   0%          Google Drive
    Top Processes by Memory:
              115 MB          com.apple.IconServicesAgent
              98 MB          mds_stores
              90 MB          Google Chrome
              82 MB          Google Drive
              57 MB          ocspd
    Virtual Memory Information:
              5.66 GB          Free RAM
              1.38 GB          Active RAM
              286 MB          Inactive RAM
              697 MB          Wired RAM
              369 MB          Page-ins
              0 B          Page-outs

  • I click on itunes but doesnt open and says send error report or dont send

    i click on itunes but doesnt open and says send error report or dont send

    You will need to provide more details as we cannot see your computer screen. Does this happen every time you launch LabVIEW? What version of LabVIEW are you using? What version of Windows? Does LabVIEW crash? If so, what were you doing at the time it crashed?

Maybe you are looking for