Skip to content
This repository has been archived by the owner on Oct 26, 2023. It is now read-only.

com/intellij/plugins/thrift/jps/ModelSerializerExtension on idea2020.3 #101

Closed
Nasller opened this issue Dec 2, 2020 · 15 comments · Fixed by #102
Closed

com/intellij/plugins/thrift/jps/ModelSerializerExtension on idea2020.3 #101

Nasller opened this issue Dec 2, 2020 · 15 comments · Fixed by #102

Comments

@Nasller
Copy link

Nasller commented Dec 2, 2020

java.lang.UnsupportedClassVersionError: com/intellij/plugins/thrift/jps/ModelSerializerExtension has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0

@ekzeb
Copy link

ekzeb commented Dec 2, 2020

java.lang.UnsupportedClassVersionError: com/intellij/plugins/thrift/jps/ModelSerializerExtension has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0

Project Settings/Project SDK/1.8 java version "1.8.0_271"

@Nasller
Copy link
Author

Nasller commented Dec 2, 2020

java.lang.UnsupportedClassVersionError: com/intellij/plugins/thrift/jps/ModelSerializerExtension has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0

Project Settings/Project SDK/1.8 java version "1.8.0_271"

whats mean , using 1.8.0_271 version?

@ekzeb
Copy link

ekzeb commented Dec 2, 2020

java.lang.UnsupportedClassVersionError: com/intellij/plugins/thrift/jps/ModelSerializerExtension has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0

Project Settings/Project SDK/1.8 java version "1.8.0_271"

whats mean , using 1.8.0_271 version?

concrete JDKs version used in Project, if you can, not my case, change it to 11 jdk and you'll not see this error

@Nasller
Copy link
Author

Nasller commented Dec 2, 2020

java.lang.UnsupportedClassVersionError: com/intellij/plugins/thrift/jps/ModelSerializerExtension has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0

Project Settings/Project SDK/1.8 java version "1.8.0_271"

whats mean , using 1.8.0_271 version?

concrete JDKs version used in Project, if you can, not my case, change it to 11 jdk and you'll not see this error

i know. but i cant change .thanks

@fkorotkov
Copy link
Owner

I don't think it's related to your Project JDK. The JPS part should use IDE's JDK. Can you share your About IntelliJ screen? Which JDK your IntelliJ is using. 🤔

@Nasller
Copy link
Author

Nasller commented Dec 2, 2020

I don't think it's related to your Project JDK. The JPS part should use IDE's JDK. Can you share your About IntelliJ screen? Which JDK your IntelliJ is using. 🤔

i think too. But it actually uses my project jdk.i try to change my project jdk to 11 and thats worked.use jdk11 no error.my intellij jdk used defaults jdk11.

@yuemingming
Copy link

I also encountered the same problem

@yuemingming
Copy link

Is there any current solution

java.lang.UnsupportedClassVersionError: com/intellij/plugins/thrift/jps/ModelSerializerExtension has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0

@Nasller
Copy link
Author

Nasller commented Dec 3, 2020

Is there any current solution

java.lang.UnsupportedClassVersionError: com/intellij/plugins/thrift/jps/ModelSerializerExtension has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0

disabled the plugin

@TKYAngus
Copy link

TKYAngus commented Dec 4, 2020

I got the same issue with my project JDK 8 on IntelliJ IDEA 2020.3.
I have to disable the plugin to make it compile.

@cny-dixa
Copy link

cny-dixa commented Dec 4, 2020

I also have the issue.
The problem is that I cannot change to Java 11 since my company develops in a Scala version which requires Java 8.

@Nasller
Copy link
Author

Nasller commented Dec 6, 2020

Everys guys, I found a temporary solution. Remove the files in the META-INF.services file directory in thrift-jps.jar, so that you can temporarily use the function of thrift without reporting an build error. I guess it may affect To the function of the thrift compiler, but that function seems useless.Hope the author can fix it.Only applies to me, hope it can help you.

@guynaa
Copy link

guynaa commented Dec 6, 2020

Everys guys, I found a temporary solution. Remove the files in the META-INF.services file directory in thrift-jps.jar, so that you can temporarily use the function of thrift without reporting an build error. I guess it may affect To the function of the thrift compiler, but that function seems useless.Hope the author can fix it.Only applies to me, hope it can help you.

thanks, workaround is working for me.

@binbjz
Copy link

binbjz commented Jan 1, 2021

Same issues and I have disabled this plugin. I will re-enable it after author fixes it.

MacOS Big Sur 11.1

Model Name:	MacBook Pro
  Model Identifier:	MacBookPro15,3
  Processor Name:	8-Core Intel Core i9
  Processor Speed:	2.4 GHz
  Number of Processors:	1
  Total Number of Cores:	8
  L2 Cache (per Core):	256 KB
  L3 Cache:	16 MB
  Hyper-Threading Technology:	Enabled
  Memory:	32 GB
IntelliJ IDEA 2020.3.1 (Ultimate Edition)
Build #IU-203.6682.168, built on December 29, 2020
$ java -version
java version "1.8.0_271"
Java(TM) SE Runtime Environment (build 1.8.0_271-b09)
Java HotSpot(TM) 64-Bit Server VM (build 25.271-b09, mixed mode)
Internal error (java.lang.UnsupportedClassVersionError): com/intellij/plugins/thrift/jps/ModelSerializerExtension has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0
java.lang.UnsupportedClassVersionError: com/intellij/plugins/thrift/jps/ModelSerializerExtension has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0

@fkorotkov
Copy link
Owner

Just published 1.5.0 where JPS plugins should be Java 8 compatible. Let's see if it fixes the issue.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

8 participants