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 222059 - IllegalArgumentException: Style attribute is missing! Rule: {"rule":{"sourceLine":0,"style":{"styleId":{"ordinal":49,"styleSheetId":"1"},"height":"","width":"","shorthandEntries":[],"cssProperties":[{
Summary: IllegalArgumentException: Style attribute is missing! Rule: {"rule":{"sourceL...
Status: RESOLVED FIXED
Alias: None
Product: web
Classification: Unclassified
Component: Inspection (show other bugs)
Version: 7.3
Hardware: All All
: P2 normal (vote)
Assignee: Jan Stola
URL:
Keywords:
: 224949 226001 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-11-13 16:00 UTC by Kenneth Ganfield
Modified: 2013-02-12 14:01 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 194344


Attachments
stacktrace (2.75 KB, text/plain)
2012-11-13 16:00 UTC, Kenneth Ganfield
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kenneth Ganfield 2012-11-13 16:00:18 UTC
Build: NetBeans IDE Dev (Build 201211120001)
VM: Java HotSpot(TM) 64-Bit Server VM, 23.4-b01, Java(TM) SE Runtime Environment, 1.7.0_10-ea-b06
OS: Mac OS X

User Comments:
GUEST: editing HTML page

esfand: I started the EaselDemo sample on Windows XP and selected the "NetBean Mode" from the context menu of the chrome.

kganfield: using inspect in chrome browser to select element

GUEST: I opened a html file with javascript embedded and tried to debug the javascript. I set an breakpoint and clicked on run roject buton. After the page were opened in the chrome browser netbeans ide throw an error.




Stacktrace: 
java.lang.IllegalArgumentException: Style attribute is missing! Rule: {"rule":{"sourceLine":0,"style":{"styleId":{"ordinal":49,"styleSheetId":"1"},"height":"","width":"","shorthandEntries":[],"cssProperties":[{"name":"display","value":"list-item"},{"name":"text-align","value":"-webkit-match-parent"}]},"selectorList":{"text":"li","selectors":["li"]},"origin":"user-agent"},"matchingSelectors":[0]}
   at org.netbeans.modules.web.webkit.debugging.api.css.Rule.<init>(Rule.java:102)
   at org.netbeans.modules.web.webkit.debugging.api.css.MatchedStyles.<init>(MatchedStyles.java:73)
   at org.netbeans.modules.web.webkit.debugging.api.css.CSS.getMatchedStyles(CSS.java:228)
   at org.netbeans.modules.web.inspect.webkit.ui.CSSStylesSelectionPanel$5.run(CSSStylesSelectionPanel.java:338)
   at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1454)
   at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2036)
Comment 1 Kenneth Ganfield 2012-11-13 16:00:20 UTC
Created attachment 127734 [details]
stacktrace
Comment 2 Kenneth Ganfield 2012-11-20 18:18:28 UTC
upgrading to p2 because it breaks the easel demo

Product Version: NetBeans IDE Dev (Build 201211200002)
Java: 1.7.0_10-ea; Java HotSpot(TM) 64-Bit Server VM 23.4-b01
Runtime: Java(TM) SE Runtime Environment 1.7.0_10-ea-b06
System: Mac OS X version 10.8.2 running on x86_64; US-ASCII; en_US (nb)
User directory: /Applications/NetBeans/userdirs/73-20121114-ee
Cache directory: /Users/nb/Library/Caches/NetBeans/dev
Comment 3 Jan Stola 2012-11-22 06:38:15 UTC
Recently, there has been a slight change (in WebKit Remote Debugging protocol) in the structure of the data sent when a matched CSS rules are requested. I assume that you are using Chromium because the change is not in Chrome builds yet.

I will modify the corresponding code to handle both old and new formats of the data.
Comment 4 Jan Stola 2012-11-22 10:28:44 UTC
Both new and old format should be handled correctly by now.

Modified file: http://hg.netbeans.org/web-main/rev/f00ccd76605a
Comment 5 Jan Stola 2013-01-30 14:03:43 UTC
*** Bug 224949 has been marked as a duplicate of this bug. ***
Comment 6 Jan Stola 2013-02-12 14:01:34 UTC
*** Bug 226001 has been marked as a duplicate of this bug. ***