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.
Exceptions after deactivation, reactivation. Bug report submitted. http://plugins.netbeans.org/plugin/40985
*** Bug 206037 has been marked as a duplicate of this bug. ***
William & Carlos, where are the exceptions you refer to?
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?
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
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)
*** Bug 206150 has been marked as a duplicate of this bug. ***
*** Bug 206241 has been marked as a duplicate of this bug. ***
*** Bug 206242 has been marked as a duplicate of this bug. ***
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