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 15773 - Add TAX locking or utilities taking runnable
Summary: Add TAX locking or utilities taking runnable
Status: NEW
Alias: None
Product: xml
Classification: Unclassified
Component: TAX/Lib (show other bugs)
Version: 3.x
Hardware: PC Linux
: P4 blocker (vote)
Assignee: issues@xml
URL:
Keywords: API
Depends on:
Blocks: 20532
  Show dependency tree
 
Reported: 2001-09-21 13:26 UTC by issues@www
Modified: 2007-09-25 06:06 UTC (History)
0 users

See Also:
Issue Type: TASK
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description issues@www 2001-09-21 13:26:23 UTC
Description: 
Some operation must be done in AWT in blocking manner to prevent a user perform
concurent tree modification. (However API comodification is possible :-().

We should introduce locking or something like SwingUtilities.invoke...().
Blocking stack trace sample:
AWT-EventQueue-0" prio=1 tid=0x8292770 nid=0x5e8f runnable 
[0xbe9fe000..0xbe9ff8c4]
         at java.net.SocketInputStream.socketRead(Native Method)
         at java.net.SocketInputStream.read(SocketInputStream.java:86)
         at java.io.BufferedInputStream.fill(BufferedInputStream.java:186)
         at java.io.BufferedInputStream.read1(BufferedInputStream.java:225)
         at java.io.BufferedInputStream.read(BufferedInputStream.java:280)
         at java.io.FilterInputStream.read(FilterInputStream.java:114)
         at java.io.PushbackInputStream.read(PushbackInputStream.java:164)
         at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:638)
         at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:602)
         at 
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:481)
         at java.net.URL.openStream(URL.java:798)
         at 
org.apache.xerces.impl.XMLEntityManager.startEntity(XMLEntityManager.java:957)
         at 
org.apache.xerces.impl.XMLEntityManager.startDTDEntity(XMLEntityManager.java:665)
         at 
org.apache.xerces.impl.XMLDocumentScanner.scanDoctypeDecl(XMLDocumentScanner.java:739)
         at 
org.apache.xerces.impl.XMLDocumentScanner$PrologDispatcher.dispatch(XMLDocumentScanner.java:1584)
         at 
org.apache.xerces.impl.XMLDocumentScanner.scanDocument(XMLDocumentScanner.java:335)
         at 
org.apache.xerces.parsers.StandardParserConfiguration.parse(StandardParserConfiguration.java:389)
         at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:195)
         at 
org.apache.xerces.parsers.AbstractXMLDocumentParser.parse(AbstractXMLDocumentParser.java:131)
         at 
org.netbeans.modules.xml.tree.io.TreeStreamBuilderXercesImpl.buildDocument(TreeStreamBuilderXercesImpl.java:145)
         at 
org.netbeans.modules.xml.editor.XMLParsingSupport.parse(XMLParsingSupport.java:38)
         at 
org.netbeans.modules.xml.editor.TreeEditorSupport.parseTree(TreeEditorSupport.java:363)
         at 
org.netbeans.modules.xml.editor.TreeEditorSupport.updateTree(TreeEditorSupport.java:315)
         at 
org.netbeans.modules.xml.editor.XMLTreeRepresentation.update(XMLTreeRepresentation.java:48)
         at 
org.netbeans.modules.xml.SyncSupport.representationChanged(SyncSupport.java:205)
         at 
org.netbeans.modules.xml.DataObjectSyncSupport.representationChanged(DataObjectSyncSupport.java:69)
         at 
org.netbeans.modules.xml.text.TextEditorSupport.syncDocument(TextEditorSupport.java:384)
         at 
org.netbeans.modules.xml.text.TextEditorComponent$2.focusLost(TextEditorComponent.java:95)
         at 
java.awt.AWTEventMulticaster.focusLost(AWTEventMulticaster.java:171)
         at 
java.awt.AWTEventMulticaster.focusLost(AWTEventMulticaster.java:170)
         at java.awt.Component.processFocusEvent(Component.java:3644)
         at javax.swing.JComponent.processFocusEvent(JComponent.java:2058)
         at java.awt.Component.processEvent(Component.java:3537)
         at java.awt.Container.processEvent(Container.java:1164)
         at java.awt.Component.dispatchEventImpl(Component.java:2595)
         at java.awt.Container.dispatchEventImpl(Container.java:1213)
         at java.awt.Component.dispatchEvent(Component.java:2499)
         at 
java.awt.LightweightDispatcher.setFocusRequest(Container.java:2076)
         at java.awt.Container.proxyRequestFocus(Container.java:1335)
         at java.awt.Container.proxyRequestFocus(Container.java:1330)
         at java.awt.Container.proxyRequestFocus(Container.java:1330)
         at java.awt.Container.proxyRequestFocus(Container.java:1330)
         at java.awt.Container.proxyRequestFocus(Container.java:1330)
         at java.awt.Container.proxyRequestFocus(Container.java:1330)
         at java.awt.Container.proxyRequestFocus(Container.java:1330)
         at java.awt.Container.proxyRequestFocus(Container.java:1330)
         at java.awt.Container.proxyRequestFocus(Container.java:1330)
         at java.awt.Container.proxyRequestFocus(Container.java:1330)
         at java.awt.Container.proxyRequestFocus(Container.java:1330)
         at java.awt.Container.proxyRequestFocus(Container.java:1330)
         at java.awt.Container.proxyRequestFocus(Container.java:1330)
         at java.awt.Container.proxyRequestFocus(Container.java:1330)
         at java.awt.Component.requestFocus(Component.java:4176)
         at javax.swing.JComponent.grabFocus(JComponent.java:967)
         at javax.swing.JComponent.requestFocus(JComponent.java:949)
         at javax.swing.JInternalFrame.setSelected(JInternalFrame.java:960)
         at 
org.netbeans.core.windows.frames.DesktopFrameTypeImpl.setSelected(DesktopFrameTypeImpl.java:98)
         at 
javax.swing.plaf.basic.BasicInternalFrameUI$BorderListener.mousePressed(BasicInternalFrameUI.java:689)
         at 
javax.swing.plaf.basic.BasicInternalFrameUI$GlassPaneDispatcher.mousePressed(BasicInternalFrameUI.java:1077)
         at java.awt.Component.processMouseEvent(Component.java:3714)
         at java.awt.Component.processEvent(Component.java:3546)
         at java.awt.Container.processEvent(Container.java:1164)
         at java.awt.Component.dispatchEventImpl(Component.java:2595)
         at java.awt.Container.dispatchEventImpl(Container.java:1213)
         at java.awt.Component.dispatchEvent(Component.java:2499)
         at 
java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:2451)
         at 
java.awt.LightweightDispatcher.processMouseEvent(Container.java:2210)
         at 
java.awt.LightweightDispatcher.dispatchEvent(Container.java:2125)
         at java.awt.Container.dispatchEventImpl(Container.java:1200)
         at java.awt.Window.dispatchEventImpl(Window.java:912)
         at java.awt.Component.dispatchEvent(Component.java:2499)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:333)
         at 
java.awt.EventDispatchThread.pumpOneEvent(EventDispatchThread.java:103)
         at 
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:84)

Evaluation: 

xxx@xxxx 2001-09-21 Agree, some sync module on TAX miss.

A comment.
Comment 1 Jan Chalupa 2001-11-27 17:39:23 UTC
Target milestone -> 3.3.1.
Comment 2 Jan Chalupa 2001-11-27 17:42:57 UTC
Target milestone -> 3.3.1.
Comment 3 _ pkuzel 2002-06-03 12:28:31 UTC
Let these are considered while planning next release.
Comment 4 Marek Grummich 2002-07-19 16:48:36 UTC
Target milestone was changed from not determined to TBD
Comment 5 _ pkuzel 2002-08-13 21:16:09 UTC
Public contact may be introduced.
Comment 6 _ pkuzel 2003-03-14 20:33:11 UTC
Transactions would be even better (e.g. MDR).