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 267692

Summary: ClassCastException: sun.awt.image.ToolkitImage cannot be cast to javax.swing.Icon
Product: projects Reporter: markiewb
Component: MavenAssignee: Tomas Stupka <tstupka>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P3    
Version: 8.2   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 225904
Attachments: stacktrace

Description markiewb 2016-08-24 22:51:51 UTC
Build: NetBeans IDE Dev (Build 20160711-782b9a84b759)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.71-b15, Java(TM) SE Runtime Environment, 1.8.0_71-b15
OS: Windows 7

User Comments:
markiewb: Switch to effective pom view




Stacktrace: 
java.lang.ClassCastException: sun.awt.image.ToolkitImage cannot be cast to javax.swing.Icon
   at javax.swing.AbstractButton.setIconFromAction(AbstractButton.java:1279)
   at javax.swing.AbstractButton.configurePropertiesFromAction(AbstractButton.java:1165)
   at javax.swing.AbstractButton.setAction(AbstractButton.java:1109)
   at javax.swing.JToolBar.add(JToolBar.java:517)
   at org.netbeans.modules.maven.grammar.EffectivePomMD$EffPOMView.getToolbarRepresentation(EffectivePomMD.java:227)
   at org.netbeans.core.multiview.MultiViewPeer.showCurrentElement(MultiViewPeer.java:514)
Comment 1 markiewb 2016-08-24 22:51:54 UTC
Created attachment 161759 [details]
stacktrace
Comment 2 Tomas Stupka 2016-08-31 09:30:13 UTC
fixed in jet-main #43f0d303a3f6
Comment 3 Quality Engineering 2016-09-01 01:53:08 UTC
Integrated into 'main-silver', will be available in build *201609010002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/43f0d303a3f6
User: Tomas Stupka <tstupka@netbeans.org>
Log: Issue #267692 - ClassCastException: sun.awt.image.ToolkitImage cannot be cast to javax.swing.Icon