ClassLoader Exception during class loading with enums

Hello forum,

I get the following error when I'm doing this:

  • open the project for the first time
  • rebuild my project

I'm using MPS 3.3.5 + Java 8 Update 121

"Unable to load class .<<enunname>>_PropertySupport using ModuleClassLoader of <<language-name>> module"

This error message only appears for my 8 enums, which are in my project. A second rebuild solves the class loader issue, though.

EDIT: Stacktrace

 

at jetbrains.mps.classloading.ModuleClassLoader.createCLNFException(ModuleClassLoader.java:136)
    at jetbrains.mps.classloading.ModuleClassLoader.loadClass(ModuleClassLoader.java:123)
    at jetbrains.mps.classloading.ModuleClassLoader.loadClass(ModuleClassLoader.java:90)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    at jetbrains.mps.module.ReloadableModuleBase.getClass(ReloadableModuleBase.java:71)
    at jetbrains.mps.smodel.Language.getClass(Language.java:435)
    at jetbrains.mps.module.ReloadableModuleBase.getClass(ReloadableModuleBase.java:52)
    at jetbrains.mps.classloading.ClassLoaderManager.getClass(ClassLoaderManager.java:230)
    at jetbrains.mps.smodel.PropertySupport.loadPropertySupport(PropertySupport.java:197)
    at jetbrains.mps.smodel.PropertySupport.access$400(PropertySupport.java:45)
    at jetbrains.mps.smodel.PropertySupport$1.compute(PropertySupport.java:169)
    at jetbrains.mps.smodel.PropertySupport$1.compute(PropertySupport.java:147)
    at jetbrains.mps.smodel.NodeReadAccessCasterInEditor.runReadTransparentAction(NodeReadAccessCasterInEditor.java:100)
    at jetbrains.mps.smodel.PropertySupport.getPropertySupport(PropertySupport.java:147)
    at jetbrains.mps.checkers.ConstraintsChecker.checkNode(ConstraintsChecker.java:133)
    at jetbrains.mps.checkers.LanguageErrorsComponent.check(LanguageErrorsComponent.java:205)
    at jetbrains.mps.checkers.LanguageChecker.getErrors(LanguageChecker.java:23)
    at jetbrains.mps.ide.modelchecker.platform.actions.INodeCheckerSpecificCheckerAdapter.checkModel(INodeCheckerSpecificCheckerAdapter.java:41)
    at jetbrains.mps.ide.modelchecker.platform.actions.ModelChecker.checkModel(ModelChecker.java:44)
    at jetbrains.mps.ide.modelchecker.platform.actions.ModelCheckerIssueFinder.find(ModelCheckerIssueFinder.java:84)
    at jetbrains.mps.ide.findusages.findalgorithm.resultproviders.treenodes.FinderNode$1.compute(FinderNode.java:78)
    at jetbrains.mps.ide.findusages.findalgorithm.resultproviders.treenodes.FinderNode$1.compute(FinderNode.java:74)
    at jetbrains.mps.smodel.WorkbenchModelAccess.runReadAction(WorkbenchModelAccess.java:115)
    at jetbrains.mps.ide.findusages.findalgorithm.resultproviders.treenodes.FinderNode.doGetResults(FinderNode.java:74)
    at jetbrains.mps.ide.findusages.findalgorithm.resultproviders.treenodes.BaseNode.getResults(BaseNode.java:89)
    at jetbrains.mps.ide.findusages.findalgorithm.resultproviders.treenodes.UnionNode.doGetResults(UnionNode.java:31)
    at jetbrains.mps.ide.findusages.findalgorithm.resultproviders.treenodes.BaseNode.getResults(BaseNode.java:89)
    at jetbrains.mps.ide.findusages.view.UsagesView$SearchTask.run(UsagesView.java:370)
    at jetbrains.mps.smodel.WorkbenchModelAccess$2.run(WorkbenchModelAccess.java:104)
    at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:951)
    at jetbrains.mps.smodel.WorkbenchModelAccess.runReadAction(WorkbenchModelAccess.java:99)
    at jetbrains.mps.smodel.ModelAccessBase.runReadAction(ModelAccessBase.java:53)
    at jetbrains.mps.ide.findusages.view.UsagesView$SearchTask.execute(UsagesView.java:364)
    at jetbrains.mps.ide.findusages.view.UsagesView$RerunAction$1.run(UsagesView.java:316)
    at com.intellij.openapi.progress.impl.CoreProgressManager$TaskRunnable.run(CoreProgressManager.java:563)
    at com.intellij.openapi.progress.impl.CoreProgressManager$8.run(CoreProgressManager.java:357)
    at com.intellij.openapi.progress.impl.CoreProgressManager$2.run(CoreProgressManager.java:142)
    at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:446)
    at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:392)
    at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:54)
    at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:127)
    at com.intellij.openapi.application.impl.ApplicationImpl$14$1.run(ApplicationImpl.java:634)
    at com.intellij.openapi.application.impl.ApplicationImpl$8.run(ApplicationImpl.java:366)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)
    at org.jetbrains.ide.PooledThreadExecutor$1$1.run(PooledThreadExecutor.java:55)
1 comment
Comment actions Permalink

For me this seems like a bug. I submitted a youtrack ticket.

0

Please sign in to leave a comment.