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 93325 - ACTIONS: External Icon selected in action editor demage form
Summary: ACTIONS: External Icon selected in action editor demage form
Status: VERIFIED FIXED
Alias: None
Product: guibuilder
Classification: Unclassified
Component: App Framework (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Joshua Marinacci
URL:
Keywords:
Depends on: 106771
Blocks:
  Show dependency tree
 
Reported: 2007-01-26 14:48 UTC by Jana Maleckova
Modified: 2007-09-13 09:23 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
93325 (3.08 KB, text/plain)
2007-01-26 14:49 UTC, Jana Maleckova
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jana Maleckova 2007-01-26 14:48:23 UTC
NetBeans IDE Dev (Build 070126)
1.6.0-rc; Java HotSpot(TM) Client VM 1.6.0-rc-b104
Windows XP version 5.1 running on x86
en_GB (nb); Cp1252

Description:
============
1. have JDA - basic
2. insert jButton and invoke action editor
3. click on icon and select some external icon and confirm selection and do save
4. do reload on form - warning appears that form is probably corrupted
Set allow editing and then try to invoke action editor. An exception occurs and
IDE is becoming to be unstable. Restart doesn't help, only deleting of userdir
is useful.

StackTrace:
===========

application.ResourceMap$LookupException: string conversion failed
        at application.ResourceMap.getObject(ResourceMap.java:664)
        at
org.netbeans.modules.swingapp.ProxyAction.getResource(ProxyAction.java:131)
        at
org.netbeans.modules.swingapp.ProxyAction.loadFromResourceMap(ProxyAction.java:114)
Comment 1 Jana Maleckova 2007-01-26 14:49:11 UTC
Created attachment 37728 [details]
93325
Comment 2 Tomas Pavek 2007-01-26 15:45:57 UTC
External icon can't be stored as resource (not supported by App Framework). We 
need to fix the IconEditor to handle this case gracefully.

Why do you need to delete user dir? Isn't it enough to delete the component 
with the broken action?
Comment 3 Jana Maleckova 2007-01-26 16:02:59 UTC
Is' not sufficient to delete the component which caused it. If you do it,
problem is not solved. When you insert another one, you are not able to set
action because action editor is broken for it as well.
Comment 4 Joshua Marinacci 2007-01-30 17:01:06 UTC
By 'external icon' do you mean an Icon that is not inside a directory of the project?
Comment 5 Jana Maleckova 2007-01-30 17:17:00 UTC
yes, now user can add external icon and it causes described consequences.
I increase the priority to P2 as it was when bug was created because when these
steps are done,I am not able to bring back form in state in which it was before.
Comment 6 Joshua Marinacci 2007-06-19 17:55:11 UTC
I cannot reproduce this bug anymore. The form no longer crashes.
Comment 7 Jana Maleckova 2007-06-22 14:40:00 UTC
when external icon is added in build 200706220441 ... this issue occurs
http://www.netbeans.org/issues/show_bug.cgi?id=106771. I will verify it after fixing this issue
Comment 8 Jana Maleckova 2007-09-13 09:23:02 UTC
external icon is no longer possible to set in action editor

verified on

Product Version: NetBeans IDE Dev (Build 070913) Java: 1.6.0_02; Java HotSpot(TM) Client VM 1.6.0_02-b05 System: Windows
XP version 5.1 running on x86; Cp1252; en_GB (nb)