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 206036 - NoGo for plugin ez-on-da-ice
Summary: NoGo for plugin ez-on-da-ice
Status: RESOLVED INCOMPLETE
Alias: None
Product: updatecenters
Classification: Unclassified
Component: Pluginportal (show other bugs)
Version: 7.1
Hardware: All All
: P3 normal (vote)
Assignee: venkatramakkineni
URL:
Keywords:
: 206037 206150 206241 206242 (view as bug list)
Depends on: 206517
Blocks: 206516
  Show dependency tree
 
Reported: 2011-12-06 21:42 UTC by scottwd9
Modified: 2013-01-20 21:06 UTC (History)
4 users (show)

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 scottwd9 2011-12-06 21:42:41 UTC
Exceptions after deactivation, reactivation. Bug report submitted.

http://plugins.netbeans.org/plugin/40985
Comment 1 Jiri Kovalsky 2011-12-07 08:12:55 UTC
*** Bug 206037 has been marked as a duplicate of this bug. ***
Comment 2 Jiri Kovalsky 2011-12-07 08:15:20 UTC
William & Carlos, where are the exceptions you refer to?
Comment 3 Jiri Kovalsky 2011-12-07 10:24:34 UTC
According to an off-line communication with Carlos, the exceptions here do not mean Java language constructs with stacktraces :) but a not expected behaviour.

Venkat, can you please resolve these problems?
Comment 4 venkatramakkineni 2011-12-07 11:13:50 UTC
Guys

         Thanks a million for the verfication. I plan on fixing these the first chance I get. Looking at the way my week is laid out, I might not be able to get to these until later this week. Will keep you posted though.

Thanks
venkat
Comment 5 scottwd9 2011-12-07 15:51:52 UTC
I was able to reproduce the issue I got again. Install plugin, restart IDE. Deactivate plugin, restart IDE. Re-activate plugin without restarting IDE, and the following exception keeps being thrown. Deactivating the plugin without restarting the IDE stops the exceptions from being thrown.


java.lang.ClassCastException: com.nilo.plaf.nimrod.NimRODLookAndFeel cannot be cast to javax.swing.plaf.synth.SynthLookAndFeel
	at org.netbeans.swing.tabcontrol.plaf.GtkViewTabDisplayerUI.paintTabBackground(GtkViewTabDisplayerUI.java:219)
	at org.netbeans.swing.tabcontrol.plaf.AbstractViewTabDisplayerUI.paintDisplayerBackground(AbstractViewTabDisplayerUI.java:446)
	at org.netbeans.swing.tabcontrol.plaf.AbstractViewTabDisplayerUI.paint(AbstractViewTabDisplayerUI.java:309)
	at org.netbeans.swing.tabcontrol.plaf.GtkViewTabDisplayerUI.paint(GtkViewTabDisplayerUI.java:149)
	at javax.swing.plaf.ComponentUI.update(ComponentUI.java:161)
	at javax.swing.JComponent.paintComponent(JComponent.java:778)
	at javax.swing.JComponent.paint(JComponent.java:1054)
	at javax.swing.JComponent.paintChildren(JComponent.java:887)
	at javax.swing.JComponent.paint(JComponent.java:1063)
	at org.netbeans.swing.tabcontrol.TabbedContainer.paint(TabbedContainer.java:973)
	at javax.swing.JComponent.paintChildren(JComponent.java:887)
	at javax.swing.JComponent.paint(JComponent.java:1063)
	at javax.swing.JComponent.paintChildren(JComponent.java:887)
	at javax.swing.JComponent.paint(JComponent.java:1063)
	at org.netbeans.core.windows.view.ui.MultiSplitPane.paint(MultiSplitPane.java:341)
	at javax.swing.JComponent.paintChildren(JComponent.java:887)
	at javax.swing.JComponent.paint(JComponent.java:1063)
	at org.netbeans.core.windows.view.ui.MultiSplitPane.paint(MultiSplitPane.java:341)
	at javax.swing.JComponent.paintChildren(JComponent.java:887)
	at javax.swing.JComponent.paint(JComponent.java:1063)
	at javax.swing.JComponent.paintChildren(JComponent.java:887)
	at javax.swing.JComponent.paint(JComponent.java:1063)
	at javax.swing.JLayeredPane.paint(JLayeredPane.java:585)
	at javax.swing.JComponent.paintChildren(JComponent.java:887)
	at javax.swing.JComponent.paint(JComponent.java:1063)
	at javax.swing.JComponent.paintChildren(JComponent.java:887)
	at javax.swing.JComponent.paint(JComponent.java:1063)
	at org.netbeans.core.windows.view.ui.MainWindow$1.paint(MainWindow.java:151)
	at javax.swing.JComponent.paintChildren(JComponent.java:887)
	at javax.swing.JComponent.paint(JComponent.java:1063)
	at javax.swing.JLayeredPane.paint(JLayeredPane.java:585)
	at javax.swing.JComponent.paintChildren(JComponent.java:887)
	at javax.swing.JComponent.paint(JComponent.java:1063)
	at javax.swing.JComponent.paintToOffscreen(JComponent.java:5221)
	at javax.swing.RepaintManager$PaintManager.paintDoubleBuffered(RepaintManager.java:1482)
	at javax.swing.RepaintManager$PaintManager.paint(RepaintManager.java:1413)
	at javax.swing.BufferStrategyPaintManager.paint(BufferStrategyPaintManager.java:311)
	at javax.swing.RepaintManager.paint(RepaintManager.java:1206)
	at javax.swing.JComponent._paintImmediately(JComponent.java:5169)
	at javax.swing.JComponent.paintImmediately(JComponent.java:4980)
	at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:770)
	at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:728)
	at javax.swing.RepaintManager.prePaintDirtyRegions(RepaintManager.java:677)
	at javax.swing.RepaintManager.access$700(RepaintManager.java:59)
	at javax.swing.RepaintManager$ProcessingRunnable.run(RepaintManager.java:1621)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251)
	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:705)
	at java.awt.EventQueue.access$000(EventQueue.java:101)
	at java.awt.EventQueue$3.run(EventQueue.java:666)
	at java.awt.EventQueue$3.run(EventQueue.java:664)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:675)
	at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:162)
[catch] at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:211)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:128)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:117)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:113)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:105)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
Comment 6 Jiri Kovalsky 2011-12-09 08:22:41 UTC
*** Bug 206150 has been marked as a duplicate of this bug. ***
Comment 7 kudzu 2011-12-12 02:19:39 UTC
*** Bug 206241 has been marked as a duplicate of this bug. ***
Comment 8 Jiri Kovalsky 2011-12-12 07:57:45 UTC
*** Bug 206242 has been marked as a duplicate of this bug. ***
Comment 9 venkatramakkineni 2011-12-19 05:34:31 UTC
This happens because there seems to be no straight forward way to 

When the plugin is deactivated netbeans forces a restart, so it is able to set the LAF to the default Synth on restart. But on reactivation, since there is no restart enforced, Installer is directly being called which is inturn setting the LAF to NimROD at runtime and hence the ClassCastException. 

Based on my research, there is no straight forward way to enforce netbeans restart on plugin activation. For plugins that deal with LAFs, there is no other way than to restart the system. 

So I have requested a feature enhancement that would give plugin developers the liberty to request system restart if needed. 

The following bug has a dependency on that issue. 

Thanks
Venkat