Error of Java classes version

I have a language in MPS. And I generated a plugin with this language. But I got exception/ What does it mean? I compiled plugin and try to use it in the same machine? with the same java machine. Java compiler settings = JDk default/ Java machine is 11 version. Project with language has no errors.

 

java.lang.UnsupportedClassVersionError: SemanticLanguage/constraints/SemanticModel_Constraints has been compiled by a more recent version of the Java Runtime (class file version 58.0), this version of the Java Runtime only recognizes class file versions up to 55.0
at java.base/java.lang.ClassLoader.defineClass1(Native Method)
at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1016)
at jetbrains.mps.classloading.ModuleClassLoader.loadFromSelf(ModuleClassLoader.java:200)
at jetbrains.mps.classloading.ModuleClassLoader.loadClass(ModuleClassLoader.java:127)
at jetbrains.mps.classloading.ModuleClassLoader.loadClass(ModuleClassLoader.java:114)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
at SemanticLanguage.constraints.ConstraintsAspectDescriptor.getConstraints(ConstraintsAspectDescriptor.java:34)
at jetbrains.mps.smodel.language.ConstraintsRegistry.getConstraintsDescriptor(ConstraintsRegistry.java:77)
at jetbrains.mps.smodel.language.ConceptRegistry.getConstraintsDescriptor(ConceptRegistry.java:146)
at jetbrains.mps.smodel.language.ConceptRegistryUtil.getConstraintsDescriptor(ConceptRegistryUtil.java:51)
at jetbrains.mps.smodel.SNodeAccessUtilImpl.getPropertyValueImpl(SNodeAccessUtilImpl.java:77)
at jetbrains.mps.smodel.SNodeAccessUtilImpl.getPropertyImpl(SNodeAccessUtilImpl.java:104)
at org.jetbrains.mps.openapi.model.SNodeAccessUtil.getProperty(SNodeAccessUtil.java:52)
at jetbrains.mps.smodel.runtime.NodePresentationProviders.lambda$static$1(NodePresentationProviders.java:42)
at jetbrains.mps.smodel.runtime.ConceptPresentation.getPresentationFor(ConceptPresentation.java:61)
at jetbrains.mps.lang.core.behavior.BaseConcept__BehaviorDescriptor.getPresentation_idhEwIMiw(BaseConcept__BehaviorDescriptor.java:57)
at jetbrains.mps.lang.core.behavior.BaseConcept__BehaviorDescriptor.invokeSpecial0(BaseConcept__BehaviorDescriptor.java:100)
at jetbrains.mps.core.aspects.behaviour.BaseBHDescriptor.invokeSpecial(BaseBHDescriptor.java:358)
at jetbrains.mps.core.aspects.behaviour.BaseBHDescriptor.invokeVirtual(BaseBHDescriptor.java:317)
at jetbrains.mps.core.aspects.behaviour.BaseBHDescriptor.invoke(BaseBHDescriptor.java:241)
at jetbrains.mps.core.aspects.behaviour.SMethodImpl.invoke0(SMethodImpl.java:151)
at jetbrains.mps.core.aspects.behaviour.SMethodImpl.invoke(SMethodImpl.java:126)
at jetbrains.mps.smodel.behaviour.BHReflection.invoke0(BHReflection.java:75)
at jetbrains.mps.smodel.SNodeUtil.getPresentation(SNodeUtil.java:93)
at jetbrains.mps.smodel.SNode.getPresentation(SNode.java:225)
at jetbrains.mps.nodefs.NiceReferenceSerializer.lambda$static$0(NiceReferenceSerializer.java:106)
at jetbrains.mps.nodefs.NiceReferenceSerializer.deserialize(NiceReferenceSerializer.java:98)
at jetbrains.mps.nodefs.NiceReferenceSerializer.deserializeNode(NiceReferenceSerializer.java:80)
at jetbrains.mps.nodefs.RepositoryVirtualFiles.findFileByPath(RepositoryVirtualFiles.java:143)
at jetbrains.mps.nodefs.NodeVirtualFileSystem.lambda$findFileByPath$0(NodeVirtualFileSystem.java:221)
at jetbrains.mps.util.ComputeRunnable.compute(ComputeRunnable.java:32)
at jetbrains.mps.util.AbstractComputeRunnable.run(AbstractComputeRunnable.java:27)
at jetbrains.mps.smodel.ActionDispatcher.dispatch(ActionDispatcher.java:85)
at jetbrains.mps.smodel.WorkbenchModelAccess.lambda$runReadAction$0(WorkbenchModelAccess.java:89)
at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:796)
at jetbrains.mps.smodel.WorkbenchModelAccess.runReadAction(WorkbenchModelAccess.java:86)
at jetbrains.mps.smodel.ModelAccessBase.runReadAction(ModelAccessBase.java:54)
at jetbrains.mps.smodel.ModelAccessHelper.runReadAction(ModelAccessHelper.java:44)
at jetbrains.mps.nodefs.NodeVirtualFileSystem.findFileByPath(NodeVirtualFileSystem.java:218)
at com.intellij.openapi.vfs.impl.VirtualFileManagerImpl.findFileByUrl(VirtualFileManagerImpl.java:164)
at com.intellij.openapi.fileEditor.impl.HistoryEntry.parseEntry(HistoryEntry.java:191)
at com.intellij.openapi.fileEditor.impl.HistoryEntry.createLight(HistoryEntry.java:73)
at com.intellij.openapi.fileEditor.impl.EditorsSplitters$UIBuilder.processFiles(EditorsSplitters.java:863)
at com.intellij.openapi.fileEditor.impl.EditorsSplitters$UIBuilder.processFiles(EditorsSplitters.java:838)
at com.intellij.openapi.fileEditor.impl.EditorsSplitters$ConfigTreeReader.process(EditorsSplitters.java:829)
at com.intellij.openapi.fileEditor.impl.EditorsSplitters.openFiles(EditorsSplitters.java:246)
at com.intellij.openapi.fileEditor.impl.OpenFilesActivity.runActivity(OpenFilesActivity.java:31)
at com.intellij.ide.startup.impl.StartupManagerImpl.runActivity(StartupManagerImpl.java:216)
at com.intellij.ide.startup.impl.StartupManagerImpl.lambda$runPostStartupActivitiesFromExtensions$2(StartupManagerImpl.java:168)
at com.intellij.openapi.extensions.impl.ExtensionPointImpl.processWithPluginDescriptor(ExtensionPointImpl.java:292)
at com.intellij.openapi.extensions.ExtensionPointName.processWithPluginDescriptor(ExtensionPointName.java:157)
at com.intellij.ide.startup.impl.StartupManagerImpl.runPostStartupActivitiesFromExtensions(StartupManagerImpl.java:166)
at com.intellij.openapi.project.impl.ProjectManagerImpl.doLoadProject(ProjectManagerImpl.java:457)
at com.intellij.openapi.project.impl.ProjectManagerImpl.loadProjectUnderProgress(ProjectManagerImpl.java:443)
at com.intellij.openapi.project.impl.ProjectManagerImpl.openProject(ProjectManagerImpl.java:419)
at com.intellij.platform.PlatformProjectOpenProcessor.lambda$openExistingProject$0(PlatformProjectOpenProcessor.java:268)
at com.intellij.platform.ProjectUiFrameAllocator$run$1$1.run(ProjectFrameAllocator.kt:77)
at com.intellij.openapi.progress.impl.CoreProgressManager$2.run(CoreProgressManager.java:247)
at com.intellij.openapi.progress.impl.CoreProgressManager$TaskRunnable.run(CoreProgressManager.java:888)
at com.intellij.openapi.progress.impl.CoreProgressManager$5.run(CoreProgressManager.java:441)
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$2(CoreProgressManager.java:163)
at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:585)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:531)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:59)
at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:150)
at com.intellij.openapi.application.impl.ApplicationImpl.lambda$null$4(ApplicationImpl.java:441)
at com.intellij.util.ConcurrencyUtil.runUnderThreadName(ConcurrencyUtil.java:221)
at com.intellij.util.ConcurrencyUtil.lambda$underThreadNameRunnable$3(ConcurrencyUtil.java:209)
at com.intellij.openapi.application.impl.ApplicationImpl$1.run(ApplicationImpl.java:238)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)

2 comments
Comment actions Permalink

Well, it seems you somehow got Javac 14 to compile the plugin when building it, I think.

Vaclav

 

0
Comment actions Permalink

I have Java 11 and compile plugin with it. But it uses lib compiled with Java 14. I changed lib, recompile and all works now. Thank you )
But it is strange that when using old Java 14 lib inside project with Language all works also fine/ Iam able to create documents in my Language/ Error occurs only when adding plugin to other customer project.

0

Please sign in to leave a comment.