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 113469 - Exception from the CSS preview
Summary: Exception from the CSS preview
Status: VERIFIED FIXED
Alias: None
Product: web
Classification: Unclassified
Component: CSS Visual Tools (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Marek Fukala
URL:
Keywords:
: 113793 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-08-22 10:43 UTC by Jiri Vagner
Modified: 2008-04-28 13:37 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
exception.txt (3.71 KB, text/plain)
2007-08-22 10:48 UTC, Jiri Vagner
Details
main.css (15.96 KB, text/plain)
2007-08-22 10:49 UTC, Jiri Vagner
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Vagner 2007-08-22 10:43:10 UTC
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)
Comment 1 Jiri Vagner 2007-08-22 10:48:41 UTC
Created attachment 47042 [details]
exception.txt
Comment 2 Jiri Vagner 2007-08-22 10:49:16 UTC
Created attachment 47043 [details]
main.css
Comment 3 Marek Fukala 2007-08-23 13:30:17 UTC
reproducible, looks like a problem in the renderer.
Comment 4 Marek Fukala 2007-08-23 13:34:13 UTC
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;

}
Comment 5 Marek Fukala 2007-08-23 15:37:15 UTC
The problem appears just in very rare usecase so lowering priority to P3, though needs to be fixed to 6.0 definitively.
Comment 6 Marek Fukala 2007-08-23 15:42:26 UTC
downgrading to P3
Comment 7 Marek Fukala 2007-08-27 11:14:49 UTC
another user run into the problem and reported with higher priority, increasing to P2.
Comment 8 Marek Fukala 2007-08-27 11:15:21 UTC
*** Issue 113793 has been marked as a duplicate of this issue. ***
Comment 9 Jindrich Sedek 2007-09-21 15:49:53 UTC
next case where this exception is thrown - syntax is incorrect

.55ft{
    
}  
Comment 10 Jindrich Sedek 2007-09-25 09:31:25 UTC
Another crazy case for this exception is simple empty td tag:
--------------
td{
    
}
--------------
Comment 11 Marek Fukala 2007-09-26 15:16:04 UTC
Flying saucer v7 final fixes this problem, I'll update the library.
Comment 12 Marek Fukala 2007-09-27 12:18:17 UTC
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
Comment 13 Jiri Vagner 2007-10-05 13:25:43 UTC
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)