Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 104511 - DOMException occurring from time to time
Summary: DOMException occurring from time to time
Status: CLOSED FIXED
Alias: None
Product: WTP Source Editing
Classification: WebTools
Component: jst.jsp (show other bugs)
Version: 1.0   Edit
Hardware: PC Windows XP
: P4 major (vote)
Target Milestone: 1.0 M8   Edit
Assignee: Nitin Dahyabhai CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 103781 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-07-20 11:38 EDT by Yen Lu CLA
Modified: 2007-02-28 18:31 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yen Lu CLA 2005-07-20 11:38:56 EDT
I have no JSPs in my projects but, from time to time, I see the following in 
the .log file:

!ENTRY org.eclipse.jst.jsp.core 4 4 2005-07-20 11:33:38.112
!MESSAGE NAMESPACE_ERR: An attempt is made to create or change an object in a 
way which is incorrect with regard to namespaces.
!STACK 0
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 org.apache.xerces.dom.ElementNSImpl.setName(Unknown Source)
	at org.apache.xerces.dom.ElementNSImpl.<init>(Unknown Source)
	at org.apache.xerces.dom.CoreDocumentImpl.createElementNS(Unknown 
Source)
	at org.apache.xerces.dom.DOMImplementationImpl.createDocument(Unknown 
Source)
	at 
org.eclipse.jst.jsp.core.internal.util.DocumentProvider.getNewDocument
(DocumentProvider.java:252)
	at org.eclipse.jst.jsp.core.internal.util.DocumentProvider.load
(DocumentProvider.java:387)
	at org.eclipse.jst.jsp.core.internal.util.DocumentProvider.getDocument
(DocumentProvider.java:126)
	at 
org.eclipse.jst.jsp.core.internal.contentmodel.ProjectDescription.updateServlet
s(ProjectDescription.java:286)
	at 
org.eclipse.jst.jsp.core.internal.contentmodel.ProjectDescription$DeltaVisitor.
visit(ProjectDescription.java:89)
	at org.eclipse.core.internal.events.ResourceDelta.accept
(ResourceDelta.java:68)
	at org.eclipse.core.internal.events.ResourceDelta.accept
(ResourceDelta.java:77)
	at org.eclipse.core.internal.events.ResourceDelta.accept
(ResourceDelta.java:77)
	at org.eclipse.core.internal.events.ResourceDelta.accept
(ResourceDelta.java:77)
	at org.eclipse.core.internal.events.ResourceDelta.accept
(ResourceDelta.java:49)
	at 
org.eclipse.jst.jsp.core.internal.contentmodel.TaglibIndex$ResourceChangeListen
er.resourceChanged(TaglibIndex.java:217)
	at org.eclipse.core.internal.events.NotificationManager$2.run
(NotificationManager.java:276)
	at org.eclipse.core.internal.runtime.InternalPlatform.run
(InternalPlatform.java(Inlined Compiled Code))
	at org.eclipse.core.runtime.Platform.run(Platform.java(Compiled Code))
	at org.eclipse.core.internal.events.NotificationManager.notify
(NotificationManager.java:270)
	at 
org.eclipse.core.internal.events.NotificationManager.broadcastChanges
(NotificationManager.java:144)
	at org.eclipse.core.internal.resources.Workspace.broadcastPostChange
(Workspace.java:180)
	at org.eclipse.core.internal.resources.Workspace.endOperation
(Workspace.java:914)
	at org.eclipse.core.internal.resources.Workspace.run
(Workspace.java:1728)
	at org.eclipse.core.internal.events.NotificationManager$NotifyJob.run
(NotificationManager.java:38)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:76)

Could it be because we're updating J2EE deployment descriptors on a secondary
thread?
Comment 1 David Williams CLA 2005-07-20 15:29:21 EDT
Nitin ... I think Yen is correct, and the web.xml file is out of synch when we 
call 			
webxmlContents = ((IFile) webxml).getContents(true);

So, we get what ever its contents is at the moment (but does not change the 
synch state of web.xml). 

Should we use 
webxmlContents = ((IFile) webxml).getContents(false);

instead, and just silently do nothing if out of synch exception thrown? 
(since presumably we would be called later, once in synch again?). 

This also *might* be related to Bug 104533. 
Comment 2 David Williams CLA 2005-07-24 19:33:10 EDT
While a bad problem, given this doesn't "block use" any fix at this level is too
risky to make at this point for 0.7 ... so, we'll attend to this bug next
release. If you disagree or believe there is something "blocking" here I am not
seeing, please comment. 
Comment 3 Nitin Dahyabhai CLA 2005-08-03 17:40:50 EDT
Fixed in HEAD.
Comment 4 John Lanuti CLA 2006-11-28 15:39:38 EST
This is part of a mass update to close out all stale WTP defects already verified by the reporter but awaiting closure by the assignee.  If you feel this defect was closed inappropriately, please reopen.

Thanks, John Lanuti
Comment 5 Nitin Dahyabhai CLA 2007-02-28 18:31:09 EST
*** Bug 103781 has been marked as a duplicate of this bug. ***