Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via GitHub by bkolb
, 1 year ago
You can read model only inside read actions
via GitHub by danielratiu
, 1 year ago
You can read model only inside read actions
via YouTrack by Unknown author, 1 year ago
via GitHub by slisson
, 1 year ago
You can read model only inside read actions
via GitHub by joswarmer
, 1 year ago
jetbrains.mps.smodel.IllegalModelAccessError: You can read model only inside read actions	at jetbrains.mps.smodel.WorkbenchModelAccess.checkReadAccess(WorkbenchModelAccess.java:473)	at jetbrains.mps.smodel.ModelAccessBase.checkReadAccess(ModelAccessBase.java:38)	at jetbrains.mps.smodel.MPSModuleRepository.getModules(MPSModuleRepository.java:267)	at com.mbeddr.mpsutil.modellisteners.runtime.GlobalListener.install(GlobalListener.java:60)	at com.mbeddr.mpsutil.modellisteners.runtime.plugin.ModelListenersApplicationPlugin_CustomApplicationPlugin.doInit(ModelListenersApplicationPlugin_CustomApplicationPlugin.java:14)	at jetbrains.mps.plugins.custom.BaseCustomApplicationPlugin.init(BaseCustomApplicationPlugin.java:26)	at com.mbeddr.mpsutil.modellisteners.runtime.plugin.Runtime_ApplicationPlugin.initCustomParts(Runtime_ApplicationPlugin.java:24)	at jetbrains.mps.plugins.applicationplugins.BaseApplicationPlugin.createCustomParts(BaseApplicationPlugin.java:131)	at jetbrains.mps.plugins.applicationplugins.ApplicationPluginManager.createCustomParts(ApplicationPluginManager.java:113)	at jetbrains.mps.plugins.applicationplugins.ApplicationPluginManager.afterPluginsCreated(ApplicationPluginManager.java:75)	at jetbrains.mps.plugins.BasePluginManager.loadPlugins(BasePluginManager.java:95)	at jetbrains.mps.plugins.PluginLoaderRegistry.loadContributors(PluginLoaderRegistry.java:146)	at jetbrains.mps.plugins.PluginLoaderRegistry.access$700(PluginLoaderRegistry.java:70)	at jetbrains.mps.plugins.PluginLoaderRegistry$UpdatingTask.addContributors(PluginLoaderRegistry.java:313)	at jetbrains.mps.plugins.PluginLoaderRegistry$UpdatingTask.lambda$run$0(PluginLoaderRegistry.java:300)	at com.intellij.openapi.application.TransactionGuardImpl$6.run(TransactionGuardImpl.java:291)	at com.intellij.openapi.application.impl.LaterInvocator$1.run(LaterInvocator.java:156)	at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.runNextEvent(LaterInvocator.java:326)	at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:310)	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)	at java.awt.EventQueue.access$500(EventQueue.java:97)	at java.awt.EventQueue$3.run(EventQueue.java:709)	at java.awt.EventQueue$3.run(EventQueue.java:703)	at java.security.AccessController.doPrivileged(Native Method)	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)	at java.awt.EventQueue.dispatchEvent(EventQueue.java:726)	at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:863)	at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:699)	at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:385)	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:109)	at java.awt.WaitDispatchSupport$2.run(WaitDispatchSupport.java:184)	at java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:229)	at java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:227)	at java.security.AccessController.doPrivileged(Native Method)	at java.awt.WaitDispatchSupport.enter(WaitDispatchSupport.java:227)	at java.awt.Dialog.show(Dialog.java:1084)	at com.intellij.openapi.ui.impl.DialogWrapperPeerImpl$MyDialog.show(DialogWrapperPeerImpl.java:778)	at com.intellij.openapi.ui.impl.DialogWrapperPeerImpl.show(DialogWrapperPeerImpl.java:455)	at com.intellij.openapi.ui.DialogWrapper.invokeShow(DialogWrapper.java:1665)	at com.intellij.openapi.ui.DialogWrapper.show(DialogWrapper.java:1607)	at com.intellij.openapi.progress.util.ProgressDialog.show(ProgressDialog.java:317)	at com.intellij.openapi.progress.util.ProgressWindow.showDialog(ProgressWindow.java:235)	at com.intellij.openapi.progress.util.ProgressWindow$2.lambda$actionPerformed$330(ProgressWindow.java:180)	at com.intellij.openapi.application.TransactionGuardImpl$6.run(TransactionGuardImpl.java:291)	at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.runNextEvent(LaterInvocator.java:326)	at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:310)	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)	at java.awt.EventQueue.access$500(EventQueue.java:97)	at java.awt.EventQueue$3.run(EventQueue.java:709)	at java.awt.EventQueue$3.run(EventQueue.java:703)	at java.security.AccessController.doPrivileged(Native Method)	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)	at java.awt.EventQueue.dispatchEvent(EventQueue.java:726)	at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:863)	at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:699)	at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:385)	at com.intellij.ide.IdeEventQueue.pumpEventsForHierarchy(IdeEventQueue.java:950)	at com.intellij.openapi.progress.util.ProgressWindow.startBlocking(ProgressWindow.java:207)	at com.intellij.openapi.progress.util.ProgressWindow.startBlocking(ProgressWindow.java:194)	at com.intellij.openapi.application.impl.ApplicationImpl.runProcessWithProgressSynchronously(ApplicationImpl.java:569)	at com.intellij.openapi.progress.impl.CoreProgressManager.runProcessWithProgressSynchronously(CoreProgressManager.java:396)	at com.intellij.openapi.progress.impl.ProgressManagerImpl.runProcessWithProgressSynchronously(ProgressManagerImpl.java:76)	at com.intellij.openapi.progress.impl.CoreProgressManager.run(CoreProgressManager.java:312)	at jetbrains.mps.plugins.PluginLoaderRegistry.runTask(PluginLoaderRegistry.java:177)	at jetbrains.mps.plugins.PluginLoaderRegistry.update(PluginLoaderRegistry.java:263)	at com.intellij.openapi.application.TransactionGuardImpl$6.run(TransactionGuardImpl.java:291)	at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.runNextEvent(LaterInvocator.java:326)	at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:310)	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)	at java.awt.EventQueue.access$500(EventQueue.java:97)	at java.awt.EventQueue$3.run(EventQueue.java:709)	at java.awt.EventQueue$3.run(EventQueue.java:703)	at java.security.AccessController.doPrivileged(Native Method)	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)	at java.awt.EventQueue.dispatchEvent(EventQueue.java:726)	at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:863)	at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:699)	at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:385)	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)	at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)