Assertion failed: Write access is allowed inside write-action only

What is wrong here? Could you help me please?


I just do

2 comments
Comment actions Permalink

Exception message says it all. Below is content of
%IDEA%/doc/openapi/readwriteactions.html:

The purpose of runReadAction and runWriteAction methods of Application
interface.
These methods provide thread safety for the components. Read action is an
action which does no modifications to the data, write action otherwise
modifies some data.

You can call methods requiring read access from the Swing event-dispatch
thread without using runReadAction method. If you need to invoke such
methods from another thread you have to use runReadAction. Multiple read
actions can run at the same time without locking each other.

Write action can be called only from the Swing thread using runWriteAction
method. If there are read actions running at this moment runWriteAction is
blocked until they are completed.


--

Best regards,
Maxim Shafirov
JetBrains, Inc / IntelliJ Software
http://www.intellij.com
"Develop with pleasure!"


"Serge" <s.shafrenka@web.de> wrote in message
news:6811050.1061907838529.JavaMail.itn@is.intellij.net...

What is wrong here? Could you help me please?
2003-08-26 16:12:44,829 [12524439] ERROR - plication.impl.ApplicationImpl - Assertion failed: Write access is allowed inside write-action only (see com.intellij.openapi.application.Application.runWriteAction()) > 2003-08-26 16:12:44,829 [12524439] ERROR - plication.impl.ApplicationImpl - IntelliJ IDEA 3.0.5 Build #706 > 2003-08-26 16:12:44,829 [12524439] ERROR - plication.impl.ApplicationImpl - JDK: 1.4.1_02 > 2003-08-26 16:12:44,829 [12524439] ERROR - plication.impl.ApplicationImpl - VM: Java HotSpot(TM) Client VM > 2003-08-26 16:12:44,829 [12524439] ERROR - plication.impl.ApplicationImpl - Vendor: Sun Microsystems Inc. > 2003-08-26 16:12:44,829 [12524439] ERROR - plication.impl.ApplicationImpl - OS: Windows XP > 2003-08-26 16:12:44,829 [12524439] ERROR - plication.impl.ApplicationImpl - Last Action: CMSynergy.CheckinTask > 2003-08-26 16:12:44,829 [12524439] ERROR - plication.impl.ApplicationImpl - > java.lang.Throwable > at com.intellij.openapi.diagnostic.Logger.assertTrue(Logger.java:39) > at com.intellij.openapi.application.b.e.assertWriteAccessAllowed(e.java:155) > at com.intellij.openapi.vfs.VirtualFileSystem.firePropertyChanged(VirtualFileSy stem.java:31) > at com.intellij.openapi.vfs.a.b.bh.firePropertyChanged(bh.java:82) > at com.intellij.openapi.vfs.a.b.w.run(w.java:0) > at com.intellij.openapi.vfs.a.b.bg.a(bg.java:168) > at com.intellij.openapi.vfs.a.b.bg.a(bg.java:225) > at com.intellij.openapi.vfs.a.b.bh.a(bh.java:25) > at com.intellij.openapi.vfs.a.b.bh.a(bh.java:106) > at com.intellij.openapi.vfs.a.b.bh.a(bh.java:106) > at com.intellij.openapi.vfs.a.b.bh.a(bh.java:106) > at com.intellij.openapi.vfs.a.b.bh.a(bh.java:106) > at com.intellij.openapi.vfs.a.b.bh.a(bh.java:106) > at com.intellij.openapi.vfs.a.b.bh.a(bh.java:106) > at com.intellij.openapi.vfs.a.b.bh.a(bh.java:106) > at com.intellij.openapi.vfs.a.b.bh.a(bh.java:106) > at com.intellij.openapi.vfs.a.b.bh.a(bh.java:106) > at com.intellij.openapi.vfs.a.b.bh.a(bh.java:106) > at com.intellij.openapi.vfs.a.b.h.run(h.java:20) > at com.intellij.openapi.vfs.a.b.bh.refresh(bh.java:201) > at org.ssn.idea.synergy.actions.CheckinTaskAction.actionPerformed(CheckinTaskAc tion.java:28) > at com.intellij.openapi.actionSystem.a.l.actionPerformed(l.java:9) > at javax.swing.AbstractButton.fireActionPerformed(Unknown Source) > at com.intellij.openapi.actionSystem.a.bb.fireActionPerformed(bb.java:35) > at com.intellij.ui.a.a.o.doClick(o.java:128) > at com.intellij.ui.a.a.o.access$300(o.java:92) > at com.intellij.ui.a.a.p.mouseReleased(p.java:0) > at java.awt.Component.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.dispatchEvent(Unknown Source) > at com.intellij.ide.q.a(q.java:84) > at com.intellij.ide.q.dispatchEvent(q.java:104) > at java.awt.EventDispatchThread.pumpOneEventForHierarchy(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) > 2003-08-26 16:12:54,468 [12534078] INFO - lij.localVcs.impl.LocalVcsImpl - enter: save(repositorySize=1156) > ]]>

>

I just do

 LocalFileSystem.getInstance().refresh(false);
> ]]>



0
Comment actions Permalink

Thanks, I got it.

0

Please sign in to leave a comment.