folderListener: cannot set the flag, send reply/forward, delete the message.

I'm trying to change the status of message, answer, transfer and delete message in folderListener, but unsecsesful:

   public void messagesAdded(FolderEvent e) {
        try
        {
            if( e.getMessage().isInbound() == true )
            {
                if (e.getMessage().getMessageType() == Message.EMAIL_MESSAGE)
                {
                    String sStore = e.getMessage().getFolder().getStore().getServiceConfiguration().getEmailAddress();

                    if (sStore!=null && sStore.indexOf('@')>0)
                    {
                        //Yes, this is a email, mark it read...
                        e.getMessage().setStatus(Message.Status.TX_READ, Message.Status.RX_RECEIVED);
                        e.getMessage().setFlag(Message.Flag.OPENED, true);

                        //IT HANGUP HERE!!!
                    }
                }
            }

        }catch(Exception c)
        {
            System.out.print(c.getMessage());
        }
    }

Main thread is an Application (not UiApplication), background. Where I'm wrong?

BTW, this code works on a simulator, but not on the device. Any permission is "allowed".

Oh... It is a bug in the OS 6.0?

This bug is dans.461 OS too...

RIM reports:

https://www.BlackBerry.com/jira/browse/JAVAAPI-1693

Tags: BlackBerry Developers

Similar Questions

  • Cannot set the time zone of Moscow winter + 3 hours.

    Cannot set the time zone of Moscow winter + 3 hours.
    Set the time zone Minsk 3 after the GPS clock moves forward 1 hour, timezone is set back from Moscow + 4.
    It is an error of your software when you are ready to address this issue.

    Automatic deactivation date & time(Settings>Date&Time...)

  • Him reply, forward, delete the line disappeared, as well as who sent e-mail, when & when I opened an e-mail subject. How to make a comeback? Tried fix toolbar.

    When I open an email, 2 sections are now missing. At first, he used from, to, subject, etc.. It has now disappeared. In addition, under this judgment to the right, he used to say the answer, before, delete, etc.. He is now gone, too. I tried w/toolbars. No help. I even tried to customize a toolbar already there, but reply, forward & Delete are not options, I can drag anywhere. They are not in the choice of customization. They are perhaps in the shadow area. Can someone please? Thank you.

    Open your profile folder
    With T-bird NOT running, rename xulstore.json (or delete)
    It should be restored when T-bird is restarted.

  • Satellite M100: Cannot set the resolution 1368 x 768 on external LCD screen

    Satellite M100-179
    Graphics - ATI x 1400 card.
    Cannot set the resolution 1368 x 768 on connected usung Sub - D LCD TV Samsung 32R72
    There is no resolution 1368 x 768 in the available resolution list.

    The graphics card hardware support different screen resolutions, but if the driver doesn't contain this resolution of the screen so that you cannot choose it.
    I think so you re not able to choose this special resolution on the external display.

    In my opinion it has nothing to do with the graphics card or with the screen, but only with the graphics driver.

  • Cannot set the restore point with the error "The Volume Shadow Copy service used by the system restore does not work."

    Cannot set the restore point with the error "The Volume Shadow Copy service used by the system restore does not work."  How can this be repaired?

    Hi rebick,.

    Try the troubleshooting steps presented by spirit X in this thread.

    Dena
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • BIOS HP Compaq Elite (i5-2400 CPU) 8280 cannot set the VT option

    BIOS HP Compaq Elite (i5-2400 CPU) 8280 cannot set the VT option

    found in the security system] [, thanks]

  • ERROR - 1051414 - cannot set the role of group with shared services [30:1101:JNDI error] error.

    Hi all

    I tried provide access to filter the group in both SSP and thru Maxl command but still get the error below. Any experience of this problem? If Yes, please let me know how you solved this problem.


    ERROR - 1051414 - cannot set the role of group with shared services [30:1101:JNDI error] error.


    Thanks in advance!

    Krishna

    Read the support document that I posted the link, prior to changes for openldap ensure you that it is saved.

  • I'm doing slideshows to music with an opening, I would switch to LR, but you cannot set the duration of each slide (in my case the score) based on listening to the music. (In the opening by clicking on the "stopwatch" and pressing enter at each change of

    I'm doing slideshows to music with an opening, I would switch to LR, but you cannot set the duration of each slide (in my case the score) based on listening to the music. (In the opening by clicking on the "stopwatch" and pressing enter at each change of image). Adobe staff question: can I expect to find this option in a future release?

    Hi Pcaubi,

    There is no such updates for the same from now.

    I suggest you to please put in a feature request to: Photoshop community customer family

    Kind regards

    Tanuj

  • Cannot set the configured property "/ Initial.initialServices".

    Hi all

    I'm getting following error.

    05:21:52, 006 INFO [STDOUT] cannot set the configured property "/ Initial.initialServices" atg.nucleus.ConfigurationException: could not resolve the component/com/progiweb/fbconnect/pipeline/FacebookAuthStatusServlet

    05:21:52, 013 INFO [STDOUT] * error

    05:21:52, 064 INFO [STDOUT] cannot set the configured property "/ Initial.initialServices" atg.nucleus.ConfigurationException: could not resolve the component/com/progiweb/fbconnect/pipeline/FacebookProfileRequestServlet

    I checked the path of configuration of two components and the structure of the servlet is as below.

    src/com/progiweb/fbconnect/pipeline/FacebookAuthStatusServlet.java and src/com/progiweb/fbconnect/pipeline/FacebookProfileRequestServlet.java.java

    For properties files I created them under the path - config/atg/dynamo/servlet/dafpipeline / config/atg/dynamo/servlet/pipeline

    Inside of these I keep the files FacebookAuthStatusServlet.properties and FacebookProfileRequestServlet.properties

    The Initial.properties is as below - config/atg/dynamo/servlet/Initial.properties

    The content of Initial.properties is-

    & initialServices =.

    / ATG/Dynamo/servlet/dafpipeline/FacebookAuthStatusServlet,.

    / ATG/Dynamo/servlet/dafpipeline/FacebookProfileRequestServlet


    Should I have to keep the two pipelines-dafpipeline and pipeline or one of them?

    And my pipeline structure is correct or not?

    How to solve the error above?

    Please help on this!

    Kind regards

    Prateek

    You seem to be confusing core components and classes Java.  They are completely different.  The error message that you get "Unable to resolve component", says that the kernel is unable to find a file of specific properties anywhere in the directories named in your configpath trees.  To be precise, there is no file named /com/progiweb/fbconnect/pipeline/FacebookAuthStatusServlet.properties in your config directory.  If I read correctly this conversation, it is because the file with this name is a .java file, not a .properties file.  The two most likely causes of your problem are:

    1. you have a file of properties somewhere that mentions/com/progiweb/fbconnect/pipeline/FacebookAuthStatusServlet as the value of something else than $class.  $class is a special case whose value is sought by a Java ClassLoader in the classpath.  Values of the other properties are interpreted as references to the component, and looked up from core in the configpath.

    2. in the directory tree that contains the /com/progiweb/fbconnect/pipeline/FacebookAuthStatusServlet.properties isn't in the configpath.  ATG displays the complete configpath during startup.  If your directory is missing, you have may have specified correct information in the entrance of the ATG-Config-path in your module MANIFEST. MF file.

  • ORA-12054: cannot set the ON COMMIT...

    Hello
    can someone please tell me what am I missing here?
    I can't create a materialized view, but I can't understand why is this?
    SQL> select * from v$version;
    
    BANNER
    ----------------------------------------------------------------
    Oracle9i Enterprise Edition Release 9.2.0.7.0 - 64bit Production
    PL/SQL Release 9.2.0.7.0 - Production
    CORE    9.2.0.7.0       Production
    TNS for HPUX: Version 9.2.0.7.0 - Production
    NLSRTL Version 9.2.0.7.0 - Production
    
    
    SQL> r
      1* select master,primary_key from user_mview_logs where MASTER='CIS_CASE' or master='CCR_ACTION_DEF'
    
    MASTER                         PRI
    ------------------------------ ---
    CCR_ACTION_DEF                 NO
    CIS_CASE                       NO
    
    
    
    SQL> r
      1  SELECT a.table_name, a.constraint_name, a.constraint_type, b.column_name
      2    FROM user_constraints a, user_cons_columns b
      3   WHERE a.constraint_name = b.constraint_name
      4*    AND a.table_name IN ('CIS_CASE', 'CCR_ACTION_CASES')
    
    TABLE_NAME                     CONSTRAINT_NAME                C COLUMN_NAME
    ------------------------------ ------------------------------ - ----------------
    CCR_ACTION_CASES               ID_PK                          P ID
    CIS_CASE                       PK_CIS_CASE                    P ID
    CIS_CASE                       SYS_C008496                    C ID
    
    
    
    SQL> CREATE MATERIALIZED VIEW mv
      2    REFRESH FAST ON COMMIT
      3  AS
      4  SELECT c.ID,
      5         CASE
      6            WHEN (c.script_id IS NULL OR c.queue_id IS NULL)
      7               THEN 1
      8            WHEN c.script_id IS NOT NULL AND c.queue_id IS NOT NULL
      9               THEN 2
     10         END TYPE,
     11         c.datum + a.due_time / 24 - a.alarm_due_time_1 / 24 alarm1,
     12         c.datum + a.due_time / 24 - a.alarm_due_time_2 / 24 alarm2,
     13         c.datum + a.due_time / 24 due_date
     14    FROM ccr_action_def a, cis_case c                                  --users u
     15   WHERE NVL (a.queue_id, NVL (c.queue_id, 0)) = NVL (c.queue_id, 0)
     16     AND NVL (a.type_id, NVL (c.case_code_type_id, 0)) =
     17                                                    NVL (c.case_code_type_id, 0)
     18     AND NVL (a.code_id,
     19              NVL (NVL (NVL (c.code_id_4, code_id_3), code_id_2), code_id_1)
     20             ) = NVL (NVL (NVL (c.code_id_4, code_id_3), code_id_2), code_id_1)
     21     AND (c.datum + a.due_time / 24 < SYSDATE)
     22     AND state IN (1, 2)
     23  UNION
     24  SELECT c.ID, 3 TYPE, a.due_date - a.alarm_due_time_1 / 24 alarm1,
     25         a.due_date - a.alarm_due_time_2 / 24 alarm2, a.due_date
     26    FROM ccr_action_cases a, cis_case c
     27   WHERE c.ID = a.cis_case_id
     28     AND (a.due_date < SYSDATE)
     29     AND state IN (1, 2);
      FROM ccr_action_cases a, cis_case c
           *
    ERROR at line 26:
    ORA-12054: cannot set the ON COMMIT refresh attribute for the materialized view

    Vili Dialis wrote:
    Rob, if you have any comments on my last query operation, I would be greatfull.

    Vili,

    You must start with a join view which does not contain any aggregate. Just a join of the ccr_action_def and cis_case. And don't forget to include the two table rowid to make quickly updatable. Then create a full blown newspaper on top of the join mv materialized view and create mv aggregation, selecting in the mv to join.

    Kind regards
    Rob.

    Published by: Rob van Wijk on 14-dec-2009 12:09

    And two boards that are not linked mv:

    (1) as has said, use a.id and c.id in a group by clause for the query itself work
    (2) do not use the string ' 14.12.09", use a date but you compare it with a date. So use: date "2009-12-14'

  • Hi all, impossible to download the photos out of Lightroom 5 - I get a ' cannot read the message ' and 496 of the code ".". "  Help, please!

    Hi all, impossible to download the photos out of Lightroom 5 - I get a ' cannot read the message ' and 496 of the code ".". "  I previously used the crd of memory and it works ok.  It also displays images must be downloaded but just let me download them.  This is the message I received:

    The following files were not imported because they could not be read. (496)

    So what I did is launching a new catalog that then wiped out all the records and traces of my previous photos!

    You talk of out of the frying pan and into the fire!  Can someone help me with this?  I have an important project to present - I'm Freelancer and looking quite the fool.

    E.

    Your old catalog is still there, use the file-> open the recent item

    The error "cannot be read" indicates that the folder where your photos are to be copied in has no WRITE permission. Change your permissions on this folder.

  • Cannot set the IMAP mail - configuration cannot be verified

    Hello

    I have trouble to set up my work as an Exchange IMAP messaging in a new installation of Thunderbird. Once I put in the address of the server that Thunderbird retrieved all the security settings, which I checked against the supplied parameters that are listed in the webmail. I've also used these parameters to configure mail IMAP on my phone for triple controls everything. However, in the account configuration screen, I still got the message "Configuration cannot be verified - your name of user and password correct? (again, I checked everything I used independently and they have been accepted). Once I came out of the initial configuration screen error replaced by the following:

    "The GSSAPI/Kerberos ticket is not accepted by the < email address > IMAP server. Please check that you are connected to the Kerberos/GSSAPI Kingdom".

    The only possibility I can think is that Thunderbird tries to use my e-mail instead of the server to authenticate the reason why I'm getting the error. The e-mail address is [email protected] while the server is soliscom.uu.nl.

    Any help or suggestions that anyone has would be welcome,
    See you soon.

    Under Tools/account settings /AccountName/Server Settings, check that you have for the authentication method. "Normal password" is not the most common configuration for secure connections, Kerberos/GSSAPI, which seems to be the reason why you get the error message.

    But if you are sure that the Kerberos/GSSAPI authentication is required, see this article for instructions on how to make the necessary changes in the Config. Publisher:

    https://ITServices.Stanford.edu/service/emailcalendar/email/config/thunderbird_imap_kerb

  • Tecra A4: Cannot set the resolution of 1280 x 800

    Hi all.

    I have a Tecra A4, and for the last 2 days I am trying set up the screen at native resolution of 1280 x 800, without sucssess.

    I try a lot of things, like updating drivers, use the restoration of the system, the value 'stretch' in the BIOS, etc, but this resolution do not appear on the display settings (I use XP SP2). I've only 800 x 600 and 1024 x 768.

    In any of these resolutions, a wide black border appear to the right of the screen. A small border appears on the bottom, too.

    Please, how can I solve this problem? I don't want to use the Toshiba restore, some programs I use are very difficult to find and install.

    Thank you.

    You cannot set this resolution if this resolution of 1280 x 800 is not part of the display driver.
    The graphics card driver contains all available resolutions and if one is missing, I mean not rated, it s not able to select

    Nothing to buddy

  • Cannot set the frequency on HP 33120

    Hi all

    First I apologize in advance if this is in the wrong place or if it's a stupid question. I'm new to lab view.

    I'm working with a HP 33120 A arbitrary signal generator. I have the driver loaded, I the example VI responsible for laboratory. I'm using LabView 16. I've got the right address for the selected ARB. I see very well the ARB in MAX I'm trying to use a sinusoidal signal frequency of 15 Hz and 50 mVpp amplitude.

    When I try to set the frequency of 15 Hz, it does not work. I have the frequency set in the controls on the front panel. The strange thing is, when I check the ARB before and after execution of the vi's frequency of 15 Hz. But when the vi runs, he's still using 1 kHz. The display of the ARB and the scope, I have connected to display the 1 kHz when the vi is running.

    What I am doing wrong?

    Good morning Martine.

    Thanks for the reply. I decided to control the device programmatically by using a more traditional language, I will have no problem using this approach. Everyone can consider this topic as 'closed' I won't check back more.

    Thanks again for the help.

  • Error - ' Manager of power strategy cannot set the regime... two revision levels are incompatible "when trying to save the scheme in power options.

    Original title: cannot set a power scheme in Power Options

    Cannot set a power scheme. When I try to save the scheme, "Manager power strategy impossible to define the... two revision levels are incompatible."

    How can I fix it?

    Hi BernieHopkins,

    1 have you properly previously defined the power scheme?

    2 have you made any hardware changes or software on the computer before this problem?

    3. What is the full error message that you receive?

    If you receive the same error as mentioned in this link, you can follow this link & check if the problem persists.

    Error message: Power Manager political unable to define a strategy. Indicates two revision levels are incompatible

    Hope the helps of information.
    Please post back and we do know.

Maybe you are looking for

  • Join a screenshot images

    We are trying to plan a trip on the international road and want to take a screenshot from my iPhone and attach it on the top card a screenshot that I took on my computer. I would also like to be able to take notes about it (travel time), highlight th

  • "Send to back" broken into Pages 5.6.2

    After you import an image into the 5.6.2, Pages I am unable to use the features of arrange the image as "advance" or "put in the background." This is true for importing images or shapes I create. These fix options (whether in the drop down menu dropd

  • After downloading 4.0 I get this message: application JavaScript is unable to create the plugin object of mcafee: TypeError: components.classes['@ [cid] is undefined

    I finished to download Firefox for my Mac OS 4.o. X.When I try to open a Web site, I get the message:[JavaScript Application] cannot create the plugin object of mcafee: TypeError: components.classes['@ [cid] is undefinedIf I click on the OK button, t

  • LJ 3050 Scanner question

    Recently installed Win 7 (had XP) and have had no problem printing the files/docs from my PC. Just tried my first scan.  Receive an error message on my HP Pavilion a1600 of not saying "no paper in the tray", but the LJ 3050 has a message saying the d

  • How to copy / clone the parental controls on another account

    Is there a way to copy or clone parental control settings of an account limited for a new account?I'm going to set up individual accounts for my children and I find it very embarrassing repeatedly authorized programs list. It would also be useful to