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 196878 - Patch for Schliemann
Summary: Patch for Schliemann
Status: RESOLVED FIXED
Alias: None
Product: obsolete
Classification: Unclassified
Component: languages (show other bugs)
Version: 6.x
Hardware: PC Linux
: P3 normal with 1 vote (vote)
Assignee: issues@obsolete
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-19 19:43 UTC by scanti
Modified: 2011-03-24 23:17 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Patch to fix the problem (1.07 KB, patch)
2011-03-19 19:43 UTC, scanti
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description scanti 2011-03-19 19:43:28 UTC
Created attachment 107123 [details]
Patch to fix the problem

I have got an exception while using Schliemann, since it was easy to fix I have attached a patch that will hopefully resolve it

java.lang.IllegalStateException: Too many org.netbeans.modules.languages.features.MarkOccurrencesSupport$1 (4) in shared RequestProcessor; create your own
        at org.openide.util.RequestProcessor.post(RequestProcessor.java:433)
        at org.netbeans.modules.languages.features.MarkOccurrencesSupport.caretUpdate(MarkOccurrencesSupport.java:89)
        at javax.swing.text.JTextComponent.fireCaretUpdate(JTextComponent.java:391)
        at javax.swing.text.JTextComponent$MutableCaretEvent.fire(JTextComponent.java:4387)
        at javax.swing.text.JTextComponent$MutableCaretEvent.stateChanged(JTextComponent.java:4409)
        at org.netbeans.editor.BaseCaret$4.run(BaseCaret.java:797)
        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
        at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:642)
        at java.awt.EventQueue.access$000(EventQueue.java:85)
        at java.awt.EventQueue$1.run(EventQueue.java:603)
        at java.awt.EventQueue$1.run(EventQueue.java:601)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:612)
        at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:137)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
        at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
[catch] at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Comment 1 Jesse Glick 2011-03-21 13:59:55 UTC
I applied your patch in core-main #f72baf33abd0 but please be aware that Schliemann is unsupported and unmaintained.
Comment 2 scanti 2011-03-21 14:42:51 UTC
Thanks a lot Jesse
Comment 3 Quality Engineering 2011-03-22 09:55:44 UTC
Integrated into 'main-golden', will be available in build *201103220400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/f72baf33abd0
User: scanti@netbeans.org
Log: #196878: java.lang.IllegalStateException: Too many org.netbeans.modules.languages.features.MarkOccurrencesSupport$1 (4) in shared RequestProcessor; create your own
Comment 4 matteodg 2011-03-24 09:56:54 UTC
Hi Jesse, has it been committed to 7.0 or trunk?
Comment 5 Jesse Glick 2011-03-24 23:17:18 UTC
Trunk, i.e. 7.0.1 or 7.1 (not sure which).