• ,

Ошибка плагина

При запуске возникает ошибка с текстом:

Write access is allowed from write-safe contexts only. Please ensure you're using invokeLater/invokeAndWait with a correct modality state (not «any»). See TransactionGuard documentation for details.
current modality=ModalityState.NON_MODAL
known modalities={ModalityState.NON_MODAL=true}
java.lang.Throwable
at com.intellij.openapi.diagnostic.Logger.error(Logger.java:132)
at com.intellij.openapi.application.TransactionGuardImpl.assertWriteActionAllowed(TransactionGuardImpl.java:246)
at com.intellij.openapi.vfs.newvfs.RefreshQueueImpl.execute(RefreshQueueImpl.java:54)
at com.intellij.openapi.vfs.newvfs.RefreshSessionImpl.launch(RefreshSessionImpl.java:115)
at com.intellij.openapi.vfs.newvfs.RefreshQueue.refresh(RefreshQueue.java:58)
at com.intellij.openapi.vfs.newvfs.RefreshQueue.refresh(RefreshQueue.java:44)
at com.intellij.openapi.vfs.newvfs.NewVirtualFile.refresh(NewVirtualFile.java:85)
at com.intellij.openapi.vfs.VirtualFile.refresh(VirtualFile.java:676)
at com.javarush.plugin.JavaRushUtil.getPackage(JavaRushUtil.java:347)
at com.javarush.plugin.JavaRushUtil.getLevelLessonTaskIDs(JavaRushUtil.java:364)
at com.javarush.plugin.JavaRushProjectComponent.getTaskKey(JavaRushProjectComponent.java:182)
at com.javarush.plugin.JavaRushProjectComponent.endFileTimeTracking(JavaRushProjectComponent.java:146)
at com.javarush.plugin.JavaRushProjectComponent.endFileTimeTracking(JavaRushProjectComponent.java:140)
at com.javarush.plugin.JavaRushProjectComponent.access$100(JavaRushProjectComponent.java:27)
at com.javarush.plugin.JavaRushProjectComponent$1$1.selectionChanged(JavaRushProjectComponent.java:81)
at sun.reflect.GeneratedMethodAccessor36.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.intellij.util.messages.impl.MessageBusConnectionImpl.deliverMessage(MessageBusConnectionImpl.java:117)
at com.intellij.util.messages.impl.MessageBusImpl.doPumpMessages(MessageBusImpl.java:381)
at com.intellij.util.messages.impl.MessageBusImpl.pumpMessages(MessageBusImpl.java:368)
at com.intellij.util.messages.impl.MessageBusImpl.pumpMessages(MessageBusImpl.java:354)
at com.intellij.util.messages.impl.MessageBusImpl.sendMessage(MessageBusImpl.java:347)
at com.intellij.util.messages.impl.MessageBusImpl.access$200(MessageBusImpl.java:42)
at com.intellij.util.messages.impl.MessageBusImpl$2.invoke(MessageBusImpl.java:230)
at com.sun.proxy.$Proxy121.selectionChanged(Unknown Source)
at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl.lambda$fireSelectionChanged$9(FileEditorManagerImpl.java:1580)
at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl$9$1.run(FileEditorManagerImpl.java:1057)
at com.intellij.openapi.wm.impl.FocusManagerImpl.flushRequest(FocusManagerImpl.java:646)
at com.intellij.openapi.wm.impl.FocusManagerImpl.flushNow(FocusManagerImpl.java:630)
at com.intellij.openapi.wm.impl.FocusManagerImpl.flushIdleRequests(FocusManagerImpl.java:600)
at com.intellij.openapi.wm.impl.FocusManagerImpl.access$200(FocusManagerImpl.java:60)
at com.intellij.openapi.wm.impl.FocusManagerImpl$IdleRunnable.runEdt(FocusManagerImpl.java:106)
at com.intellij.openapi.util.EdtRunnable.lambda$run$0(EdtRunnable.java:27)
at com.intellij.util.ui.UIUtil.invokeLaterIfNeeded(UIUtil.java:2493)
at com.intellij.openapi.util.EdtRunnable.run(EdtRunnable.java:25)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at com.intellij.util.concurrency.SchedulingWrapper$MyScheduledFutureTask.run(SchedulingWrapper.java:237)
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:80)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:843)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:679)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:391)
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)

Что это такое может быть?
  • ,

Ошибка выполнения в IDEA

Всем доброго. После обновления IDEA до 14.1.4 при запуске любой задачи на выполнение начала появляться такая ошибка:

Information:Using javac 1.7.0_75 to compile java sources
Information:10.08.2015 15:06 - Compilation completed with 1 error and 0 warnings in 5s 841ms
Error:Module 'JavaRushHomeWork' production: java.lang.IllegalArgumentException: No enum constant java.lang.annotation.RetentionPolicy.


Причем компиляция проходит безошибочно, ошибка появляется именно на стадии выполнения.
Плагин обновил. v.1.21. Ошибка никуда не ушла. Помогите (вдруг кто сталкивался) решением.

Plugin exception

JavaRush Plugin 1.21
IDEA 14.1.3 community and ultimate

Периодически при загрузке задач выдает эксепшн в плагине.

cannot share data context between Swing events; initial event count = 309368; current event count = 310172
java.lang.Throwable
at com.intellij.openapi.diagnostic.Logger.error(Logger.java:115)
at com.intellij.ide.impl.DataManagerImpl$MyDataContext.getData(DataManagerImpl.java:346)
at com.intellij.openapi.actionSystem.DataKey.getData(DataKey.java:75)
at com.intellij.openapi.actionSystem.AnActionEvent.getData(AnActionEvent.java:165)
at com.intellij.openapi.actionSystem.AnActionEvent.getProject(AnActionEvent.java:120)
at com.javarush.plugin.JavaRushTaskChooser.actionPerformed(JavaRushTaskChooser.java:209)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher$3.performAction(IdeKeyEventDispatcher.java:593)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.processAction(IdeKeyEventDispatcher.java:644)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.inInitState(IdeKeyEventDispatcher.java:483)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.dispatchKeyEvent(IdeKeyEventDispatcher.java:213)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:538)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:382)
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)

Ошибка в Intellij IDEA Error:Module 'JavaRushHomeWork' production: java.lang.IllegalArgumentException: No enum constant java.lang.annotation.RetentionPolicy.

После обновления Intellij IDEA появилась ошибка:
Information:Using javac 1.7.0_72 to compile java sources
Information:04.04.2015 22:03 — Compilation completed with 1 error and 0 warnings in 11s 353ms
Error:Module 'JavaRushHomeWork' production: java.lang.IllegalArgumentException: No enum constant java.lang.annotation.RetentionPolicy.: No enum constant java.lang.annotation.RetentionPolicy.
Как побороть даную ошибку?
  • ,

level08.lesson08.task02

Сервер не принимает задачу — что не так?

/* Удалить все числа больше 10
Создать множество чисел(Set), занести туда 20 различных чисел.
Удалить из множества все числа больше 10.
*/

package com.javarush.test.level08.lesson08.task02;

import java.util.HashSet;
import java.util.Iterator;
import java.util.Set;

public class Solution
{
public static HashSetcreateSet()
{

Setset = new HashSet();
for (int i = 0; i < 20; i++)
{
set.add(i);
}
return (HashSet) set;
}

public static HashSetremoveAllNumbersMoreThen10(HashSetset)
{

Iteratoriterator = set.iterator();
while (iterator.hasNext())
{
int a = iterator.next();
if (a > 10)iterator.remove();
}
return (HashSet)set;
}

public static void main(String[] args)
{
HashSetA = new HashSet();
A=createSet();
A=removeAllNumbersMoreThen10(A);
}
}