You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 14, 2020. It is now read-only.
I get following error with my application during startup:
Proxy is not supported until module system is fully initialized
Example application:
public class Application extends MobileApplication
{
@Override
public void init()
{
try
{
//Runnable is only an example, the problem occurs with any interface
Proxy.newProxyInstance(getClass().getClassLoader(), new Class<?>[] {Runnable.class}, new InvocationHandler()
{
@Override
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable
{
return null;
}
});
}
catch (Throwable th)
{
th.printStackTrace();
}
addViewFactory(HOME_VIEW, BasicView::new);
}
@Override
public void postInit(Scene scene)
{
Swatch.BLUE.assignTo(scene);
((Stage) scene.getWindow()).getIcons().add(new Image(Application.class.getResourceAsStream("/icon.png")));
}
}
The exception:
[SUB] java.lang.InternalError: Proxy is not supported until module system is fully initialized
[SUB] at java.lang.Throwable.fillInStackTrace(Unknown Source)
[SUB] at java.lang.Throwable.(Unknown Source)
[SUB] at java.lang.Error.(Unknown Source)
[SUB] at java.lang.VirtualMachineError.(Unknown Source)
[SUB] at java.lang.InternalError.(Unknown Source)
[SUB] at java.lang.reflect.Proxy$ProxyBuilder.(Unknown Source)
[SUB] at java.lang.reflect.Proxy$ProxyBuilder.(Unknown Source)
[SUB] at java.lang.reflect.Proxy.lambda$getProxyConstructor$0(Unknown Source)
[SUB] at java.lang.reflect.Proxy$$Lambda$1.apply(Unknown Source)
[SUB] at jdk.internal.loader.AbstractClassLoaderValue$Memoizer.get(Unknown Source)
[SUB] at jdk.internal.loader.AbstractClassLoaderValue.computeIfAbsent(Unknown Source)
[SUB] at java.lang.reflect.Proxy.getProxyConstructor(Unknown Source)
[SUB] at java.lang.reflect.Proxy.newProxyInstance(Unknown Source)
[SUB] at javax.rad.util.EventHandler$ListenerHandler.(Unknown Source)
[SUB] at javax.rad.util.EventHandler.setDefaultListener(Unknown Source)
[SUB] at javax.rad.genui.container.AbstractFrame.(Unknown Source)
[SUB] at javax.rad.application.genui.UILauncher.(Unknown Source)
[SUB] at com.sibvisions.rad.ui.javafx.impl.JavaFXLauncher.createUILauncher(Unknown Source)
[SUB] at com.sibvisions.mobilefx.DesktopJavaFXLauncher.createUILauncher(Unknown Source)
[SUB] at com.sibvisions.rad.ui.javafx.impl.JavaFXLauncher.(Unknown Source)
[SUB] at com.sibvisions.mobilefx.DesktopJavaFXLauncher.(Unknown Source)
[SUB] at com.sibvisions.mobilefx.MobileJavaFXLauncher.(Unknown Source)
[SUB] at com.sibvisions.mobilefx.MobileJavaFXApplication.createLauncher(Unknown Source)
[SUB] at com.sibvisions.rad.ui.javafx.impl.JavaFXApplication.start(Unknown Source)
[SUB] at com.sibvisions.mobilefx.MobileJavaFXApplication.start(Unknown Source)
[SUB] at com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$9(Unknown Source)
[SUB] at com.sun.javafx.application.LauncherImpl$$Lambda$9.run(Unknown Source)
[SUB] at com.sun.javafx.application.PlatformImpl.lambda$runAndWait$11(Unknown Source)
[SUB] at com.sun.javafx.application.PlatformImpl$$Lambda$10.run(Unknown Source)
[SUB] at com.sun.javafx.application.PlatformImpl.lambda$runLater$9(Unknown Source)
[SUB] at com.sun.javafx.application.PlatformImpl$$Lambda$22.run(Unknown Source)
[SUB] at java.security.AccessController.doPrivileged(Unknown Source)
[SUB] at com.sun.javafx.application.PlatformImpl.lambda$runLater$10(Unknown Source)
[SUB] at com.sun.javafx.application.PlatformImpl$$Lambda$9.run(Unknown Source)
I get following error with my application during startup:
Proxy is not supported until module system is fully initialized
Example application:
The exception:
[SUB] java.lang.InternalError: Proxy is not supported until module system is fully initialized
[SUB] at java.lang.Throwable.fillInStackTrace(Unknown Source)
[SUB] at java.lang.Throwable.(Unknown Source)
[SUB] at java.lang.Error.(Unknown Source)
[SUB] at java.lang.VirtualMachineError.(Unknown Source)
[SUB] at java.lang.InternalError.(Unknown Source)
[SUB] at java.lang.reflect.Proxy$ProxyBuilder.(Unknown Source)
[SUB] at java.lang.reflect.Proxy$ProxyBuilder.(Unknown Source)
[SUB] at java.lang.reflect.Proxy.lambda$getProxyConstructor$0(Unknown Source)
[SUB] at java.lang.reflect.Proxy$$Lambda$1.apply(Unknown Source)
[SUB] at jdk.internal.loader.AbstractClassLoaderValue$Memoizer.get(Unknown Source)
[SUB] at jdk.internal.loader.AbstractClassLoaderValue.computeIfAbsent(Unknown Source)
[SUB] at java.lang.reflect.Proxy.getProxyConstructor(Unknown Source)
[SUB] at java.lang.reflect.Proxy.newProxyInstance(Unknown Source)
[SUB] at javax.rad.util.EventHandler$ListenerHandler.(Unknown Source)
[SUB] at javax.rad.util.EventHandler.setDefaultListener(Unknown Source)
[SUB] at javax.rad.genui.container.AbstractFrame.(Unknown Source)
[SUB] at javax.rad.application.genui.UILauncher.(Unknown Source)
[SUB] at com.sibvisions.rad.ui.javafx.impl.JavaFXLauncher.createUILauncher(Unknown Source)
[SUB] at com.sibvisions.mobilefx.DesktopJavaFXLauncher.createUILauncher(Unknown Source)
[SUB] at com.sibvisions.rad.ui.javafx.impl.JavaFXLauncher.(Unknown Source)
[SUB] at com.sibvisions.mobilefx.DesktopJavaFXLauncher.(Unknown Source)
[SUB] at com.sibvisions.mobilefx.MobileJavaFXLauncher.(Unknown Source)
[SUB] at com.sibvisions.mobilefx.MobileJavaFXApplication.createLauncher(Unknown Source)
[SUB] at com.sibvisions.rad.ui.javafx.impl.JavaFXApplication.start(Unknown Source)
[SUB] at com.sibvisions.mobilefx.MobileJavaFXApplication.start(Unknown Source)
[SUB] at com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$9(Unknown Source)
[SUB] at com.sun.javafx.application.LauncherImpl$$Lambda$9.run(Unknown Source)
[SUB] at com.sun.javafx.application.PlatformImpl.lambda$runAndWait$11(Unknown Source)
[SUB] at com.sun.javafx.application.PlatformImpl$$Lambda$10.run(Unknown Source)
[SUB] at com.sun.javafx.application.PlatformImpl.lambda$runLater$9(Unknown Source)
[SUB] at com.sun.javafx.application.PlatformImpl$$Lambda$22.run(Unknown Source)
[SUB] at java.security.AccessController.doPrivileged(Unknown Source)
[SUB] at com.sun.javafx.application.PlatformImpl.lambda$runLater$10(Unknown Source)
[SUB] at com.sun.javafx.application.PlatformImpl$$Lambda$9.run(Unknown Source)
My Stackoverflow post: https://stackoverflow.com/questions/51995310/gvm-and-proxy-for-class-with-module-system-not-fully-initialized
The text was updated successfully, but these errors were encountered: