unable to run grails app within intellij

I imported a large project from Eclipse in intellij 7.0.4. This was running fine but now it does not run. I think this happened after I mistakenly deleted .IntelliJIdea70. I realized this upon starting intellij and finding a blank screen. I closed intellij, renamed .IntelliJIdea70 and restored the previously deleted .IntelliJIdea70 and restarted intellij. But I am not sure if this related to that.
When I open the project, intellij shows red icon at bottom -- internal IDE error -- This is the log in this error:

org/jetbrains/plugins/groovy/lang/psi/impl/statements/GrBlockStatement
java.lang.NoClassDefFoundError: org/jetbrains/plugins/groovy/lang/psi/impl/statements/GrBlockStatement
at com.siyeh.inspectorgroovy.confusing.GroovyEmptyStatementBodyInspection$Visitor.isEmpty(GroovyEmptyStatementBodyInspection.java:91)
at com.siyeh.inspectorgroovy.confusing.GroovyEmptyStatementBodyInspection$Visitor.visitIfStatement(GroovyEmptyStatementBodyInspection.java:76)
at org.jetbrains.plugins.groovy.lang.psi.impl.statements.GrIfStatementImpl.accept(GrIfStatementImpl.java:39)
at org.jetbrains.plugins.groovy.lang.psi.impl.GroovyPsiElementImpl.acceptChildren(GroovyPsiElementImpl.java:123)
at org.jetbrains.plugins.groovy.lang.psi.GroovyRecursiveElementVisitor.visitElement(GroovyRecursiveElementVisitor.java:9)
at org.jetbrains.plugins.groovy.lang.psi.GroovyElementVisitor.visitStatement(GroovyElementVisitor.java:50)
at org.jetbrains.plugins.groovy.lang.psi.GroovyElementVisitor.visitClosure(GroovyElementVisitor.java:54)
at org.jetbrains.plugins.groovy.lang.psi.impl.statements.blocks.GrClosableBlockImpl.accept(GrClosableBlockImpl.java:59)
at org.jetbrains.plugins.groovy.lang.psi.impl.GroovyPsiElementImpl.acceptChildren(GroovyPsiElementImpl.java:123)
at org.jetbrains.plugins.groovy.lang.psi.GroovyRecursiveElementVisitor.visitElement(GroovyRecursiveElementVisitor.java:9)
at org.jetbrains.plugins.groovy.lang.psi.GroovyElementVisitor.visitVariable(GroovyElementVisitor.java:406)
at org.jetbrains.plugins.groovy.lang.psi.GroovyElementVisitor.visitField(GroovyElementVisitor.java:326)
at org.jetbrains.plugins.groovy.lang.psi.impl.statements.GrFieldImpl.accept(GrFieldImpl.java:56)
at org.jetbrains.plugins.groovy.lang.psi.impl.GroovyPsiElementImpl.acceptChildren(GroovyPsiElementImpl.java:123)
at org.jetbrains.plugins.groovy.lang.psi.GroovyRecursiveElementVisitor.visitElement(GroovyRecursiveElementVisitor.java:9)
at org.jetbrains.plugins.groovy.lang.psi.GroovyElementVisitor.visitStatement(GroovyElementVisitor.java:50)
at org.jetbrains.plugins.groovy.lang.psi.GroovyElementVisitor.visitVariableDeclaration(GroovyElementVisitor.java:402)
at org.jetbrains.plugins.groovy.lang.psi.impl.statements.GrVariableDeclarationImpl.accept(GrVariableDeclarationImpl.java:34)
at org.jetbrains.plugins.groovy.lang.psi.impl.GroovyPsiElementImpl.acceptChildren(GroovyPsiElementImpl.java:123)
at org.jetbrains.plugins.groovy.lang.psi.GroovyRecursiveElementVisitor.visitElement(GroovyRecursiveElementVisitor.java:9)
at org.jetbrains.plugins.groovy.lang.psi.GroovyElementVisitor.visitTypeDefinitionBody(GroovyElementVisitor.java:330)
at org.jetbrains.plugins.groovy.lang.psi.impl.statements.typedef.bodies.GrTypeDefinitionBodyImpl.accept(GrTypeDefinitionBodyImpl.java:42)
at org.jetbrains.plugins.groovy.lang.psi.impl.GroovyPsiElementImpl.acceptChildren(GroovyPsiElementImpl.java:123)
at org.jetbrains.plugins.groovy.lang.psi.GroovyRecursiveElementVisitor.visitElement(GroovyRecursiveElementVisitor.java:9)
at org.jetbrains.plugins.groovy.lang.psi.GroovyElementVisitor.visitTypeDefinition(GroovyElementVisitor.java:242)
at org.jetbrains.plugins.groovy.lang.psi.impl.statements.typedef.GrTypeDefinitionImpl.accept(GrTypeDefinitionImpl.java:97)
at org.jetbrains.plugins.groovy.lang.psi.impl.GroovyFileBaseImpl.acceptChildren(GroovyFileBaseImpl.java:143)
at org.jetbrains.plugins.groovy.lang.psi.GroovyRecursiveElementVisitor.visitElement(GroovyRecursiveElementVisitor.java:9)
at org.jetbrains.plugins.groovy.lang.psi.GroovyElementVisitor.visitFile(GroovyElementVisitor.java:42)
at org.jetbrains.plugins.groovy.lang.psi.impl.GroovyFileBaseImpl.accept(GroovyFileBaseImpl.java:136)
at com.siyeh.inspectorgroovy.BaseInspection.checkFile(BaseInspection.java:81)
at com.intellij.codeInspection.LocalInspectionTool$1.visitFile(LocalInspectionTool.java:104)
at com.intellij.extapi.psi.PsiFileBase.accept(PsiFileBase.java:93)
at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass$1$1.run(LocalInspectionsPass.java:4)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:28)
at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass$1.run(LocalInspectionsPass.java:2)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at com.intellij.concurrency.JobImpl.scheduleAndWaitForResults(JobImpl.java:81)
at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.a(LocalInspectionsPass.java:63)
at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.a(LocalInspectionsPass.java:27)
at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.collectInformationWithProgress(LocalInspectionsPass.java:239)
at com.intellij.codeInsight.daemon.impl.ProgressableTextEditorHighlightingPass.doCollectInformation(ProgressableTextEditorHighlightingPass.java:18)
at com.intellij.codeHighlighting.TextEditorHighlightingPass.collectInformation(TextEditorHighlightingPass.java:50)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass$1$1.run(PassExecutorService.java:14)
at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:31)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass$1.run(PassExecutorService.java:1)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:28)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.run(PassExecutorService.java:3)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.ClassNotFoundException: org.jetbrains.plugins.groovy.lang.psi.impl.statements.GrBlockStatement
at com.intellij.util.lang.UrlClassLoader.loadClass(UrlClassLoader.java:82)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
... 56 more



When I rebuild the project, it says compilation completed successfully.
Now when I try to run the project, I get the following error:

Error running myproj: Grails are not configured

9 comments
Comment actions Permalink

Hello Al,

Please remove the InspectorGroovy plugin.

I imported a large project from Eclipse in intellij 7.0.4. This was
running fine but now it does not run. I think this happened after I
mistakenly deleted .IntelliJIdea70. I realized this upon starting
intellij and finding a blank screen. I closed intellij, renamed
.IntelliJIdea70 and restored the previously deleted .IntelliJIdea70
and restarted intellij. But I am not sure if this related to that.

When I open the project, intellij shows red icon at bottom -- internal
IDE error -- This is the log in this error:

org/jetbrains/plugins/groovy/lang/psi/impl/statements/GrBlockStatement
java.lang.NoClassDefFoundError:
org/jetbrains/plugins/groovy/lang/psi/impl/statements/GrBlockStatement
at
com.siyeh.inspectorgroovy.confusing.GroovyEmptyStatementBodyInspection
$Visitor.isEmpty(GroovyEmptyStatementBodyInspection.java:91)
at
com.siyeh.inspectorgroovy.confusing.GroovyEmptyStatementBodyInspection
$Visitor.visitIfStatement(GroovyEmptyStatementBodyInspection.java:76)
at
org.jetbrains.plugins.groovy.lang.psi.impl.statements.GrIfStatementImp
l.accept(GrIfStatementImpl.java:39)
at
org.jetbrains.plugins.groovy.lang.psi.impl.GroovyPsiElementImpl.accept
Children(GroovyPsiElementImpl.java:123)
at
org.jetbrains.plugins.groovy.lang.psi.GroovyRecursiveElementVisitor.vi
sitElement(GroovyRecursiveElementVisitor.java:9)
at
org.jetbrains.plugins.groovy.lang.psi.GroovyElementVisitor.visitStatem
ent(GroovyElementVisitor.java:50)
at
org.jetbrains.plugins.groovy.lang.psi.GroovyElementVisitor.visitClosur
e(GroovyElementVisitor.java:54)
at
org.jetbrains.plugins.groovy.lang.psi.impl.statements.blocks.GrClosabl
eBlockImpl.accept(GrClosableBlockImpl.java:59)
at
org.jetbrains.plugins.groovy.lang.psi.impl.GroovyPsiElementImpl.accept
Children(GroovyPsiElementImpl.java:123)
at
org.jetbrains.plugins.groovy.lang.psi.GroovyRecursiveElementVisitor.vi
sitElement(GroovyRecursiveElementVisitor.java:9)
at
org.jetbrains.plugins.groovy.lang.psi.GroovyElementVisitor.visitVariab
le(GroovyElementVisitor.java:406)
at
org.jetbrains.plugins.groovy.lang.psi.GroovyElementVisitor.visitField(
GroovyElementVisitor.java:326)
at
org.jetbrains.plugins.groovy.lang.psi.impl.statements.GrFieldImpl.acce
pt(GrFieldImpl.java:56)
at
org.jetbrains.plugins.groovy.lang.psi.impl.GroovyPsiElementImpl.accept
Children(GroovyPsiElementImpl.java:123)
at
org.jetbrains.plugins.groovy.lang.psi.GroovyRecursiveElementVisitor.vi
sitElement(GroovyRecursiveElementVisitor.java:9)
at
org.jetbrains.plugins.groovy.lang.psi.GroovyElementVisitor.visitStatem
ent(GroovyElementVisitor.java:50)
at
org.jetbrains.plugins.groovy.lang.psi.GroovyElementVisitor.visitVariab
leDeclaration(GroovyElementVisitor.java:402)
at
org.jetbrains.plugins.groovy.lang.psi.impl.statements.GrVariableDeclar
ationImpl.accept(GrVariableDeclarationImpl.java:34)
at
org.jetbrains.plugins.groovy.lang.psi.impl.GroovyPsiElementImpl.accept
Children(GroovyPsiElementImpl.java:123)
at
org.jetbrains.plugins.groovy.lang.psi.GroovyRecursiveElementVisitor.vi
sitElement(GroovyRecursiveElementVisitor.java:9)
at
org.jetbrains.plugins.groovy.lang.psi.GroovyElementVisitor.visitTypeDe
finitionBody(GroovyElementVisitor.java:330)
at
org.jetbrains.plugins.groovy.lang.psi.impl.statements.typedef.bodies.G
rTypeDefinitionBodyImpl.accept(GrTypeDefinitionBodyImpl.java:42)
at
org.jetbrains.plugins.groovy.lang.psi.impl.GroovyPsiElementImpl.accept
Children(GroovyPsiElementImpl.java:123)
at
org.jetbrains.plugins.groovy.lang.psi.GroovyRecursiveElementVisitor.vi
sitElement(GroovyRecursiveElementVisitor.java:9)
at
org.jetbrains.plugins.groovy.lang.psi.GroovyElementVisitor.visitTypeDe
finition(GroovyElementVisitor.java:242)
at
org.jetbrains.plugins.groovy.lang.psi.impl.statements.typedef.GrTypeDe
finitionImpl.accept(GrTypeDefinitionImpl.java:97)
at
org.jetbrains.plugins.groovy.lang.psi.impl.GroovyFileBaseImpl.acceptCh
ildren(GroovyFileBaseImpl.java:143)
at
org.jetbrains.plugins.groovy.lang.psi.GroovyRecursiveElementVisitor.vi
sitElement(GroovyRecursiveElementVisitor.java:9)
at
org.jetbrains.plugins.groovy.lang.psi.GroovyElementVisitor.visitFile(G
roovyElementVisitor.java:42)
at
org.jetbrains.plugins.groovy.lang.psi.impl.GroovyFileBaseImpl.accept(G
roovyFileBaseImpl.java:136)
at
com.siyeh.inspectorgroovy.BaseInspection.checkFile(BaseInspection.java
:81)
at
com.intellij.codeInspection.LocalInspectionTool$1.visitFile(LocalInspe
ctionTool.java:104)
at com.intellij.extapi.psi.PsiFileBase.accept(PsiFileBase.java:93)
at
com.intellij.codeInsight.daemon.impl.LocalInspectionsPass$1$1.run(Loca
lInspectionsPass.java:4)
at
com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessU
nderProgress(ProgressManagerImpl.java:28)
at
com.intellij.codeInsight.daemon.impl.LocalInspectionsPass$1.run(LocalI
nspectionsPass.java:2)
at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441
)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at
com.intellij.concurrency.JobImpl.scheduleAndWaitForResults(JobImpl.jav
a:81)
at
com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.a(LocalInspe
ctionsPass.java:63)
at
com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.a(LocalInspe
ctionsPass.java:27)
at
com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.collectInfor
mationWithProgress(LocalInspectionsPass.java:239)
at
com.intellij.codeInsight.daemon.impl.ProgressableTextEditorHighlightin
gPass.doCollectInformation(ProgressableTextEditorHighlightingPass.java
:18)
at
com.intellij.codeHighlighting.TextEditorHighlightingPass.collectInform
ation(TextEditorHighlightingPass.java:50)
at
com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass
$1$1.run(PassExecutorService.java:14)
at
com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(Ap
plicationImpl.java:31)
at
com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass
$1.run(PassExecutorService.java:1)
at
com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessU
nderProgress(ProgressManagerImpl.java:28)
at
com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass
.run(PassExecutorService.java:3)
at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441
)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecu
tor.java:885)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.
java:907)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.ClassNotFoundException:
org.jetbrains.plugins.groovy.lang.psi.impl.statements.GrBlockStatement
at
com.intellij.util.lang.UrlClassLoader.loadClass(UrlClassLoader.java:82
)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
... 56 more
When I rebuild the project, it says compilation completed
successfully. Now when I try to run the project, I get the following
error:

Error running myproj: Grails are not configured

--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0
Comment actions Permalink

I removed InspectGroovy plugin. This did not fix the problem. I exited and restarted intellij. When I tried to rebuild the project
the following exception is thrown:

Cannot run program "C:\Program Files\Java\jdk1.6.0_02\bin\java": CreateProcess error=87, The parameter is incorrect
com.intellij.execution.process.ProcessNotCreatedException: Cannot run program "C:\Program Files\Java\jdk1.6.0_02\bin\java": CreateProcess error=87, The parameter is incorrect
at com.intellij.execution.configurations.GeneralCommandLine.createProcess(GeneralCommandLine.java:124)
at org.jetbrains.plugins.groovy.compiler.GroovyCompiler.compile(GroovyCompiler.java:132)
at com.intellij.compiler.impl.CompileDriver.a(CompileDriver.java:789)
at com.intellij.compiler.impl.CompileDriver.a(CompileDriver.java:707)
at com.intellij.compiler.impl.CompileDriver.a(CompileDriver.java:532)
at com.intellij.compiler.impl.CompileDriver.a(CompileDriver.java:794)
at com.intellij.compiler.impl.CompileDriver.access$400(CompileDriver.java:728)
at com.intellij.compiler.impl.CompileDriver$4.run(CompileDriver.java:13)
at com.intellij.compiler.progress.CompilerTask.run(CompilerTask.java:188)
at com.intellij.openapi.progress.impl.ProgressManagerImpl$5.run(ProgressManagerImpl.java:3)
at com.intellij.openapi.progress.impl.ProgressManagerImpl$2.run(ProgressManagerImpl.java:10)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:28)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.runProcess(ProgressManagerImpl.java:48)
at com.intellij.openapi.progress.impl.ProgressManagerImpl$6.run(ProgressManagerImpl.java:5)
at com.intellij.openapi.application.impl.ApplicationImpl$5.run(ApplicationImpl.java:3)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
at java.lang.Thread.run(Thread.java:619)
at com.intellij.openapi.application.impl.ApplicationImpl$1$1.run(ApplicationImpl.java:11)
Caused by: java.io.IOException: Cannot run program "C:\Program Files\Java\jdk1.6.0_02\bin\java": CreateProcess error=87, The parameter is incorrect
at java.lang.ProcessBuilder.start(ProcessBuilder.java:459)
at java.lang.Runtime.exec(Runtime.java:593)
at java.lang.Runtime.exec(Runtime.java:509)
at


I get the same error when I try to run the project.
One strange thing I noticed:
Under the Project Setting Grails facet it asks for Choose Grails SDK specific for this module, the drop down box has only one option in red: . I clicked on New button next to it and pointed to grails install dir. It detected Grails 1.0.3 and added this to the drop down list. When I click apply after selecting grails 1.0.3 from the dropdown, it reverts back to . I tried to click Ok and even restarted Intellij but it has revereted back to ]]> although it added Grails 1.0.3 in the drop down list. Could be also the cause of the problem as this existed before removal of InspectrGroovy?

Thanks in advance.

0
Comment actions Permalink

Hello.

As for this exception it might be caused by very long classpath of your grails application. I can only suggest work-around which is in setting 'idea.dynamic.classpath' property in your $IDEA_DIR/bin/idea.properties to true.
This dropdown behaviour is definitely bug and it was fixed in JetGroovy version for Diana.

With best regards,
Ilya

0
Comment actions Permalink

Hi Ilya!
I seem to be having the same behavior in 8.0.1 and it is blaming it on inspectorgroovy.  The worst part for me is that it shows "Blame inspectorgroovy" greyed out thus not allowing me to submit the bug.  I tried scrolling up and down and going forward to the last page but nothing activated the "Blame" button.  I tried shutting it down and trying your fix but that didn't stop the exception from popping up.  Here is the full Exception:

org/jetbrains/plugins/groovy/lang/psi/impl/statements/GrBlockStatement
java.lang.NoClassDefFoundError: org/jetbrains/plugins/groovy/lang/psi/impl/statements/GrBlockStatement
    at com.siyeh.inspectorgroovy.confusing.GroovyEmptyStatementBodyInspection$Visitor.isEmpty(GroovyEmptyStatementBodyInspection.java:91)
    at com.siyeh.inspectorgroovy.confusing.GroovyEmptyStatementBodyInspection$Visitor.visitIfStatement(GroovyEmptyStatementBodyInspection.java:76)
    at org.jetbrains.plugins.groovy.lang.psi.impl.statements.GrIfStatementImpl.accept(GrIfStatementImpl.java:39)
    at org.jetbrains.plugins.groovy.lang.psi.impl.GroovyBaseElementImpl.acceptChildren(GroovyBaseElementImpl.java:119)
    at org.jetbrains.plugins.groovy.lang.psi.GroovyRecursiveElementVisitor.visitElement(GroovyRecursiveElementVisitor.java:9)
    at org.jetbrains.plugins.groovy.lang.psi.GroovyElementVisitor.visitStatement(GroovyElementVisitor.java:49)
    at org.jetbrains.plugins.groovy.lang.psi.GroovyElementVisitor.visitIfStatement(GroovyElementVisitor.java:333)
    at com.siyeh.inspectorgroovy.confusing.GroovyEmptyStatementBodyInspection$Visitor.visitIfStatement(GroovyEmptyStatementBodyInspection.java:72)
    at org.jetbrains.plugins.groovy.lang.psi.impl.statements.GrIfStatementImpl.accept(GrIfStatementImpl.java:39)
    at org.jetbrains.plugins.groovy.lang.psi.impl.GroovyBaseElementImpl.acceptChildren(GroovyBaseElementImpl.java:119)
    at org.jetbrains.plugins.groovy.lang.psi.GroovyRecursiveElementVisitor.visitElement(GroovyRecursiveElementVisitor.java:9)
    at org.jetbrains.plugins.groovy.lang.psi.GroovyElementVisitor.visitStatement(GroovyElementVisitor.java:49)
    at org.jetbrains.plugins.groovy.lang.psi.GroovyElementVisitor.visitIfStatement(GroovyElementVisitor.java:333)
    at com.siyeh.inspectorgroovy.confusing.GroovyEmptyStatementBodyInspection$Visitor.visitIfStatement(GroovyEmptyStatementBodyInspection.java:72)
    at org.jetbrains.plugins.groovy.lang.psi.impl.statements.GrIfStatementImpl.accept(GrIfStatementImpl.java:39)
    at org.jetbrains.plugins.groovy.lang.psi.impl.GroovyBaseElementImpl.acceptChildren(GroovyBaseElementImpl.java:119)
    at org.jetbrains.plugins.groovy.lang.psi.GroovyRecursiveElementVisitor.visitElement(GroovyRecursiveElementVisitor.java:9)
    at org.jetbrains.plugins.groovy.lang.psi.GroovyElementVisitor.visitStatement(GroovyElementVisitor.java:49)
    at org.jetbrains.plugins.groovy.lang.psi.GroovyElementVisitor.visitClosure(GroovyElementVisitor.java:53)
    at org.jetbrains.plugins.groovy.lang.psi.impl.statements.blocks.GrClosableBlockImpl.accept(GrClosableBlockImpl.java:64)
    at org.jetbrains.plugins.groovy.lang.psi.impl.GroovyBaseElementImpl.acceptChildren(GroovyBaseElementImpl.java:119)
    at org.jetbrains.plugins.groovy.lang.psi.GroovyRecursiveElementVisitor.visitElement(GroovyRecursiveElementVisitor.java:9)
    at org.jetbrains.plugins.groovy.lang.psi.GroovyElementVisitor.visitVariable(GroovyElementVisitor.java:401)
    at org.jetbrains.plugins.groovy.lang.psi.GroovyElementVisitor.visitField(GroovyElementVisitor.java:321)
    at org.jetbrains.plugins.groovy.lang.psi.impl.statements.GrFieldImpl.accept(GrFieldImpl.java:63)
    at org.jetbrains.plugins.groovy.lang.psi.impl.GroovyBaseElementImpl.acceptChildren(GroovyBaseElementImpl.java:119)
    at org.jetbrains.plugins.groovy.lang.psi.GroovyRecursiveElementVisitor.visitElement(GroovyRecursiveElementVisitor.java:9)
    at org.jetbrains.plugins.groovy.lang.psi.GroovyElementVisitor.visitStatement(GroovyElementVisitor.java:49)
    at org.jetbrains.plugins.groovy.lang.psi.GroovyElementVisitor.visitVariableDeclaration(GroovyElementVisitor.java:397)
    at org.jetbrains.plugins.groovy.lang.psi.impl.statements.GrVariableDeclarationImpl.accept(GrVariableDeclarationImpl.java:39)
    at org.jetbrains.plugins.groovy.lang.psi.impl.GroovyBaseElementImpl.acceptChildren(GroovyBaseElementImpl.java:119)
    at org.jetbrains.plugins.groovy.lang.psi.GroovyRecursiveElementVisitor.visitElement(GroovyRecursiveElementVisitor.java:9)
    at org.jetbrains.plugins.groovy.lang.psi.GroovyElementVisitor.visitTypeDefinitionBody(GroovyElementVisitor.java:325)
    at org.jetbrains.plugins.groovy.lang.psi.impl.statements.typedef.bodies.GrTypeDefinitionBodyImpl.accept(GrTypeDefinitionBodyImpl.java:42)
    at org.jetbrains.plugins.groovy.lang.psi.impl.GroovyBaseElementImpl.acceptChildren(GroovyBaseElementImpl.java:119)
    at org.jetbrains.plugins.groovy.lang.psi.GroovyRecursiveElementVisitor.visitElement(GroovyRecursiveElementVisitor.java:9)
    at org.jetbrains.plugins.groovy.lang.psi.GroovyElementVisitor.visitTypeDefinition(GroovyElementVisitor.java:237)
    at org.jetbrains.plugins.groovy.lang.psi.impl.statements.typedef.GrTypeDefinitionImpl.accept(GrTypeDefinitionImpl.java:106)
    at org.jetbrains.plugins.groovy.lang.psi.impl.GroovyFileBaseImpl.acceptChildren(GroovyFileBaseImpl.java:143)
    at org.jetbrains.plugins.groovy.lang.psi.GroovyRecursiveElementVisitor.visitElement(GroovyRecursiveElementVisitor.java:9)
    at org.jetbrains.plugins.groovy.lang.psi.GroovyElementVisitor.visitFile(GroovyElementVisitor.java:41)
    at org.jetbrains.plugins.groovy.lang.psi.impl.GroovyFileBaseImpl.accept(GroovyFileBaseImpl.java:136)
    at com.siyeh.inspectorgroovy.BaseInspection.checkFile(BaseInspection.java:81)
    at com.intellij.codeInspection.LocalInspectionTool$1.visitFile(LocalInspectionTool.java:58)
    at com.intellij.extapi.psi.PsiFileBase.accept(PsiFileBase.java:1)
    at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass$1$1.run(LocalInspectionsPass.java:7)
    at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:13)
    at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass$1.process(LocalInspectionsPass.java:2)
    at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass$1.process(LocalInspectionsPass.java:3)
    at com.intellij.concurrency.JobUtil$1.run(JobUtil.java:44)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
    at java.util.concurrent.FutureTask.run(FutureTask.java:138)
    at com.intellij.concurrency.JobImpl.scheduleAndWaitForResults(JobImpl.java:32)
    at com.intellij.concurrency.JobUtil.invokeConcurrentlyForAll(JobUtil.java:51)
    at com.intellij.concurrency.JobUtil.invokeConcurrentlyForAll(JobUtil.java:27)
    at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.a(LocalInspectionsPass.java:67)
    at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.a(LocalInspectionsPass.java:217)
    at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.collectInformationWithProgress(LocalInspectionsPass.java:231)
    at com.intellij.codeInsight.daemon.impl.ProgressableTextEditorHighlightingPass.doCollectInformation(ProgressableTextEditorHighlightingPass.java:15)
    at com.intellij.codeHighlighting.TextEditorHighlightingPass.collectInformation(TextEditorHighlightingPass.java:13)
    at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass$1$1.run(PassExecutorService.java:14)
    at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:165)
    at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass$1.run(PassExecutorService.java:2)
    at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:13)
    at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.run(PassExecutorService.java:12)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
    at java.util.concurrent.FutureTask.run(FutureTask.java:138)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.ClassNotFoundException: org.jetbrains.plugins.groovy.lang.psi.impl.statements.GrBlockStatement
    at com.intellij.ide.plugins.cl.PluginClassLoader.loadClass(PluginClassLoader.java:54)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
    ... 72 more



java.lang.ClassNotFoundException: org.jetbrains.plugins.groovy.lang.psi.impl.statements.GrBlockStatement
    at com.intellij.ide.plugins.cl.PluginClassLoader.loadClass(PluginClassLoader.java:54)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
    at com.siyeh.inspectorgroovy.confusing.GroovyEmptyStatementBodyInspection$Visitor.isEmpty(GroovyEmptyStatementBodyInspection.java:91)
    at com.siyeh.inspectorgroovy.confusing.GroovyEmptyStatementBodyInspection$Visitor.visitIfStatement(GroovyEmptyStatementBodyInspection.java:76)
    at org.jetbrains.plugins.groovy.lang.psi.impl.statements.GrIfStatementImpl.accept(GrIfStatementImpl.java:39)
    at org.jetbrains.plugins.groovy.lang.psi.impl.GroovyBaseElementImpl.acceptChildren(GroovyBaseElementImpl.java:119)
    at org.jetbrains.plugins.groovy.lang.psi.GroovyRecursiveElementVisitor.visitElement(GroovyRecursiveElementVisitor.java:9)
    at org.jetbrains.plugins.groovy.lang.psi.GroovyElementVisitor.visitStatement(GroovyElementVisitor.java:49)
    at org.jetbrains.plugins.groovy.lang.psi.GroovyElementVisitor.visitIfStatement(GroovyElementVisitor.java:333)
    at com.siyeh.inspectorgroovy.confusing.GroovyEmptyStatementBodyInspection$Visitor.visitIfStatement(GroovyEmptyStatementBodyInspection.java:72)
    at org.jetbrains.plugins.groovy.lang.psi.impl.statements.GrIfStatementImpl.accept(GrIfStatementImpl.java:39)
    at org.jetbrains.plugins.groovy.lang.psi.impl.GroovyBaseElementImpl.acceptChildren(GroovyBaseElementImpl.java:119)
    at org.jetbrains.plugins.groovy.lang.psi.GroovyRecursiveElementVisitor.visitElement(GroovyRecursiveElementVisitor.java:9)
    at org.jetbrains.plugins.groovy.lang.psi.GroovyElementVisitor.visitStatement(GroovyElementVisitor.java:49)
    at org.jetbrains.plugins.groovy.lang.psi.GroovyElementVisitor.visitIfStatement(GroovyElementVisitor.java:333)
    at com.siyeh.inspectorgroovy.confusing.GroovyEmptyStatementBodyInspection$Visitor.visitIfStatement(GroovyEmptyStatementBodyInspection.java:72)
    at org.jetbrains.plugins.groovy.lang.psi.impl.statements.GrIfStatementImpl.accept(GrIfStatementImpl.java:39)
    at org.jetbrains.plugins.groovy.lang.psi.impl.GroovyBaseElementImpl.acceptChildren(GroovyBaseElementImpl.java:119)
    at org.jetbrains.plugins.groovy.lang.psi.GroovyRecursiveElementVisitor.visitElement(GroovyRecursiveElementVisitor.java:9)
    at org.jetbrains.plugins.groovy.lang.psi.GroovyElementVisitor.visitStatement(GroovyElementVisitor.java:49)
    at org.jetbrains.plugins.groovy.lang.psi.GroovyElementVisitor.visitClosure(GroovyElementVisitor.java:53)
    at org.jetbrains.plugins.groovy.lang.psi.impl.statements.blocks.GrClosableBlockImpl.accept(GrClosableBlockImpl.java:64)
    at org.jetbrains.plugins.groovy.lang.psi.impl.GroovyBaseElementImpl.acceptChildren(GroovyBaseElementImpl.java:119)
    at org.jetbrains.plugins.groovy.lang.psi.GroovyRecursiveElementVisitor.visitElement(GroovyRecursiveElementVisitor.java:9)
    at org.jetbrains.plugins.groovy.lang.psi.GroovyElementVisitor.visitVariable(GroovyElementVisitor.java:401)
    at org.jetbrains.plugins.groovy.lang.psi.GroovyElementVisitor.visitField(GroovyElementVisitor.java:321)
    at org.jetbrains.plugins.groovy.lang.psi.impl.statements.GrFieldImpl.accept(GrFieldImpl.java:63)
    at org.jetbrains.plugins.groovy.lang.psi.impl.GroovyBaseElementImpl.acceptChildren(GroovyBaseElementImpl.java:119)
    at org.jetbrains.plugins.groovy.lang.psi.GroovyRecursiveElementVisitor.visitElement(GroovyRecursiveElementVisitor.java:9)
    at org.jetbrains.plugins.groovy.lang.psi.GroovyElementVisitor.visitStatement(GroovyElementVisitor.java:49)
    at org.jetbrains.plugins.groovy.lang.psi.GroovyElementVisitor.visitVariableDeclaration(GroovyElementVisitor.java:397)
    at org.jetbrains.plugins.groovy.lang.psi.impl.statements.GrVariableDeclarationImpl.accept(GrVariableDeclarationImpl.java:39)
    at org.jetbrains.plugins.groovy.lang.psi.impl.GroovyBaseElementImpl.acceptChildren(GroovyBaseElementImpl.java:119)
    at org.jetbrains.plugins.groovy.lang.psi.GroovyRecursiveElementVisitor.visitElement(GroovyRecursiveElementVisitor.java:9)
    at org.jetbrains.plugins.groovy.lang.psi.GroovyElementVisitor.visitTypeDefinitionBody(GroovyElementVisitor.java:325)
    at org.jetbrains.plugins.groovy.lang.psi.impl.statements.typedef.bodies.GrTypeDefinitionBodyImpl.accept(GrTypeDefinitionBodyImpl.java:42)
    at org.jetbrains.plugins.groovy.lang.psi.impl.GroovyBaseElementImpl.acceptChildren(GroovyBaseElementImpl.java:119)
    at org.jetbrains.plugins.groovy.lang.psi.GroovyRecursiveElementVisitor.visitElement(GroovyRecursiveElementVisitor.java:9)
    at org.jetbrains.plugins.groovy.lang.psi.GroovyElementVisitor.visitTypeDefinition(GroovyElementVisitor.java:237)
    at org.jetbrains.plugins.groovy.lang.psi.impl.statements.typedef.GrTypeDefinitionImpl.accept(GrTypeDefinitionImpl.java:106)
    at org.jetbrains.plugins.groovy.lang.psi.impl.GroovyFileBaseImpl.acceptChildren(GroovyFileBaseImpl.java:143)
    at org.jetbrains.plugins.groovy.lang.psi.GroovyRecursiveElementVisitor.visitElement(GroovyRecursiveElementVisitor.java:9)
    at org.jetbrains.plugins.groovy.lang.psi.GroovyElementVisitor.visitFile(GroovyElementVisitor.java:41)
    at org.jetbrains.plugins.groovy.lang.psi.impl.GroovyFileBaseImpl.accept(GroovyFileBaseImpl.java:136)
    at com.siyeh.inspectorgroovy.BaseInspection.checkFile(BaseInspection.java:81)
    at com.intellij.codeInspection.LocalInspectionTool$1.visitFile(LocalInspectionTool.java:58)
    at com.intellij.extapi.psi.PsiFileBase.accept(PsiFileBase.java:1)
    at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass$1$1.run(LocalInspectionsPass.java:7)
    at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:13)
    at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass$1.process(LocalInspectionsPass.java:2)
    at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass$1.process(LocalInspectionsPass.java:3)
    at com.intellij.concurrency.JobUtil$1.run(JobUtil.java:44)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
    at java.util.concurrent.FutureTask.run(FutureTask.java:138)
    at com.intellij.concurrency.JobImpl.scheduleAndWaitForResults(JobImpl.java:32)
    at com.intellij.concurrency.JobUtil.invokeConcurrentlyForAll(JobUtil.java:51)
    at com.intellij.concurrency.JobUtil.invokeConcurrentlyForAll(JobUtil.java:27)
    at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.a(LocalInspectionsPass.java:67)
    at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.a(LocalInspectionsPass.java:217)
    at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.collectInformationWithProgress(LocalInspectionsPass.java:231)
    at com.intellij.codeInsight.daemon.impl.ProgressableTextEditorHighlightingPass.doCollectInformation(ProgressableTextEditorHighlightingPass.java:15)
    at com.intellij.codeHighlighting.TextEditorHighlightingPass.collectInformation(TextEditorHighlightingPass.java:13)
    at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass$1$1.run(PassExecutorService.java:14)
    at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:165)
    at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass$1.run(PassExecutorService.java:2)
    at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:13)
    at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.run(PassExecutorService.java:12)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
    at java.util.concurrent.FutureTask.run(FutureTask.java:138)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    at java.lang.Thread.run(Thread.java:619)

0
Comment actions Permalink

Hello Steve,

Remove the InspectorGroovy plugin. All its functionality is bundled in the
current Groovy plugin.

I seem to be having the same behavior in 8.0.1 and it is blaming it on
inspectorgroovy. The worst part for me is that it shows "Blame
inspectorgroovy" greyed out thus not allowing me to submit the bug. I
tried scrolling up and down and going forward to the last page but
nothing activated the "Blam

e" button. I tried shutting it down and trying your fix but that
didn't stop the exception from popping up. Here is the full
Exception:

org/jetbrains/plugins/groovy/lang/psi/impl/statements/GrBlockStatement

java.lang.NoClassDefFoundError:
org/jetbrains/plugins/groovy/lang/psi/impl/statements/GrBlockStatement

at
com.siyeh.inspectorgroovy.confusing.GroovyEmptyStatementBodyInspection
$Visitor.isEmpty(GroovyEmptyStatementBodyInsp
ection.java:91)
at
com.siyeh.inspectorgroovy.confusing.GroovyEmptyStatementBodyInspection
$Visitor.visitIfStatement(GroovyEmptyStatementBodyInspection.java:76)\
\ at
org.jetbrains.plugins.groovy.lang.psi.impl.statements.GrIfStatementImp
l.accept(GrIfStatementImpl.java:39)
at org.jetbrai
ns.plugins.groovy.lang.psi.impl.GroovyBaseElementImpl.acceptChildren(G
roovyBaseElementImpl.java:119)
at
org.jetbrains.plugins.groovy.lang.psi.GroovyRecursiveElementVisitor.vi
sitElement(GroovyRecursiveElementVisitor.java:9)
at
org.jetbrains.plugins.groovy.lang.psi.GroovyElementVisitor.vis
itStatement(GroovyElementVisitor.java:49)
at
org.jetbrains.plugins.groovy.lang.psi.GroovyElementVisitor.visitIfStat
ement(GroovyElementVisitor.java:333)
at
com.siyeh.inspectorgroovy.confusing.GroovyEmptyStatementBodyInspection
$Visitor.visitIfStatement(GroovyEmptyStatementBodyInspection.ja
va:72)
at
org.jetbrains.plugins.groovy.lang.psi.impl.statements.GrIfStatementImp
l.accept(GrIfStatementImpl.java:39)
at
org.jetbrains.plugins.groovy.lang.psi.impl.GroovyBaseElementImpl.accep
tChildren(GroovyBaseElementImpl.java:119)
at
org.jetbrains.plugins.groovy.lang.psi.GroovyRecu
rsiveElementVisitor.visitElement(GroovyRecursiveElementVisitor.java:9)

at
org.jetbrains.plugins.groovy.lang.psi.GroovyElementVisitor.visitStatem
ent(GroovyElementVisitor.java:49)
at
org.jetbrains.plugins.groovy.lang.psi.GroovyElementVisitor.visitIfStat
ement(GroovyElementVisitor.java:333)\
\ at
com.siyeh.inspectorgroovy.confusing.GroovyEmptyStatementBodyInspection
$Visitor.visitIfStatement(GroovyEmptyStatementBodyInspection.java:72)\
\ at
org.jetbrains.plugins.groovy.lang.psi.impl.statements.GrIfStatementImp
l.accept(GrIfStatementImpl.java:39)
at
org.jetbrains.plugins.groov
y.lang.psi.impl.GroovyBaseElementImpl.acceptChildren(GroovyBaseElement
Impl.java:119)
at
org.jetbrains.plugins.groovy.lang.psi.GroovyRecursiveElementVisitor.vi
sitElement(GroovyRecursiveElementVisitor.java:9)
at
org.jetbrains.plugins.groovy.lang.psi.GroovyElementVisitor.visitStatem
ent(Groo
vyElementVisitor.java:49)
at
org.jetbrains.plugins.groovy.lang.psi.GroovyElementVisitor.visitClosur
e(GroovyElementVisitor.java:53)
at
org.jetbrains.plugins.groovy.lang.psi.impl.statements.blocks.GrClosabl
eBlockImpl.accept(GrClosableBlockImpl.java:64)
at
org.jetbrains.plugins.groovy
lang.psi.impl.GroovyBaseElementImpl.acceptChildren(GroovyBaseElementIm
pl.java:119)
at
org.jetbrains.plugins.groovy.lang.psi.GroovyRecursiveElementVisitor.vi
sitElement(GroovyRecursiveElementVisitor.java:9)
at
org.jetbrains.plugins.groovy.lang.psi.GroovyElementVisitor.visitVariab
le(Groovy
ElementVisitor.java:401)
at
org.jetbrains.plugins.groovy.lang.psi.GroovyElementVisitor.visitField(
GroovyElementVisitor.java:321)
at
org.jetbrains.plugins.groovy.lang.psi.impl.statements.GrFieldImpl.acce
pt(GrFieldImpl.java:63)
at
org.jetbrains.plugins.groovy.lang.psi.impl.GroovyBase
ElementImpl.acceptChildren(GroovyBaseElementImpl.java:119)
at
org.jetbrains.plugins.groovy.lang.psi.GroovyRecursiveElementVisitor.vi
sitElement(GroovyRecursiveElementVisitor.java:9)
at
org.jetbrains.plugins.groovy.lang.psi.GroovyElementVisitor.visitStatem
ent(GroovyElementVisitor.java:49)\
\ at
org.jetbrains.plugins.groovy.lang.psi.GroovyElementVisitor.visitVariab
leDeclaration(GroovyElementVisitor.java:397)
at
org.jetbrains.plugins.groovy.lang.psi.impl.statements.GrVariableDeclar
ationImpl.accept(GrVariableDeclarationImpl.java:39)
at
org.jetbrains.plugins.groovy.lang.ps
i.impl.GroovyBaseElementImpl.acceptChildren(GroovyBaseElementImpl.java
:119)
at
org.jetbrains.plugins.groovy.lang.psi.GroovyRecursiveElementVisitor.vi
sitElement(GroovyRecursiveElementVisitor.java:9)
at
org.jetbrains.plugins.groovy.lang.psi.GroovyElementVisitor.visitTypeDe
finitionBody(Groo
vyElementVisitor.java:325)
at
org.jetbrains.plugins.groovy.lang.psi.impl.statements.typedef.bodies.G
rTypeDefinitionBodyImpl.accept(GrTypeDefinitionBodyImpl.java:42)

at
org.jetbrains.plugins.groovy.lang.psi.impl.GroovyBaseElementImpl.accep
tChildren(GroovyBaseElementImpl.java:119)
at
org.jetbrains.plugins.groovy.lang.psi.GroovyRecursiveElementVisitor.v
isitElement(GroovyRecursiveElementVisitor.java:9)
at
org.jetbrains.plugins.groovy.lang.psi.GroovyElementVisitor.visitTypeDe
finition(GroovyElementVisitor.java:237)
at
org.jetbrains.plugins.groovy.lang.psi.impl.statement
s.typedef.GrTypeDefinitionImpl.accept(GrTypeDefinitionImpl.java:106)

at
org.jetbrains.plugins.groovy.lang.psi.impl.GroovyFileBaseImpl.acceptCh
ildren(GroovyFileBaseImpl.java:143)
at
org.jetbrains.plugins.groovy.lang.psi.GroovyRecursiveElementVisitor.vi
sitElement(GroovyRecursiveElementVisi
tor.java:9)
at
org.jetbrains.plugins.groovy.lang.psi.GroovyElementVisitor.visitFile(G
roovyElementVisitor.java:41)
at
org.jetbrains.plugins.groovy.lang.psi.impl.GroovyFileBaseImpl.accept(G
roovyFileBaseImpl.java:136)
at
com.siyeh.inspectorgroovy.BaseInspection.checkFile(BaseInspectio
n.java:81)
at
com.intellij.codeInspection.LocalInspectionTool$1.visitFile(LocalInspe
ctionTool.java:58)
at
com.intellij.extapi.psi.PsiFileBase.accept(PsiFileBase.java:1)

at
com.intellij.codeInsight.daemon.impl.LocalInspectionsPass$1$1.run(Loca
lInspectionsPass.java:7)
at com.in
tellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderPr
ogress(ProgressManagerImpl.java:13)
at
com.intellij.codeInsight.daemon.impl.LocalInspectionsPass$1.process(Lo
calInspectionsPass.java:2)
at
com.intellij.codeInsight.daemon.impl.LocalInspectionsPass$1.process(Lo
calInspec
tionsPass.java:3)
at
com.intellij.concurrency.JobUtil$1.run(JobUtil.java:44)
at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441
)
at
java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)

at java.util.concurrent.FutureTask.run(FutureTask.java
:138)
at
com.intellij.concurrency.JobImpl.scheduleAndWaitForResults(JobImpl.jav
a:32)
at
com.intellij.concurrency.JobUtil.invokeConcurrentlyForAll(JobUtil.java
:51)
at
com.intellij.concurrency.JobUtil.invokeConcurrentlyForAll(JobUtil.java
:27)
at com.intellij.codeInsight.daemon.
impl.LocalInspectionsPass.a(LocalInspectionsPass.java:67)
at
com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.a(LocalInspe
ctionsPass.java:217)
at
com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.collectInfor
mationWithProgress(LocalInspectionsPass.java:231)
at com.
intellij.codeInsight.daemon.impl.ProgressableTextEditorHighlightingPas
s.doCollectInformation(ProgressableTextEditorHighlightingPass.java:15)

at
com.intellij.codeHighlighting.TextEditorHighlightingPass.collectInform
ation(TextEditorHighlightingPass.java:13)
at
com.intellij.codeInsight.daem
on.impl.PassExecutorService$ScheduledPass$1$1.run(PassExecutorService.
java:14)
at
com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(Ap
plicationImpl.java:165)
at
com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass
$1.run(PassExecutorService.java:2)

at
com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessU
nderProgress(ProgressManagerImpl.java:13)
at
com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass
.run(PassExecutorService.java:12)
at
java.util.concurrent.Executors$RunnableAdapter.call(Executors
java:441)
at
java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)

at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecu
tor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worke
r.run(ThreadPoolExecutor.java:908)
at
java.lang.Thread.run(Thread.java:619)
Caused by:
java.lang.ClassNotFoundException:
org.jetbrains.plugins.groovy.lang.psi.impl.statements.GrBlockStatement

at
com.intellij.ide.plugins.cl.PluginClassLoader.loadClass(PluginClassLoa
der.java:54)
at
java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)

... 72 more
java.lang.ClassNotFoundException:
org.jetbrains.plugins.groovy.lang.psi.impl.statements.GrBlockStatement

at
com.intellij.ide.plugins.cl.PluginClassLoader.loadClass(PluginClassLoa
der.java:54)
at
java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at
java.lang.ClassLoader.loadClass
Internal(ClassLoader.java:320)
at
com.siyeh.inspectorgroovy.confusing.GroovyEmptyStatementBodyInspection
$Visitor.isEmpty(GroovyEmptyStatementBodyInspection.java:91)
at
com.siyeh.inspectorgroovy.confusing.GroovyEmptyStatementBodyInspection
$Visitor.visitIfStatement(GroovyEmptyStatementBody
Inspection.java:76)
at
org.jetbrains.plugins.groovy.lang.psi.impl.statements.GrIfStatementImp
l.accept(GrIfStatementImpl.java:39)
at
org.jetbrains.plugins.groovy.lang.psi.impl.GroovyBaseElementImpl.accep
tChildren(GroovyBaseElementImpl.java:119)
at
org.jetbrains.plugins.groovy.lang.p
si.GroovyRecursiveElementVisitor.visitElement(GroovyRecursiveElementVi
sitor.java:9)
at
org.jetbrains.plugins.groovy.lang.psi.GroovyElementVisitor.visitStatem
ent(GroovyElementVisitor.java:49)
at
org.jetbrains.plugins.groovy.lang.psi.GroovyElementVisitor.visitIfStat
ement(GroovyElementVisit
or.java:333)
at
com.siyeh.inspectorgroovy.confusing.GroovyEmptyStatementBodyInspection
$Visitor.visitIfStatement(GroovyEmptyStatementBodyInspection.java:72)\
\ at
org.jetbrains.plugins.groovy.lang.psi.impl.statements.GrIfStatementImp
l.accept(GrIfStatementImpl.java:39)
at org.jetbrains.
plugins.groovy.lang.psi.impl.GroovyBaseElementImpl.acceptChildren(Groo
vyBaseElementImpl.java:119)
at
org.jetbrains.plugins.groovy.lang.psi.GroovyRecursiveElementVisitor.vi
sitElement(GroovyRecursiveElementVisitor.java:9)
at
org.jetbrains.plugins.groovy.lang.psi.GroovyElementVisitor.visitS
tatement(GroovyElementVisitor.java:49)
at
org.jetbrains.plugins.groovy.lang.psi.GroovyElementVisitor.visitIfStat
ement(GroovyElementVisitor.java:333)
at
com.siyeh.inspectorgroovy.confusing.GroovyEmptyStatementBodyInspection
$Visitor.visitIfStatement(GroovyEmptyStatementBodyInspection.java:
72)
at
org.jetbrains.plugins.groovy.lang.psi.impl.statements.GrIfStatementImp
l.accept(GrIfStatementImpl.java:39)
at
org.jetbrains.plugins.groovy.lang.psi.impl.GroovyBaseElementImpl.accep
tChildren(GroovyBaseElementImpl.java:119)
at
org.jetbrains.plugins.groovy.lang.psi.GroovyRecursi
veElementVisitor.visitElement(GroovyRecursiveElementVisitor.java:9)

at
org.jetbrains.plugins.groovy.lang.psi.GroovyElementVisitor.visitStatem
ent(GroovyElementVisitor.java:49)
at
org.jetbrains.plugins.groovy.lang.psi.GroovyElementVisitor.visitClosur
e(GroovyElementVisitor.java:53)
at
org.jetbrains.plugins.groovy.lang.psi.impl.statements.blocks.GrClosab
leBlockImpl.accept(GrClosableBlockImpl.java:64)
at
org.jetbrains.plugins.groovy.lang.psi.impl.GroovyBaseElementImpl.accep
tChildren(GroovyBaseElementImpl.java:119)
at
org.jetbrains.plugins.groovy.lang.psi.GroovyRecursiv
eElementVisitor.visitElement(GroovyRecursiveElementVisitor.java:9)

at
org.jetbrains.plugins.groovy.lang.psi.GroovyElementVisitor.visitVariab
le(GroovyElementVisitor.java:401)
at
org.jetbrains.plugins.groovy.lang.psi.GroovyElementVisitor.visitField(
GroovyElementVisitor.java:321)
at o
rg.jetbrains.plugins.groovy.lang.psi.impl.statements.GrFieldImpl.accep
t(GrFieldImpl.java:63)
at
org.jetbrains.plugins.groovy.lang.psi.impl.GroovyBaseElementImpl.accep
tChildren(GroovyBaseElementImpl.java:119)
at
org.jetbrains.plugins.groovy.lang.psi.GroovyRecursiveElementVisitor.vi
sitElem
ent(GroovyRecursiveElementVisitor.java:9)
at
org.jetbrains.plugins.groovy.lang.psi.GroovyElementVisitor.visitStatem
ent(GroovyElementVisitor.java:49)
at
org.jetbrains.plugins.groovy.lang.psi.GroovyElementVisitor.visitVariab
leDeclaration(GroovyElementVisitor.java:397)
at org.jetbrain
s.plugins.groovy.lang.psi.impl.statements.GrVariableDeclarationImpl.ac
cept(GrVariableDeclarationImpl.java:39)
at
org.jetbrains.plugins.groovy.lang.psi.impl.GroovyBaseElementImpl.accep
tChildren(GroovyBaseElementImpl.java:119)
at
org.jetbrains.plugins.groovy.lang.psi.GroovyRecursiveElement
Visitor.visitElement(GroovyRecursiveElementVisitor.java:9)
at
org.jetbrains.plugins.groovy.lang.psi.GroovyElementVisitor.visitTypeDe
finitionBody(GroovyElementVisitor.java:325)
at
org.jetbrains.plugins.groovy.lang.psi.impl.statements.typedef.bodies.G
rTypeDefinitionBodyImpl.accept(GrTypeDe
finitionBodyImpl.java:42)
at
org.jetbrains.plugins.groovy.lang.psi.impl.GroovyBaseElementImpl.accep
tChildren(GroovyBaseElementImpl.java:119)
at
org.jetbrains.plugins.groovy.lang.psi.GroovyRecursiveElementVisitor.vi
sitElement(GroovyRecursiveElementVisitor.java:9)
at
org.jetbrains.pl
ugins.groovy.lang.psi.GroovyElementVisitor.visitTypeDefinition(GroovyE
lementVisitor.java:237)
at
org.jetbrains.plugins.groovy.lang.psi.impl.statements.typedef.GrTypeDe
finitionImpl.accept(GrTypeDefinitionImpl.java:106)
at
org.jetbrains.plugins.groovy.lang.psi.impl.GroovyFileBaseImpl.accep
tChildren(GroovyFileBaseImpl.java:143)
at
org.jetbrains.plugins.groovy.lang.psi.GroovyRecursiveElementVisitor.vi
sitElement(GroovyRecursiveElementVisitor.java:9)
at
org.jetbrains.plugins.groovy.lang.psi.GroovyElementVisitor.visitFile(G
roovyElementVisitor.java:41)
at org.jetbrains.pl
ugins.groovy.lang.psi.impl.GroovyFileBaseImpl.accept(GroovyFileBaseImp
l.java:136)
at
com.siyeh.inspectorgroovy.BaseInspection.checkFile(BaseInspection.java
:81)
at
com.intellij.codeInspection.LocalInspectionTool$1.visitFile(LocalInspe
ctionTool.java:58)
at com.intellij.extapi.psi.Psi
FileBase.accept(PsiFileBase.java:1)
at
com.intellij.codeInsight.daemon.impl.LocalInspectionsPass$1$1.run(Loca
lInspectionsPass.java:7)
at
com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessU
nderProgress(ProgressManagerImpl.java:13)
at
com.intellij.codeInsight.daemo
n.impl.LocalInspectionsPass$1.process(LocalInspectionsPass.java:2)

at
com.intellij.codeInsight.daemon.impl.LocalInspectionsPass$1.process(Lo
calInspectionsPass.java:3)
at
com.intellij.concurrency.JobUtil$1.run(JobUtil.java:44)
at
java.util.concurrent.Executors$RunnableAdapter.call(E
xecutors.java:441)
at
java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)

at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at
com.intellij.concurrency.JobImpl.scheduleAndWaitForResults(JobImpl.jav
a:32)
at com.intellij.concurrency.JobUtil.invokeConcur
rentlyForAll(JobUtil.java:51)
at
com.intellij.concurrency.JobUtil.invokeConcurrentlyForAll(JobUtil.java
:27)
at
com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.a(LocalInspe
ctionsPass.java:67)
at
com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.a(LocalInspe
ctionsPa
ss.java:217)
at
com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.collectInfor
mationWithProgress(LocalInspectionsPass.java:231)
at
com.intellij.codeInsight.daemon.impl.ProgressableTextEditorHighlightin
gPass.doCollectInformation(ProgressableTextEditorHighlightingPass.java
:15)

at
com.intellij.codeHighlighting.TextEditorHighlightingPass.collectInform
ation(TextEditorHighlightingPass.java:13)
at
com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass
$1$1.run(PassExecutorService.java:14)
at
com.intellij.openapi.application.impl.ApplicationImpl.run
ReadAction(ApplicationImpl.java:165)
at
com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass
$1.run(PassExecutorService.java:2)
at
com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessU
nderProgress(ProgressManagerImpl.java:13)
at com.intellij.codeIn
sight.daemon.impl.PassExecutorService$ScheduledPass.run(PassExecutorSe
rvice.java:12)
at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441
)
at
java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)

at java.util.concurrent.FutureTask.run(FutureTask.ja

va:138)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecu
tor.java:886)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.
java:908)
at java.lang.Thread.run(Thread.java:619)

---
Original message URL:
http://www.jetbrains.net/devnet/message/5228003#5228003

--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0
Comment actions Permalink

I also ran into a similar problem with 8.0.
My configuration was fine until it started showing "Grails are not configured" when trying to run the grails application.
I finally found out that grails was listed 3 times in the modue dependencies. I removed them all and it now works fine.
- Go to File, Project Structure
- In the Modules category, select your Grails module
- Click on the Dependencies tab
- Remove all the Grails dependencies (IntelliJ will automatically add one back)
==> After following those steps I was able to run my application.

0
Comment actions Permalink

Hello,

I am using IntelliJ 8.0.1 and trying to "import" and existing Grails App.

IntelliJ is not finding a Grails facet, so I get no grails modile

How is this supposed work? Its a small size, recent, pure Grails app

Thanks,
Serge

0
Comment actions Permalink

Could you attach either this project or a reduced version for which
Grails facet also isn't detected? BTW what do you mean by "import", what
exactly do you do?

0
Comment actions Permalink

Hello Peter,

My fault, it seems that I had in-advertantly deleted some of the grails project files.

Sorry for the hassle.

Serge

0

Please sign in to leave a comment.