Global Application Contexts - Where to set Client Identifier?

Hi,
I am trying to use global application contexts as part of an implementation of fine grain access control.
This is within an eBusiness Suite environment, specifically CRM, so is a multi-tiered environment.
Users access both Forms based screens and OA framework screens.
I believe I need to use global application contexts as users may have multiple database sessions.
Also, all users will login using the same database login account.
Provided I can set a unique identifier for a user that persists throughout all their sessions I can make use of the username and client_id parameters of set_context, below:-
DBMS_SESSION.set_context (namespace => 'XXUOM_CONTEXTS',
attribute => 'EXEMPT_FROM_VPD_POLICIES',
VALUE => l_exempt,
username => USER,
client_id => pi_user_id);
The difficulty I am having is finding a suitable place to set the client identifier.
I am not sure if the value is being cleared by some other code or if the value isn't being set in all sessions.
I am using:-
DBMS_SESSION.set_identifier (pi_user_id)
That I call from after insert triggers on either tables icx_sessions or fnd_logins.
However, the client identifier is always null when I query it from within the application, via:-
SELECT SYS_CONTEXT ('USERENV', 'CLIENT_IDENTIFIER') from dual
If I set the value via a personalisation rule within a Form, then the value remains.
I would greatly appreciate it if someone can advise me on where I am going wrong.
Andy

It's a different patch.
The patch support have given me is 9275708, FND_GLOBAL.ORG_NAME RETURNS ENGLISH, EVEN WHEN SESSION LANGUAGE IS NOT.
This patch has been superceded by 12875860, HR SECURITY PROFILE IS NOT SET CORRECTLY.
So we have applied patch 12875860.
I've tried to find out from support what happened to the original patch and why it was removed/deleted rather than superceded.
I have not found it possible to find out what each of these patches does. There's very little documentation on them.
I have raised an SR.
The details are 3-4943519401: How to add DBMS_SESSION.SET_IDENTIFIER() to FND_GLOBAL.INITIALIZE.
The results of:
     select fnd_profile.value('FND_CONNECTION_TAGGING') from dual
     gives nothing on our Release 11 environment.
select * from fnd_profile_options where profile_option_name = 'FND_CONNECTION_TAGGING';
gives nothing.
On Release 12, the results are:
     select fnd_profile.value('FND_CONNECTION_TAGGING') from dual;
     ENABLED
     select * from fnd_profile_options where profile_option_name = 'FND_CONNECTION_TAGGING';
     returns a record.
Many thanks for continuing to look into this for me.
Andy

Similar Messages

  • Global application context available in Real Application Clusters 11G R1?

    Does anyone know if Global application context is availble is 11G R1? We have an application that uses it and I cannot retrieve context from node two for a client_id that was created and set on node one. I thought this was availbale after 10g? Is anyone else doing this?

    found the answer. It's available in 11G R2
    http://download.oracle.com/docs/cd/E11882_01/network.112/e10574/whatsnew.htm#CJADFCBF

  • Report Export - No data when query based on Application Context

    I updated my Query Region source to use a Global Application Context and now the Report Export (to .csv) download has no data. This appears to run the query again in under a different session_id perhaps(?)
    In a before header process I set the session_id to access a couple of date values set by the user via LOVs - the 'Search' button and an After Submit Process sets the context values which are accessed in the where clause, i.e
    where date_attribute between to_date( SYS_CONTEXT('MY_CTX', 'START_DATE'), 'dd-Mon-yyyy')
    and to_date( SYS_CONTEXT('MY_CTX', 'END_DATE'), 'dd-Mon-yyyy')
    If you know any solution or alternative approach I'd be very grateful for your tips. I like Apex because you can leverage core Oracle database technology but then in some case you do hit these little troubles!
    Thanks
    Craig

    Thanks for the link to the posts.
    I considered the Security Attribute but thought that was somewhat inappropriate for just the one page I am setting the context; I understand the Security Attribute function would set 'My_Ctx' values on all page requests.

  • How to define JAXP Parsers and Transformer in a Web Application Context

    Hi
    I need to define JAXP Parsers and Transformer in a Web Application Context where I can deploy this application in any J2EE Application Server without modifying the server. That means that I can't set System properties or set the jaxp.properties file. I tried to use the META-INF/services/javax.xml.transform.TransformerFactory file but it didn't work.
    Any ideas?

    Hi
    I need to define JAXP Parsers and Transformer in a Web Application Context where I can deploy this application in any J2EE Application Server without modifying the server. That means that I can't set System properties or set the jaxp.properties file. I tried to use the META-INF/services/javax.xml.transform.TransformerFactory file but it didn't work.
    Any ideas?

  • Oracle Client Identifier, Web, JPA

    I am working on a Web application that uses Struts along with EJB3. I want to user Oracle Virtual Private Database to restrict access to data based on the current user.
    Is there any way to set the Client_Identifier based on the Principal currently using the connection? I am looking to see if there are perhaps any Interceptors I could use or some function of JPA that allows me access to the connection just before it is actually used. Any idea?

    865496 wrote:
    Hello,
    in my java web app running on Weblogic which uses connection pooling, I am calling an Oracle Stored Proc that sets client identifier to userid using dbms_session.set_identifier
    I then retrieve it in triggers attached to db tables to capture before-after image
    I must have missed a step because this is what I find (testing locally):
    1. I login to my app as USER1 and update some data
    2. I check the audit tables and sure enough last_updated_by is set to USER1
    3. Without logging out, I start a different browser (Firefox, in step 1 I used Chrome) and login as USER2
    4. I now switch to USER1 session in Chrome browser (still logged in as USER1) and update some data
    5. This time I see that the audit tables show last_updated_by as USER2 (instead of USER1)
    What am I missing?
    Many thanks!since Connection Pooling is being used, do you acknowledge that both USER1 & USER2 could actually use the same Oracle session to execute SQL?
    At what point in time is the Stored Procedure that sets Client Identifier actually called?
    How do I ask a question on the forums?
    SQL and PL/SQL FAQ

  • Setting Application Context Attributes for Enterprise Users Based on Roles

    Hello,
    We have an Oracle 11g database with a table containing data from multiple sites (a SiteID field identifies the site for a record). Since application users can have access to different subsets of sites, we would like to use Oracle's Virtual Private Database feature to enforce row-level security on the table.
    I did a successful proof-of-concept with database users. I created a role for each site (example: USER_SITE_A, USER_SITE_B, ...), and then assigned the appropriate site roles to each database user. I then created a package (run via a logon trigger) which set application context attributes for each site. If the current database user has been assigned a role for a given site, then the corresponding attribute named "SITE_PRIVILEGE_SiteID" is set to 'Y'... otherwise, it is set to 'N'. Here is the code which worked to set application context attributes for database users:
    -- For each record in my RoleSitePrivileges table, set
    --   an attribute named 'SITE_PRIVILEGE_<SiteID>'.
    --   If the current user has been assigned a role matching
    --   the value in the 'RoleName' field, set the corresponding
    --   attribute to 'Y'... otherwise, set it to 'N'.
    FOR iPrivRec IN (SELECT RoleName, SiteID
                       FROM RoleSitePrivileges
                       ORDER BY SiteID)
       LOOP
          SELECT COUNT(*)
            INTO roleExists
            FROM dba_role_privs
            WHERE granted_role = UPPER(iPrivRec.RoleName)
              AND grantee = USER;
          IF roleExists > 0 THEN
             DBMS_SESSION.set_context(
                         namespace   => 'my_ctx',
                         attribute   => 'SITE_PRIVILEGE_' || iPrivRec.SiteID,
                         value       => 'Y');
          ELSE
             DBMS_SESSION.set_context(
                         namespace   => 'my_ctx',
                         attribute   => 'SITE_PRIVILEGE_' || iPrivRec.SiteID,
                         value       => 'N');
          END IF;
       END LOOP;To finish things off, I created a security policy function for the table which returns the following:
    RETURN 'SiteID IN (SELECT TO_NUMBER(SUBSTR(attribute, 15))
                         FROM session_context
                         WHERE attribute LIKE ''SITE_PRIVILEGE_%''
                            AND value = ''Y'')';This setup worked great for database users. I am now working to do a comparable proof-of-concept for enterprise users created in Oracle Internet Directory (OiD). I have Enterprise User Security (EUS) up and running with OiD, global roles created in the database, enterprise roles defined in EUS with global role assignments, and enterprise roles assigned to OiD users. The enterprise users are able to successfully login to the database, and I can see the appropriate global role assignments when I query the session_roles view.
    I tried using the same application context package, logon trigger, and security policy function with the enterprise users that I had used with the database users. Unfortunately, I found that the application context attributes are not being set correctly. As you can see from the code above, the applicaiton context package was referencing the dba_role_privs view. Apparently, although this view is populated for database users, it is not populated for enterprise users.
    I tried changing the application context package to use invoker's rights and to query the session_roles view instead of the dba_role_privs view. Although this package sets the attributes correctly when called manually, it does not work when called from the logon trigger. That was an oops on my part, as I didn't realize initially that a PL/SQL procedure cannot be called with invoker's rights from a trigger.
    So, I am now wondering, is there another view that I could use in code called from a logon trigger to access the roles assigned to the enterprise user ? If not, is there a better way for me to approach this problem? From a maintenance standpoint, I like the idea of controlling site access from the LDAP directory service via role assignments. But, I am open to other ideas as well.
    Thank you!

    Hello,
    We have an Oracle 11g database with a table containing data from multiple sites (a SiteID field identifies the site for a record). Since application users can have access to different subsets of sites, we would like to use Oracle's Virtual Private Database feature to enforce row-level security on the table.
    I did a successful proof-of-concept with database users. I created a role for each site (example: USER_SITE_A, USER_SITE_B, ...), and then assigned the appropriate site roles to each database user. I then created a package (run via a logon trigger) which set application context attributes for each site. If the current database user has been assigned a role for a given site, then the corresponding attribute named "SITE_PRIVILEGE_SiteID" is set to 'Y'... otherwise, it is set to 'N'. Here is the code which worked to set application context attributes for database users:
    -- For each record in my RoleSitePrivileges table, set
    --   an attribute named 'SITE_PRIVILEGE_<SiteID>'.
    --   If the current user has been assigned a role matching
    --   the value in the 'RoleName' field, set the corresponding
    --   attribute to 'Y'... otherwise, set it to 'N'.
    FOR iPrivRec IN (SELECT RoleName, SiteID
                       FROM RoleSitePrivileges
                       ORDER BY SiteID)
       LOOP
          SELECT COUNT(*)
            INTO roleExists
            FROM dba_role_privs
            WHERE granted_role = UPPER(iPrivRec.RoleName)
              AND grantee = USER;
          IF roleExists > 0 THEN
             DBMS_SESSION.set_context(
                         namespace   => 'my_ctx',
                         attribute   => 'SITE_PRIVILEGE_' || iPrivRec.SiteID,
                         value       => 'Y');
          ELSE
             DBMS_SESSION.set_context(
                         namespace   => 'my_ctx',
                         attribute   => 'SITE_PRIVILEGE_' || iPrivRec.SiteID,
                         value       => 'N');
          END IF;
       END LOOP;To finish things off, I created a security policy function for the table which returns the following:
    RETURN 'SiteID IN (SELECT TO_NUMBER(SUBSTR(attribute, 15))
                         FROM session_context
                         WHERE attribute LIKE ''SITE_PRIVILEGE_%''
                            AND value = ''Y'')';This setup worked great for database users. I am now working to do a comparable proof-of-concept for enterprise users created in Oracle Internet Directory (OiD). I have Enterprise User Security (EUS) up and running with OiD, global roles created in the database, enterprise roles defined in EUS with global role assignments, and enterprise roles assigned to OiD users. The enterprise users are able to successfully login to the database, and I can see the appropriate global role assignments when I query the session_roles view.
    I tried using the same application context package, logon trigger, and security policy function with the enterprise users that I had used with the database users. Unfortunately, I found that the application context attributes are not being set correctly. As you can see from the code above, the applicaiton context package was referencing the dba_role_privs view. Apparently, although this view is populated for database users, it is not populated for enterprise users.
    I tried changing the application context package to use invoker's rights and to query the session_roles view instead of the dba_role_privs view. Although this package sets the attributes correctly when called manually, it does not work when called from the logon trigger. That was an oops on my part, as I didn't realize initially that a PL/SQL procedure cannot be called with invoker's rights from a trigger.
    So, I am now wondering, is there another view that I could use in code called from a logon trigger to access the roles assigned to the enterprise user ? If not, is there a better way for me to approach this problem? From a maintenance standpoint, I like the idea of controlling site access from the LDAP directory service via role assignments. But, I am open to other ideas as well.
    Thank you!

  • Setting session variables in application context using OpenJPA

    Hi!
    I am using openjpa 1.2 with EJB 3.0. I am connecting to Oracle 11g database and need to use the oracle virtual private database for security and data segregation. For this purpose, I need to set some custom variables at the session level of the application context such as the application user name. Since, I am using container injected EntityManager using @PersistenceContext, I am finding it hard to do so.
    Can anyone please help me out
    Thanks in advance
    Abhi

    You will probably want to ask your question on an OpenJPA forum to see if they even can support VPD (if not, see EclipseLink http://wiki.eclipse.org/Introduction_to_EclipseLink_Sessions_(ELUG)#Isolated_Client_Sessions_and_Oracle_Virtual_Private_Database_.28VPD.29 )
    You might also want to try injecting the factory instead and use that to get the EntityManager instead of injecting the em directly. ie
    @PersistenceUnit(unitName="my-pu")
    private EntityManagerFactory emf;
    Best Regards,
    Chris

  • (261229964) Q RPCC-10 Where would a client application access the "waterworks.services.WaterUsage"  class?

    Q <RPCC-10> Where would a client application access the "waterworks.services.WaterUsage"
    package that it imports - and what is contained within it?
    A <RPCC-10> The WaterUsage interface is the remote interface for the stateless session
    bean that the RPC style web service uses for the business processing and it is included
    in the client.jar file for that RPC web service.

    Q <RPCC-10> Where would a client application access the "waterworks.services.WaterUsage"
    package that it imports - and what is contained within it?
    A <RPCC-10> The WaterUsage interface is the remote interface for the stateless session
    bean that the RPC style web service uses for the business processing and it is included
    in the client.jar file for that RPC web service.

  • Application Context - VPD

    APEX: 2.0.0.00.49
    DB: 10R2
    I am using table based security. Upon login, I am setting a number of different context variables (e.g., sessionid, userid, name, etc). They are also being set in my application (F100_SESSIONID, F100_USERID, etc).
    Recently, our company decided to host another company's data. Not having EE, I decided to add a column to the appropriate tables and then create views accessible through the application. Each view would have a predicate:<BR>
    WHERE companycode = SYS_CONTEXT( 'PFS_CTX', 'COMPANYCODE' )<br>
    Now, after submit, (I haven't tested every single page), session state seems to be lost.<br>
    Debug info before Submit:<br>
    0.00: S H O W: application="100" page="26" workspace="" request="" session="12483598699829578467"
    0.00: ...Language derived from: FLOW_PRIMARY_LANGUAGE, current browser language: en-us
    0.00: alter session set nls_language="AMERICAN"
    0.00: alter session set nls_territory="AMERICA"
    0.00: NLS: CSV charset=WE8MSWIN1252
    0.00: ...Setting NLS Decimal separator="."
    0.00: ...Setting NLS Group separator=","
    0.00: ...Setting NLS date format="DD-MON-RR"
    0.00: NLS: Language=en-us
    0.00: Application 100, Authentication: CUSTOM2, Page Template: 653625525474071
    0.02: ...Supplied session ID can be used
    0.02: ...Application session: 12483598699829578467, user=USER_PFS
    0.02: ...Determine if user PFS_ADMIN with SGID 635206529335328 can develop application 100 in workspace 635206529335328
    0.02: Fetch session state from database
    0.02: Fetch session header information
    0.02: ...fetch page attributes: f100, p26
    0.02: Branch point: BEFORE_HEADER
    0.03: Fetch application meta data
    0.03: Computation point: BEFORE_HEADER
    0.03: Processing point: BEFORE_HEADER
    0.03: Show page template header
    0.03: Computation point: AFTER_HEADER
    0.03: Processing point: AFTER_HEADER<br>
    The Select List I have renders correctly. The query behind the Select List is:<br>
    SELECT projectname, projectid
    FROM pnet_projects<br>
    The view text is:<br>
    SELECT projectid, projectname,...
    FROM vw_projects
    WHERE companycode = SYS_CONTEXT( 'PFS_CTX', 'COMPANYCODE' )<BR>
    After Submit, the Select List is empty and here is the Debug info:<br>
    0.00: A C C E P T: Request="SUBMIT"
    0.00: Fetch application info
    0.00: wwv_flow.g_flow_language_derived_from=FLOW_PRIMARY_LANGUAGE: wwv_flow.g_browser_language=en-us
    0.00: alter session set nls_language="AMERICAN"
    0.00: alter session set nls_territory="AMERICA"
    0.00: NLS: CSV charset=WE8MSWIN1252
    0.00: ...Setting NLS Decimal separator="."
    0.00: ...Setting NLS Group separator=","
    0.00: ...Setting NLS date format="DD-MON-RR"
    0.02: Fetch session state from database
    0.02: ...Check instance 12483598699829578467 owner
    0.02: ...Fetch iconbar, page, computation, process, ...
    0.02: Fetch session header information
    0.02: ...fetch page attributes: f100, p26
    0.02: ...Check security schemes
    0.02: Save form items and p_arg_values
    0.02: ...P26_PROJECTID session state saving same value: "NONE"
    0.02: ...P26_TIMEIN session state saving same value: ""
    0.03: ...P26_PERSONID session state saving same value: ""
    0.03: Processing point: ON_SUBMIT_BEFORE_COMPUTATION
    0.03: Branch point: BEFORE_COMPUTATION
    0.03: Computation point: AFTER_SUBMIT
    0.03: Perform Branching for Tab Requests
    0.03: Branch point: BEFORE_VALIDATION
    0.03: Perform validations:
    0.03: Display inline error messages that are a result of failed validations.
    0.03: S H O W: application="100" page="26" workspace="" request="" session="12483598699829578467"
    0.03: NLS: Language=en-us
    0.03: Application 100, Authentication: CUSTOM2, Page Template: 653625525474071
    0.05: ...Supplied session ID can be used
    0.05: ...Application session: 12483598699829578467, user=USER_PFS
    0.05: ...Determine if user PFS_ADMIN with SGID 635206529335328 can develop application 100 in workspace 635206529335328
    0.05: ...fetch page attributes: f100, p26
    0.05: Branch point: BEFORE_HEADER
    0.05: Fetch application meta data
    0.05: Computation point: BEFORE_HEADER
    0.05: Processing point: BEFORE_HEADER
    0.05: ......do not perform process because inline validation condition found.
    0.05: ...Recompute field lables for fields in error.
    0.05: Show page template header   
    0.05: Computation point: AFTER_HEADER
    0.05: Processing point: AFTER_HEADER<br>
    In the ACCEPT portion, there's a line "Fetch session state from database" which I am guessing gets the Application Context. There is no such line in the SHOW section.<br><br>
    I have used Branch to Page Identified by Item and a Branch to Page or URL. Same result.<br><br>
    Does anyone have a suggestion as to how I should proceed? Can I use APEX/Application Context in this manner?<br><br>
    chet

    FUNCTION login
      (p_username IN VARCHAR2,
       p_password IN VARCHAR2,
       p_systemcode IN VARCHAR2 DEFAULT 'PFS') RETURN NUMBER
    IS
      l_sessionid NUMBER(15);
      l_password PERSON_SYSTEMS_TAB.PASSWORD%TYPE;
      l_personsystemid PERSON_SYSTEMS_TAB.PERSONSYSTEMID%TYPE;
      l_personid PERSON_SYSTEMS_TAB.PERSONID%TYPE;
      l_passwordexpires PERSON_SYSTEMS_TAB.PASSWORD_EXPIRES%TYPE;
      l_accountlocked PERSON_SYSTEMS_TAB.ACCOUNTLOCKED%TYPE;  
      l_expiredate DATE;
      l_entityid ENTITY_TAB.ENTITYID%TYPE;
      l_companyname VARCHAR2(150);
      l_companycode VARCHAR2(30);
    BEGIN
      SELECT password, personsystemid, personid, password_expires, accountlocked, date_expired, companycode
      INTO l_password, l_personsystemid, l_personid, l_passwordexpires, l_accountlocked, l_expiredate, l_companycode
      FROM vw_person_systems
      WHERE systemcode = p_systemcode
        AND date_expired IS NULL
        AND UPPER( username ) = UPPER( p_username );
      IF l_password = p_common.hash(p_username, p_password) THEN --successful login
      --1 create session
      --2 set app context
      --3 return sessionid
        l_sessionid := create_session( l_personsystemid );
        l_companyname := p_common.get_company_name( l_personid ); 
        l_entityid := p_common.get_entityid( l_personid );
        p_ctx.set_sessionid( l_sessionid );        
        p_ctx.set_context( 'NAME', p_login.get_name( l_personid ) );
        p_ctx.set_context( 'PERSONSYSTEMID', l_personsystemid );
        p_ctx.set_context( 'PERSONID', l_personid );
        p_ctx.set_context( 'COMPANYID', SUBSTR( l_companyname, 1, INSTR( l_companyname, ':' ) - 1 ) );
        p_ctx.set_context( 'COMPANYNAME', SUBSTR( l_companyname, INSTR( l_companyname, ':' ) + 1, LENGTH( l_companyname ) ) );
        p_ctx.set_context( 'SESSIONID', l_sessionid );
        p_ctx.set_context( 'EMAILADDRESS', p_username );
        p_ctx.set_context( 'ENTITYID', l_entityid );
        p_ctx.set_context( 'COMPANYCODE', l_companycode );
      END IF;
      RETURN l_sessionid;
    EXCEPTION
      WHEN no_data_found THEN
        raise_application_error(-20002, 'invalid username');
    END login;<br>
    None of this code has changed in quite some time. The only thing that changed was the view reference from APEX. This seems to occur only when the page is submitted (with or without validations).

  • Getting values from application context

    I want to set an input box with the value from the jsp getRemoteHost() in jsf page..
    In my page i have this
    <h:inputText value="#{sok.Searchstring}">...
    where the reference sok is a java bean
    public class sok
         private String Searchstring;
         public sok()
              // I want to set the Searchstring = getRemoteHost()
         public String getSearchstring()
            return this.sokVerdi;
        public void setSearchstring(String data)
            this.sokVerdi = data;
    }How can this be done? Should I avoid using http request.. couldn't I get it from the application context, and how do I do that?? I'am kinda empty on ideas to solve this very issue.

    I getting the getRemoteHost to work perfectly.. and as for getParameter() too.. but when I try doing getRemoteUser(), it gives me null.. I also did getRemoteUser() in the jsf file, and there I do get the right output..
    How come? Why do I not get the correct value from the java bean?
    public sok()
              ExternalContext externalContext = FacesContext.getCurrentInstance().getExternalContext();
              HttpServletRequest httpServletRequest = (HttpServletRequest)externalContext.getRequest();
              sokVerdi = "h: " + httpServletRequest.getRemoteUser();
              //sokVerdi = "g: " + httpServletRequest.getParameter("fardin");
                   //sokVerdi = "g: " + httpServletRequest.getRemoteHost();
         }

  • I've been (attempting) to follow Linc's ideas to fix my Mail app that quits without having time to select mailboxes, etc. Here's my report:Process:         Mail [3780] Path:            /Applications/Mail.app/Contents/MacOS/Mail Identifier:      com.apple.

    Process:         Mail [3780]
    Path:            /Applications/Mail.app/Contents/MacOS/Mail
    Identifier:      com.apple.mail
    Version:         6.5 (1508)
    Build Info:      Mail-1508000000000000~3
    Code Type:       X86-64 (Native)
    Parent Process:  launchd [147]
    User ID:         501
    Date/Time:       2013-07-13 07:51:28.620 -0500
    OS Version:      Mac OS X 10.8.4 (12E55)
    Report Version:  10
    Interval Since Last Report:          4655 sec
    Crashes Since Last Report:           7
    Per-App Interval Since Last Report:  912 sec
    Per-App Crashes Since Last Report:   7
    Anonymous UUID:                      3ADF795F-F3C9-0A58-B102-2FB99F35DC14
    Crashed Thread:  7  Dispatch queue: com.apple.root.default-overcommit-priority
    Exception Type:  EXC_CRASH (SIGABRT)
    Exception Codes: 0x0000000000000000, 0x0000000000000000
    Application Specific Information:
    *** Terminating app due to uncaught exception 'MessageCritionNotSupportedException', reason: 'Message criterion MessageCriterion: MatadorCriterion
      Qualifier: (null)
      Expression: ((* = "team*"cdw || kMDItemTextContent = "team*"cdw) && (* = "lead*"cdw || kMDItemTextContent = "lead*"cdw))
      Suggestions originated: 0
    not supported for evaluation'
    abort() called
    terminate called throwing an exception
    Application Specific Backtrace 1:
    0   CoreFoundation                      0x00007fff8cf8cb06 __exceptionPreprocess + 198
    1   libobjc.A.dylib                     0x00007fff8b91b3f0 objc_exception_throw + 43
    2   Message                             0x00007fff94e00119 -[MessageCriterion _evaluateMessage:] + 402
    3   Message                             0x00007fff94e00223 -[MessageCriterion evaluateMessage:] + 43
    4   Message                             0x00007fff94dff86f -[MessageCriterion _evaluateCompoundCriterion:] + 200
    5   Message                             0x00007fff94dfffd7 -[MessageCriterion _evaluateMessage:] + 80
    6   Message                             0x00007fff94e00223 -[MessageCriterion evaluateMessage:] + 43
    7   Message                             0x00007fff94dff86f -[MessageCriterion _evaluateCompoundCriterion:] + 200
    8   Message                             0x00007fff94dfffd7 -[MessageCriterion _evaluateMessage:] + 80
    9   Message                             0x00007fff94dfff7f -[MessageCriterion doesMessageSatisfyRuleEvaluationCriterion:] + 75
    10  Mail                                0x0000000101b0a971 Mail + 2673009
    11  Mail                                0x0000000101b07e8c Mail + 2662028
    12  CoreFoundation                      0x00007fff8cf3eeda _CFXNotificationPost + 2554
    13  Mail                                0x0000000101883af4 Mail + 23284
    14  Message                             0x00007fff94d1b8a4 -[MessageStore messagesWereAdded:conversationsMembers:duringOpen:] + 250
    15  Message                             0x00007fff94d1b679 -[LibraryStore messagesWereAdded:conversationsMembers:duringOpen:] + 81
    16  Message                             0x00007fff94d1b61d -[LibraryIMAPStore propagateMessagesWereAdded:conversationsMembers:duringOpen:] + 39
    17  CoreFoundation                      0x00007fff8cf3eeda _CFXNotificationPost + 2554
    18  Foundation                          0x00007fff939df7b6 -[NSNotificationCenter postNotificationName:object:userInfo:] + 64
    19  Mail                                0x000000010187ff75 Mail + 8053
    20  Foundation                          0x00007fff93a4f9cf -[NSBlockOperation main] + 124
    21  Foundation                          0x00007fff93a25926 -[__NSOperationInternal start] + 684
    22  Foundation                          0x00007fff93a2d0f1 __block_global_6 + 129
    23  libdispatch.dylib                   0x00007fff92d88f01 _dispatch_call_block_and_release + 15
    24  libdispatch.dylib                   0x00007fff92d850b6 _dispatch_client_callout + 8
    25  libdispatch.dylib                   0x00007fff92d861fa _dispatch_worker_thread2 + 304
    26  libsystem_c.dylib                   0x00007fff8c558d0b _pthread_wqthread + 404
    27  libsystem_c.dylib                   0x00007fff8c5431d1 start_wqthread + 13
    Thread 0:: Dispatch queue: com.apple.main-thread
    0   libsystem_kernel.dylib                  0x00007fff92fbe686 mach_msg_trap + 10
    1   libsystem_kernel.dylib                  0x00007fff92fbdc42 mach_msg + 70
    2   com.apple.CoreFoundation                0x00007fff8cf29233 __CFRunLoopServiceMachPort + 195
    3   com.apple.CoreFoundation                0x00007fff8cf2e916 __CFRunLoopRun + 1078
    4   com.apple.CoreFoundation                0x00007fff8cf2e0e2 CFRunLoopRunSpecific + 290
    5   com.apple.HIToolbox                     0x00007fff9593eeb4 RunCurrentEventLoopInMode + 209
    6   com.apple.HIToolbox                     0x00007fff9593ec52 ReceiveNextEventCommon + 356
    7   com.apple.HIToolbox                     0x00007fff9593eae3 BlockUntilNextEventMatchingListInMode + 62
    8   com.apple.AppKit                        0x00007fff90095533 _DPSNextEvent + 685
    9   com.apple.AppKit                        0x00007fff90094df2 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 128
    10  com.apple.AppKit                        0x00007fff9008c1a3 -[NSApplication run] + 517
    11  com.apple.AppKit                        0x00007fff90030bd6 NSApplicationMain + 869
    12  libdyld.dylib                           0x00007fff9604f7e1 start + 1
    Thread 1:: Dispatch queue: com.apple.libdispatch-manager
    0   libsystem_kernel.dylib                  0x00007fff92fc0d16 kevent + 10
    1   libdispatch.dylib                       0x00007fff92d87dea _dispatch_mgr_invoke + 883
    2   libdispatch.dylib                       0x00007fff92d879ee _dispatch_mgr_thread + 54
    Thread 2:: Dispatch queue: com.apple.root.default-overcommit-priority
    0   libsystem_kernel.dylib                  0x00007fff92fbe686 mach_msg_trap + 10
    1   libsystem_kernel.dylib                  0x00007fff92fbdc42 mach_msg + 70
    2   com.apple.CoreFoundation                0x00007fff8cf29233 __CFRunLoopServiceMachPort + 195
    3   com.apple.CoreFoundation                0x00007fff8cf2e916 __CFRunLoopRun + 1078
    4   com.apple.CoreFoundation                0x00007fff8cf2e0e2 CFRunLoopRunSpecific + 290
    5   com.apple.CoreMessage                   0x00007fff934ca0e9 _handleRequestWithTimeout + 1527
    6   com.apple.CoreMessage                   0x00007fff934cc8cb -[_NSSocket readBytes:length:error:] + 161
    7   com.apple.CoreMessage                   0x00007fff934e6a7b -[Connection _readBytesFromSocketIntoBuffer:amount:requireAllBytes:error:] + 76
    8   com.apple.CoreMessage                   0x00007fff934e6961 -[Connection _fillBuffer:] + 764
    9   com.apple.CoreMessage                   0x00007fff934e64f3 -[Connection _readLineIntoData:error:] + 202
    10  com.apple.IMAP                          0x00007fff94bf5486 -[IMAPConnection _readLineIntoData:error:] + 53
    11  com.apple.IMAP                          0x00007fff94bfbe14 -[IMAPConnection(MFPrivate) _readDataOfLength:intoData:error:] + 112
    12  com.apple.IMAP                          0x00007fff94c1e428 -[IMAPResponse initWithConnection:error:] + 144
    13  com.apple.IMAP                          0x00007fff94bf557a -[IMAPConnection _copyNextServerResponse:] + 55
    14  com.apple.IMAP                          0x00007fff94bf57eb -[IMAPConnection _copyNextTaggedOrContinuationResponseForCommand:exists:] + 551
    15  com.apple.IMAP                          0x00007fff94bfaa87 -[IMAPConnection _responseFromSendingOperation:] + 863
    16  com.apple.IMAP                          0x00007fff94bf93b7 -[IMAPConnection executeUIDStore:] + 86
    17  com.apple.IMAP                          0x00007fff94bf0d43 -[IMAPClientUIDStoreOperation executeOnConnection:] + 26
    18  com.apple.IMAP                          0x00007fff94bf49f5 -[IMAPConnection prepareAndExecuteOperation:outWrongState:] + 1247
    19  com.apple.IMAP                          0x00007fff94c07501 -[IMAPGateway _allowClientOperationThrough:] + 1237
    20  com.apple.IMAP                          0x00007fff94c06fd4 -[IMAPGateway allowClientOperationThrough:] + 369
    21  com.apple.IMAP                          0x00007fff94bebae3 -[IMAPClientOperation main] + 84
    22  com.apple.Foundation                    0x00007fff93a25926 -[__NSOperationInternal start] + 684
    23  com.apple.Foundation                    0x00007fff93a2d0f1 __block_global_6 + 129
    24  libdispatch.dylib                       0x00007fff92d88f01 _dispatch_call_block_and_release + 15
    25  libdispatch.dylib                       0x00007fff92d850b6 _dispatch_client_callout + 8
    26  libdispatch.dylib                       0x00007fff92d861fa _dispatch_worker_thread2 + 304
    27  libsystem_c.dylib                       0x00007fff8c558d0b _pthread_wqthread + 404
    28  libsystem_c.dylib                       0x00007fff8c5431d1 start_wqthread + 13
    Thread 3:: Dispatch queue: com.apple.root.default-overcommit-priority
    0   libsystem_kernel.dylib                  0x00007fff92fc00fa __psynch_cvwait + 10
    1   libsystem_c.dylib                       0x00007fff8c55b023 _pthread_cond_wait + 927
    2   com.apple.Foundation                    0x00007fff939cc589 -[__NSOperationInternal waitUntilFinishedOrTimeout:] + 227
    3   com.apple.IMAP                          0x00007fff94bee328 -[IMAPClientOperationQueue waitUntilOperationIsFinished:] + 167
    4   com.apple.IMAP                          0x00007fff94c0780e -[IMAPGateway waitUntilClientOperationIsFinished:] + 168
    5   com.apple.IMAP                          0x00007fff94c07756 -[IMAPGateway addClientOperation:toQueueAndWaitUntilFinished:] + 411
    6   com.apple.IMAP                          0x00007fff94bf1ad6 -[IMAPCommandPipeline failureResponsesFromSendingCommandsWithGateway:responseHandler:highPriority:] + 284
    7   com.apple.MessageFramework              0x00007fff94d4ce62 -[LibraryIMAPStore _waitForDataFromDownload:uid:gateway:] + 411
    8   com.apple.MessageFramework              0x00007fff94d28d09 -[LibraryIMAPStore _fetchBodyDataForMessage:andHeaderDataIfReadilyAvailable:fetchIfNotAvailable:] + 347
    9   com.apple.MessageFramework              0x00007fff94d288d6 -[MessageStore bodyDataForMessage:fetchIfNotAvailable:allowPartial:] + 329
    10  com.apple.IMAP                          0x00007fff94c1a086 -[IMAPMessageWithCache bodyDataFetchIfNotAvailable:allowPartial:] + 197
    11  com.apple.CoreMessage                   0x00007fff93526331 -[MimePart(MessageSupport) parseMimeBodyFetchIfNotAvailable:allowPartial:] + 170
    12  com.apple.MessageFramework              0x00007fff94d284cd -[MessageStore _fetchBodyForMessage:fetchIfNotAvailable:updateFlags:allowPartial:] + 231
    13  com.apple.MessageFramework              0x00007fff94d278a0 -[MessageStore bodyForMessage:fetchIfNotAvailable:updateFlags:allowPartial:] + 162
    14  com.apple.MessageFramework              0x00007fff94dfecad -[MessageCriterion _evaluateJunkMailCriterion:] + 462
    15  com.apple.MessageFramework              0x00007fff94dfffd7 -[MessageCriterion _evaluateMessage:] + 80
    16  com.apple.MessageFramework              0x00007fff94dfff7f -[MessageCriterion doesMessageSatisfyRuleEvaluationCriterion:] + 75
    17  com.apple.MessageFramework              0x00007fff94e0d6f2 -[MessageRule doesMessageSatisfyCriteria:] + 453
    18  com.apple.MessageFramework              0x00007fff94e05807 +[MessageRouter putRulesThatWantsToHandleMessage:intoArray:colorRulesOnly:] + 499
    19  com.apple.MessageFramework              0x00007fff94e072f2 -[MessageRouter routeMessages:fromStores:] + 2225
    20  com.apple.MessageFramework              0x00007fff94e1442f -[MessageStore routeMessages:isUserAction:] + 123
    21  com.apple.IMAP                          0x00007fff94c12028 -[IMAPMailboxSyncEngine _processResponsesWithMonitor:] + 1709
    22  com.apple.IMAP                          0x00007fff94c11552 -[IMAPMailboxSyncEngine _goWithMessages:] + 858
    23  com.apple.MessageFramework              0x00007fff94d17962 -[LibraryIMAPStore openSynchronouslyUpdatingMetadata:withOptions:] + 373
    24  com.apple.MessageFramework              0x00007fff94d31826 -[LibraryIMAPStore _fetchForCheckingNewMail:] + 53
    25  com.apple.MessageFramework              0x00007fff94d31688 -[IMAPAccount fetchSynchronouslyIsAuto:] + 139
    26  com.apple.CoreFoundation                0x00007fff8cf8009c __invoking___ + 140
    27  com.apple.CoreFoundation                0x00007fff8cf7ff37 -[NSInvocation invoke] + 263
    28  com.apple.CoreMessage                   0x00007fff9352d7d7 -[MonitoredInvocation invoke] + 225
    29  com.apple.CoreMessage                   0x00007fff93545e22 -[ThrowingInvocationOperation main] + 33
    30  com.apple.CoreMessage                   0x00007fff934f1f82 -[_MFInvocationOperation main] + 431
    31  com.apple.Foundation                    0x00007fff93a25926 -[__NSOperationInternal start] + 684
    32  com.apple.Foundation                    0x00007fff93a2d0f1 __block_global_6 + 129
    33  libdispatch.dylib                       0x00007fff92d88f01 _dispatch_call_block_and_release + 15
    34  libdispatch.dylib                       0x00007fff92d850b6 _dispatch_client_callout + 8
    35  libdispatch.dylib                       0x00007fff92d861fa _dispatch_worker_thread2 + 304
    36  libsystem_c.dylib                       0x00007fff8c558d0b _pthread_wqthread + 404
    37  libsystem_c.dylib                       0x00007fff8c5431d1 start_wqthread + 13
    Thread 4:: Dispatch queue: com.apple.root.default-overcommit-priority
    0   libsystem_kernel.dylib                  0x00007fff92fc0122 __psynch_mutexwait + 10
    1   libsystem_c.dylib                       0x00007fff8c55bdfd pthread_mutex_lock + 536
    2   com.apple.Foundation                    0x00007fff939dbb79 -[NSRecursiveLock lock] + 22
    3   com.apple.IMAP                          0x00007fff94bfd4c8 -[IMAPConnectionPool checkInConnection:forGateway:] + 50
    4   com.apple.IMAP                          0x00007fff94c065f2 __51-[IMAPGateway _tryToCheckInConnectionAndTryToIdle:]_block_invoke_0 + 313
    5   com.apple.Foundation                    0x00007fff93a4f9cf -[NSBlockOperation main] + 124
    6   com.apple.Foundation                    0x00007fff93a25926 -[__NSOperationInternal start] + 684
    7   com.apple.Foundation                    0x00007fff93a2d0f1 __block_global_6 + 129
    8   libdispatch.dylib                       0x00007fff92d88f01 _dispatch_call_block_and_release + 15
    9   libdispatch.dylib                       0x00007fff92d850b6 _dispatch_client_callout + 8
    10  libdispatch.dylib                       0x00007fff92d861fa _dispatch_worker_thread2 + 304
    11  libsystem_c.dylib                       0x00007fff8c558d0b _pthread_wqthread + 404
    12  libsystem_c.dylib                       0x00007fff8c5431d1 start_wqthread + 13
    Thread 5:
    0   libsystem_kernel.dylib                  0x00007fff92fc06d6 __workq_kernreturn + 10
    1   libsystem_c.dylib                       0x00007fff8c558f4c _pthread_workq_return + 25
    2   libsystem_c.dylib                       0x00007fff8c558d13 _pthread_wqthread + 412
    3   libsystem_c.dylib                       0x00007fff8c5431d1 start_wqthread + 13
    Thread 6:
    0   libsystem_kernel.dylib                  0x00007fff92fc06d6 __workq_kernreturn + 10
    1   libsystem_c.dylib                       0x00007fff8c558f4c _pthread_workq_return + 25
    2   libsystem_c.dylib                       0x00007fff8c558d13 _pthread_wqthread + 412
    3   libsystem_c.dylib                       0x00007fff8c5431d1 start_wqthread + 13
    Thread 7 Crashed:: Dispatch queue: com.apple.root.default-overcommit-priority
    0   libsystem_kernel.dylib                  0x00007fff92fc0212 __pthread_kill + 10
    1   libsystem_c.dylib                       0x00007fff8c557b54 pthread_kill + 90
    2   libsystem_c.dylib                       0x00007fff8c59bdce abort + 143
    3   libc++abi.dylib                         0x00007fff8c51f9eb abort_message + 257
    4   libc++abi.dylib                         0x00007fff8c51d39a default_terminate() + 28
    5   libobjc.A.dylib                         0x00007fff8b91b873 _objc_terminate() + 91
    6   libc++.1.dylib                          0x00007fff929fa8fe std::terminate() + 20
    7   libobjc.A.dylib                         0x00007fff8b91b5de objc_terminate + 9
    8   libdispatch.dylib                       0x00007fff92d850ca _dispatch_client_callout + 28
    9   libdispatch.dylib                       0x00007fff92d861fa _dispatch_worker_thread2 + 304
    10  libsystem_c.dylib                       0x00007fff8c558d0b _pthread_wqthread + 404
    11  libsystem_c.dylib                       0x00007fff8c5431d1 start_wqthread + 13
    Thread 8:: Dispatch queue: com.apple.root.default-overcommit-priority
    0   libsystem_kernel.dylib                  0x00007fff92fc0122 __psynch_mutexwait + 10
    1   libsystem_c.dylib                       0x00007fff8c55bdfd pthread_mutex_lock + 536
    2   com.apple.Foundation                    0x00007fff939dbb79 -[NSRecursiveLock lock] + 22
    3   com.apple.IMAP                          0x00007fff94bfd4c8 -[IMAPConnectionPool checkInConnection:forGateway:] + 50
    4   com.apple.IMAP                          0x00007fff94c065f2 __51-[IMAPGateway _tryToCheckInConnectionAndTryToIdle:]_block_invoke_0 + 313
    5   com.apple.Foundation                    0x00007fff93a4f9cf -[NSBlockOperation main] + 124
    6   com.apple.Foundation                    0x00007fff93a25926 -[__NSOperationInternal start] + 684
    7   com.apple.Foundation                    0x00007fff93a2d0f1 __block_global_6 + 129
    8   libdispatch.dylib                       0x00007fff92d88f01 _dispatch_call_block_and_release + 15
    9   libdispatch.dylib                       0x00007fff92d850b6 _dispatch_client_callout + 8
    10  libdispatch.dylib                       0x00007fff92d861fa _dispatch_worker_thread2 + 304
    11  libsystem_c.dylib                       0x00007fff8c558d0b _pthread_wqthread + 404
    12  libsystem_c.dylib                       0x00007fff8c5431d1 start_wqthread + 13
    Thread 9:: Dispatch queue: com.apple.root.default-overcommit-priority
    0   libsystem_kernel.dylib                  0x00007fff92fbe686 mach_msg_trap + 10
    1   libsystem_kernel.dylib                  0x00007fff92fbdc42 mach_msg + 70
    2   com.apple.CoreFoundation                0x00007fff8cf29233 __CFRunLoopServiceMachPort + 195
    3   com.apple.CoreFoundation                0x00007fff8cf2e916 __CFRunLoopRun + 1078
    4   com.apple.CoreFoundation                0x00007fff8cf2e0e2 CFRunLoopRunSpecific + 290
    5   com.apple.CoreMessage                   0x00007fff934ca0e9 _handleRequestWithTimeout + 1527
    6   com.apple.CoreMessage                   0x00007fff934cc8cb -[_NSSocket readBytes:length:error:] + 161
    7   com.apple.CoreMessage                   0x00007fff934e6a7b -[Connection _readBytesFromSocketIntoBuffer:amount:requireAllBytes:error:] + 76
    8   com.apple.CoreMessage                   0x00007fff934e6961 -[Connection _fillBuffer:] + 764
    9   com.apple.CoreMessage                   0x00007fff934e64f3 -[Connection _readLineIntoData:error:] + 202
    10  com.apple.IMAP                          0x00007fff94bf5486 -[IMAPConnection _readLineIntoData:error:] + 53
    11  com.apple.IMAP                          0x00007fff94bfbe14 -[IMAPConnection(MFPrivate) _readDataOfLength:intoData:error:] + 112
    12  com.apple.IMAP                          0x00007fff94c1e428 -[IMAPResponse initWithConnection:error:] + 144
    13  com.apple.IMAP                          0x00007fff94bf557a -[IMAPConnection _copyNextServerResponse:] + 55
    14  com.apple.IMAP                          0x00007fff94bf57eb -[IMAPConnection _copyNextTaggedOrContinuationResponseForCommand:exists:] + 551
    15  com.apple.IMAP                          0x00007fff94bfaa87 -[IMAPConnection _responseFromSendingOperation:] + 863
    16  com.apple.IMAP                          0x00007fff94bf7ad0 -[IMAPConnection executeLogin:] + 63
    17  com.apple.IMAP                          0x00007fff94be6107 -[IMAPClientLoginOperation executeOnConnection:] + 26
    18  com.apple.IMAP                          0x00007fff94bf49f5 -[IMAPConnection prepareAndExecuteOperation:outWrongState:] + 1247
    19  com.apple.IMAP                          0x00007fff94c07501 -[IMAPGateway _allowClientOperationThrough:] + 1237
    20  com.apple.IMAP                          0x00007fff94c06fd4 -[IMAPGateway allowClientOperationThrough:] + 369
    21  com.apple.IMAP                          0x00007fff94bebae3 -[IMAPClientOperation main] + 84
    22  com.apple.Foundation                    0x00007fff93a25926 -[__NSOperationInternal start] + 684
    23  com.apple.Foundation                    0x00007fff93a2d0f1 __block_global_6 + 129
    24  libdispatch.dylib                       0x00007fff92d88f01 _dispatch_call_block_and_release + 15
    25  libdispatch.dylib                       0x00007fff92d850b6 _dispatch_client_callout + 8
    26  libdispatch.dylib                       0x00007fff92d861fa _dispatch_worker_thread2 + 304
    27  libsystem_c.dylib                       0x00007fff8c558d0b _pthread_wqthread + 404
    28  libsystem_c.dylib                       0x00007fff8c5431d1 start_wqthread + 13
    Thread 10:: -[MFAosImapAccount _fetchUnreadCountsCheckForNewMessages:]  Dispatch queue: com.apple.root.default-overcommit-priority
    0   libsystem_kernel.dylib                  0x00007fff92fc0122 __psynch_mutexwait + 10
    1   libsystem_c.dylib                       0x00007fff8c55bdfd pthread_mutex_lock + 536
    2   com.apple.IMAP                          0x00007fff94c0bcaa -[IMAPMailboxSyncEngine _copyDataSource] + 32
    3   com.apple.IMAP                          0x00007fff94c11227 -[IMAPMailboxSyncEngine _goWithMessages:] + 47
    4   com.apple.MessageFramework              0x00007fff94d3cc66 -[LibraryIMAPStore _retrieveNewMessagesForCheckingNewMail:] + 237
    5   com.apple.MessageFramework              0x00007fff94d31a63 -[LibraryIMAPStore _fetchForCheckingNewMail:] + 626
    6   com.apple.MessageFramework              0x00007fff94d3d8f5 -[IMAPAccount _fetchUnreadCountsForMailboxUid:recursively:gateway:checkForNewMessages:] + 725
    7   com.apple.MessageFramework              0x00007fff94d3d258 -[IMAPAccount _fetchUnreadCountsCheckForNewMessages:] + 417
    8   com.apple.CoreFoundation                0x00007fff8cf8009c __invoking___ + 140
    9   com.apple.CoreFoundation                0x00007fff8cf7ff37 -[NSInvocation invoke] + 263
    10  com.apple.CoreMessage                   0x00007fff9352d7d7 -[MonitoredInvocation invoke] + 225
    11  com.apple.CoreMessage                   0x00007fff93545e22 -[ThrowingInvocationOperation main] + 33
    12  com.apple.CoreMessage                   0x00007fff934f1f82 -[_MFInvocationOperation main] + 431
    13  com.apple.Foundation                    0x00007fff93a25926 -[__NSOperationInternal start] + 684
    14  com.apple.Foundation                    0x00007fff93a2d0f1 __block_global_6 + 129
    15  libdispatch.dylib                       0x00007fff92d88f01 _dispatch_call_block_and_release + 15
    16  libdispatch.dylib                       0x00007fff92d850b6 _dispatch_client_callout + 8
    17  libdispatch.dylib                       0x00007fff92d861fa _dispatch_worker_thread2 + 304
    18  libsystem_c.dylib                       0x00007fff8c558d0b _pthread_wqthread + 404
    19  libsystem_c.dylib                       0x00007fff8c5431d1 start_wqthread + 13
    Thread 11:: -[IMAPAccount fetchSynchronouslyIsAuto:]  Dispatch queue: com.apple.root.default-overcommit-priority
    0   libsystem_kernel.dylib                  0x00007fff92fc0122 __psynch_mutexwait + 10
    1   libsystem_c.dylib                       0x00007fff8c55bdfd pthread_mutex_lock + 536
    2   com.apple.IMAP                          0x00007fff94c0bcaa -[IMAPMailboxSyncEngine _copyDataSource] + 32
    3   com.apple.IMAP                          0x00007fff94c11227 -[IMAPMailboxSyncEngine _goWithMessages:] + 47
    4   com.apple.MessageFramework              0x00007fff94d17962 -[LibraryIMAPStore openSynchronouslyUpdatingMetadata:withOptions:] + 373
    5   com.apple.MessageFramework              0x00007fff94d31826 -[LibraryIMAPStore _fetchForCheckingNewMail:] + 53
    6   com.apple.MessageFramework              0x00007fff94d31688 -[IMAPAccount fetchSynchronouslyIsAuto:] + 139
    7   com.apple.CoreFoundation                0x00007fff8cf8009c __invoking___ + 140
    8   com.apple.CoreFoundation                0x00007fff8cf7ff37 -[NSInvocation invoke] + 263
    9   com.apple.CoreMessage                   0x00007fff9352d7d7 -[MonitoredInvocation invoke] + 225
    10  com.apple.CoreMessage                   0x00007fff93545e22 -[ThrowingInvocationOperation main] + 33
    11  com.apple.CoreMessage                   0x00007fff934f1f82 -[_MFInvocationOperation main] + 431
    12  com.apple.Foundation                    0x00007fff93a25926 -[__NSOperationInternal start] + 684
    13  com.apple.Foundation                    0x00007fff93a2d0f1 __block_global_6 + 129
    14  libdispatch.dylib                       0x00007fff92d88f01 _dispatch_call_block_and_release + 15
    15  libdispatch.dylib                       0x00007fff92d850b6 _dispatch_client_callout + 8
    16  libdispatch.dylib                       0x00007fff92d861fa _dispatch_worker_thread2 + 304
    17  libsystem_c.dylib                       0x00007fff8c558d0b _pthread_wqthread + 404
    18  libsystem_c.dylib                       0x00007fff8c5431d1 start_wqthread + 13
    Thread 12:: -[LibraryIMAPStore openSynchronously]  Dispatch queue: com.apple.root.default-overcommit-priority
    0   libsystem_kernel.dylib                  0x00007fff92fc00fa __psynch_cvwait + 10
    1   libsystem_c.dylib                       0x00007fff8c55b023 _pthread_cond_wait + 927
    2   com.apple.Foundation                    0x00007fff939cc589 -[__NSOperationInternal waitUntilFinishedOrTimeout:] + 227
    3   com.apple.IMAP                          0x00007fff94bee328 -[IMAPClientOperationQueue waitUntilOperationIsFinished:] + 167
    4   com.apple.IMAP                          0x00007fff94c0780e -[IMAPGateway waitUntilClientOperationIsFinished:] + 168
    5   com.apple.IMAP                          0x00007fff94c07756 -[IMAPGateway addClientOperation:toQueueAndWaitUntilFinished:] + 411
    6   com.apple.IMAP                          0x00007fff94c14146 -[IMAPMailboxSyncEngine _fetchUidsAndFlagsWithMonitor:] + 1924
    7   com.apple.IMAP                          0x00007fff94c115a3 -[IMAPMailboxSyncEngine _goWithMessages:] + 939
    8   com.apple.MessageFramework              0x00007fff94d17962 -[LibraryIMAPStore openSynchronouslyUpdatingMetadata:withOptions:] + 373
    9   com.apple.CoreFoundation                0x00007fff8cf8009c __invoking___ + 140
    10  com.apple.CoreFoundation                0x00007fff8cf7ff37 -[NSInvocation invoke] + 263
    11  com.apple.CoreMessage                   0x00007fff9352d7d7 -[MonitoredInvocation invoke] + 225
    12  com.apple.CoreMessage                   0x00007fff93545e22 -[ThrowingInvocationOperation main] + 33
    13  com.apple.CoreMessage                   0x00007fff934f1f82 -[_MFInvocationOperation main] + 431
    14  com.apple.Foundation                    0x00007fff93a25926 -[__NSOperationInternal start] + 684
    15  com.apple.Foundation                    0x00007fff93a2d0f1 __block_global_6 + 129
    16  libdispatch.dylib                       0x00007fff92d88f01 _dispatch_call_block_and_release + 15
    17  libdispatch.dylib                       0x00007fff92d850b6 _dispatch_client_callout + 8
    18  libdispatch.dylib                       0x00007fff92d861fa _dispatch_worker_thread2 + 304
    19  libsystem_c.dylib                       0x00007fff8c558d0b _pthread_wqthread + 404
    20  libsystem_c.dylib                       0x00007fff8c5431d1 start_wqthread + 13
    Thread 13:: -[LibraryIMAPStore openSynchronously]  Dispatch queue: com.apple.root.default-overcommit-priority
    0   libsystem_kernel.dylib                  0x00007fff92fc0122 __psynch_mutexwait + 10
    1   libsystem_c.dylib                       0x00007fff8c55bdfd pthread_mutex_lock + 536
    2   com.apple.IMAP                          0x00007fff94c11311 -[IMAPMailboxSyncEngine _goWithMessages:] + 281
    3   com.apple.MessageFramework              0x00007fff94d17962 -[LibraryIMAPStore openSynchronouslyUpdatingMetadata:withOptions:] + 373
    4   com.apple.CoreFoundation                0x00007fff8cf8009c __invoking___ + 140
    5   com.apple.CoreFoundation                0x00007fff8cf7ff37 -[NSInvocation invoke] + 263
    6   com.apple.CoreMessage                   0x00007fff9352d7d7 -[MonitoredInvocation invoke] + 225
    7   com.apple.CoreMessage                   0x00007fff93545e22 -[ThrowingInvocationOperation main] + 33
    8   com.apple.CoreMessage                   0x00007fff934f1f82 -[_MFInvocationOperation main] + 431
    9   com.apple.Foundation                    0x00007fff93a25926 -[__NSOperationInternal start] + 684
    10  com.apple.Foundation                    0x00007fff93a2d0f1 __block_global_6 + 129
    11  libdispatch.dylib                       0x00007fff92d88f01 _dispatch_call_block_and_release + 15
    12  libdispatch.dylib                       0x00007fff92d850b6 _dispatch_client_callout + 8
    13  libdispatch.dylib                       0x00007fff92d861fa _dispatch_worker_thread2 + 304
    14  libsystem_c.dylib                       0x00007fff8c558d0b _pthread_wqthread + 404
    15  libsystem_c.dylib                       0x00007fff8c5431d1 start_wqthread + 13
    Thread 14:: -[IMAPAccount fetchSynchronouslyIsAuto:]  Dispatch queue: com.apple.root.default-overcommit-priority
    0   libsystem_kernel.dylib                  0x00007fff92fc0122 __psynch_mutexwait + 10
    1   libsystem_c.dylib                       0x00007fff8c55bdfd pthread_mutex_lock + 536
    2   com.apple.IMAP                          0x00007fff94c0bcaa -[IMAPMailboxSyncEngine _copyDataSource] + 32
    3   com.apple.IMAP                          0x00007fff94c11227 -[IMAPMailboxSyncEngine _goWithMessages:] + 47
    4   com.apple.MessageFramework              0x00007fff94d17962 -[LibraryIMAPStore openSynchronouslyUpdatingMetadata:withOptions:] + 373
    5   com.apple.MessageFramework              0x00007fff94d31826 -[LibraryIMAPStore _fetchForCheckingNewMail:] + 53
    6   com.apple.MessageFramework              0x00007fff94d31688 -[IMAPAccount fetchSynchronouslyIsAuto:] + 139
    7   com.apple.CoreFoundation                0x00007fff8cf8009c __invoking___ + 140
    8   com.apple.CoreFoundation                0x00007fff8cf7ff37 -[NSInvocation invoke] + 263
    9   com.apple.CoreMessage                   0x00007fff9352d7d7 -[MonitoredInvocation invoke] + 225
    10  com.apple.CoreMessage                   0x00007fff93545e22 -[ThrowingInvocationOperation main] + 33
    11  com.apple.CoreMessage                   0x00007fff934f1f82 -[_MFInvocationOperation main] + 431
    12  com.apple.Foundation                    0x00007fff93a25926 -[__NSOperationInternal start] + 684
    13  com.apple.Foundation                    0x00007fff93a2d0f1 __block_global_6 + 129
    14  libdispatch.dylib                       0x00007fff92d88f01 _dispatch_call_block_and_release + 15
    15  libdispatch.dylib                       0x00007fff92d850b6 _dispatch_client_callout + 8
    16  libdispatch.dylib                       0x00007fff92d861fa _dispatch_worker_thread2 + 304
    17  libsystem_c.dylib                       0x00007fff8c558d0b _pthread_wqthread + 404
    18  libsystem_c.dylib                       0x00007fff8c5431d1 start_wqthread + 13
    Thread 15:: Dispatch queue: com.apple.root.default-overcommit-priority
    0   libsystem_kernel.dylib                  0x00007fff92fc002a __open_nocancel + 10
    1   libsystem_c.dylib                       0x00007fff8c5a8a8b __opendir2$INODE64 + 45
    2   libsystem_c.dylib                       0x00007fff8c5aa7b0 scandir$INODE64 + 33
    3   com.apple.MessageFramework              0x00007fff94d33243 mf_scandir + 61
    4   com.apple.MessageFramework              0x00007fff94d332bb mf_scandir + 181
    5   com.apple.MessageFramework              0x00007fff94d332bb mf_scandir + 181
    6   com.apple.MessageFramework              0x00007fff94d332bb mf_scandir + 181
    7   com.apple.MessageFramework              0x00007fff94e339ce -[MFFilesystemWatcher registerPath:] + 168
    8   com.apple.MessageFramework              0x00007fff94d330d1 -[LibraryIMAPStore cacheDirectoryContents] + 131
    9   com.apple.IMAP                          0x00007fff94c1538e -[IMAPMailboxSyncEngine _cacheMessagesWithMonitor:] + 1109
    10  com.apple.IMAP                          0x00007fff94c115d5 -[IMAPMailboxSyncEngine _goWithMessages:] + 989
    11  com.apple.MessageFramework              0x00007fff94d17962 -[LibraryIMAPStore openSynchronouslyUpdatingMetadata:withOptions:] + 373
    12  com.apple.CoreFoundation                0x00007fff8cf8009c __invoking___ + 140
    13  com.apple.CoreFoundation                0x00007fff8cf7ff37 -[NSInvocation invoke] + 263
    14  com.apple.CoreMessage                   0x00007fff9352d7d7 -[MonitoredInvocation invoke] + 225
    15  com.apple.CoreMessage                   0x00007fff93545e22 -[ThrowingInvocationOperation main] + 33
    16  com.apple.CoreMessage                   0x00007fff934f1f82 -[_MFInvocationOperation main] + 431
    17  com.apple.Foundation                    0x00007fff93a25926 -[__NSOperationInternal start] + 684
    18  com.apple.Foundation                    0x00007fff93a2d0f1 __block_global_6 + 129
    19  libdispatch.dylib                       0x00007fff92d88f01 _dispatch_call_block_and_release + 15
    20  libdispatch.dylib                       0x00007fff92d850b6 _dispatch_client_callout + 8
    21  libdispatch.dylib                       0x00007fff92d861fa _dispatch_worker_thread2 + 304
    22  libsystem_c.dylib                       0x00007fff8c558d0b _pthread_wqthread + 404
    23  libsystem_c.dylib                       0x00007fff8c5431d1 start_wqthread + 13
    Thread 16:: Dispatch queue: com.apple.root.default-overcommit-priority
    0   libsystem_kernel.dylib                  0x00007fff92fbe686 mach_msg_trap + 10
    1   libsystem_kernel.dylib                  0x00007fff92fbdc42 mach_msg + 70
    2   com.apple.CoreFoundation                0x00007fff8cf29233 __CFRunLoopServiceMachPort + 195
    3   com.apple.CoreFoundation                0x00007fff8cf2e916 __CFRunLoopRun + 1078
    4   com.apple.CoreFoundation                0x00007fff8cf2e0e2 CFRunLoopRunSpecific + 290
    5   com.apple.CoreMessage                   0x00007fff934ca0e9 _handleRequestWithTimeout + 1527
    6   com.apple.CoreMessage                   0x00007fff934cc8cb -[_NSSocket readBytes:length:error:] + 161
    7   com.apple.CoreMessage                   0x00007fff934e6a7b -[Connection _readBytesFromSocketIntoBuffer:amount:requireAllBytes:error:] + 76
    8   com.apple.CoreMessage                   0x00007fff934e6961 -[Connection _fillBuffer:] + 764
    9   com.apple.CoreMessage                   0x00007fff934e64f3 -[Connection _readLineIntoData:error:] + 202
    10  com.apple.IMAP                          0x00007fff94bf5486 -[IMAPConnection _readLineIntoData:error:] + 53
    11  com.apple.IMAP                          0x00007fff94bfbe14 -[IMAPConnection(MFPrivate) _readDataOfLength:intoData:error:] + 112
    12  com.apple.IMAP                          0x00007fff94c1e428 -[IMAPResponse initWithConnection:error:] + 144
    13  com.apple.IMAP                          0x00007fff94bf557a -[IMAPConnection _copyNextServerResponse:] + 55
    14  com.apple.IMAP                          0x00007fff94bf57eb -[IMAPConnection _copyNextTaggedOrContinuationResponseForCommand:exists:] + 551
    15  com.apple.IMAP                          0x00007fff94bfaa87 -[IMAPConnection _responseFromSendingOperation:] + 863
    16  com.apple.IMAP                          0x00007fff94bfa3d1 -[IMAPConnection executeFetch:] + 44
    17  com.apple.IMAP                          0x00007fff94be7ee2 -[IMAPClientFetchOperation executeOnConnection:] + 26
    18  com.apple.IMAP                          0x00007fff94bf49f5 -[IMAPConnection prepareAndExecuteOperation:outWrongState:] + 1247
    19  com.apple.IMAP                          0x00007fff94c07501 -[IMAPGateway _allowClientOperationThrough:] + 1237
    20  com.apple.IMAP                          0x00007fff94c06fd4 -[IMAPGateway allowClientOperationThrough:] + 369
    21  com.apple.IMAP                          0x00007fff94bebae3 -[IMAPClientOperation main] + 84
    22  com.apple.Foundation                    0x00007fff93a25926 -[__NSOperationInternal start] + 684
    23  com.apple.Foundation                    0x00007fff93a2d0f1 __block_global_6 + 129
    24  libdispatch.dylib                       0x00007fff92d88f01 _dispatch_call_block_and_release + 15
    25  libdispatch.dylib                       0x00007fff92d850b6 _dispatch_client_callout + 8
    26  libdispatch.dylib                       0x00007fff92d861fa _dispatch_worker_thread2 + 304
    27  libsystem_c.dylib                       0x00007fff8c558d0b _pthread_wqthread + 404
    28  libsystem_c.dylib                       0x00007fff8c5431d1 start_wqthread + 13
    Thread 17:: Dispatch queue: com.apple.root.default-overcommit-priority
    0   libsystem_c.dylib                       0x00007fff8c544cfc OSAtomicCompareAndSwap64Barrier$VARIANT$mp + 8
    1   libsystem_c.dylib                       0x00007fff8c55bdb4 pthread_mutex_lock + 463
    2   com.apple.CoreMessage                   0x00007fff9353eea9 -[SafeValueCache retainedValue] + 22
    3   com.apple.CoreMessage                   0x00007fff9353edf7 -[SafeValueCache value] + 17
    4   com.apple.MessageFramework              0x00007fff94df45de -[MailboxUid _URLStringIsSyncable:] + 57
    5   com.apple.CoreFoundation                0x00007fff8cf9e3ed -[NSArray arrayByApplyingSelector:] + 429
    6   com.apple.MessageFramework              0x00007fff94d06758 +[Library _getActiveAccountURLs:andActiveMailboxURLs:] + 960
    7   com.apple.MessageFramework              0x00007fff94cef16a +[Library executeBlock:isWriter:useTransaction:isPrivileged:] + 280
    8   com.apple.MessageFramework              0x00007fff94d103c1 +[Library sendMessagesMatchingQuery:to:options:] + 398
    9   com.apple.MessageFramework              0x00007fff94d0c952 +[Library sendMessagesMatchingCriterion:to:options:] + 1677
    10  com.apple.MessageFramework              0x00007fff94d0c16c +[Library messagesMatchingCriterion:options:] + 119
    11  com.apple.MessageFramework              0x00007fff94d43b7d +[LibraryStore filterMessages:throughSmartMailbox:] + 685
    12  com.apple.MessageFramework              0x00007fff94e6ea6c __block_global_2 + 165
    13  com.apple.CoreFoundation                0x00007fff8cf788a9 __NSDictionaryEnumerate + 1081
    14  com.apple.MessageFramework              0x00007fff94e6e998 __62-[_NonContentSmartMailboxUnreadCountManager _messagesChanged:]_block_invoke_0 + 147
    15  com.apple.Foundation                    0x00007fff93a4f9cf -[NSBlockOperation main] + 124
    16  com.apple.Foundation                    0x00007fff93a25926 -[__NSOperationInternal start] + 684
    17  com.apple.Foundation                    0x00007fff93a2d0f1 __block_global_6 + 129
    18  libdispatch.dylib                       0x00007fff92d88f01 _dispatch_call_block_and_release + 15
    19  libdispatch.dylib                       0x00007fff92d850b6 _dispatch_client_callout + 8
    20  libdispatch.dylib                       0x00007fff92d861fa _dispatch_worker_thread2 + 304
    21  libsystem_c.dylib                       0x00007fff8c558d0b _pthread_wqthread + 404
    22  libsystem_c.dylib                       0x00007fff8c5431d1 start_wqthread + 13
    Thread 18:
    0   libsystem_kernel.dylib                  0x00007fff92fbe686 mach_msg_trap + 10
    1   libsystem_kernel.dylib                  0x00007fff92fbdc42 mach_msg + 70
    2   com.apple.CoreFoundation                0x00007fff8cf29233 __CFRunLoopServiceMachPort + 195
    3   com.apple.CoreFoundation                0x00007fff8cf2e916 __CFRunLoopRun + 1078
    4   com.apple.CoreFoundation                0x00007fff8cf2e0e2 CFRunLoopRunSpecific + 290
    5   com.apple.Foundation                    0x00007fff93a317ee -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 268
    6   com.apple.Foundation                    0x00007fff939ca1aa -[NSRunLoop(NSRunLoop) run] + 74
    7   com.apple.CoreMessage                   0x00007fff934cad57 +[_NSSocket _runIOThread] + 77
    8   com.apple.Foundation                    0x00007fff93a2c562 __NSThread__main__ + 1345
    9   libsystem_c.dylib                       0x00007fff8c5567a2 _pthread_start + 327
    10  libsystem_c.dylib                       0x00007fff8c5431e1 thread_start + 13
    Thread 19:: com.apple.CFSocket.private
    0   libsystem_kernel.dylib                  0x00007fff92fc0322 __select + 10
    1   com.apple.CoreFoundation                0x00007fff8cf6df46 __CFSocketManager + 1302
    2   libsystem_c.dylib                       0x00007fff8c5567a2 _pthread_start + 327
    3   libsystem_c.dylib                       0x00007fff8c5431e1 thread_start + 13
    Thread 20:: -[IMAPAccount _synchronizeAccountWithServerWithUserInput:]  Dispatch queue: com.apple.root.default-overcommit-priority
    0   libsystem_kernel.dylib                  0x00007fff92fc00fa __psynch_cvwait + 10
    1   libsystem_c.dylib                       0x00007fff8c55b023 _pthread_cond_wait + 927
    2   com.apple.Foundation                    0x00007fff939cc589 -[__NSOperationInternal waitUntilFinishedOrTimeout:] + 227
    3   com.apple.IMAP                          0x00007fff94bee328 -[IMAPClientOperationQueue waitUntilOperationIsFinished:] + 167
    4   com.apple.IMAP                          0x00007fff94c0780e -[IMAPGateway waitUntilClientOperationIsFinished:] + 168
    5   com.apple.IMAP                          0x00007fff94bf79aa -[IMAPConnection _loginWithUsername:password:] + 692
    6   com.apple.IMAP                          0x00007fff94bf6c75 -[IMAPConnection _authenticateWithAuthenticator:] + 850
    7   com.apple.CoreMessage                   0x00007fff934e6295 -[Connection authenticate] + 598
    8   com.apple.IMAP                          0x00007fff94bf6830 -[IMAPConnection authenticate] + 66
    9   com.apple.MessageFramework              0x00007fff94d9dfd9 -[IMAPAccount connectAndAuthenticate:] + 1058
    10  com.apple.IMAP                          0x00007fff94bffd5d -[IMAPConnectionPool _validateAndCheckOutGateway:forMailbox:allowReconnect:newGateway:] + 334
    11  com.apple.IMAP                          0x00007fff94bfde39 -[IMAPConnectionPool _checkOutNewGatewayWithConnection:forMailbox:] + 301
    12  com.apple.MessageFramework              0x00007fff94d1c695 -[IMAPAccount _getPotentialGatewayForMailbox:options:createdNewConnection:needsSelect:] + 429
    13  com.apple.MessageFramework              0x00007fff94d1c2a0 -[IMAPAccount _gatewayForMailboxUid:name:options:] + 180
    14  com.apple.MessageFramework              0x00007fff94d3791a -[IMAPAccount _listingForMailboxUid:listAllChildren:onlySubscribed:withUserInput:] + 115
    15  com.apple.MessageFramework              0x00007fff94d37498 -[IMAPAccount _listingForMailboxUid:listAllChildren:withUserInput:] + 126
    16  com.apple.MessageFramework              0x00007fff94d373b3 -[IMAPAccount _synchronizeMailboxListWithUserInput:] + 64
    17  com.apple.MessageFramework              0x00007fff94d33c1f -[RemoteStoreAccount _synchronizeAccountWithServerWithUserInput:] + 318
    18  com.apple.MessageFramework              0x00007fff94d338b3 -[IMAPAccount _synchronizeAccountWithServerWithUserInput:] + 45
    19  com.apple.CoreFoundation                0x00007fff8cf8009c __invoking___ + 140
    20  com.apple.CoreFoundation                0x00007fff8cf7ff37 -[NSInvocation invoke] + 263
    21  com.apple.CoreMessage                   0x00007fff9352d7d7 -[MonitoredInvocation invoke] + 225
    22  com.apple.CoreMessage                   0x00007fff93545e22 -[ThrowingInvocationOperation main] + 33
    23  com.apple.CoreMessage                   0x00007fff934f1f82 -[_MFInvocationOperation main] + 431
    24  com.apple.Foundation                    0x00007fff93a25926 -[__NSOperationInternal start] + 684
    25  com.apple.Foundation                    0x00007fff93a2d0f1 __block_global_6 + 129
    26  libdispatch.dylib                       0x00007fff92d88f01 _dispatch_call_block_and_release + 15
    27  libdispatch.dylib                       0x00007fff92d850b6 _dispatch_client_callout + 8
    28  libdispatch.dylib                       0x00007fff92d861fa _dispatch_worker_thread2 + 304
    29  libsystem_c.dylib                       0x00007fff8c558d0b _pthread_wqthread + 404
    30  libsystem_c.dylib                       0x00007fff8c5431d1 start_wqthread + 13
    Thread 21:: -[IMAPAccount _synchronizeAccountWithServerWithUserInput:]  Dispatch queue: com.apple.root.default-overcommit-priority
    0   libsystem_kernel.dylib                  0x00007fff92fbe686 mach_msg_trap + 10
    1   libsystem_kernel.dylib                  0x00007fff92fbdc42 mach_msg + 70
    2   com.apple.CoreFoundation                0x00007fff8cf29233 __CFRunLoopServiceMachPort + 195
    3   com.apple.CoreFoundation                0x00007fff8cf2e916 __CFRunLoopRun + 1078
    4   com.apple.CoreFoundation                0x00007fff8cf2e0e2 CFRunLoopRunSpecific + 290
    5   com.apple.CoreMessage                   0x00007fff934ca0e9 _handleRequestWithTimeout + 1527
    6   com.apple.CoreMessage                   0x00007fff934cc58c -[_NSSocket connectToHost:withPort:] + 814
    7   com.apple.CoreMessage                   0x00007fff934e53ae -[Connection connectDiscoveringBestSettings:] + 1191
    8   com.apple.MessageFramework              0x00007fff94d9ddad -[IMAPAccount connectAndAuthenticate:] + 502
    9   com.apple.IMAP                          0x00007fff94bffd5d -[IMAPConnectionPool _validateAndCheckOutGateway:forMailbox:allowReconnect:newGateway:] + 334
    10  com.apple.IMAP                          0x00007fff94bfde39 -[IMAPConnectionPool _checkOutNewGatewayWithConnection:forMailbox:] + 301
    11  com.apple.MessageFramework              0x00007fff94d1c695 -[IMAPAccount _getPotentialGatewayForMailbox:options:createdNewConnection:needsSelect:] + 429
    12  com.apple.MessageFramework              0x00007fff94d1c2a0 -[IMAPAccount _gatewayForMailboxUid:name:options:] + 180
    13  com.apple.MessageFramework              0x00007fff94d3db39 -[IMAPAccount _namespacePrefixesForPrivate:public:shared:] + 177
    14  com.apple.MessageFramework              0x00007fff94d374d3 -[IMAPAccount _listingForMailboxUid:listAllChildren:withUserInput:] + 185
    15  com.apple.MessageFramework              0x00007fff94d373b3 -[IMAPAccount _synchronizeMailboxListWithUserInput:] + 64
    16  com.apple.MessageFramework              0x00007fff94d33c1f -[RemoteStoreAccount _synchronizeAccountWithServerWithUserInput:] + 318
    17  com.apple.MessageFramework              0x00007fff94d338b3 -[IMAPAccount _synchronizeAccountWithServerWithUserInput:] + 45
    18  com.apple.CoreFoundation                0x00007fff8cf8009c __invoking___ + 140
    19  com.apple.CoreFoundation                0x00007fff8cf7ff37 -[NSInvocation invoke] + 263
    20  com.apple.CoreMessage                   0x00007fff9352d7d7 -[MonitoredInvocation invoke] + 225
    21  com.apple.CoreMessage                   0x00007fff93545e22 -[ThrowingInvocationOperation main] + 33
    22  com.apple.CoreMessage                   0x00007fff934f1f82 -[_MFInvocationOperation main] + 431
    23  com.apple.Foundation                    0x00007fff93a25926 -[__NSOperationInternal start] + 684
    24  com.apple.Foundation                    0x00007fff93a2d0f1 __block_global_6 + 129
    25  libdispatch.dylib                       0x00007fff92d88f01 _dispatch_call_block_and_release + 15
    26  libdispatch.dylib                       0x00007fff92d850b6 _dispatch_client_callout + 8
    27  libdispatch.dylib                       0x00007fff92d861fa _dispatch_worker_thread2 + 304
    28  libsystem_c.dylib                       0x00007fff8c558d0b _pthread_wqthread + 404
    29  libsystem_c.dylib                       0x00007fff8c5431d1 start_wqthread + 13
    Thread 22:: Dispatch queue: com.apple.root.default-priority
    0   libsystem_kernel.dylib                  0x00007fff92fc0122 __psynch_mutexwait + 10
    1   libsystem_c.dylib                       0x00007fff8c55bdfd pthread_mutex_lock + 536
    2   com.apple.Foundation                    0x00007fff939dbb79 -[NSRecursiveLock lock] + 22
    3   com.apple.IMAP                          0x00007fff94bed1e7 __56-[IMAPClientOperationQueue _postDelayedActivityFinished]_block_invoke_0 + 116
    4   libdispatch.dylib                       0x00007fff92d850b6 _dispatch_client_callout + 8
    5   libdispatch.dylib                       0x00007fff92d8729b _dispatch_source_invoke + 691
    6   libdispatch.dylib                       0x00007fff92d86305 _dispatch_queue_invoke + 72
    7   libdispatch.dylib                       0x00007fff92d861c3 _dispatch_worker_thread2 + 249
    8   libsystem_c.dylib                       0x00007fff8c558d0b _pthread_wqthread + 404
    9   libsystem_c.dylib                       0x00007fff8c5431d1 start_wqthread + 13
    Thread 23:
    0   libsystem_kernel.dylib                  0x00007fff92fc06d6 __workq_kernreturn + 10
    1   libsystem_c.dylib                       0x00007fff8c558f4c _pthread_workq_return + 25
    2   libsystem_c.dylib                       0x00007fff8c558d13 _pthread_wqthread + 412
    3   libsystem_c.dylib                       0x00007fff8c5431d1 start_wqthread + 13
    Thread 24:: -[IMAPMailboxSyncEngine _goWithMessagesIfNeeded:]  Dispatch queue: com.apple.root.default-overcommit-priority
    0   libsystem_kernel.dylib     

    Back up all data.
    Try the steps suggested on this page. if the problem isn't solved that way, continue as below.
    In the Finder, hold down the option key and select
    Go ▹ Library
    from the menu bar. Move the following items from the folder that opens to the Trash (some may not exist):
    Caches/com.apple.mail
    Saved Application State/com.apple.mail.savedState
    Leave the Finder window open for now.
    Try to launch Mail. If the problem is solved, you’re done. Otherwise, move these items, if they exist, from the open Library folder to the Desktop:
    Application Support/AddressBook/MailRecents-v4.abcdmr
    Containers/com.apple.mail
    Preferences/com.apple.mail.plist
    Preferences/com.apple.mail.searchhistory.plist
    Try Mail again. If it launches, you'll have to recreate some of your settings. Delete the items you moved to the Desktop.
    If Mail still doesn't work, put the items you moved to the Desktop back where they were. You don’t need to replace the items you moved to the Trash.
    Move the subfolder named "Mail" — not the Mail application — from the Library folder to the Desktop.
    Test. If Mail now launches, it will prompt you to set up an account. Cancel and restore the Mail folder from the most recent backup you have that predates the issue. A corrupt database is causing the problem.
    If there’s no improvement, put back the Mail folder and post your results.

  • Multiple values in 1 application context

    All, I'm trying to return multiple values from a query and store them in an application context.
    I have an employee that can be a part of multiple divisions. I already captured emp_id:
    dbms_session.set_context('COMPANY', 'emp_id', emp_id);
    but also want to capture division_id for the person. Most people will only have 1 division_id, but some will have multiple division_id's.
    What's the best way for me to capture multiple numeric values and store them in an application context like this.
    I'm trying to set up VPD policies and don't have to have to reissue a query every time I need to access the division_id.
    Thanks,
    Jon.

    One option would be to store a comma-delimited list of the division_ids in the context and then your VPD filter can use this and the TABLE function to limit the rows:
    sql>create or replace type NumberTable as table of number;
      2  /
    Type created.
    sql>create or replace function f_number_table(
      2    p_list       in  varchar2,
      3    p_delimiter  in  varchar2 default ',')
      4    return numbertable
      5  is
      6    v_string  long := p_list || p_delimiter;
      7    v_pos     pls_integer;
      8    v_data    numbertable := numbertable();
      9  begin
    10    loop
    11      v_pos := instr(v_string, p_delimiter);
    12      exit when (nvl(v_pos, 0) = 0);
    13      v_data.extend;
    14      v_data(v_data.count) := trim(substr(v_string, 1, v_pos - 1));
    15      v_string := substr(v_string, v_pos + 1);
    16    end loop;
    17    return (v_data);
    18  end f_number_table;
    19  /
    Function created.
    Then, in your VPD package:
    -- build a list of the division_ids by looping through a cursor
    -- set the context using this list of division_ids:
    dbms_session.set_context('company', 'div_id', '10,20');
    -- later, you would replace the literal value below with a call to sys_context to retrieve it
    sql>select empno, ename, deptno
      2    from emp
      3   where deptno in (select *
      4                      from table(f_number_table('10,20')));
        EMPNO ENAME         DEPTNO
         7782 CLARK             10
         7839 KING              10
         7934 MILLER            10
         7369 SMITH             20
         7876 ADAMS             20
         7902 FORD              20
         7788 SCOTT             20
         7566 JONES             20
    8 rows selected.

  • Application contexts in multi-user environments

    [Oracle9i Enterprise Edition Release 9.2.0.3.0]
    Hi,
    I'm experimenting with application contexts as a means of utilizing bind variables in variable WHERE clauses.
    In a multi-user environment where the database is accessed from an application using a single user id, are there any conflicts involved when the same procedure is accessed multiple times and the same context variable is set to different values by each call? In other words, can I assume that between the time the user_id of my_context is set and the query is executed in procedure call 1 that those values will be used and not be affected by other procedure calls also setting the user_id of my_context?
    Thanks,
    Ed Holloman
    ================================================
    create or replace context my_context using my_proc;
    ================================================
    In procedure call 1 to my_proc:
    ================================================
    my_query := 'SELECT * FROM my_table ' ||
    'WHERE user_id = sys_context(''my_context'',''user_id'')';
    dbms_session.set_context('my_context', 'user_id', '12345');
    OPEN my_refcursor FOR
    my_query;
    ================================================
    In procedure call 2 to my_proc:
    ================================================
    my_query := 'SELECT * FROM my_table ' ||
    'WHERE buyer_id = sys_context(''my_context'',''user_id'')';
    dbms_session.set_context('my_context', 'user_id', '45678');
    OPEN my_refcursor FOR
    my_query;
    ================================================
    etc.

    A quick little test shows John's statement in action:
    sql>create or replace procedure test_procedure
      2    (p_value in  pls_integer,
      3     p_rc    out sys_refcursor)
      4  is
      5  begin
      6    dbms_session.set_context('TEST_CONTEXT', 'VALUE', to_char(p_value));
      7    open p_rc for select sys_context('TEST_CONTEXT', 'VALUE') from dual;
      8  end;
      9  /
    Procedure created.
    sql>var rc1 refcursor
    sql>var rc2 refcursor
    sql>exec test_procedure(1, :rc1)
    PL/SQL procedure successfully completed.
    sql>exec test_procedure(2, :rc2)
    PL/SQL procedure successfully completed.
    sql>print rc2
    SYS_CONTEXT('TEST_CONTEXT','VALUE')
    2
    1 row selected.
    sql>print rc1
    SYS_CONTEXT('TEST_CONTEXT','VALUE')
    1
    1 row selected.Note the original value (1) has not been stomped on by the second execution even though we fetched this after that second execution and fetch sequence.

  • DBMS_Session.List_Context() for GLOBALLY ACCESSED Context

    I created
    CREATE CONTEXT myContext USING PACKAGE myPackage ACCESSED GLOBALLY ;
    CREATE OR REPLACE PACKAGE myPackage
    PROCEDURE Set_My_Context(
    piId IN INTEGER,
    piValue IN INTEGER) ;
    END myPackage ;
    CREATE OR REPLACE PACKAGE BODY myPackage
    PROCEDURE Set_My_Context(
    piId IN INTEGER,
    piValue IN INTEGER)
    IS
    BEGIN
    DBMS_Session.Set_Context(
    'myContext',
    'myValue',
    piValue,
    SYS_Context('USERENV', 'SESSION_USER'),
    piId) ;
    END Set_My_Context ;
    END My_Package ;
    Test Script
    DECLARE
    iSize INTEGER ;
    tblAppCtx DBMS_Session.AppCtxTabTyp ;
    BEGIN
    DBMS_Session.Set_Identifier(piId) ;
    My_Package.Set_My_Context(
    1,
    9999) ;
    DBMS_Session.List_Context(
    tblAppCtx
    iSize) ;
    DBMS_Output.Put_Line('iSize = ' || iSize) ;
    DBMS_Output.Put_Line('SYS_Context(''myContext', ''myValue'') = '
    || SYS_Context('myContext', 'myValue') ) ;
    END ;
    Output
    iSize = 0
    SYS_Context('myContext', 'myValue') = 9999
    Questions
    1) Why isn't the global application variable included in List_Context()? It obviously exists based on the value returned by SYS_Context().
    2) Is it because the context is accessed globally and the variable is stored in the SGA not the UGA?
    (My theory because List_Context() works as accepted if CREATE CONTEXT myContext USING PACKAGE myPackage does not include ACCESSED GLOBALLY. However I can find do such an exclusion within Oracles documentation for DBMS_Session or CREATE CONTEXT.
    Any insight would be appreciated.
    Jenean Spencer

    1) Why isn't the global application variable included in List_Context()?because list_context just includes contexts which are session specific. Global Contexts are not session specific ...
    If you want to get hold of the global contexts then use the view global_context:
    SQL> select * from v$version where rownum = 1
    BANNER                                                                         
    Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - Production         
    1 row selected.
    SQL> create context mycontext using mypackage accessed globally
    Context created.
    SQL> create or replace package mypackage
    as
      procedure set_my_context (piid in integer, pivalue in integer);
    end mypackage;
    Package created.
    SQL> create or replace package body mypackage
    as
      procedure set_my_context (piid in integer, pivalue in integer)
      is
      begin
        dbms_session.set_context ('myContext', 'myValue', pivalue, sys_context ('USERENV', 'SESSION_USER'), piid);
      end set_my_context;
    end mypackage;
    Package body created.
    SQL> declare
      isize       integer;
      tblappctx   dbms_session.appctxtabtyp;
    begin
      dbms_session.set_identifier (1);
      mypackage.set_my_context (1, 9999);
      for c in (select * from global_context)
      loop
        dbms_output.put_line (c.namespace || ': ' || c.attribute || ' - ' || c.value);
      end loop;
    end;
    MYCONTEXT: MYVALUE - 9999
    PL/SQL procedure successfully completed.

  • Application context in cluster (using EJB3.1)

    Hello there,
    i want to ask for recommendation. What is the best strategy for storing global application data in clustered enviroment with usage of EJB3. Imagine e.g. users and contact lists. There are browser clients (let's say they invoke EJB from typical servlet) using polling mechanism (it's HTTP, i dont know about solutions how to do effective server push) - so asking application server again and again for refreshing their contact list.
    I know that there is @Singleton beans and with this approach you are telling the server provider to take care about it. But im afraid with this approach it could be uneffective because nodes of cluster propably replicate those singletons or has to do some other expensive network operations. Or don't they?
    Is @Singleton effective for such case? Or any mechanism like JMS topic could help me update data on clusters? It would be really nice to have it in application context somehow effectively. What do you think about it? Thank you:-)

    ok, you suggested that contact list can (and maybe should) be placed within user session. It is true that contact list itself does not change much but what changes very frequently is who is currently online (users performing login and logout). So the main question leads to this problem. The stuff user's status could be linkend with contact list was just a idea, but it is not needed.
    So now the problem, information who is logged in and how to periodically with good performance in cluster enviroment retrieve such information (in context of getting whole contact list with corresponding actual statuses for one specified user). What solution would you choose from the beginning? Just please try describe two scenarios and invocations.
    1) user logs in
    2) periodicaly request for updating contact list
    E.g. (this is just showcase corresponding to previous posts)
    Data who is and who isn't logged in is stored in database (e.g. column STATUS).
    1) servlet invokes EJB login method. That puts message to JMS topic that user A just logged in, updates DB (changing status to online), than the method returns UserData retrieved from DB which will be stored within http session including contact list. The MDB (stored within EJB module?) in onMessage method recieves information that this user A just logged in, it will update http sessions (is it even possible to do somehow from ejb module?) of users which have user A in their contact lists - e.g. contact lists of user B, user C and user D.Maybe I did not state it explicitly in my previous post. But it is not possible for an MDB which receives a message asynchronously to access the HttpSession object. Besides which Session object are you going to update? As you rightly said, the new user who is online may be in the contact list of several other online users.
    It's not that this is not possible to achieve - you can store a handle to these session objects globally (possibly in a static Collection accessible to the MDB layer) and iterate through each session object, figure out if the contact list in the user session does contain the newly logged in user as a contact and update the status accordingly.
    But there is an easier option - you just maintain the list of active users in a cache. And everytime the user makes a request, check the contact list of the User (maintained in his session object) against this list of active users. For every user who is both in the contact list and active users list, you just update the status of the contact as active. Is that what you had asked initially :)? Only your last post made clear what you were trying to achieve.
    You would maintain the active list of users using a JMS Topic/MDB listener mechanism. Note you will have to propogate the log off/session invalidation too to remove users from the active list.
    2) periodical request will come on http session (it contains actual data because it is updated by MDB (if it is possible somehow) )Just use ajax to poll the server and then as mentioned above - for every request, check the contact list held in session against the active users list.
    cheers,
    ram.

Maybe you are looking for

  • Can't install Windows 8.1 - Driver Violation

    I'm trying to install Windows 8.1 on my Asus U43JC notebook. Windows 8 will install fine without a problem, but I can't get 8.1 installed. When installing from the marketplace, 8.1 will download and install, but after first booting, I get a blue scre

  • How to get Hide/Show using details in advanced table

    Hi, I develeoped one custom page using advanced table region and i used detail from advanced table for getting hide/show functionaliy in one column in that table. It is showing hide/show properly..but if I click on Show it is not doing any action..pl

  • Exchange server 2010 DAG configuration

    Dear Boss, I would like to configure Exchange server 2010 with DAG . I have test lab . i would like to tell my test LAB setup . One domain controller win-2008 X 64 Ent  Two Exchange server 2010  ( Role - Client Access, Mailbox) Each Server  Two Netwo

  • Quicktime movie in separate window - how?

    Hello: 2 part question... I am wanting to have a quicktime movie open in a separate window - that opens in addition to the homepage AND I want that window to display the movie only at 320 x 240. Is this possible and how do you do it? thanks!

  • Having trouble with huge row members in Financial Reports

    Hi, We have to produce a huge report that Entity members and Project members are put together in a row. But it exceeds the 64,000 members per row limitation of a grid. As a result, we create multiple rows for different profit centers of Entity member