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();

Tags: BlackBerry Developers

Similar Questions

  • Secondary links won't work. Also puzzle in gray.

    Example: creating a card from American Greetings. I can't get past step 1. When I click on step 2, nothing happens. I get sent to my mail everyday Jigzone. Each puzzle is grayed out and will not work. This looks like a Java problem, but Firefox will not accept the update of Javascript.

    Discovered it was my router! Bought a new one and everything works fine.

  • When I go on the Jigzone jigsaw site a mobile advertising appears and is distracting and so close to the puzzle so it is impossible to focus on the puzzle.

    For several weeks, an ad on the Jigzone jigsaw page right. It is great and the image is 'live' and moving. It is almost on the top of the puzzle and much too distracting to continue with the puzzle. I tried to scroll upward so that the puzzle shows, but the announcement is so close, I have to scroll to the top so it is very difficult to make the puzzle. I don't know if it's a pop up (I disabled the pop-ups) or a cookie or what. So I don't know how to get rid of it. You can enlarge, but you can't make it go away.

    His reference to my name. And I'm Canadian. And I do not see the resolved or the other. I am very pleased that this has helped you to be more courageous. I just hit my 5-0 and I'm NOT ANY DIFFERENT I HIT 0-5. Except that I DO not BITE MY NAILS TIL I got 20. There is once again the key. I'm sorry. In any case, I love music and wish I could play the piano! We all want what we have... his party! Just ENJOY what you have, and screw the rest. AND laughing so hard that make the people around you wish they knew the joke!
    [I hope that violate no rule.] TTFN.

  • Add my button to view ons had disappeared from my navigation bar. It was the CAP as a piece of the puzzle. How can I get it back?

    I am running Firefox 20.0.1 with Windows 7 on my laptop. Room button shaped puzzle that displays my Add ons has disappeared from my navigation bar. How can I get it back? I tried to go through the button "Customize" from the toolbar on the menu drop down, but the icon is not there. In addition, some other add ons that I downloaded appear anywhere, even on my toolbar add-on.

    You can also right click on the navigation toolbar and click 'Add on bar' in the context menu.

  • I have a puzzle game numbers worksheet.

    Numbers dear Experts,

    I have a puzzle game worksheet that I need help with this. Its related to indexing and extraction of specific data and necessary other sheets. So full of hope someone out there has the time and skills to help out me. Here we go...

    Here's an example simplified data in Sheet1:

           Wash Dry
    09:00 Jerry Susie
    10:00 Brian Joanna
    11:00 Joe Tim

    So, basically, I need to index the task and time by using the names of people, preferably in a menu drop-down.

    Name Time Task
    Joe 11:00 Washing

    I hope someone can help!  Thanks in advance!

    Joey

    Hi Joey,

    Here is one approach. Two tables extra where you can filter on a name.

    The 'File' table is where you type or paste details.

    The table "Choosing a name" has a context Menu in A2

    In the table "Wash."

    Formula in A2 (fill down)

    = Roster::A2

    Formula in B2 (fill down)

    = Roster::B2

    Formula in C2 (fill down)

    = IF(B=Choose a Name::A$2,"Show","Hide")

    In the table "in the dry."

    Formula in A2 (fill down)

    = Roster::A2

    Formula in B2 (fill down)

    = Roster::C2

    Formula in C2 (fill down)

    = IF(B=Choose a Name::A$2,"Show","Hide")

    I added the highlight conditional to add Green fill to no results 'Show', just to illustrate. It is not necessary, because we'll hide these columns.

    Now, apply a filter for the wash, then the tables dry:

    To see this:

    You can move (copy / paste) the list to another worksheet table 'hide' If you wish.

    Now hide the columns 'Show?' in the dry tables and washing.

    Choose a different name in the pop-up Menu

    Kind regards

    Ian.

  • After you have installed the 'Puzzle', it is not included in the menu click right when I open a photo, how can I include the add-on in my right click menu?

    I installed the add-on puzzle 0.4.6 which is supposed to add the issue of "Puzzle" to the context menu, but when right click on an image it does not give the option to open with the add-on puzzle.

    Make sure you do not right click on a background image.

    You should see a backup image and view image if this is a real picture.

    You can try to click with the right button on your avatar.

  • Is the old puzzle slide with the Rainbow Apple logo always around here?

    Is the old puzzle slide with the Rainbow Apple logo always around here?

    For people who still have the old Mac OS 9, it is, but you must before mid-2006 PowerPC Mac to run it in classic, or to get a such a Mac ROM to install with a program called Sheepshaver.  Depending on your country, get a such ROM cannot be legal.

  • Universal Crossword print yesterdays puzzle. How to print today "s".

    print the puzzle from yesterday

    There is a debate about this new feature listed here . The following comes from this text:

    Your problem may be caused by "Note: new printable content is available every day." If you make an Impression now or change your schedule on a day that you have already received a print, the printed page will be the same. "

  • Keep getting Sunday puzzle will not give today Monday puzzle

    get univeral crossed daily, but get Sunday not Monday puzzle it was working fine before

    its ok now fool better all on its own thank you

  • How to stop the puzzles to enter?

    How to stop all the puzzles to come? I do not use them and they use my ink

    Hello

    Please use the section #2 of the following article to stop:

    http://support.HP.com/us-en/document/c03181888

    Kind regards.

  • Friday afternoon, Puzzle

    Happy Friday to all!

    Right-click Kudos to anyone who can solve this puzzle. What song of Queen represents the following block diagram?

    Don't Stop now Me?

  • Cannot get Hoyle puzzle and game downloaded on Windows 7

    I just bought a new hard drive.  When it is installed my Hoyle has lost games.  Recently bought the new games, card and casino and Hoyle puzzle & board games.

    Card and Casino installed immediately, but the puzzle and board game, I tried several times.  It installs, but does not illuminate for me to play.  I have

    no idea what's on my pc which is coming up with an error.  Contacted Encore Hoyle co. and follow their instructions, but it does not, either.  Of course

    before that I installed over and over again, I had to uninstall it.  A mystery...

    Hello

    1. What is the exact error message you get when you download the game?

    2. what operating system do you use?

    Method 1:

     I recommend you put the computer to boot.

    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7

    http://support.Microsoft.com/kb/929135

    Note: After troubleshooting, be sure to set the computer to start as usual as mentioned in step 7 in the above article.

     

    Game in Windows 7:

    http://Windows.Microsoft.com/en-us/Windows/discover/gaming

    You can also contact Hoyle puzzle and board game for further assistance.

    http://support.Encore.com/technicalsupport/product_detail.aspx?product_id=2830

    It will be useful.

  • Loading Zigzone puzzles

    How can I load the puzzles on zigzone? I was always able to load until I got a new computer with Windows 7. I can bring to the top of the web page, but when I select a puzzle it won't open it.

    Hello

    You have this problem with any other website or with this particular site?

    Do you have an error message when you try to load the puzzle?

    Is the homepage for this site loads normally or is there a problem loading the site?

    Some Web sites are designed for older browsers. You may experience some compatibility issues on these sites until they are updated to Internet Explorer 8. You try to open the page in compatibility view and check if that helps the loading of the puzzles. Follow the link given below, to the race, the site in compatibility view.

    Some Web sites are not displayed correctly or work correctly in Windows Internet Explorer 8

    http://support.Microsoft.com/kb/956197

    Also, download the latest version of Java for your computer for a better online gaming experience. Follow the link given below for the same thing.

    http://www.Java.com/en/download/index.jsp

    Hope this information is useful.

    Amrita M

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

  • I lost the sidebar with clock, calendar and puzzle on it. How can I get that back

    I got the sidebar with the calendar and clock and a puzzle on this subject. I moved the computer and inadvertently press the button to hide? I don't remember how I did these on my screen can you help me?

    I got the sidebar with the calendar and clock and a puzzle on this subject. I moved the computer and inadvertently press the button to hide? I don't remember how I did these on my screen can you help me?

    You mean component Windows and Gadgets.  (<-- that="" is="" a="" link,="" click="" on="">

  • Windows Vista Readyboost Puzzle

    Hello everyone. I have a bit of a puzzle on Windows Vista Readyboost.
    I have a windows 7 PC and a friend has vista.
    I tried readyboost using two USB keys, a 4 GB stick and half-full 8 GB stick vacuum.
    It seems that Windows 7, I am allowed to use more than 4 GB I break in two sticks.
    It will work for vista from my friend as well? Also, is it possible for me to be able to use readyboost
    on a stick with capacities of 4 GB?
    I've heard several rumors that you can by formatting in a different format, but
    I want to assure you of one of these three methods before recommending my friend to buy something.
    1. buy two 4 GB sticks and devote two to readyboost.
    2 buy 1 8 GB stick and format so I can devote to readyboost.
    Generally, I would like to make the second, but I am happy to recommend 1 if necessary.
    IMPORTANT: I need this works with a SD Card (Flash Memory Card).
    Thanks for your help, please reply as soon as POSSIBLE.
    See you soon,.
    Jetpackboy

    Hello

    ReadyBoost is designed for computers that use only a small amount of physical RAM; about 512 MB - 1 GB, not for computers that use already 2-3-4 GB of RAM.

    The physical RAM more you have, the less difference you will notice with ReadyBoost.

    http://www.bleepingcomputer.com/tutorials/using-Windows-ReadyBoost-to-increase-performance/

    See you soon.

Maybe you are looking for