java.lang.IllegalStateException: Attempt to mutate in notification

Oracle Community | 807587 | 1 decade ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    To dynamically change the text color in JTextPane

    Oracle Community | 1 decade ago | 807587
    java.lang.IllegalStateException: Attempt to mutate in notification
  2. 0

    To dynamically change the text color in JTextPane

    Oracle Community | 1 decade ago | 807587
    java.lang.IllegalStateException: Attempt to mutate in notification
  3. 0

    To dynamically change the text color in JTextPane

    Oracle Community | 1 decade ago | 807587
    java.lang.IllegalStateException: Attempt to mutate in notification
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Getting 'Attempt to mutate notification' exception

    Stack Overflow | 4 years ago | user2102972
    java.lang.IllegalStateException: Attempt to mutate in notification
  6. 0

    How to toggle a line and set color to specific text in JTextArea?

    Oracle Community | 1 decade ago | 843805
    java.lang.IllegalStateException: Attempt to mutate in notification

    Root Cause Analysis

    1. java.lang.IllegalStateException

      Attempt to mutate in notification

      at javax.swing.text.AbstractDocument.writeLock()
    2. Java RT
      DefaultStyledDocument.setCharacterAttributes
      1. javax.swing.text.AbstractDocument.writeLock(AbstractDocument.java:1336)
      2. javax.swing.text.DefaultStyledDocument.setCharacterAttributes(DefaultStyledDocument.java:338)
      2 frames
    3. dbtool
      TextPaneWithPopup.caretUpdate
      1. dbtool.TextPaneWithPopup.caretUpdate(TextPaneWithPopup.java:255)
      1 frame
    4. Java RT
      EventDispatchThread.run
      1. javax.swing.text.JTextComponent.fireCaretUpdate(JTextComponent.java:336)
      2. javax.swing.text.JTextComponent$MutableCaretEvent.fire(JTextComponent.java:3137)
      3. javax.swing.text.JTextComponent$MutableCaretEvent.stateChanged(JTextComponent.java:3159)
      4. javax.swing.text.DefaultCaret.fireStateChanged(DefaultCaret.java:638)
      5. javax.swing.text.DefaultCaret.changeCaretPosition(DefaultCaret.java:1010)
      6. javax.swing.text.DefaultCaret.handleSetDot(DefaultCaret.java:918)
      7. javax.swing.text.DefaultCaret.setDot(DefaultCaret.java:899)
      8. javax.swing.text.DefaultCaret$UpdateHandler.insertUpdate(DefaultCaret.java:1453)
      9. javax.swing.text.AbstractDocument.fireInsertUpdate(AbstractDocument.java:184)
      10. javax.swing.text.AbstractDocument.handleInsertString(AbstractDocument.java:749)
      11. javax.swing.text.AbstractDocument.insertString(AbstractDocument.java:706)
      12. javax.swing.JTextPane.replaceSelection(JTextPane.java:189)
      13. javax.swing.JTextPane.replaceSelection(JTextPane.java:153)
      14. javax.swing.text.DefaultEditorKit$DefaultKeyTypedAction.actionPerformed(DefaultEditorKit.java:839)
      15. javax.swing.SwingUtilities.notifyAction(SwingUtilities.java:1512)
      16. javax.swing.JComponent.processKeyBinding(JComponent.java:2435)
      17. javax.swing.JComponent.processKeyBindings(JComponent.java:2470)
      18. javax.swing.JComponent.processKeyEvent(JComponent.java:2398)
      19. java.awt.Component.processEvent(Component.java:4943)
      20. java.awt.Container.processEvent(Container.java:1566)
      21. java.awt.Component.dispatchEventImpl(Component.java:3639)
      22. java.awt.Container.dispatchEventImpl(Container.java:1623)
      23. java.awt.Component.dispatchEvent(Component.java:3480)
      24. java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1688)
      25. java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:593)
      26. java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:765)
      27. java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:698)
      28. java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:559)
      29. java.awt.Component.dispatchEventImpl(Component.java:3509)
      30. java.awt.Container.dispatchEventImpl(Container.java:1623)
      31. java.awt.Window.dispatchEventImpl(Window.java:1590)
      32. java.awt.Component.dispatchEvent(Component.java:3480)
      33. java.awt.EventQueue.dispatchEvent(EventQueue.java:450)
      34. java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:197)
      35. java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
      36. java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:144)
      37. java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:136)
      38. java.awt.EventDispatchThread.run(EventDispatchThread.java:99)
      38 frames