Access a domain of a Thread Manager

Hello!

I have a slightly customized vertical field Manager called [u] main [/ u], I want to access from a thread. Maybe that's the first mistake

Is this possible?

Whenever I try to open it, I get IllegalStateException thrown by the method called [u] main [/ u].

I tried a lot of things with the locks, but I was not able to understand what I can do.

Can you help me?

I have not tested with a compiler, but it should be something like this (explicit synchronization):

class Bridge extends Thread
{
   private StdScreen _screen01;

   Bridge(StdScreen screen)
   {

       _screen01 = screen;
   }

   ... some methods...

   public void run()
   {

       ...

       synchronized(Application.getEventLock())
       {
           _screen01.fieldSelected(someField);
       }
       ...
   }
}

or like this (runnable and invoke):

class Bridge extends Thread
{

   private StdScreen _screen01;

   Bridge(StdScreen screen)
   {
       _screen01 = screen;
   }

   ... some methods...

   public void run()
   {

       ...
       // since it seems that you don't need to wait until UI
       // thread finishes the job use plain invokeLater
       UiApplication.getUiApplication().invokeLater(new Runnable()
       {
           public void run()
           {
                _screen01.fieldSelected(someField);
           }
       });
       ...
   }
}

Hope this helps

Tags: BlackBerry Developers

Similar Questions

  • Cannot access to roles and features (Server Manager)

    Cannot access to roles and features (Server Manager).
    Server Terminal server runs on Windows 2008 R2.
    I have an error (0 x 80080005 (CO_E_SERVER_EXEC_FAILURE)).
    c:\Windows\System32\ServerManager\Cache directory is empty.
    EventLog error EVENT 1000 ID Watch:
    Name of the failing application: TrustedInstaller.exe, version: 6.1.7601.17514, time stamp: 0x4ce7989b
    Name of the failed module: msvcrt.dll, version: 7.0.7601.17744, time stamp: 0x4eeb033f
    Exception code: 0 x 40000015
    Offset: 0x000000000002a84e
    ID of the process failed: 0 x 2230
    Start time of application vulnerabilities: 0x01cd507bac023aca
    The failing application path: C:\Windows\servicing\TrustedInstaller.exe
    Path of the failing module: C:\Windows\system32\msvcrt.dll
    Report ID: e9bab27e-bc6e-11e1-a34e-000c29dc7c68
    -Program and features show installed updates. (The server is updated when you run a Windows Update)
    I've done so far:
    -Uninstall Symantec Endpoint Protection
    -Restart on the 2008 media to replace C:\Windows\winsxs\pending.xml
    -Ran that the System Update Readiness Tool for Windows 2008 R2 and no errors are reported on CheckSUR.log and CheckSUR.persist.log
    -A ran a free registry Cleanner
    What should we consider?
    Thank you

    Hello

    Your question is more complex than what is generally answered in the Microsoft Answers forums. It is better suited for the IT Pro TechNet public. Please ask your question in the following forum.

    Windows Server 2008 R2 General:

    http://social.technet.Microsoft.com/forums/en-us/winservergen/threads

    Concerning

  • Access EJB session bean in JSF managed bean

    Components of the project: Weblogic 11 G + 12 c, 12 c EJB3 JPA 2 Jdeveloper-ADF

    I need to access EJB session bean in JSF managed bean and some methods of execution by program

    Work method and return EJB below
    Is this fair? Another way

    public static Object getEjbForDataControl (String name) {}
    BindingContainer DCBindingContainer = (DCBindingContainer) BindingContext.getCurrent () .getCurrentBindingsEntry ();
    DCDataControl cDataControl = bindingContainer.findDataControl (name);
    Return cDataControl.getDataProvider ();
    }

    Thank you

    Mohsen

    Hi Isabelle,.

    I assumed that his Session EJB bean has not been exposed as a data control (my bad, didn't read any of the discussion).

    Antonis

  • Can no longer access the Canon Remote Mode UI management (Portal) (on my desktop)

    I have set up the Remote UI Mode management Canon (Portal) access using my IPv4 address so that I could make changes to the settings of my imageCLASS MF6160dw directly to my desktop computer.

    Which has worked flawlessly for almost 3 months.

    Then, all of a sudden 3 days ago I started having this message: unable to display this page

    I have not added or removed any equipment or software in my desktop computer.

    I also confirmed that my IPv4 address was correct.

    And I'm trying to access the 'portal' several times at different times of the day and on different days.

    My computer is a Dell XPS 8700 Special Edition running Windows Pro 8.1 (64-BIT)

    How can I find the "portal"?

    I never got an answer from someone.

    But for those who see this thread & can also have this problem, I finally realized that the IP had actually CHANGED.

    How & why it changed, I don't know.

    But, the last 2 digits changed de.15 a.2

    I can now access the management UI remote Canon (Portal) Mode using the IP has CHANGED.

    Hope this helps someone.

  • Internet access for virtual machines in Lab Manager

    Hello

    Our lab environment is configured separately from corporate network and only some public IPs are able to access the internet. How I would install machinery in the Director of the laboratory to access the internet?

    For example, IP range - 64.x.x.x. Creation of a network model with these IP addresses attached to physical networks and external public would give me access to the internet?

    Stan,

    You would have to create a physical network that is attached to a vSwitch or Distributed Switch that can connect to this network of 64.x.x.x.

    If configure you a Pool of IP, Lab Manager can manage physical network IP assignments to the virtual machines.  so if the virtual machines require Internet access, then they will need to access this network (somehow).

    Kind regards

    Jonathan

    B.SC., RHCT, VMware vExpert 2009

    NOTE: If your question or problem has been resolved, please mark this thread as answered and awarded points accordingly.

  • Access the content of BPEL Process Manager to a java class

    Hello

    Is it possible to access the API of a class of java process manager stand alone... My requirement is as follows. I need to run a script in the Unix environment, which will in turn call a java class and pass some parameters like username, password and Networkid processName. This java class must call the APIs necessary to authenticate the credentials passed, choose current examples of the ProcessName spent and bulk to abandon their...

    I tried to create a class of my java class Locator Networkid, password and IP address. But I had a communication Exception like this: 'javax.naming.CommunicationException': cannot find SerialContextProvider. I guess that Im not no definition JNDI properties and other places for FinderBeans in DomainAuth...

    Can someone help me on how to go to the definition of the JNDI properties and other locations of resources...



    Thank you
    Corinne

    Baudelaire,

    See the following forum thread:
    Re: Querying Oracle BPEL process Instances using BPEL client api-default

    Diakité
    http://SOA-HOWTO.blogspot.com

  • Change of domain in the CTS Manager invalidate the license?

    I need to change the field used in the existing CTS-Manager, but I'm afraid that if I do so, the license will be becomes invalid and CTS - Man will be unusable until I can get a new permit. Will be invalid license if I changed the domain?  I know that I need to import the LDAP server certificates and exchange news, but I want to assure you that I do not lose the license. I couldn't find the answer in the documentation. Help, please.

    Thank you

    Tony

    Tony:

    CTM is installed on a physical server or VM Ware?

    On your question - change the domain name on the CTS Manager will change the MAC license, which would be non - I just tried to change only the domain name on my MC in the laboratory, and after it restarted, the MAC license remained unchanged.

    If you change the DNS servers, however, the MAC license will change - seen elsewhere on the field and in my lab.

    As a general rule:

    On a CTM installed on a physical server license MAC will not change if you change the name of domain/DNS.  It must always be the same.

    On CTM as VM, MAC license will only change if you change some settings.  The MAC license is generated according to certain parameters, so if you change those, MAC license will change accordingly.

    I still need to find a specific list to the Community trade mark as to what will change the license MAC, but it should be similar to the list of items found on the side CUCM:

    http://www.Cisco.com/en/us/partner/docs/voice_ip_comm/CUCM/rel_notes/8_0_1/Delta/VMware.html#wp1054450

    HTH-

    Tina

  • ADF - components of the access to the contents of a managed bean in a HA environment ViewScope.

    Hi all

    I have a question, I am a beginner with ADF and learn a lot through these forums and Google

    Using Jdeveloper 11.1.1.7

    is the question I have, I have a cluster/HA environment (2 knots) and move my application to use HA.

    I changed the ADF - config.xml to add the following line:

    " < adf-controller-config xmlns =" http://xmlns.Oracle.com/ADF/controller/config "> "

    < adf-scope-ha-support > true < / adf-scope-ha-support >

    < / adf-controller-config >

    I currently have a managed bean (ViewScope) and it has all my actionListeners/valueChange etc... etc... It also has my UIComponent links and I have also several methods that define specific attributes on these components and then do:

    AdfFacesContext.getCurrentInstance () .addPartialTarget ("ComponentRefHere");

    I am aware that I have to put my beans managed to implement Serializable I also understand that the UI components are not serializable.

    I use the ComponentReference method that is to say:

        private ComponentReference<RichPanelBox> iframePB;
    
        public void setIframePB(RichPanelBox component) {
            iframePB = ComponentReference.newUIComponentReference(component);
        }
      
        public RichPanelBox getIframePB() {
            return uiComponentBean.getIframePB();
        }
    

    is the question I have, I can leave it like that? or will I move them to a different managed bean?

    If so, how should I put the bean, it must also implement serializable, and how do I access them from my managed bean viewScope.


    Thank you

    You don't have to. Https://docs.oracle.com/javaee/6/tutorial/doc/gjbbk.html documentation

    The beans that use the scope of the conversation, application, or session must be serializable, but beans that use the scope of the request need not be serializable.

    I personally always add the serializable interface as the bean has never should be selected for serialization, it should not control. It is easier to tell everyone to add it anyway. In this way, you can use the same class in all scopes.

    Timo

  • Access to the data after the managed service VOImpl in bean method call

    I use JDeveloper 11.1.2.4.

    I created a method to Interface customer and he calls you a managed bean.

    The method is exposed in the control of data and I have a links to it through links on the page.

    The method runs just a view of criteria for a row of data in the database.

    But, because the method does not have a return value, how could access the View object data.

    Here's the Service method and the method of the bean management;

    The service method: in PersonVOImpl.java - should result in 1 row:

    public void getPersonByCnViewCriteria (String cn)

    {

    ViewCriteria viewCriteria = this.getViewCriteria ("PersonVOCriteriaByCn");

    Reset a display criteria of values that may was resolved at design time

    viewCriteria.resetCriteria ();

    this.setCnBind (cn);

    this.applyViewCriteria (viewCriteria);

    this.executeQuery ();

    }

    Method in managed Bean: I have a linking operation method to access the Service method.


    It seems that the Service method is executed successfully.  But, how to access the data after the call?


    protected void getPersonByCn (String cn)

    {

    BindingContainer bindingContainer = this.getBindings ();

    OperationBinding operationBinding = bindingContainer.getOperationBinding("getPersonByCn");

    Map operationsParamsMap = operationBinding.getParamsMap ();

    operationsParamsMap.put (WorkFlowBean.PROPERTY_CN, NC);

    Object result = operationBinding.execute ();

    If (! operationBinding.getErrors () .isEmpty ())

    {

    }


        // How to access data after the call?

    }

    You should never use a class VOImpl or VORowImpl in a managed bean. If you have to use them, create Interfaces and use.

    I'm not too sure if it's good to return a view in a method object.

  • Cannot add the domain name on the management page

    I bought the hair4specialevents.com domain to GoDaddy and also created a temporary site of the same name held in BC. I'm trying to take the direct site so that people can go to hair4specialevents.com (no need to enter the hair4specialevents.businesscatalyst.com).

    I finished the first part of the referral process to the servers of BC: the GoDaddy site I bought the domain name and he stressed the 15:00 name servers ns1.world... etc.

    Where I'm stuck, it's step 3 on the following page: Catalyst Business help | Change the domain name of your site

    Similar page, but I'm stuck on step is step 4: adding a domain name to your site and direct donor site

    , I clicked on the button manage in Muse who takes me to the main page of management BC for the site. I click on Site settings, click Site areas under him. But after I don't see any place to click on "New domain." I noticed that only two areas - areas worldsecuresystems.com and businesscatalyst.com.


    Why is there not a place where I can add hair4specialevents.com? The blue triangles next to 'A Records' etc don't anything even if looks like they should rotate down to reveal more information.

    It turns out that this is a problem with the Safari browser (or at least my version/settings). I have connected to the BC using Chrome, and then the "Add domain" button appeared.

    FYI if anyone else has problems, I am on Mac OS 10.9.5, Safari 7.1. But do not forget that the problem may be one of the preferences that I put in Safari...

  • The right of way to access the users Page in Enterprise Manager?

    Using 11 GR 1 material Enterprise Manager Database Control

    I was looking for the instructions in the online help of Enterprise Manager, on how to change a password. The research has about 6 000 hits: big help that was.

    I finally found what I was looking for, BUT...

    I clicked on an entry in the online help which says "expires. Locking and unlocking accounts database". On this page, there are some very nice step-by-step instructions. Step 3 says "Schema click to display the Sub-page of scheme." It worked as expected. Step 4 says "In the section users and privileges, click on users." I studied this subpage of schema and same process to a search page Firefox and there is no section users and privileges anywhere on the subpage of schema. I could only access the page I was looking for because the word "Users" in the online help page is itself a link to the page I was looking for.

    I apologize for the blow of mouth here, but it's really frustrating and...

    OK, ' nough said. What I want to really know is how to get to the page of users without having to evade the online help to find a link that will take me to the page of users. Is there a way reasonably self evident to navigate users to Enterprise Manager Database Control?

    Thank you

    Gregory

    Gregory,

    Although I'm 11.2 running on my laptop but I have not installed EM top. Can you please confirm that looking for the oracle user password change? If so, there will be a Server tab. In this, you should find a link to the user . From there on, a list of users would come, and you can choose your username. Click Edit and change the password.

    That said, I'm not sure if the docs are confusing. In the 2-day DBA guide, I got it immediately.
    http://download.Oracle.com/docs/CD/E11882_01/server.112/e10897/users_secure.htm#CHDJEBDG

    And from there, I don't think it's hard to do what I understand you want to do. If this isn't the case, please be more specific.

    HTH
    Aman...

  • Update the domain in the event Manager

    Hi, I have a problem with a PostProcess EventHandler.

    My code gets "ID Manager" of a user, search for it in the "employee number" of all users and gets the "display name" of the corresponding Manager to put in the 'Manager' of the user field.

    It works OK when I put the 'full name' Manager for example, in the "First name" field, but if I try to put it in the field 'Manager' (or 'trade for testing), I get a window with this error:
    IAM-2050243: process of Orchestration with id 5760, failed with error 3050009-IAM: unknown attribute for the user of the entity...

    I think I need something else to put a value in this type of field, but I don't know what.

    Your help will be appreciated, thanks and best regards!

    Nicolas.

    Here is the code:

    public EventResult run (long processId, long eventId, orchestration of the Orchestration) {}

    Parameters HashMap < String, Serializable > = orchestration.getParameters ();

    String managerID = getParamaterValue (settings, "ManagerID");

    < User > list list = findManager (managerID);

    If (!) () list.isEmpty ()). (liste! = null)) {

    String displayNameManager = list.get (0) m:System.NET.SocketAddress.ToString (); I get for example: «188 {Display Name = Lucas Da Silva, usr_key = 188}»

    firstEqual int = (displayNameManager.indexOf ("="));

    int firstComma = (displayNameManager.indexOf(","));

    displayNameManager = displayNameManager.substring(firstEqual+1,firstComma); I get "Lucas Da Silva.

    orchestration.addParameter ("middle name", displayNameManager);

    orchestration.addParameter ("lov_ds_usr_manager_key", displayNameManager);

    }

    return new EventResult();

    }

    ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

    public list < user > findManager (String managerID) {}

    SearchCriteria = new SearchCriteria criteria ("employee number", managerID, SearchCriteria.Operator.EQUAL ");

    User < user > list = null;

    UserManager usermgr = Platform.getService (UserManager.class);

    < String > retAttrs value = new HashSet < String > ();

    retAttrs.add (UserManagerConstants.AttributeName.DISPLAYNAME.getId ()); //option1

    retAttrs.add ("Display Name"); //option2 / / I have the same error with option 1 or option 2

    try {}

    user = usermgr.search (criteria, retAttrs, null);

    } catch (UserSearchException e) {}

    e.printStackTrace ();

    } catch (AccessDeniedException e) {}

    e.printStackTrace ();

    }

    return the user;

    }

    your problem is in this line "displayNameManager = displayNameManager.substring(0,firstEqual-1); /".

    print the value of firstEqual of other use:


    displayNameManager = displayNameManager.substring (displayNameManager.indexOf ("=") + 1,displayNameManager.lenght - 2);


    and also your displayNameManager is of type int not long so use Integer.parseInt (displayNameManager) method

  • Provisioning users access to planning applications in Calc Manager

    What role Shared Services supply determines whether an end user can see a planning application in Calc Manager? One of my analysts can see one of our three planning applications in Calc Manager. I see all 3 apps in Calc Manager, but I have full administrator rights to all. I opened a SR with Oracle, but they have not yet responded to my question.

    Appreciate any comment.


    -Bob

    Reading of:-http://download.oracle.com/docs/cd/E17236_01/epm.1112/cmgr_admin/ch01s03.html
    It should help you.

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • To access dynamic domain names?

    I want to be able to create some text fields with unique names and set values in their in a loop For without having to reference the field names in the code.

    Consider the following code snippet:

    This.createTextField("hello_txt",0,10,10,100,20) ("field" + i, this.getNextHighestDepth (), x 1, y1, 250, 20);

    Place a text field in a clip with the name which is a composite of a literal value, and a variable value leading to names such as Field1, Field2, etc.. My question: is there any similarly use a composite field name to access field properties? For example: can I put the text for the field using the same composite name without having to speak according to a literal field name? If I can't, then what's the point of having the ability to compound name?

    You can remove the last question because the answer to the previous (s) is 'yes '.

    This ["field" + i] .text = 'whatever ';

    the support rating causes a string to be evaluated as an instance of object.

  • To access the information of VMware Service Manager (VSM) using PowerCLI

    If the details on virtual machines are stored in VSM I need to add to a PowerCLI report, is a reference to how to get information on a VM of MSM and add it to a report that is created from vCenter Server information?

    For example, I have a report indicating:

    Get - vm | Select name, memorygb

    However, the owner of the network for this virtual machine is stored in a field of VSM.  How would I change my report to add the owner of the network of MSM?

    It there is no info on 'hard' on this interruption, but take a look at this.

    These guys could have more concrete info.

Maybe you are looking for