From: SourceForge.net <no...@so...> - 2009-02-21 09:13:11
|
Plugin Bugs item #2600457, was opened at 2009-02-14 20:53 Message generated for change (Comment added) made by shlomy You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=565475&aid=2600457&group_id=588 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Alan Ezust (ezust) Assigned to: Nobody/Anonymous (nobody) Summary: MetalColor + BufferTabs trunk: NPE during validateTree Initial Comment: I think this happened when I created a new project in ProjectViewer. I'm not sure how to reproduce this yet, so when I have more info I will post it here. But here is the stack trace. java.lang.NullPointerException at javax.swing.plaf.basic.BasicTabbedPaneUI.scrollableTabLayoutEnabled(Unknown Source) at javax.swing.plaf.basic.BasicTabbedPaneUI.access$400(Unknown Source) at javax.swing.plaf.basic.BasicTabbedPaneUI$TabContainer.doLayout(Unknown Source) at java.awt.Container.validateTree(Unknown Source) at java.awt.Container.validateTree(Unknown Source) at java.awt.Container.validateTree(Unknown Source) at java.awt.Container.validateTree(Unknown Source) at java.awt.Container.validateTree(Unknown Source) at java.awt.Container.validateTree(Unknown Source) at java.awt.Container.validateTree(Unknown Source) at java.awt.Container.validateTree(Unknown Source) at java.awt.Container.validateTree(Unknown Source) at java.awt.Container.validate(Unknown Source) at javax.swing.SwingUtilities.updateComponentTreeUI(Unknown Source) at metalcolor.MetalColorPlugin.updateAllComponentTreeUIs(MetalColorPlugin.java:84) at metalcolor.MetalColorPlugin.updateTheme(MetalColorPlugin.java:63) at metalcolor.MetalColorOptionPane._save(MetalColorOptionPane.java:74) at org.gjt.sp.jedit.AbstractOptionPane.save(AbstractOptionPane.java:121) at optional.OptionGroupPane.save(OptionGroupPane.java:374) at optional.OptionGroupPane.save(OptionGroupPane.java:384) at optional.OptionGroupPane.save(OptionGroupPane.java:367) at optional.OptionGroupPane._save(OptionGroupPane.java:355) at org.gjt.sp.jedit.AbstractOptionPane.save(AbstractOptionPane.java:121) at optional.TabbedOptionDialog.ok(TabbedOptionDialog.java:189) at optional.TabbedOptionDialog.ok(TabbedOptionDialog.java:178) at optional.TabbedOptionDialog.actionPerformed(TabbedOptionDialog.java:146) at javax.swing.AbstractButton.fireActionPerformed(Unknown Source) at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source) at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source) at javax.swing.DefaultButtonModel.setPressed(Unknown Source) at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source) at java.awt.Component.processMouseEvent(Unknown Source) at javax.swing.JComponent.processMouseEvent(Unknown Source) at java.awt.Component.processEvent(Unknown Source) at java.awt.Container.processEvent(Unknown Source) at java.awt.Component.dispatchEventImpl(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source) at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source) at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Window.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.Dialog$1.run(Unknown Source) at java.awt.Dialog$3.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.awt.Dialog.show(Unknown Source) at java.awt.Component.show(Unknown Source) at java.awt.Component.setVisible(Unknown Source) at java.awt.Window.setVisible(Unknown Source) at java.awt.Dialog.setVisible(Unknown Source) at optional.CombinedOptions._init(CombinedOptions.java:66) at optional.CombinedOptions.<init>(CombinedOptions.java:48) at optional.CombinedOptions.combinedOptions(CombinedOptions.java:40) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.gjt.sp.jedit.bsh.Reflect.invokeMethod(Reflect.java:134) at org.gjt.sp.jedit.bsh.Reflect.invokeStaticMethod(Reflect.java:98) at org.gjt.sp.jedit.bsh.Name.invokeMethod(Name.java:871) at org.gjt.sp.jedit.bsh.BSHMethodInvocation.eval(BSHMethodInvocation.java:75) at org.gjt.sp.jedit.bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:102) at org.gjt.sp.jedit.bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:47) at org.gjt.sp.jedit.bsh.BSHBlock.evalBlock(BSHBlock.java:130) at org.gjt.sp.jedit.bsh.BSHBlock.eval(BSHBlock.java:80) at org.gjt.sp.jedit.bsh.BshMethod.invokeImpl(BshMethod.java:362) at org.gjt.sp.jedit.bsh.BshMethod.invoke(BshMethod.java:258) at org.gjt.sp.jedit.bsh.BshMethod.invoke(BshMethod.java:186) at org.gjt.sp.jedit.BeanShellFacade.runCachedBlock(BeanShellFacade.java:225) at org.gjt.sp.jedit.BeanShell.runCachedBlock(BeanShell.java:441) at org.gjt.sp.jedit.BeanShellAction.invoke(BeanShellAction.java:73) at org.gjt.sp.jedit.gui.InputHandler.invokeAction(InputHandler.java:352) at org.gjt.sp.jedit.gui.InputHandler.invokeAction(InputHandler.java:317) at org.gjt.sp.jedit.gui.DefaultInputHandler.handleKey(DefaultInputHandler.java:197) at org.gjt.sp.jedit.input.AbstractInputHandler.processKeyEventKeyStrokeHandling(AbstractInputHandler.java:405) at org.gjt.sp.jedit.gui.InputHandler.processKeyEvent(InputHandler.java:151) at org.gjt.sp.jedit.textarea.TextArea.processKeyEvent(TextArea.java:4534) at java.awt.Component.processEvent(Unknown Source) at java.awt.Container.processEvent(Unknown Source) at java.awt.Component.dispatchEventImpl(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.KeyboardFocusManager.redispatchEvent(Unknown Source) at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(Unknown Source) at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(Unknown Source) at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(Unknown Source) at java.awt.DefaultKeyboardFocusManager.dispatchEvent(Unknown Source) at java.awt.Component.dispatchEventImpl(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Window.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source) ---------------------------------------------------------------------- >Comment By: Shlomy Reinstein (shlomy) Date: 2009-02-21 11:13 Message: A small correction: It is not specifically related to BufferTabs - it is related to any component which makes use of JTabbedPane (e.g. the Optional plugin). This exception seems to be caused by the bug that jturcotte specified - a Java bug in JTabbedPane. Even if BufferTabs is not installed, trying to change the L&F using the Optional plugin will result in the same exception. ---------------------------------------------------------------------- Comment By: Alan Ezust (ezust) Date: 2009-02-20 19:28 Message: oops. not the same issue exactly. but I'm pretty sure it is related to buffertabs trunk and java 1.6. I am re-opening. it is not a duplicate. ---------------------------------------------------------------------- Comment By: Alan Ezust (ezust) Date: 2009-02-20 19:14 Message: duplicate of 2616873. It seems that any plugin that does L&F changes gets this exception if we use java 1.6 and buffertabs trunk. I think it is a bug in buffertabs trunk. ---------------------------------------------------------------------- Comment By: Jocelyn Turcotte (jturcotte) Date: 2009-02-17 03:33 Message: Tried with jEdit latest from trunk without and with Optional 1.0+trunk I can't seem to reproduce it. (on ubuntu with Sun JRE 1.6.0_10) After updating defaults it sends a updateComponentTreeUI to all frames to get a preview of the color settings. This can be a problem with a specific active window within your jEdit, or may be linked to your JVM. I found this similar bug: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6286501 So this may be linked to some JTabbedPane which gets an updateUI() at the wrong moment. Could you try disabling every other plugin and retry? I could try on your platform and/or Java version too, which are you using? ---------------------------------------------------------------------- Comment By: Shlomy Reinstein (shlomy) Date: 2009-02-15 21:23 Message: It seems like a bug in MetalColor plugin, the same happens also with the original docking framework. ---------------------------------------------------------------------- Comment By: Alan Ezust (ezust) Date: 2009-02-15 20:35 Message: Yes, indeed you are right. It happened when I set the colors from the option pane. So it probably has nothing to do with projectviewer. I was using the MyDoggy plugin at the time, however. ---------------------------------------------------------------------- Comment By: Shlomy Reinstein (shlomy) Date: 2009-02-15 15:07 Message: >From the stack trace, it seems like this came from the Optional plugin, when you clicked 'Ok' in the options dialog, and the MetalColorPlugin (??) tried to save the changes. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=565475&aid=2600457&group_id=588 |