ClassNotFoundException with plugin 0.2.19367, Diana build 8823

I am getting the exception below when running IDEA after installing the Scala plugin. This is the first time I'm trying to use the plugin so I'm unsure if I'm missing something or if it is a bug.

java.lang.ClassNotFoundException: org.jetbrains.plugins.scala.compiler.ScalaBackendCompilerFactory
java.lang.RuntimeException: java.lang.ClassNotFoundException: org.jetbrains.plugins.scala.compiler.ScalaBackendCompilerFactory
at com.intellij.openapi.extensions.impl.ExtensionComponentAdapter.loadClass(ExtensionComponentAdapter.java:143)
at com.intellij.openapi.extensions.impl.ExtensionComponentAdapter.getComponentImplementation(ExtensionComponentAdapter.java:61)
at com.intellij.openapi.extensions.impl.ExtensionComponentAdapter.getComponentInstance(ExtensionComponentAdapter.java:67)
at com.intellij.openapi.extensions.impl.ExtensionComponentAdapter.getExtension(ExtensionComponentAdapter.java:106)
at com.intellij.openapi.extensions.impl.ExtensionPointImpl.processAdapters(ExtensionPointImpl.java:202)
at com.intellij.openapi.extensions.impl.ExtensionPointImpl.getExtensions(ExtensionPointImpl.java:151)
at com.intellij.openapi.extensions.Extensions.getExtensions(Extensions.java:98)
at com.intellij.openapi.extensions.Extensions.getExtensions(Extensions.java:92)
at com.intellij.compiler.CompilerConfigurationImpl.c(CompilerConfigurationImpl.java:159)
at com.intellij.compiler.CompilerConfigurationImpl.projectOpened(CompilerConfigurationImpl.java:13)
at com.intellij.openapi.project.impl.ProjectImpl.c(ProjectImpl.java:24)
at com.intellij.openapi.project.impl.ProjectImpl.access$300(ProjectImpl.java:40)
at com.intellij.openapi.project.impl.ProjectImpl$MyProjectManagerListener.projectOpened(ProjectImpl.java:7)
at com.intellij.openapi.project.impl.ProjectManagerImpl$2.projectOpened(ProjectManagerImpl.java:24)
at com.intellij.openapi.project.impl.ProjectManagerImpl.d(ProjectManagerImpl.java:314)
at com.intellij.openapi.project.impl.ProjectManagerImpl.openProject(ProjectManagerImpl.java:96)
at com.intellij.openapi.project.impl.ProjectManagerImpl.loadAndOpenProject(ProjectManagerImpl.java:271)
at com.intellij.openapi.project.impl.ProjectManagerImpl.loadAndOpenProject(ProjectManagerImpl.java:239)
at com.intellij.ide.impl.ProjectUtil.openProject(ProjectUtil.java:5)
at com.intellij.ide.RecentProjectsManager.doOpenProject(RecentProjectsManager.java:4)
at com.intellij.ide.RecentProjectsManagerBase$MyAppLifecycleListener.appStarting(RecentProjectsManagerBase.java:3)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.intellij.util.messages.impl.MessageBusConnectionImpl.deliverMessage(MessageBusConnectionImpl.java:101)
at com.intellij.util.messages.impl.MessageBusImpl.doPumpMessages(MessageBusImpl.java:181)
at com.intellij.util.messages.impl.MessageBusImpl.pumpMessages(MessageBusImpl.java:173)
at com.intellij.util.messages.impl.MessageBusImpl.sendMessage(MessageBusImpl.java:165)
at com.intellij.util.messages.impl.MessageBusImpl.access$000(MessageBusImpl.java:39)
at com.intellij.util.messages.impl.MessageBusImpl$2.invoke(MessageBusImpl.java:105)
at $Proxy33.appStarting(Unknown Source)
at com.intellij.idea.IdeaApplication.b(IdeaApplication.java:45)
at com.intellij.idea.IdeaApplication.access$400(IdeaApplication.java:22)
at com.intellij.idea.IdeaApplication$IdeStarter$3.run(IdeaApplication.java:12)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:1)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
at com.intellij.ide.IdeEventQueue.c(IdeEventQueue.java:145)
at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:212)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:101)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
Caused by: java.lang.ClassNotFoundException: org.jetbrains.plugins.scala.compiler.ScalaBackendCompilerFactory
at com.intellij.ide.plugins.cl.PluginClassLoader.loadClass(PluginClassLoader.java:54)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:247)
at com.intellij.openapi.extensions.impl.ExtensionComponentAdapter.loadClass(ExtensionComponentAdapter.java:140)
... 46 more

0
Avatar
Permanently deleted user

Hi, I just wanted to add, I also get this error.

I also get the a NullPointException now whenever I try to build a project (even an empty project) - see below.

Thus far I have tried 7.0.4 with scala-plugin 0.1; 8.0M1 with scala-plugin 0.1 and now 8.0b8823 with scala-plugin 0.2.19367. Would anybody who has successfully been able to use the scala plugin with some version of IDEA perhaps be able to provide some clear and concise instructions as to how to achieve this? At the moment I'm not that hassled about which version of scala or idea I use, I would just like to get it working :)

exception below:

Error during dispatching of java.awt.event.MouseEvent[MOUSE_RELEASED,(370,52),absolute(366,48),button=1,modifiers=Button1,clickCount=1] on frame0
java.lang.NullPointerException
at com.intellij.compiler.impl.javaCompiler.JavaCompiler.validateConfiguration(JavaCompiler.java:21)
at com.intellij.compiler.impl.CompileDriver.a(CompileDriver.java:444)
at com.intellij.compiler.impl.CompileDriver.a(CompileDriver.java:48)
at com.intellij.compiler.impl.CompileDriver.rebuild(CompileDriver.java:556)
at com.intellij.compiler.CompilerManagerImpl.rebuild(CompilerManagerImpl.java:5)
at com.intellij.compiler.actions.CompileProjectAction.doAction(CompileProjectAction.java:5)
at com.intellij.compiler.actions.CompileActionBase.actionPerformed(CompileActionBase.java:10)
at com.intellij.openapi.actionSystem.impl.ActionMenuItem$ActionTransmitter.actionPerformed(ActionMenuItem.java:12)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
at com.intellij.openapi.actionSystem.impl.ActionMenuItem.fireActionPerformed(ActionMenuItem.java:19)
at com.intellij.ui.plaf.beg.BegMenuItemUI.a(BegMenuItemUI.java:26)
at com.intellij.ui.plaf.beg.BegMenuItemUI.access$300(BegMenuItemUI.java:69)
at com.intellij.ui.plaf.beg.BegMenuItemUI$MyMenuDragMouseHandler.menuDragMouseReleased(BegMenuItemUI.java:7)
at javax.swing.JMenuItem.fireMenuDragMouseReleased(JMenuItem.java:568)
at javax.swing.JMenuItem.processMenuDragMouseEvent(JMenuItem.java:465)
at javax.swing.JMenuItem.processMouseEvent(JMenuItem.java:411)
at javax.swing.MenuSelectionManager.processMouseEvent(MenuSelectionManager.java:304)
at javax.swing.plaf.basic.BasicPopupMenuUI$MouseGrabber.eventDispatched(BasicPopupMenuUI.java:807)
at java.awt.Toolkit$SelectiveAWTEventListener.eventDispatched(Toolkit.java:2360)
at java.awt.Toolkit$ToolkitEventMulticaster.eventDispatched(Toolkit.java:2252)
at java.awt.Toolkit$ToolkitEventMulticaster.eventDispatched(Toolkit.java:2251)
at java.awt.Toolkit$ToolkitEventMulticaster.eventDispatched(Toolkit.java:2251)
at java.awt.Toolkit.notifyAWTEventListeners(Toolkit.java:2210)
at java.awt.Component.dispatchEventImpl(Component.java:4311)
at java.awt.Container.dispatchEventImpl(Container.java:2116)
at java.awt.Component.dispatchEvent(Component.java:4243)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3986)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916)
at java.awt.Container.dispatchEventImpl(Container.java:2102)
at java.awt.Window.dispatchEventImpl(Window.java:2440)
at java.awt.Component.dispatchEvent(Component.java:4243)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
at com.intellij.ide.IdeEventQueue.c(IdeEventQueue.java:145)
at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:69)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:101)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)

0
Avatar
Permanently deleted user

Hi people. I get both of the above exceptions as well. I've also reported them.

Thanks, Paul.

0
Avatar
Permanently deleted user

Both of these exceptions do indeed happen. Effectively both compiling and running anything is broken. :(

At least #8733 / 0.2.18767 seems to work fine.

0
Avatar
Permanently deleted user

Tuomas: is it still possible to download a copy of the 8733 build anywhere? I cannot see it on http://www.jetbrains.net/confluence/display/IDEADEV/Diana+EAP

0
Avatar
Permanently deleted user

Hello all.

Sorry for inconvenience, it's our fault. I've uploaded "clean" plugin version to our repository.

Ilya

0
Avatar
Permanently deleted user

I can confirm that this fixes the above exceptions.

Thanks, Paul.

0
Avatar
Permanently deleted user

Works fine now, thanks.

0
Avatar
Permanently deleted user

confirm this also works for me.

There was some wierdness when downloading the plugin, in that it the downloading dialog never disappeared (I clicked cancel after 10m and all that did was blank out the cancel button). However killing and restarting IDEA and the plugin seems to be installed.

Thanks for the fast work Ilya, much appreciated.

0

请先登录再写评论。