cancel
Showing results for 
Search instead for 
Did you mean: 

Eclipse open SAP GUI issue : Failed to open the SAP GUI for Java: Exception

Hismayilov
Participant

to replicate: Click Open SAP GUI.

Failed to open the SAP GUI for Java: Exception occurred: java.lang.reflect.InvocationTargetException
java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:119)
at java.base/java.lang.reflect.Method.invoke(Method.java:578)
at com.sap.platin.embed.EmbeddedGuiFactory.getEmbeddedApplicationImpl(EmbeddedGuiFactory.java:512)
at com.sap.platin.embed.EmbeddedGuiFactory.createEmbeddedApplication(EmbeddedGuiFactory.java:182)
at com.sap.adt.sapgui.ui.internal.embedding.EmbeddedGuiConnectionFactory.getEmbeddedApplicationFromGuiFactory(EmbeddedGuiConnectionFactory.java:182)
at com.sap.adt.sapgui.ui.internal.embedding.EmbeddedGuiConnectionFactory.createGuiApplication(EmbeddedGuiConnectionFactory.java:190)
at com.sap.adt.sapgui.ui.internal.embedding.EmbeddedGuiConnectionFactory.getEmbeddedGuiApplication(EmbeddedGuiConnectionFactory.java:109)
at com.sap.adt.sapgui.ui.internal.embedding.EmbeddedGuiConnectionFactory.getGuiVersion(EmbeddedGuiConnectionFactory.java:167)
at com.sap.adt.sapgui.ui.internal.embedding.EmbeddedJavaGui.getGuiVersion(EmbeddedJavaGui.java:217)
at com.sap.adt.sapgui.ui.internal.embedding.EmbeddedJavaGui$2.run(EmbeddedJavaGui.java:113)
at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:318)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:773)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:720)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:714)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:742)
at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
Caused by: java.lang.UnsupportedOperationException: The Security Manager is deprecated and will be removed in a future release
at java.base/java.lang.System.setSecurityManager(System.java:425)
at com.sap.platin.base.security.SAPGUIPolicy$1.run(SAPGUIPolicy.java:107)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:318)
at com.sap.platin.base.security.SAPGUIPolicy.installPolicy(SAPGUIPolicy.java:78)
at com.sap.platin.base.logon.GuiImpl.init(GuiImpl.java:90)
at com.sap.platin.base.logon.GuiImpl.<init>(GuiImpl.java:48)
at com.sap.platin.base.logon.GuiImpl.getEmbeddedApplication(GuiImpl.java:394)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
... 22 more

MAC. Venture 13.2.1

SAP GUI for Java 7.80 rev 2

View Entire Topic
sratz
Advisor
Advisor

Hello Huseyn,

what version of Java are you using to run ADT?

It appears you are using either

  • Java >= 18, or
  • Java 17, but with -Djava.security.manager=disallow

Both of this is not supported currently.

You need to use Java 17 and the security manager must be allowed.

Best regards,

Sebastian

peterpersiel
Product and Topic Expert
Product and Topic Expert
0 Kudos

Thanks Sebastian, this worked for me when I switched to 17.0.7 sapmachine jdk and javafx