This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 135387 - [67cat] IllegalArgumentException: Invalid size
Summary: [67cat] IllegalArgumentException: Invalid size
Status: RESOLVED FIXED
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@guibuilder
URL: http://statistics.netbeans.org/except...
Keywords:
: 144121 159536 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-05-19 22:56 UTC by ranbato
Modified: 2009-04-07 07:29 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 5925


Attachments
stacktrace (3.11 KB, text/plain)
2008-05-19 22:56 UTC, ranbato
Details
Sample project (39.66 KB, text/plain)
2009-01-08 17:19 UTC, pribyl
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ranbato 2008-05-19 22:56:38 UTC
Build: NetBeans IDE 6.1 (Build 200804211638)
VM: Java HotSpot(TM) Client VM, 10.0-b22, Java(TM) SE Runtime Environment, 1.6.0_06-b02
OS: Windows XP, 5.1, x86

User Comments: 
Placing a Scroll Pane on a Panel
Comment 1 ranbato 2008-05-19 22:56:46 UTC
Created attachment 61589 [details]
stacktrace
Comment 2 Jan Stola 2008-05-27 15:50:50 UTC
I am sorry I am not able to reproduce this issue and the attached exception is not enough to track the problem down. 
Could you, please, provide more details. It would be ideal to attach the problematic form (both .java and .form files) 
saved in the last good state and describe exact steps that lead to this exception. Thank you in advance.
Comment 3 Jan Stola 2008-06-07 18:16:45 UTC
No additional information provided => closing as non-reproducible.
Comment 4 pribyl 2009-01-08 17:19:51 UTC
Created attachment 75596 [details]
Sample project
Comment 5 pribyl 2009-01-08 17:23:40 UTC
I attached a simple project (originally attached to issue 144121 by reporter).
When double clicking on file appxx.HsDataShee_t.java , the Exception 'IllegalArgumentException: Invalid size' is thrown.

Hope this can help to track it down.
Comment 6 pribyl 2009-01-09 15:37:17 UTC
*** Issue 144121 has been marked as a duplicate of this issue. ***
Comment 7 pribyl 2009-01-09 15:40:05 UTC
Issue 144121 originally reported AssertionError, but now all the sample project, attached to 144121 throws this
IllegalArgumentException and the AssertionError cannot be reproduced.
Comment 8 Jiri Vagner 2009-01-19 10:17:02 UTC
himesh: Thank you for your test project. The problem is inside .form file, designer saved empty space with wrong pref
size. Fast workaround for you is to replace value "-2147483648" with "0" using external plain text editor outside the
ide. Ideal way to deal with this issue is to find problem source and fix it. Are you able to attach steps to reproduce?
We need steps to force designer to generate that invalid value while we debugging it.

For now we can only add range checking while saving/loading forms to avoid this type of issue.  
Comment 9 pribyl 2009-03-26 13:18:53 UTC
*** Issue 159536 has been marked as a duplicate of this issue. ***
Comment 10 Tomas Pavek 2009-04-06 15:25:03 UTC
Made a check on several places to correct invalid gap size:
http://hg.netbeans.org/cdev/rev/f2f939a908bc
Comment 11 Quality Engineering 2009-04-07 07:29:00 UTC
Integrated into 'main-golden', will be available in build *200904070200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/f2f939a908bc
User: Tomas Pavek <tpavek@netbeans.org>
Log: #135387, 159536: recover from invalid pref. size of a layout interval