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.
There is a ugly exception after using search inside opened css file. Steps to reproduce: - open attached CSS file in IDE - click into css file text to focus editor area - press CTRL+F and type "display" AND PRESS ENTER IDE throws a lot of exceptions and there is wrong ugly painting of IDE window, user is unable to close style builder or preview, only CTRL+W helps Product Version: NetBeans IDE Dev (Build 070822) Java: 1.5.0_12; Java HotSpot(TM) Client VM 1.5.0_12-b04 System: Linux version 2.6.20-16-generic running on i386; UTF-8; en_US (nb) org.xhtmlrenderer.util.XRRuntimeException: Ident value (auto) is never a length; wrong class used for derived value. at org.xhtmlrenderer.css.constants.IdentValue.getFloatProportionalTo(IdentValue.java:300) at org.xhtmlrenderer.css.style.CalculatedStyle.getFloatPropertyProportionalWidth(CalculatedStyle.java:301) at org.xhtmlrenderer.css.style.derived.RectPropertySet.newInstance(RectPropertySet.java:46)
Created attachment 47042 [details] exception.txt
Created attachment 47043 [details] main.css
reproducible, looks like a problem in the renderer.
This has nothing to do with search, it just selects a css rule which causes the problem: #floating-tabs { display:block; margin-left:auto; margin-right:auto; width:730px; min-width:725px; }
The problem appears just in very rare usecase so lowering priority to P3, though needs to be fixed to 6.0 definitively.
downgrading to P3
another user run into the problem and reported with higher priority, increasing to P2.
*** Issue 113793 has been marked as a duplicate of this issue. ***
next case where this exception is thrown - syntax is incorrect .55ft{ }
Another crazy case for this exception is simple empty td tag: -------------- td{ } --------------
Flying saucer v7 final fixes this problem, I'll update the library.
Fixed by upgrading the Flying Saucer library to version 7 final. Checking in external/core-renderer-R7final.jar; /cvs/web/libs/flyingsaucer/external/core-renderer-R7final.jar,v <-- core-renderer-R7final.jar initial revision: 1.1 done Removing external/core-renderer-R5pre1.jar; /cvs/web/libs/flyingsaucer/external/core-renderer-R5pre1.jar,v <-- core-renderer-R5pre1.jar new revision: delete; previous revision: 1.1 done Removing external/cssparser-0-9-4-fs.jar; /cvs/web/libs/flyingsaucer/external/cssparser-0-9-4-fs.jar,v <-- cssparser-0-9-4-fs.jar new revision: delete; previous revision: 1.1 done Removing external/flying-saucer-R5pre1-license.txt; /cvs/web/libs/flyingsaucer/external/flying-saucer-R5pre1-license.txt,v <-- flying-saucer-R5pre1-license.txt new revision: delete; previous revision: 1.3 done RCS file: /cvs/web/libs/flyingsaucer/external/flying-saucer-R7final-license.txt,v done Checking in external/flying-saucer-R7final-license.txt; /cvs/web/libs/flyingsaucer/external/flying-saucer-R7final-license.txt,v <-- flying-saucer-R7final-license.txt initial revision: 1.1 done Checking in nbproject/project.properties; /cvs/web/libs/flyingsaucer/nbproject/project.properties,v <-- project.properties new revision: 1.4; previous revision: 1.3 done Checking in nbproject/project.xml; /cvs/web/libs/flyingsaucer/nbproject/project.xml,v <-- project.xml new revision: 1.3; previous revision: 1.2 done Checking in src/org/netbeans/modules/web/flyingsaucer/flyingsaucers.xml; /cvs/web/libs/flyingsaucer/src/org/netbeans/modules/web/flyingsaucer/flyingsaucers.xml,v <-- flyingsaucers.xml new revision: 1.2; previous revision: 1.1 done
Verified Product Version: NetBeans IDE Dev (Build 20071005040152) Java: 1.5.0_12; Java HotSpot(TM) Client VM 1.5.0_12-b04 System: Linux version 2.6.20-16-generic running on i386; UTF-8; en_US (nb)