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 191548 - java.lang.IllegalArgumentException: Unsupported argument value:0
Summary: java.lang.IllegalArgumentException: Unsupported argument value:0
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 7.0
Hardware: PC Other
: P3 normal (vote)
Assignee: Stanislav Aubrecht
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-02 07:15 UTC by simpatico
Modified: 2010-11-05 03:48 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description simpatico 2010-11-02 07:15:52 UTC
java.lang.IllegalArgumentException: Unsupported argument value:0
	at org.openide.awt.ToolbarPool.setPreferredIconSize(ToolbarPool.java:190)
	at org.netbeans.core.windows.PersistenceHandler.load(PersistenceHandler.java:142)
	at org.netbeans.core.windows.WindowSystemImpl.load(WindowSystemImpl.java:73)
[catch] at org.netbeans.core.GuiRunLevel$2.run(GuiRunLevel.java:181)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
	at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:137)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

Steps to reproduce:
1. new maven nb platform project.
2. add the following windowmanager.wswmgr to resources folder:

<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE windowmanager PUBLIC
          "-//NetBeans//DTD Window Manager Properties 2.2//EN"
          "http://www.netbeans.org/dtds/windowmanager-properties2_2.dtd">

<windowmanager version="2.2">
    <main-window> 
        <joined-properties centered-horizontally="true" centered-vertically="true"
                           width="850" height="615" />
    </main-window>
    <editor-area state="joined">
        <constraints>
            <path orientation="horizontal" number="60" />
            <path orientation="vertical" number="40"/>
            <path orientation="horizontal" number="40"/>
        </constraints>
    </editor-area>
</windowmanager>

3. add to layer.xml, under <folder name="Windows2">:
  <file name="WindowManager.wswmgr" url="windowmanager.wswmgr">
            <attr name="weight" intvalue="100"/>
        </file>

4. Run.
NB: the windowmanager.wswmgr is valid.
Comment 1 Stanislav Aubrecht 2010-11-02 10:11:46 UTC
core-main 17a54eadb8cc
Comment 2 Quality Engineering 2010-11-05 03:48:26 UTC
Integrated into 'main-golden', will be available in build *201011050000* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/17a54eadb8cc
User: S. Aubrecht <saubrecht@netbeans.org>
Log: #191548 - default value for toolbar icon size