AlternativeJREPanel deprecated - throws IllegalArgumentException in Idea version 15
Hi,
I'm looking into fixing the SBT plugin for intellij 15. The problems seems to be that the AlternativeJREPanel no longer works. Specifically I see this stacktrace:
Exception in thread "main" java.lang.IllegalArgumentException: Argument for @NotNull parameter 'componentManager' of com/intellij/openapi/components/ServiceManager.doGetService must not be null
at com.intellij.openapi.components.ServiceManager.doGetService(ServiceManager.java)
at com.intellij.openapi.components.ServiceManager.getService(ServiceManager.java:37)
at com.intellij.openapi.projectRoots.ProjectJdkTable.getInstance(ProjectJdkTable.java:30)
at com.intellij.execution.ui.AlternativeJREPanel.<init>(AlternativeJREPanel.java:60)
at net.orfjackal.sbt.plugin.settings.SbtSettingsForm.<init>(SbtSettingsForm.java:28)
at net.orfjackal.sbt.plugin.settings.SbtSettingsForm.main(SbtSettingsForm.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:144)
I note that this class is deprecated but I couldn't find anywhere which I should use instead.
What's the best way to tackle this? Is there an alternative component - or would I need to write one from scratch?
Thanks,
Sam
Please sign in to leave a comment.