Error while logging out

[quote]Traceback (most recent call last):
File “event:menu:Logout”, line 1, in
at com.inductiveautomation.factorypmi.application.runtime.ClientContextImpl.getScriptManager(ClientContextImpl.java:427)

at com.inductiveautomation.factorypmi.application.FPMIApp$AppContextImpl.getScriptManager(FPMIApp.java:483)

at com.inductiveautomation.factorypmi.application.binding.action.ActionAdapter.runActions(ActionAdapter.java:150)

at com.inductiveautomation.factorypmi.application.binding.action.ActionAdapter.invoke(ActionAdapter.java:266)

at com.inductiveautomation.factorypmi.application.binding.action.RelayInvocationHandler.invoke(RelayInvocationHandler.java:55)

at com.sun.proxy.$Proxy20.propertyChange(Unknown Source)

at java.beans.PropertyChangeSupport.fire(Unknown Source)

at java.beans.PropertyChangeSupport.firePropertyChange(Unknown Source)

at java.beans.PropertyChangeSupport.firePropertyChange(Unknown Source)

at java.awt.Component.firePropertyChange(Unknown Source)

at javax.swing.JComponent.removeNotify(Unknown Source)

at java.awt.Container.removeNotify(Unknown Source)

at javax.swing.JComponent.removeNotify(Unknown Source)

at java.awt.Container.removeNotify(Unknown Source)

at javax.swing.JComponent.removeNotify(Unknown Source)

at java.awt.Container.removeNotify(Unknown Source)

at javax.swing.JComponent.removeNotify(Unknown Source)

at java.awt.Container.removeNotify(Unknown Source)

at javax.swing.JComponent.removeNotify(Unknown Source)

at javax.swing.JRootPane.removeNotify(Unknown Source)

at java.awt.Container.removeNotify(Unknown Source)

at javax.swing.JComponent.removeNotify(Unknown Source)

at java.awt.Container.removeNotify(Unknown Source)

at javax.swing.JComponent.removeNotify(Unknown Source)

at java.awt.Container.removeNotify(Unknown Source)

at javax.swing.JComponent.removeNotify(Unknown Source)

at java.awt.Container.removeNotify(Unknown Source)

at javax.swing.JComponent.removeNotify(Unknown Source)

at java.awt.Container.remove(Unknown Source)

at java.awt.Container.remove(Unknown Source)

at com.inductiveautomation.factorypmi.application.runtime.ClientPanel.setContentPane(ClientPanel.java:684)

at com.inductiveautomation.factorypmi.application.runtime.ClientPanel.shutdownApp(ClientPanel.java:884)

at com.inductiveautomation.factorypmi.application.runtime.ClientPanel.logout(ClientPanel.java:894)

at com.inductiveautomation.factorypmi.application.script.builtin.SecurityUtilities$1.run(SecurityUtilities.java:248)

at com.inductiveautomation.factorypmi.application.script.builtin.SecurityUtilities.runAction(SecurityUtilities.java:259)

at com.inductiveautomation.factorypmi.application.script.builtin.SecurityUtilities.logout(SecurityUtilities.java:254)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

java.lang.IllegalStateException: java.lang.IllegalStateException

at org.python.core.Py.JavaError(Py.java:495)
at org.python.core.Py.JavaError(Py.java:488)
at org.python.core.PyReflectedFunction.call(PyReflectedFunction.java:188)
at com.inductiveautomation.ignition.common.script.ScriptManager$ReflectedInstanceFunction.call(ScriptManager.java:459)
at org.python.core.PyObject.call(PyObject.java:371)
at org.python.core.PyObject.call(PyObject.java:375)
at org.python.pycode._pyx84.f$0(event:menu:Logout:1)
at org.python.pycode._pyx84.call_function(event:menu:Logout)
at org.python.core.PyTableCode.call(PyTableCode.java:165)
at org.python.core.PyCode.call(PyCode.java:18)
at org.python.core.Py.runCode(Py.java:1275)
at com.inductiveautomation.ignition.common.script.ScriptManager.runCode(ScriptManager.java:552)
at com.inductiveautomation.factorypmi.application.runtime.RuntimeMenu$JythonMenuActionListener.actionPerformed(RuntimeMenu.java:168)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.AbstractButton.doClick(Unknown Source)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$200(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Caused by: java.lang.IllegalStateException
at com.inductiveautomation.factorypmi.application.runtime.ClientContextImpl.getScriptManager(ClientContextImpl.java:427)
at com.inductiveautomation.factorypmi.application.FPMIApp$AppContextImpl.getScriptManager(FPMIApp.java:483)
at com.inductiveautomation.factorypmi.application.binding.action.ActionAdapter.runActions(ActionAdapter.java:150)
at com.inductiveautomation.factorypmi.application.binding.action.ActionAdapter.invoke(ActionAdapter.java:266)
at com.inductiveautomation.factorypmi.application.binding.action.RelayInvocationHandler.invoke(RelayInvocationHandler.java:55)
at com.sun.proxy.$Proxy20.propertyChange(Unknown Source)
at java.beans.PropertyChangeSupport.fire(Unknown Source)
at java.beans.PropertyChangeSupport.firePropertyChange(Unknown Source)
at java.beans.PropertyChangeSupport.firePropertyChange(Unknown Source)
at java.awt.Component.firePropertyChange(Unknown Source)
at javax.swing.JComponent.removeNotify(Unknown Source)
at java.awt.Container.removeNotify(Unknown Source)
at javax.swing.JComponent.removeNotify(Unknown Source)
at java.awt.Container.removeNotify(Unknown Source)
at javax.swing.JComponent.removeNotify(Unknown Source)
at java.awt.Container.removeNotify(Unknown Source)
at javax.swing.JComponent.removeNotify(Unknown Source)
at java.awt.Container.removeNotify(Unknown Source)
at javax.swing.JComponent.removeNotify(Unknown Source)
at javax.swing.JRootPane.removeNotify(Unknown Source)
at java.awt.Container.removeNotify(Unknown Source)
at javax.swing.JComponent.removeNotify(Unknown Source)
at java.awt.Container.removeNotify(Unknown Source)
at javax.swing.JComponent.removeNotify(Unknown Source)
at java.awt.Container.removeNotify(Unknown Source)
at javax.swing.JComponent.removeNotify(Unknown Source)
at java.awt.Container.removeNotify(Unknown Source)
at javax.swing.JComponent.removeNotify(Unknown Source)
at java.awt.Container.remove(Unknown Source)
at java.awt.Container.remove(Unknown Source)
at com.inductiveautomation.factorypmi.application.runtime.ClientPanel.setContentPane(ClientPanel.java:684)
at com.inductiveautomation.factorypmi.application.runtime.ClientPanel.shutdownApp(ClientPanel.java:884)
at com.inductiveautomation.factorypmi.application.runtime.ClientPanel.logout(ClientPanel.java:894)
at com.inductiveautomation.factorypmi.application.script.builtin.SecurityUtilities$1.run(SecurityUtilities.java:248)
at com.inductiveautomation.factorypmi.application.script.builtin.SecurityUtilities.runAction(SecurityUtilities.java:259)
at com.inductiveautomation.factorypmi.application.script.builtin.SecurityUtilities.logout(SecurityUtilities.java:254)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.python.core.PyReflectedFunction.call(PyReflectedFunction.java:186)
… 48 more

Ignition v7.6.2 (b2368)
Java: Oracle Corporation 1.7.0_25
[/quote]

Using a client event script

system.security.logout()

What kind of client event script are you using this on?