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.
Build: NetBeans IDE Dev (Build EaselCSS-497-on-20120814) VM: Java HotSpot(TM) Client VM, 21.1-b02, Java(TM) SE Runtime Environment, 1.7.0_01-b08 OS: Windows XP User Comments: peppertech: The Matached Rules window was minimized when I selected an HTML element in the Chrome browser. After expanding it to see the CSS rules, this error was thrown Stacktrace: java.lang.NullPointerException at org.netbeans.modules.web.inspect.webkit.ui.CSSStylesPanel$1.run(CSSStylesPanel.java:252) 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)
Created attachment 123119 [details] stacktrace
The exception is thrown on the following line: final RuleEditorController controller = ruleEditor.getRuleEditorController(); where RuleEditorTC ruleEditor = (RuleEditorTC)WindowManager.getDefault().findTopComponent(RuleEditorTC.ID); In other words, the TopComponent with ID == RuleEditorTC.ID was not found. The message.log shows some errors during deserialization of this TopComponent. Moreover, the message.log shows an attempt to deserialize ResourcesTC TopComponent that is no longer part of the build. Hence, it seems that these problems are caused by an attempt to use an older user-dir with a newer daily development build. I am closing this issue as 'will not fix' because we do not ensure backward compatibility between individual development builds. Feel free to reopen this issue if you are able to reproduce it with a clean user-dir.
I'm using clean user/cache dirs and now it's popping out all the time To reproduce, simply run HTML page in any browser with NB integration (tested Chrome, Chrome mobile and Embedded browser) and this pops out. Also I cannot open Window|Web|CSS Styles due to another exception Because of this, inspection is unusable. Thank you. [1] http://statistics.netbeans.org/exceptions/exception.do?id=674014
...maybe even P1
The exception shows that CSS Styles view cannot be found, but the root of this problem is different that the previous reports. The message.log shows the following error: Problem when deserializing TopComponent for tcID:'CssStylesTC'. Reason: null Content: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE settings PUBLIC "-//NetBeans//DTD Session settings 1.0//EN" "http://www.netbeans.org/dtds/sessionsettings-1_0.dtd"> <settings version="1.0"> <instance class="org.netbeans.modules.css.visual.api.CssStylesTC"/> </settings> Class: class org.netbeans.modules.css.visual.api.CssStylesTC Source: MultiFileObject@177b5b5[Windows2Local/Components/CssStylesTC.settings] Content: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE settings PUBLIC "-//NetBeans//DTD Session settings 1.0//EN" "http://www.netbeans.org/dtds/sessionsettings-1_0.dtd"> <settings version="1.0"> <instance class="org.netbeans.modules.css.visual.api.CssStylesTC"/> </settings> Class: class org.netbeans.modules.css.visual.api.CssStylesTC Source: MultiFileObject@177b5b5[Windows2Local/Components/CssStylesTC.settings] Caused: java.lang.NullPointerException at org.netbeans.modules.css.visual.RuleEditorNode.fireContextChanged(RuleEditorNode.java:167) at org.netbeans.modules.css.visual.RuleEditorNode.setFilterText(RuleEditorNode.java:160) at org.netbeans.modules.css.visual.RuleEditorPanel.setFilterVisible(RuleEditorPanel.java:742) at org.netbeans.modules.css.visual.RuleEditorPanel.<init>(RuleEditorPanel.java:316) at org.netbeans.modules.css.visual.RuleEditorPanel.<init>(RuleEditorPanel.java:195) at org.netbeans.modules.css.visual.api.RuleEditorController.createInstance(RuleEditorController.java:124) at org.netbeans.modules.css.visual.CssStylesPanel.<init>(CssStylesPanel.java:114) at org.netbeans.modules.css.visual.api.CssStylesTC.<init>(CssStylesTC.java:104) Caused: java.lang.reflect.InvocationTargetException at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:525) at org.netbeans.modules.settings.convertors.XMLSettingsSupport.newInstance(XMLSettingsSupport.java:100) at org.netbeans.modules.settings.convertors.XMLSettingsSupport$SettingsRecognizer.instanceCreate(XMLSettingsSupport.java:628) Caused: java.io.IOException at org.netbeans.modules.settings.convertors.XMLSettingsSupport$SettingsRecognizer.instanceCreate(XMLSettingsSupport.java:630) at org.netbeans.modules.settings.convertors.SerialDataConvertor$SettingsInstance.instanceCreate(SerialDataConvertor.java:426) [catch] at org.netbeans.core.windows.persistence.PersistenceManager.getTopComponentPersistentForID(PersistenceManager.java:571) at org.netbeans.core.windows.persistence.PersistenceManager.getTopComponentForID(PersistenceManager.java:681) at org.netbeans.core.windows.PersistenceHandler.getTopComponentForID(PersistenceHandler.java:476) at org.netbeans.core.windows.WindowManagerImpl.getTopComponentForID(WindowManagerImpl.java:957) at org.netbeans.core.windows.WindowManagerImpl.findTopComponent(WindowManagerImpl.java:292) at org.netbeans.modules.css.visual.CssStylesTCController.getCssStylesTC(CssStylesTCController.java:166) at org.netbeans.modules.css.visual.CssStylesTCController.access$100(CssStylesTCController.java:73) at org.netbeans.modules.css.visual.CssStylesTCController$1$1.run(CssStylesTCController.java:132) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:727) at java.awt.EventQueue.access$200(EventQueue.java:103) at java.awt.EventQueue$3.run(EventQueue.java:688) at java.awt.EventQueue$3.run(EventQueue.java:686) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76) at java.awt.EventQueue.dispatchEvent(EventQueue.java:697) at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:159) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138) at java.awt.EventDispatchThread.run(EventDispatchThread.java:91) This seems to be caused by the recent commit of mfukala: http://hg.netbeans.org/web-main/rev/5985bd6febc0
Created attachment 135083 [details] stacktrace Running a HTML5 app.
For what it's worth, I tried to build IDE without commit [1] but I got another exception (I'm sorry, I didn't save log but it popped out after either selecting item in Browser DOM or trying to modify property in CSS Styles). In my case it helped to also build without commit [2] [1] http://hg.netbeans.org/web-main/rev/5985bd6febc0 [2] http://hg.netbeans.org/web-main/rev/96e6cfbf6fa7
> ...maybe even P1 I agree.
fixed in web-main#fb83f56fc76f
Integrated into 'main-golden', will be available in build *201305302301* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/fb83f56fc76f User: Marek Fukala <mfukala@netbeans.org> Log: #216890 -a NPE