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 174257 - org.w3c.dom.DOMException: NAMESPACE_ERR: An attempt is made to create or change an object in a way which is incorrect with regard to namespaces.
Summary: org.w3c.dom.DOMException: NAMESPACE_ERR: An attempt is made to create or chan...
Status: RESOLVED FIXED
Alias: None
Product: web
Classification: Unclassified
Component: CSS Visual Tools (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker with 1 vote (vote)
Assignee: Marek Fukala
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-09 21:48 UTC by 7bf
Modified: 2010-12-14 06:14 UTC (History)
9 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 149204


Attachments
stacktrace (3.63 KB, text/plain)
2009-10-09 21:48 UTC, 7bf
Details
stacktrace (3.46 KB, text/plain)
2010-10-22 07:23 UTC, michbarsinai
Details
stacktrace (3.46 KB, text/plain)
2010-10-22 07:26 UTC, michbarsinai
Details
stacktrace (3.41 KB, text/plain)
2010-12-13 10:40 UTC, Sc0tTyXL
Details

Note You need to log in before you can comment on or make changes to this bug.
Description 7bf 2009-10-09 21:48:02 UTC
Build: NetBeans IDE Dev (Build nbms-and-javadoc-4040-on-091003)
VM: OpenJDK Client VM, 14.0-b15, OpenJDK Runtime Environment, 1.6.0_0-b16
OS: Linux, 2.6.30-4.slh.4-sidux-686, i386

User Comments:
GUEST: Just editing some css file

bartdeslagmulder: I was adding :hover and a background-color on an element in a .css file.

GUEST: Received the message when editing css



Stacktrace: 
org.w3c.dom.DOMException: NAMESPACE_ERR: An attempt is made to create or change an object in a way which is incorrect with regard to namespaces.
        at com.sun.org.apache.xerces.internal.dom.CoreDocumentImpl.checkNamespaceWF(CoreDocumentImpl.java:2506)
        at com.sun.org.apache.xerces.internal.dom.ElementNSImpl.setName(ElementNSImpl.java:115)
        at com.sun.org.apache.xerces.internal.dom.ElementNSImpl.<init>(ElementNSImpl.java:83)
        at com.sun.org.apache.xerces.internal.dom.CoreDocumentImpl.createElementNS(CoreDocumentImpl.java:2087)
        at com.sun.org.apache.xalan.internal.xsltc.trax.SAX2DOM.startElement(SAX2DOM.java:153)
        at com.sun.org.apache.xml.internal.serializer.ToXMLSAXHandler.closeStartTag(ToXMLSAXHandler.java:208)
Comment 1 7bf 2009-10-09 21:48:08 UTC
Created attachment 89229 [details]
stacktrace
Comment 2 Exceptions Reporter 2009-10-09 21:48:13 UTC
This issue already has 8 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=149204
Comment 3 Marek Fukala 2009-10-12 10:33:15 UTC
It looks like the exception is logged somewhere in the flying saucer and then rethrown. As we catch in the calling code
 it is only logged with INFO level which cannot cause any UI action to the user. In any case, it seems to be pretty rare.
Comment 4 michbarsinai 2010-10-22 07:23:26 UTC
Created attachment 102561 [details]
stacktrace

Hitting requesting auto-complete in a css document
Comment 5 michbarsinai 2010-10-22 07:26:26 UTC
Created attachment 102562 [details]
stacktrace

writing an outline value for a :focus arrtibute in the css editor
Comment 6 Marek Fukala 2010-12-13 08:46:56 UTC
reproducible on rule like this:"  :focus {}  "
Comment 7 Sc0tTyXL 2010-12-13 10:40:21 UTC
Created attachment 104007 [details]
stacktrace

IDE cant handle CSS pseudo elements with space

Following code has Netbeans throw continuous exceptions
#header .search :hover {
    border-color: orange;
    background-color: orange;
}

when you remove the space between .search and :hover , no exception occurs

#header .search:hover {
    border-color: orange;
    background-color: orange;
}
Comment 8 Sc0tTyXL 2010-12-13 10:45:31 UTC
I've updated this to P2, with this many duplicates it has to be fixed asap.
Comment 9 Marek Fukala 2010-12-13 11:11:37 UTC
the exceptions doesn't pop-up in web-main#bcbc80187709
Comment 10 Marek Fukala 2010-12-13 12:17:14 UTC
+ fixed the css preview sample code generator in web-main#ac2379af6603
Comment 11 Quality Engineering 2010-12-14 06:14:48 UTC
Integrated into 'main-golden', will be available in build *201012140001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/bcbc80187709
User: Marek Fukala <mfukala@netbeans.org>
Log: #174257 - org.w3c.dom.DOMException: NAMESPACE_ERR: An attempt is made to create or change an object in a way which is incorrect with regard to namespaces.