Screen IllegalArgumentException

IllegalArgumentException

Detail of exception is "field is not a child of this Manager."

Scenario: I subclassed form and substituted sublayout().  Exception is thrown in my sublayout().  Corresponding code...

    AppScreen()    {        super( NO_VERTICAL_SCROLL | DEFAULT_CLOSE );

        _hdr = new MyHeader();        add( _hdr);    }

    protected void sublayout(int mw, int mh)    {        super.sublayout( mw, mh);        layoutChild(_hdr, mw, 24);        setPositionChild(_hdr, 0, 0);        setExtent(mw, mh);    }

The exception confuses me greatly.  I called add (_hdr) on my property to the constructor of this screen.  And yet it tells me that it is not a child of the Manager.  How can this be?

Thanks for any thoughts.

Platform: JDE 4.2.1

Simulator: 8800

Can't really help you sorry, but I think that screen has three Associate Directors, one for areas title, body and State.  I don't know how he manages sublayout in this case.

Maybe you could add _hdr to your own Manager, which has overridden sublayout?

Tags: BlackBerry Developers

Similar Questions

  • ApplicationMessageFolderRegistry registerFolder IllegalArgumentException

    I have the same problem Visual as described in this post solved, however my way to get there is slightly different than in my opinion. To explain, I am trying to save a folder of messages for the purpose of issuing alerts and notifications on certain events. My app is, technically, neither demand nor a UIApplication - it is a top-level class who will then create one or the other according to the entry point. My background AEP monitor is an Application and my ASP UI is a UIApplication. In other words the main function is not in a class of each types.

    I need to create an application folder in which the background AEP monitor can send messages. The folder must be registered with the ASP of the UI so that it's what opens when the dossier is typed on the home screen. I get the IllegalArgumentException When calling ApplicationMessageFolderRegistry.registerFolder and I think it is because my main application is not strictly speaking a UIApplication.

    Can anyone confirm that it is the expected exception in this situation and what I might be able to do about this please? It will be difficult for the redesign of my application at this point... I'd like that there is another solution. Here is the code that generates the exception. What is strange, is that sometimes it seems to work ok, but sometimes it does not work and I then two icons of the application in the notification bar.

    ApplicationDescriptor uiAppDesc = null;
    
    int moduleHandle = CodeModuleManager.getModuleHandle("my_app_module_name");
    ApplicationDescriptor des[] = CodeModuleManager.getApplicationDescriptors(moduleHandle);
    for (int i = 0; i < des.length; i++)
    {
        String descName = des[i].getName();
        if (descName.equals("UI AEP Name"))
        {
            uiAppDesc = des[i];
        }
    }
    
    if (uiAppDesc == null)
    {
        Debug.Log("Could not find ApplicationDescriptor for UI App entry point", Debug.DBG_NOTIFICATIONS);
        return;
    }
    
    ApplicationFolderIntegrationConfig config = new   ApplicationFolderIntegrationConfig( false, true, uiAppDesc);
    
    //Register the ApplicationMessageFolder
    //ReadableListImpl source is available in the messagelistdemo.
    ApplicationMessageFolder folder = ApplicationMessageFolderRegistry.getInstance().getApplicationFolder(AppMain.APPLICATION_ID_LONG);
    if (folder == null)
    {
        folder = ApplicationMessageFolderRegistry.getInstance().registerFolder(
            AppMain.APPLICATION_ID_LONG, APPLICATION_MESSAGE_FOLDER_NAME, new ReadableListImpl(), config);
    }
    

    It seems I have fixed this problem. The solution was to place the call to my code above inside a new workable with invokeLater. I was using an executable elsewhere in the code, that's why the problem seemed to be intermittent.

    By comparing the two code sections was the only way I stumbled upon this fix. The document does not indicate that this could cause an IllegalArgumentException thrown so I wonder now how would I know otherwise. I don't know * why * this fixes it for me... any other comments welcome!

  • BlackBerry, loading screen smartphones...

    After I upgraded to 2 apps in my 9300 Curve, a black square with a blue circle and "Loading"... "appeared in the center of the screen. And the Blackberry App Advisor said: "java.lang.illegalArgumentException: no ':' in the URL no ':' in the URL. I can't replacing applications when I press the BlackBerry button, but this place remains in front of any other appscreen and does not allow me to tinker with anything on the mobile. Please help me.

    Sorry "fighting the English.

    Hello and welcome to the community!

    I recommend that you try to start safe mode:

    • KB17877 How to start a smartphone BlackBerry in Mode safe

    It will take several attempts to get the combination of keys ESC (press/release/hold) OK, so be patient. When properly in Safe Mode, see what happens.

    If the behavior continues, then well... think what happened just before this behavior started? A new application? An update? A theme? Something else? Think carefully that the slightest change can be causal... and try to undo all that was.

    But if the behavior continues mode without failure, you may need to consider more drastic measures - WIPE, OS Reload, BBSAK Wipe/Reload and the process of reloading OS 'skeleton '. To prepare, you should be sure that you have a full backup of your PC... Please see the Backup link in my sig auto on this post for instructions.

    Good luck and let us know!

  • Update of the main screen to a background thread

    Hi guys im trying to update the main screen from a background thread. in this case I'm using a 2 static pictures. Once I click on a butotn on the popupScreen when the application is loaded, it will update the image on the main screen.

    I wrote a small excerpt for it and can you please give me some help with this. because when I've debugged and one of the developers helped me thereby to discover that the screen im trying to update is not the active screen.  Please have alook please.ive extract have 3 classes here

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

    SerializableAttribute public class MyApp extends UiApplication
    {

    Public Shared Sub main (String [] args)
    {
    Create a new instance of the application and make the currently
    who runs the thread of the application of the event dispatch thread.
    MyApp PAP = new MyApp();
    theApp.enterEventDispatcher ();
    }
        
    /**
    * Creates a new object MyApp
    */
    public MyApp()
    {
    Push a screen onto the stack in the user interface for rendering.
    pushScreen (new MyScreen());
    final Pinpopup pp = new Pinpopup();

    UiApplication.getUiApplication () .invokeLater (new Runnable()
    {
    public void run()
    {
    UiApplication.getUiApplication () .pushModalScreen (pp);
    }
    });
    }
    }
    ////////////////////////////////////////////////////////////////////////////////////////

    / public final class screen extends MyScreen
    {
    /**
    * Creates a new object of MyScreen
    */
    public Bitmap bmp image;
    public BitmapField bmpField;
    public ButtonField btnDisplay;
    public ImageThread imgThread;
            
    public MyScreen()
    {
            
    Set the displayed title of the screen
    setTitle ("MyTitle");
    BMP = Bitmap.getBitmapResource ("image.png");
    btnDisplay = new ButtonField ("Display");
    bmpField = new BitmapField (bmp);

    btnDisplay.setChangeListener (new FieldChangeListener() {}
                
    ' Public Sub fieldChanged (field field, int context) {}
    TODO self-generating method stub
                    
    if(Field == btnDisplay)
    {
    BMP = Bitmap.getBitmapResource ("image1.png");
    bmpField.setBitmap (bmp);
    signInButtonClicked ("07760926037", "1234");
    LaunchImageThread();
                        
    }
    }
    });
            
    Add (bmpField);
    Add (btnDisplay);
            
    }
        
        
    Public Sub LaunchImageThread()
    {
    imgThread = new ImageThread (this);
    System.out.println ("THIS screen:" + this.getScreen ()); I realized that the im screen update is not active but its strange I don't create any other refrence so
    New Thread (imgThread) m:System.NET.HttpListener.start ();
    }
    }
    ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// POPUPSCREEN CLASS
    class Pinpopup extends PopupScreen //implements FieldChangeListener
    {
    private ButtonField btnOk;
        
    Pinpopup()
    {
            
    Super (new HorizontalFieldManager());

    btnOk = new ButtonField ("Sign In");

    btnOk.setChangeListener (new FieldChangeListener() {}

    ' Public Sub fieldChanged (field field, int context)
    {
    TODO self-generating method stub
    Try
    {
    if(Field == btnOK)
    {
    Close();
    MyScreen ms = new MyScreen();
    Mrs. LaunchImageThread();
    }
    } catch (IllegalArgumentException e) {}
    TODO: handle exception
    System.out.println ("Exception Popup all in signingIn" + e.getMessage ());
    }
    }
    });
            
    Manager fieldManagerContext = new Manager (USE_ALL_WIDTH)
    {
    ' public void sublayout (int width, int height) {}

    int xPos = 10;
    int ypos = 40;

    Field = getField (0);
    layoutChild (field, 280, 50);
    setPositionChild (field, xpos ypos + 100 + 165);

    setPosition (300, 300);
    setExtent (350, 225);
    }
    };
            
    fieldManagerContext.add (btnOk);
    Add (fieldManagerContext);
    }
    }

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

    / public class ImageThread implements Runnable
    {
    private MyScreen parent;
        
    public ImageThread (MyScreen myScreen)
    {
    parent = myScreen;
    }

    public void run()
    {
    Try
    {
    UiApplication.getUiApplication () .invokeLater (new Runnable() {}
                    
    public void run() {}
    TODO self-generating method stub
    System.out.println ("active screen:" + UiApplication.getUiApplication () .getActiveScreen ());
    System.out.println ("active screen:" + parent.getScreen ());
    parent.bmp = Bitmap.getBitmapResource ("image1.png");
    parent.bmpField.setBitmap (parent.bmp);
                        
    }
    });
    }
    catch (Exception ex)
    {
    System.out.println ("Exception in Thread:" + ex.getMessage ());
    }
    }
    }

    was soon thanks

    I suspect that this is your problem:

    MyScreen ms = new MyScreen();
    Mrs. LaunchImageThread();

    I suspect that if you did as I suggested on the other Thread and put a breakpoint in the constructor of MyScreen, you'd have foiund, this creates a second instance.

    I hope that you can take it from here.

  • HorizontalFieldManager added to the bottom of the screen (to show the user a cost)

    Hello, I am trying to pin a HorizontalFieldManager towards the bottom of the screen and have a VerticalFieldManager scroll over it. I searched and found that I can do this through the substitution of the method sublayout of my screen. Note: I know I could use the setStatus() of a class display method, but I need of this screen to be just a screen and not a screen. Here is a picture of what I'm trying to accomplish:

    So the blue VerticalFieldManager should be scrollable to allow the user to select toppings for their food, and the Red HorizontalFieldManager should be set so that the user can always see their total (and continue to the next screen to complete their order)

    Here is the code that I have to do:

    protected void sublayout(int width, int height) {
            layoutChild(redManager, width, height);
            setPositionChild(redManager, 0, height);
            layoutChild(blueManager, width, height - redManager.getHeight());
            setPositionChild(blueManager, 0, 0);
            setExtent(width, height);
            }
    

    However, I get an error: IllegalArgumentException: field is not a child of this Manager. How I add the fields to the screen is as follows:

    public MyScreen extends Screen {
            ...
            public MyScreen() {
                this.add(blueManager);
                this.add(redManager);
            }
    }
    }
    

    Also, using an AbsoluteFieldManager has also been proven not

    Hello

    post previous sorry was by mistake... try this.

    VerticalFieldManager ScrollingVFM = new VerticalFieldManager() {}
    protected void sublayout (int width, int height) {}

    Super.sublayout (width, height);
    setExtent (Display.getwidth (), Display.getHeight () - bottomHFMHeight);
    }
    }

    Add this to the screen and add your background hfm to screen

    Kind regards

    pp

  • Eception exception: java.lang.IllegalArgumentException 9800 simluator and device

    First of all, let me say that this forum has been very useful development councils, of the examples and answers to difficult questions.  Thank you.  But now I have a problem that I can not find a solution for or to understand.

    I created an application that listens to the calls and when the call is disconnected it displays a screen, allows entry and persists the results.  I developed in JDE 5.0.0.25 and it worked fine on the Simulator.  When I installed on a Torch 9800, I get "Eception exception: java.lang.IllegalArgumentException" when it tries to display the entry screen.  I downloaded and installed the ATT 6.0.0.246 for 9800 Simulator and traveled the code.  I get the same exception on the Simulator.  It seems that he fails once the code that creates the screen is executed and control is returned to the operating system.  The code to display the screen looks like

    {Synchronized (application.getEventLock ())}
    UI UiEngine is Ui.getUiEngine ();.
    ui.pushGlobalScreen (oEFDS, 10, UiEngine.GLOBAL_MODAL |) UiEngine.GLOBAL_SHOW_LOWER);

    If the questions are

    1. any ideas why it worked in version 5 and not 6? I thought developing in version 5 allow more devices run the application.

    2. is there something specific for the Torch 9800 that may be cause of tha?

    OK, I found the answer to this problem.  Guess I should have looked before asking for help.

    http://supportforums.BlackBerry.com/T5/Java-development/differences-between-V5-0-OS-and-V6-0-OS-for-...

  • Get the two login screen when using the api of payment

    Hello

    I get the extra login screen when you use the payment api.

    When I pressed the button buy a login screen is displayed which is OK.

    After I get the connection information and tap on buy buy button is successful.

    Next, I check the purchase by calling the checkPurchase() method.

    After that, I see the login screen again...

    Here is my code...

    public PurchaseProduct (String product) {}
    TODO auto-generated constructor stub
          
    SKU = product;
    name = product;
          
    If (engine! = null)
    {
    engine.setConnectionMode (PaymentEngine.CONNECTION_MODE_LOCAL);
    PurchaseArgumentsBuilder arguments = new PurchaseArgumentsBuilder()
    .withDigitalGoodSku (sku)
    .withDigitalGoodName (name)
    .withMetadata (name);
    Try
    {
    Purchase purchase = engine.purchase (arguments.build ());
    Dialog.Inform ("purchase is successful.");
    }
    catch (IllegalArgumentException e)
    {
    Dialog.Inform (e.getMessage ());
    }
    catch (PaymentException e)
    {
    Dialog.Inform (e.getMessage ());
    }
    }
           
    }
       
    public boolean checkPurchase (product of the chain)
    {
    Try
    {
    Purchase [] = engine.getExistingPurchases (true);
               
    If (purchases.length! = 0)
    {
    for (int i = 0; i)< purchases.length;="" i++="">
    {
    If (Purchases [i] .getDigitalGoodSku () == Product)
    {
    Returns true;
    }
    }
    }
    on the other
    {
    Dialog.Inform ("not bought");
    }
    }
    catch (PaymentException e)
    {
    Dialog.Inform (e.getMessage ());
    }
    Returns false;
           
    }

    Thanks in advance...

    Hi pprateek,

    The behavior you describe, is what one would expect in this scenario. No matter what time you want to retrieve App World a user related information, you will need to provide their credentials.

    The first pop-up would happen when you call to the:

    Purchase purchase = engine.purchase (arguments.build ());

    Note that, if this succeeds, the object returned toPurchas will contain information about the purchase that was just to finish. This object can be used to check the details of the purchase that has just occurred.

    http://www.BlackBerry.com/developers/docs/payment/1.0api/NET/rimlib/BlackBerry/API/payment/PaymentEn...

    The second login screen happen when you call:

    Purchase [] = engine.getExistingPurchases (true);

    Depending on the application, the same credentials of App World cannot always ask. So if you ask that existing App World a user purchases, you will need to enter their credentials. As well for security purposes (I guess), someone buys an article is not necesserily because he agrees immediately to have additional details about their account recovered.

    The famous buy may be asked to confirm the details of your current purchase, and if you want to get a list of all current purchases, the user must enter their credentials again.

    Erik Oros

    BlackBerry Development Advisor

  • Retrieves the width of screen

    Hi team,

    I have a following code:

    import net.rim.device.api.ui.*;
    import net.rim.device.api.ui.component.*;
    import net.rim.device.api.ui.container.*;
    import net.rim.device.api.i18n.*;
    import net.rim.device.api.system.*;
    import net.rim.device.api.collection.util.*;
    import net.rim.device.api.ui.decor.*;
    
    import java.util.*;
    
    public final class SeedAboutScreen extends MainScreen implements SeedManagerResource
    {
        //members ------------------------------------------------------------------
    
        private static ResourceBundle _resources = ResourceBundle.getBundle(BUNDLE_ID, BUNDLE_NAME);
        private static SeedHelpScreen _seedHelpScreen;
    
        private VerticalFieldManager _manager;
    
        public SeedAboutScreen()
        {
            super();
    
            _manager = (VerticalFieldManager)getMainManager();
    
            BitmapField image_top = new BitmapField(Bitmap.getBitmapResource(_resources.getString(IMAGE_TOP)), FIELD_HCENTER | FOCUSABLE);        
    
            Background image_background = BackgroundFactory.createBitmapBackground(Bitmap.getBitmapResource(_resources.getString(IMAGE_BACKGROUND)), 0, 0, Background.REPEAT_INHERIT);
    
            BitmapField image_logo = new BitmapField(Bitmap.getBitmapResource(_resources.getString(IMAGE_LOGO)), FIELD_HCENTER | FOCUSABLE);
    
            _manager.setBackground(image_background);  
    
            Font font_title = this.getFont().derive(Font.PLAIN | Font.BOLD);
            Font font_application = this.getFont().derive(Font.PLAIN, 16);
            Font font_bold = this.getFont().derive(Font.PLAIN | Font.BOLD, 16);
    
            LabelField _titleField = new LabelField(_resources.getString(APPLICATION_TITLE), FOCUSABLE);
            LabelField _descriptionField = new LabelField(_resources.getString(APPLICATION_DESCRIPTION), FOCUSABLE);
            LabelField _versionField = new LabelField("Version: " + _resources.getString(APPLICATION_VERSION), 0, -1, Field.FIELD_RIGHT | FOCUSABLE);
    
            _titleField.setFont(font_title);
            _descriptionField.setFont(font_bold);
            _versionField.setFont(font_bold); 
    
            try {
    
                _manager.add(image_top);
                _manager.add(_titleField);
                _manager.add(new LabelField(" "));
                _manager.add(_descriptionField);
                _manager.add(new SeparatorField());
                _manager.add(_versionField);
                _manager.add(new LabelField(" "));
    
                   }
            catch (IllegalArgumentException e)
                {
               System.out.println(e.getMessage());
                }
        }
    
        public boolean onClose()
        {
            _seedHelpScreen = new SeedHelpScreen();
            UiApplication.getUiApplication().pushScreen(_seedHelpScreen);
            return true;
        }
    
        public boolean keyChar(char key, int status, int time) {
            //intercept the ESC key - back out of this screen on its receipt
            boolean retval = false;
    
            switch (key) {
            case Characters.ESCAPE:
                onClose();
                retval = true;
                break;
            }
    
            return retval;
        }     
    
        private MenuItem _closeItem = new MenuItem(null, 0 , 200000, 10) {
            public void run() {
                onClose();
            }
            public String toString()
            {
                return "Close";
            }
        };
    
        protected void makeMenu ( Menu menu, int instance )
        {
            menu.add(_closeItem);
        }
    
    }
    

    I need get the screen width to create the following option:

    
            Switch (widthScreenDevice())
    
             case 480:                BitmapField image_top = new BitmapField("image 1.png");           case 320:            BitmapField image_top = new BitmapField("image 2.png");  ...
    

    I have no idea about this, please help me.

    Thank you.

    Hello

    Take 2 static public variables called deviceWidth and deviceHeight and initialize these variables with

    deviceWidth = Display.getWidth () deviceHeight = Display.getHeight () and

    Initialize these variables in the constructor of the class that contains the main() and then use these variables in your application.

  • Puzzled on IllegalArgumentException

    Hello

    I have an app that works well on multiple devices and multiple versions of the OS, but on the simulator of the storm, I get an IllegalArgumentException in the libraries of blackberry as a field is painted.

    The exception occurs when my code for this;

    -building a secondary screen screen called "ListScreen.

    -Adds a specialized ObjectListField class called "ItemListField" with about 10 objects inside a HorizontalFieldManager

    -each object in the list field overload of toString to create a line of text... which part is wider than the screen.

    -the HORIZONTAL_SCROLL and HORIZONTAL_SCROLLBAR style bits are enabled in the HorizontalFieldManager

    Elsewhere in my application this same approach of ListScreen and ItemListField is used in a similar way, with no problems.

    I wrapped around my builders of exception handling, but nothing is taken by my code... just the debugger catches the exception. The exception seems to occur more deeply in the libraries of BlackBerry. I copied the trace at the bottom.

    I use error to isolate the problem, but I have a version which is currently controlled by this problem and it crumbles. Suggestions on the forum to assist in the resolution of the problem or the isolatiing are greatly appreciated.

    Randy

    Installation of Eclipse

    ===========

    -componentpack V4.7.0.36

    -JDE v1.0.0.50

    Trace of thread

    ==========

    Bitmap image. line (int, int, int, byte [], boolean, boolean, boolean): 550
    Bitmap image. line (int, int, int, byte [], boolean, boolean): 456
    Bitmap image. line (int, int, int, byte [], boolean): 437
    Bitmap image. (int, int, int) line: 391
    Bitmap.createScaledBitmap (int, int) line: 762
    ScaleBitmap.scaleBitmap (int, int, int, boolean, Bitmap) online: 481
    ScaleBitmap.scaleBitmap (Bitmap, int, int, int) online: 427
    Line BitmapBackground.draw (Graphics, XYRect): 193
    ListScreen$ ItemListField (field) .drawHighlightRegion (Graphics, int, boolean, int, int, int, int) line: 1463
    ListScreen$ ItemListField (field) .drawFocus (icon, boolean) online: 1326
    ListScreen$ ItemListField (ListField) .drawFocus (icon, boolean) online: 495
    ListScreen$ ItemListField (field) .paintSelf (graphics, boolean, int, int) line: 4252
    Line .paintChild (graphic design, field) HorizontalFieldManager (Manager): 2596
    HorizontalFieldManager.subpaint (Graphics) line: 245
    HorizontalFieldManager (Manager) .paint (Graphics) line: 2540
    HorizontalFieldManager (field) .paintSelf (graphics, boolean, int, int) line: 4237
    Line .paintSelf (graphics, boolean, int, int) HorizontalFieldManager (Manager): 2601
    Line .paintChild (graphic design, field) VerticalFieldManager (Manager): 2596
    VerticalFieldManager.subpaint (Graphics) online: 536
    VerticalFieldManager (Manager) .paint (Graphics) line: 2540
    VerticalFieldManager (field) .paintSelf (graphics, boolean, int, int) line: 4237
    Line .paintSelf (graphics, boolean, int, int) VerticalFieldManager (Manager): 2601
    Line .paintChild (graphic design, field) TitleStatusManager (Manager): 2596
    TitleStatusManager (Manager) .subpaint (Graphics) line: 3006
    TitleStatusManager (Manager) .paint (Graphics) line: 2540
    TitleStatusManager (field) .paintSelf (graphics, boolean, int, int) line: 4237
    Line .paintSelf (graphics, boolean, int, int) TitleStatusManager (Manager): 2601
    Line .paintChild (graphic design, field) FieldMapListScreen (Manager): 2596
    FieldMapListScreen (Screen) .paint (Graphics) line: 3556
    FieldMapListScreen (field) .paintSelf (graphics, boolean, int, int) line: 4237
    Line .paintSelf (graphics, boolean, int, int) FieldMapListScreen (Manager): 2601
    .DoPaint0 (boolean, boolean) FieldMapListScreen (screen) line: 1368
    UiEngineImpl.paintToBackingStores (line): 444
    UiEngineImpl.doPainting (line): 275
    UiEngineImpl.processMessage (subject, Message, boolean) online: 2436
    AcireJournalApp (app) .processNextMessage (Message) line: 1799
    AcireJournalApp (app) .enterEventDispatcher () line: 1043
    Line AcireJournalApp.main (String []): 47

    I found the cause of the exception, they wore the style bits being passed to the constructor of the HorizontalFieldManager.

    The following code caused the exception on V4.7 but not on earlier versions (V4.2, tested V4.6).

    HFM HorizontalFieldManager = new HorizontalFieldManager)
    HorizontalFieldManager.HORIZONTAL_SCROLL
    | HorizontalFieldManager.HORIZONTAL_SCROLLBAR);

    The exception does not occur when the code is changed

    HFM HorizontalFieldManager = new HorizontalFieldManager();

  • IllegalArgumentException in Resource.instantiateMIDlet, line 209

    I have a very basic application that has a single class that extends the MIDlet. When I run the application from the applications screen in the Simulator, I always get an IllegalArgumentException in Resource.instantiateMIDlet, line 209.

    Going up the stack trace I see MIDletMain.activate (), Application.processnextMessage (), Application.enterEventDispatcher () and MIDletMain.main (String [])

    I don't think that the source code of the resource class is on my machine anywhere. So I can not provide debugging much more without decompile, which I will not go.

    I use the JDE right now. Would I be able to see more if I used Eclipse or something for development?

    This is my first mobile application. So I'm a little weak on what would be best practices.

    Thank you.

    I solved this problem with the project properties.

    Give the full name of your class created MIDlet (name of class and package in dotted format).

  • IllegalArgumentException guard throw when calling popScreen()

    I added a MenuItem on a screen and I want to add a behavior of "previous screen".

    So I extended the class MenuItem of the substitution of the run() method. Table of contents including:

    UiApplication app = UiApplication.getUiApplication();app.invokeLater(new Runnable() {   public void run() {      UiApplication app = UiApplication.getUiApplication();      if (app.getScreenCount() > 1) {         Screen screen = app.getActiveScreen();     app.popScreen(screen);       }    }});
    

    I now get an IllegalArgumentException for a reason any.

    I called the following threads and tried different alternatives, but this exception is thrown again. I know it's because of the appeal to the pop method, but I can't seem to solve.

    "Screen problem.

    «Eception Exceptiion...» »

    «Re: switching screen...» »

    and recently

    IllegalArgumentException...

    Help, please!

    How will you do that, you can publish a piece of code here so that we can make changes to this topic... I suspect that you are in a bad way... Perhaps, the cause first of the IllegalArgumentException may be different... Reproduce this and post the snippet of code here...

    See you soon...

  • IllegalArgumentException in VerticalFieldManager to add several ObjectChoiceFields

    Hi all

    I'm IllegalArgumentException in VerticalFieldmanager to add several ObjectChoiceFields.

    
    
    VerticalFieldManager row = new VerticalFieldManager(VerticalFieldManager.NO_HORIZONTAL_SCROLL |VerticalFieldManager.NO_VERTICAL_SCROLL);VerticalFieldManager row1 = new VerticalFieldManager(VerticalFieldManager.NO_HORIZONTAL_SCROLL |VerticalFieldManager.NO_VERTICAL_SCROLL); for(int i = 0; i < blackBerryContacts.size(); i++){BlackBerryContact item =(BlackBerryContact)blackBerryContacts.elementAt(i);             choiceP[i] = new ObjectChoiceField("", choiceFld,0, FIELD_RIGHT);
                    int index = choiceP[i].getSelectedIndex();
                    String selectedChoice = choiceFld [index];
                    chkBoxField[i] = new CheckboxField(sb.toString(), true,
                            Field.USE_ALL_WIDTH | CheckboxField.FIELD_LEFT)
                    {
                         //Invoked when this field receives the focus.
                        protected void drawFocus(Graphics g, boolean on)
                        {
                            if (g.getBackgroundColor() != 3098850)
                            {
                                XYRect xy = g.getClippingRect();
                                g.setBackgroundColor(0xf9f8f5);
                                //g.fillRect(xy.x,xy.y,xy.width,xy.height);
                                g.clear();
                            }
                            super.paint(g);
                        }
                        protected void paint(Graphics g)
                        {
                            int x = this.getIndex();
                            XYRect xy = g.getClippingRect();
    
                            if (g.getBackgroundColor() != 3098850)
                            {
                                g.setBackgroundColor(0xf9f8f5);
                                //g.fillRect(xy.x,xy.y,xy.width,xy.height);
                                g.clear();
                            }
                            super.paint(g);
                        }
                        protected boolean navigationClick(int status, int time) {
                            if (this.getChecked())
                                this.setChecked(false);
                            else
                                this.setChecked(true);
                            //fieldChangeNotify(1);
                            return true;
                        }
                    };//----------
                    row.add(chkBoxField[i]);
                    row1.add(choiceP[i]);
                }
    

    chkBoxField can be added in VerticalFieldManager but ObjectChoiceField is exception.

    Please help me.

    Thank you

    DK.

    Unfortunately, ObjectChoiceField does not allow to have another field in the same row. This area needs the line of the screen. When you try to add the field to the line where the ObjectChoiceField - you get an error.

    I recommend the following approach.

    Data model

    public class BlackberryContact {
    
        private String Fullname;
    
      ....
    
      private Vector contactInfo;
    
      public void addContactInfo(BlackberryContactInfo info) {      contactInfo.addElement(info);     ....  }}
    
    public class BlackberryContactInfo {
    
        public final int CONTACT_TYPE_HOME_PHONE = 1; public final int CONTACT_TYPE_WORK_PHONE = 2; public final int CONTACT_TYPE_EMAIL = 3;
    
        // type of contact: phone, email, etc private final int contactType; 
    
      // contact info: phoneNumber, emailAddress    private final String contactInfo;
    
      // constructor, use CONTACT_TYPE_.. constants as contactType      public BlackberryContactInfo(String contactInfo, int contactType) {       this.contactInfo = contactInfo;       this.contactType = contactType;   }   
    
      public int getType() {        return contactType;   }   
    
        public String getInfo() {     return contactInfo;   }   }
    

    VIEW

    Implement a screen to display BlackberryContact, say BlackberryContactView

    Add the text field to refer to and add ListField to view available contact information (emails, phones, etc.).

    Each person can have different qty of coordinates, ListField is the best choice.

    Will look like the screen layout is shown on the picture:

    http://picasaweb.Google.ru/tbilisoft/BlackberryForum#5285460326711217906

  • "BOLD" of Smartphones blackBerry displays serious error - IllegalArgumentException event log

    I was watching the "BOLD" error log and I came across a couple of fields marked "serious error". It seems that it is because of some kind of rendering on a modal dialog box, but I don't know exactly how to read the newspaper very well. Here's the glued log entry. Any ideas?

    Name: IllegalArgumentException

    GUID: 9c3cd62e3320b498

    Time: February 5, 2009 11:26:33

    30

    net_rim_cldc-10

    ObjectChoiceField

    getChoice

    0x6B9C

    net_rim_cldc-9

    ChoiceField

    0x6FF6

    net_rim_cldc-9

    ChoiceField

    getWidthOfChoice

    0x63F2

    net_rim_cldc-9

    ChoiceField$ ChangeOptionChoiceField

    getWidthOfChoice

    0x71DF

    net_rim_cldc-9

    ChoiceField

    0x6F3C

    net_rim_cldc-9

    ChoiceField

    moveChoiceFocus

    0 x 6498

    net_rim_cldc-9

    ChoiceField$ ChangeOptionChoiceField

    moveFocus

    0x73B2

    net_rim_cldc-8

    Manager

    moveFocus

    0x4E7C

    net_rim_cldc-8

    Screen$ NavigationMovementFocusSelector

    Select

    0xABC3

    net_rim_cldc-8

    Screen

    0xA40D

    net_rim_cldc-8

    Screen

    navigationMovement

    0x9AED

    net_rim_cldc-8

    Screen

    dispatchNavigationEvent

    0 x 8098

    net_rim_cldc-9

    UiEngineImpl

    processMessage

    0x9B41

    net_rim_cldc-6

    Application

    processNextMessage

    0xF06

    net_rim_cldc-7

    ModalEventThread

    run

    0x43EF

    Hello

    Outside of a technician certified to the RIM, I know most of the people can read and understand.

    I love you feared when I read on the curve and the storm.

    Although this indicates a serious error, I have not experienced the loss of function with each device.

    Every day I receive a severe message related to Javascript.

    I hope this helps!

    Thank you

    Bifocals

  • Return of the bound data control method causes IllegalArgumentException

    JDeveloper Version: _12.1.2.0.0_GENERIC_130608.2330.6668

    Problem:

    I have a Service method on a data control which takes the parameters. I'm able to drag the Service method on a JSF/ADF page and it creates an ActionBinding and all links in the input parameter as well. No problem. I can run the page and enter values in the display, press the binding Action and the method on the façade of the Session is called perfectly. So far so good. Now, I want to display the results of the (returned as a collection of POJO) Service method in the method declaration.

    If I drag the method declaration of data control on the same page and request that the results will be displayed in a table (or any control that will display a collection, in this example, this is a graph) control is created and all links with her. Once again, so far, so good.

    Now I start the page. This time, I IllegalArgumentExceptions (two of them) returned as messages when loading the page. Stack trace looks like this (my apologies, I hate when people put a huge stack traces in positions):

    [code]

    java.lang.RuntimeException: java.lang.IllegalArgumentException

    at oracle.adf.model.adapter.bean.UpdatableBeanDataControl.invokeOperation(UpdatableBeanDataControl.java:606)

    at oracle.adf.model.adapter.bean.BeanFilterableDataControl.invokeOperation(BeanFilterableDataControl.java:80)

    at oracle.adf.model.bean.DCBeanDataControl.invokeMethod(DCBeanDataControl.java:472)

    at oracle.adf.model.binding.DCInvokeMethod.callMethod(DCInvokeMethod.java:266)

    at oracle.jbo.uicli.binding.JUCtrlActionBinding.doIt(JUCtrlActionBinding.java:1658)

    at oracle.adf.model.binding.DCDataControl.invokeOperation(DCDataControl.java:2189)

    at oracle.adf.model.bean.DCBeanDataControl.invokeOperation(DCBeanDataControl.java:560)

    at oracle.adf.model.adapter.AdapterDCService.invokeOperation(AdapterDCService.java:309)

    at oracle.jbo.uicli.binding.JUCtrlActionBinding.invoke(JUCtrlActionBinding.java:751)

    to oracle.jbo.uicli.binding.JUMethodIteratorDef$ JUMethodIteratorBinding.invokeMethodAction (JUMethodIteratorDef.java:170)

    to oracle.jbo.uicli.binding.JUMethodIteratorDef$ JUMethodIteratorBinding.initSourceRSI (JUMethodIteratorDef.java:659)

    at oracle.adf.model.binding.DCIteratorBinding.callInitSourceRSI(DCIteratorBinding.java:1741)

    at oracle.adf.model.binding.DCIteratorBinding.internalGetRowSetIterator(DCIteratorBinding.java:1715)

    at oracle.adf.model.binding.DCIteratorBinding.refresh(DCIteratorBinding.java:4684)

    at oracle.adf.model.binding.DCExecutableBinding.refreshIfNeeded(DCExecutableBinding.java:341)

    at oracle.jbo.uicli.binding.JUCtrlHierBinding.getRootNodeBinding(JUCtrlHierBinding.java:108)

    at oracle.adfinternal.view.faces.dvt.model.binding.common.BindingKeyChangeHandler.setBinding(BindingKeyChangeHandler.java:52)

    at oracle.adfinternal.view.faces.dvt.model.binding.graph.ActiveGraphDataModel.setHierBinding(ActiveGraphDataModel.java:82)

    at oracle.adfinternal.view.faces.dvt.model.binding.common.FacesCubicBinding.getDataModel(FacesCubicBinding.java:194)

    at oracle.adfinternal.view.faces.dvt.model.binding.common.FacesCubicBinding.getDataModel(FacesCubicBinding.java:159)

    at oracle.adfinternal.view.faces.dvt.model.binding.common.FacesCubicBinding.getDataModel(FacesCubicBinding.java:111)

    at oracle.adf.model.dvt.binding.common.CommonBinding.internalGet(CommonBinding.java:149)

    at oracle.adf.model.dvt.binding.common.CubicBinding.internalGet(CubicBinding.java:580)

    at oracle.adfinternal.view.faces.dvt.model.binding.common.FacesCubicBinding.internalGet(FacesCubicBinding.java:234)

    at oracle.adf.model.binding.DCControlBinding.get(DCControlBinding.java:751)

    at javax.el.MapELResolver.getValue(MapELResolver.java:199)

    at com.sun.faces.el.DemuxCompositeELResolver._getValue(DemuxCompositeELResolver.java:176)

    at com.sun.faces.el.DemuxCompositeELResolver.getValue(DemuxCompositeELResolver.java:203)

    at com.sun.el.parser.AstValue.getValue(AstValue.java:138)

    at com.sun.el.parser.AstValue.getValue(AstValue.java:183)

    at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:224)

    [/ code]

    Now, if I fill in the parameters on the screen and call the ActionBinding by pressing the button created, the method calls the function on the façade and the data is returned in the control (chart or table). From that moment, I never have the illegalArgumentException and the page the way I want it.

    So, my question is, why the return of the method lie I invoke a method call on a page load until the ActionBinding is called and give me an illegalArgumentException. And - most importantly - how can I avoid this error?

    Any advice would be greatly appreciated.


    Thank you

    Nigel

    It is a normal behavior.  Check blog Shay https://blogs.oracle.com/shay/entry/delay_method_execution_when_us

    Timo

  • Reminders do not display or stick to the lock screen in iOS10

    IOS10 (10.0.1 and 10.0.2), on an iPhone (I use an iPhone 6), reminders are no longer reliable. I had several cases where the callback doesn't show even on the screen lock and many more times when the recall won't 'glue' to screen lock for more than a short period. Before iOS10, when you said to remind you at a certain time or place, the recall would display on the reliable lock screen until she has been marked as "completed".

    It is a major issue for people who depend on the application for the important tasks and calendar. There is a thread of any discussion on this point, for some reason, has been marked as "solved" even if a large number of people continues to post telling him that there is a problem for them too (as the thread located here). I wanted to start this new discussion which we hope will remain open until it is effectively resolved.

    Thank you!!! This is a HUGE problem!

    Since the update I had to reboot my phone EVERY day.

    Is the stick of reminders... or they do not. Lately they don't yet show upward. Then other things stick to the lock screen can't get rid of.

    Currently this feature on the phone is USELESS

Maybe you are looking for

  • Toshiba JournE Touch is not memorize the date and time!

    Hello everyone, just got a new Toshiba JournE Touch, but I find that whenever I have stop and he loses time which starts again from 12:00 am and date from October 1, 2009, is it a bug or something wrong?Thank you

  • Equium L100-186 - memory expansion Question

    Hi all I had my L100-186 satellite for over a year and have decided to upgrade the memory as the current 256 MB is quite poor. I bought 2x1GB sticks and put them with no problem. Unfortunately it is not now start up. I returned two sticks, assuming t

  • Start Qosmio G20 problem

    I have laptop Qosmio G20, I got error message that my WinXP lost some system files and did not start. I tried to start Windows XP again (I lost the rescue floppy), but my Installer hunged up after 1 minute. I tried several other bootable disks includ

  • Install Ubuntu with Windows 10 problems.

    Hello I had problems trying to install Ubuntu with Windows 10 (and Linux Mint also has problems). When I try to mount my hard drive (with 10 Windows on it), it says that Windows is put into hibernation. I want to install Ubuntu with Windows and not t

  • IdeaCenter B540 - regulator opens.

    Guide for shows of the series B3/B5 return also capable rotating stand for 15-40 degrees to the vertical. I can only turn to about 10 degrees from vertical. Any attempt to force beyond that point satisfied as long as I'm afraid that the resistance un