Hi,
I'm using CSSBox 4.1 and frequently getting the following exception:
Error: null
java.lang.NullPointerException
at cz.vutbr.web.csskit.antlr.CSSInputStream.stringStream(CSSInputStream.java:66)
at cz.vutbr.web.csskit.antlr.CSSParserFactory$SourceType$2.getInput(CSSParserFactory.java:107)
at cz.vutbr.web.csskit.antlr.CSSParserFactory.createParser(CSSParserFactory.java:339)
at cz.vutbr.web.csskit.antlr.CSSParserFactory.append(CSSParserFactory.java:290)
at cz.vutbr.web.csskit.antlr.CSSParserFactory.append(CSSParserFactory.java:323)
at cz.vutbr.web.css.CSSFactory$CSSAssignTraversal.processNode(CSSFactory.java:485)
at cz.vutbr.web.css.CSSFactory$CSSAssignTraversal.processNode(CSSFactory.java:1)
at cz.vutbr.web.domassign.Traversal.listTraversal(Traversal.java:43)
at cz.vutbr.web.css.CSSFactory.getUsedStyles(CSSFactory.java:381)
at org.fit.cssbox.css.DOMAnalyzer.getStyleSheets(DOMAnalyzer.java:304)
at org.fit.cssbox.css.DOMAnalyzer.getStyleSheets(DOMAnalyzer.java:316)
at org.fit.cssbox.demo.TextBoxes.main(TextBoxes.java:84)
I observed that URLs that ended with .aspx tend to give me the error above. For example, when I try the TextBoxes.java example with the URL "http://www.drexelmed.edu/home/AboutTheCollege.aspx", it gives me the error.
I wonder if this is a bug of the library or the library does not support the .aspx case yet.
Thanks in advance.
Terry
Last edit: Terry 2013-05-13
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I'm using CSSBox 4.1 and frequently getting the following exception:
Error: null
java.lang.NullPointerException
at cz.vutbr.web.csskit.antlr.CSSInputStream.stringStream(CSSInputStream.java:66)
at cz.vutbr.web.csskit.antlr.CSSParserFactory$SourceType$2.getInput(CSSParserFactory.java:107)
at cz.vutbr.web.csskit.antlr.CSSParserFactory.createParser(CSSParserFactory.java:339)
at cz.vutbr.web.csskit.antlr.CSSParserFactory.append(CSSParserFactory.java:290)
at cz.vutbr.web.csskit.antlr.CSSParserFactory.append(CSSParserFactory.java:323)
at cz.vutbr.web.css.CSSFactory$CSSAssignTraversal.processNode(CSSFactory.java:485)
at cz.vutbr.web.css.CSSFactory$CSSAssignTraversal.processNode(CSSFactory.java:1)
at cz.vutbr.web.domassign.Traversal.listTraversal(Traversal.java:43)
at cz.vutbr.web.css.CSSFactory.getUsedStyles(CSSFactory.java:381)
at org.fit.cssbox.css.DOMAnalyzer.getStyleSheets(DOMAnalyzer.java:304)
at org.fit.cssbox.css.DOMAnalyzer.getStyleSheets(DOMAnalyzer.java:316)
at org.fit.cssbox.demo.TextBoxes.main(TextBoxes.java:84)
I observed that URLs that ended with .aspx tend to give me the error above. For example, when I try the TextBoxes.java example with the URL "http://www.drexelmed.edu/home/AboutTheCollege.aspx", it gives me the error.
I wonder if this is a bug of the library or the library does not support the .aspx case yet.
Thanks in advance.
Terry
Last edit: Terry 2013-05-13
This was caused by a style parsing bug, it should not be related to aspx pages. Fixed in trunk.