Uploaded image for project: 'VPMS Web Application'
  1. OVPMS-1848

Preferences update fails with error when two windows open

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.9
    • Fix Version/s: 1.9.1
    • Component/s: User Interface
    • Labels:
      None
    • Sprint:

      Description

      If a second window is launched from within a session, and preferences are changed in the original window, an error will be displayed

      Attempt to update state of application user interface outside of user interface thread.
      

      with the stack trace:

      Attempt to update state of application user interface outside of user interface thread.
      java.lang.IllegalStateException: Attempt to update state of application user interface outside of user interface thread.
      	at nextapp.echo2.app.ApplicationInstance.notifyComponentPropertyChange(ApplicationInstance.java:537)
      	at nextapp.echo2.app.Component.firePropertyChange(Component.java:462)
      	at nextapp.echo2.app.Component.remove(Component.java:1276)
      	at org.openvpms.web.workspace.MainPane.refreshSummary(MainPane.java:540)
      	at org.openvpms.web.workspace.MainPane.onPreferencesChanged(MainPane.java:449)
      	at org.openvpms.web.workspace.MainPane.access$200(MainPane.java:86)
      	at org.openvpms.web.workspace.MainPane$4.refreshed(MainPane.java:280)
      	at org.openvpms.web.component.prefs.UserPreferences.refresh(UserPreferences.java:115)
      	at org.openvpms.web.component.prefs.PreferencesDialog.save(PreferencesDialog.java:67)
      	at org.openvpms.web.component.im.edit.AbstractEditDialog.onOK(AbstractEditDialog.java:286)
      	at org.openvpms.web.echo.dialog.PopupDialog.onButton(PopupDialog.java:313)
      	at org.openvpms.web.echo.dialog.PopupDialog.onButtonProtected(PopupDialog.java:499)
      	at org.openvpms.web.echo.dialog.PopupDialog.access$000(PopupDialog.java:34)
      	at org.openvpms.web.echo.dialog.PopupDialog$4.onAction(PopupDialog.java:486)
      	at org.openvpms.web.echo.event.ActionListener.actionPerformed(ActionListener.java:40)
      

        Attachments

          Activity

            People

            • Assignee:
              tanderson Tim Anderson
              Reporter:
              tanderson Tim Anderson
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 5.5h
                5.5h

                  Who's Looking?