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 117504 - javax.xml.transform.TransformerException: org.xml.sax.SAXParseException: Attribute name "b" associated with an element type "a" must be followed by the ' = ' character.
Summary: javax.xml.transform.TransformerException: org.xml.sax.SAXParseException: Attr...
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: http://statistics.netbeans.org/except...
Keywords:
: 117387 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-10-02 18:03 UTC by Jindrich Sedek
Modified: 2008-04-28 13:37 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 5991


Attachments
stacktrace (3.93 KB, text/plain)
2007-10-02 18:03 UTC, Jindrich Sedek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jindrich Sedek 2007-10-02 18:03:38 UTC
Build: NetBeans IDE Dev (Build 200710020000)
VM: Java HotSpot(TM) Client VM, 1.6.0_03-ea-b02
OS: SunOS, 5.10, x86

User Comments: 
[web/css visual editor]

Open CSS file
type:
a | b{

}
press enter at possition of "|"
this exception rises
Comment 1 Jindrich Sedek 2007-10-02 18:03:43 UTC
Created attachment 50020 [details]
stacktrace
Comment 2 Martin Schovanek 2007-10-03 09:18:28 UTC
*** Issue 117387 has been marked as a duplicate of this issue. ***
Comment 3 Marek Fukala 2007-10-03 18:49:42 UTC
Fixed by preventing the SAX exception popping up into the window. I added a pre-preview check which validates the
generated sample before passing into the renderer component. This fix doesn't fix the cause of the problem, but fixes
the very bad user experience when a special css rule is selected and the sample is incorrectly generated. I have filed a
P3 issue #117690 for the bad sample text.

The current behaviour is following: If the sample is not valid, the preview window shows "Preview Error" message, the
exception + description is loged with INFO level + the errorneous sample code is logged with the same level.

Checking in Bundle.properties;
/cvs/web/css/src/org/netbeans/modules/css/visual/ui/preview/Bundle.properties,v  <--  Bundle.properties
new revision: 1.4; previous revision: 1.3
done
Checking in CssPreviewTopComponent.java;
/cvs/web/css/src/org/netbeans/modules/css/visual/ui/preview/CssPreviewTopComponent.java,v  <--  CssPreviewTopComponent.java
new revision: 1.9; previous revision: 1.8
done
Comment 4 Jindrich Sedek 2007-10-19 15:32:41 UTC
verified
NetBeans IDE Dev (Build 200710181200)