weirddev

Open full view…

TestME Crashes, is not able to Generate Code

contra-bit
Thu, 27 Feb 2020 11:13:55 GMT

When Generating for a class, this error ist thrown: unable to find test me macros Intellij 2019.3.3 shows this stacktrace: couldn't initialize TestMe plugin I hope you manage to help me. Thank you java.lang.NoSuchFieldException: modifiers at java.base/java.lang.Class.getDeclaredField(Class.java:2412) at com.weirddev.testme.intellij.utils.AccessLevelReflectionUtils.replaceF inalStatic(AccessLevelReflectionUtils.java:13) at com.weirddev.testme.intellij.TestMePluginRegistration.hackVelocity(Tes tMePluginRegistration.java:48) at com.weirddev.testme.intellij.TestMePluginRegistration.initComponent(Te stMePluginRegistration.java:31) at com.intellij.serviceContainer.MyComponentAdapter.doCreateInstance(MyCo mponentAdapter.kt:42) at com.intellij.serviceContainer.BaseComponentAdapter.getInstanceUncached (BaseComponentAdapter.kt:110) at com.intellij.serviceContainer.BaseComponentAdapter.getInstance(BaseCom ponentAdapter.kt:72) at com.intellij.serviceContainer.BaseComponentAdapter.getInstance$default (BaseComponentAdapter.kt:65) at com.intellij.serviceContainer.PlatformCo mponentManagerImpl.createCompo nents(PlatformComponentManagerImpl.kt:177) at com.intellij.openapi.application.impl.ApplicationImpl.lambda$loadCompo nents$3(ApplicationImpl.java:346) at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProce ss$2(CoreProgressManager.java:163) at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicat orAndRun(CoreProgressManager.java:585) at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessU nderProgress(CoreProgressManager.java:531) at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessU nderProgress(ProgressManagerImpl.java:59) at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(Core ProgressManager.java:150) at com.intellij.openapi.application.impl.ApplicationImpl.loadComponents(A pplicationImpl.java:346) at com.intellij.idea.ApplicationLoader$startApp$6$loadComponentInEdtFutur e$1.run(ApplicationLoader.kt:204) at java.base/java.util.concurrent.CompletableFuture$AsyncRun.run(Completa bleFuture.java:1807) at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.j ava:313) at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:770 ) at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721) at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:715) at java.base/java.security.AccessController.doPrivileged(AccessController .java:391) at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doInte rsectionPrivilege(ProtectionDomain.java:85) at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:740) at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:398) at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(Event DispatchThread.java:203) at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDis patchThread.java:124) at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(Event DispatchThread.java:113) at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThre ad.java:109) at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThre ad.java:101) at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java :90)

Yaron
Thu, 27 Feb 2020 22:31:11 GMT

from the look of it, I'm guessing you're running IDEA on JRE 12. If you find it acceptable, please try to [run IDEA on Java 11 or below](https://intellij-support.jetbrains.com/hc/en-us/articles/206544879-Selecting-the-JDK-version-the-IDE-will-run-under) and see if it resolves the issue. In the meantime I'll try to find a proper solution. Thanks for reporting this contra-bit! it seems as a critical issue.

Yaron
Sat, 29 Feb 2020 09:38:25 GMT

- Fixed in release 3.0.3. Issue caused by changed in reflection API introduced in JDK 12 Thanks again contra-bit