运行 SAP for Java 时出错

运行 SAP for Java 时出错

我在 Ubuntu 12.04 上安装了 SAP 7.3,它运行良好。但最近几天它就不工作了。只显示启动画面,然后就消失了。

我尝试从终端启动,然后它显示错误。

请帮忙

#/opt/SAPClients/SAPGUI7.30rev1/bin$ ./guilogon 
############################# ERROR #############################
25.06. 11:42:22.304 ERROR: Exception occured: java.lang.ClassNotFoundException: com.sap.platin.r3.trace.NativeTraceHook
25.06. 11:42:22.304 ERROR: java.lang.ClassNotFoundException: com.sap.platin.r3.trace.NativeTraceHook
25.06. 11:42:22.304 ERROR:  at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
25.06. 11:42:22.304 ERROR:  at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
25.06. 11:42:22.304 ERROR:  at java.security.AccessController.doPrivileged(Native Method)
25.06. 11:42:22.304 ERROR:  at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
25.06. 11:42:22.304 ERROR:  at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
25.06. 11:42:22.304 ERROR:  at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
25.06. 11:42:22.304 ERROR:  at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
25.06. 11:42:22.304 ERROR:  at java.lang.Class.forName0(Native Method)
25.06. 11:42:22.304 ERROR:  at java.lang.Class.forName(Class.java:270)
25.06. 11:42:22.304 ERROR:  at com.sap.platin.micro.Dynamic.createClass(Dynamic.java:100)
25.06. 11:42:22.304 ERROR:  at com.sap.platin.micro.Dynamic.createObject(Dynamic.java:73)
25.06. 11:42:22.304 ERROR:  at com.sap.platin.micro.Dynamic.createObject(Dynamic.java:57)
25.06. 11:42:22.304 ERROR:  at com.sap.platin.base.application.GuiApplication.<init>(GuiApplication.java:176)
25.06. 11:42:22.304 ERROR:  at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
25.06. 11:42:22.304 ERROR:  at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
25.06. 11:42:22.304 ERROR:  at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
25.06. 11:42:22.304 ERROR:  at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
25.06. 11:42:22.304 ERROR:  at java.lang.Class.newInstance(Class.java:374)
25.06. 11:42:22.304 ERROR:  at com.sap.platin.base.automation.GuiClassDescriptor.newInstance(GuiClassDescriptor.java:124)
25.06. 11:42:22.304 ERROR:  at com.sap.platin.base.automation.GuiAutomationDispatcher.createObject(GuiAutomationDispatcher.java:127)
25.06. 11:42:22.304 ERROR:  at com.sap.platin.base.automation.GuiAutomationDispatcher.createApplication(GuiAutomationDispatcher.java:96)
25.06. 11:42:22.304 ERROR:  at com.sap.platin.base.application.GuiApplication.currentApplication(GuiApplication.java:246)
25.06. 11:42:22.304 ERROR:  at com.sap.platin.base.logon.GuiImpl.evalCommandLine(GuiImpl.java:534)
25.06. 11:42:22.304 ERROR:  at com.sap.platin.base.logon.GuiImpl.<init>(GuiImpl.java:143)
25.06. 11:42:22.304 ERROR:  at com.sap.platin.base.logon.GuiImpl.main(GuiImpl.java:793)
25.06. 11:42:22.304 ERROR:  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
25.06. 11:42:22.304 ERROR:  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
25.06. 11:42:22.304 ERROR:  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
25.06. 11:42:22.304 ERROR:  at java.lang.reflect.Method.invoke(Method.java:606)
25.06. 11:42:22.304 ERROR:  at com.sap.platin.micro.Microkernel.startApplication(Microkernel.java:334)
25.06. 11:42:22.304 ERROR:  at com.sap.platin.micro.Microkernel.startApplication(Microkernel.java:173)
25.06. 11:42:22.304 ERROR:  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
25.06. 11:42:22.304 ERROR:  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
25.06. 11:42:22.304 ERROR:  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
25.06. 11:42:22.304 ERROR:  at java.lang.reflect.Method.invoke(Method.java:606)
25.06. 11:42:22.304 ERROR:  at com.sap.platin.micro.Dynamic.callMethod(Dynamic.java:127)
25.06. 11:42:22.304 ERROR:  at com.sap.platin.Gui.main(Gui.java:74)
############################# ERROR #############################
############################# ERROR #############################
25.06. 11:42:22.473 ERROR: Exception occured: java.lang.ClassNotFoundException: com.sap.platin.r3.util.GuiIconList
25.06. 11:42:22.473 ERROR: java.lang.ClassNotFoundException: com.sap.platin.r3.util.GuiIconList
25.06. 11:42:22.473 ERROR:  at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
25.06. 11:42:22.473 ERROR:  at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
25.06. 11:42:22.473 ERROR:  at java.security.AccessController.doPrivileged(Native Method)
25.06. 11:42:22.473 ERROR:  at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
25.06. 11:42:22.473 ERROR:  at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
25.06. 11:42:22.473 ERROR:  at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
25.06. 11:42:22.473 ERROR:  at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
25.06. 11:42:22.473 ERROR:  at java.lang.Class.forName0(Native Method)
25.06. 11:42:22.473 ERROR:  at java.lang.Class.forName(Class.java:270)
25.06. 11:42:22.473 ERROR:  at com.sap.platin.micro.Dynamic.createClass(Dynamic.java:100)
25.06. 11:42:22.473 ERROR:  at com.sap.platin.micro.Dynamic.createClass(Dynamic.java:82)
25.06. 11:42:22.473 ERROR:  at com.sap.platin.base.util.GuiBitmapMgr.<clinit>(GuiBitmapMgr.java:41)
25.06. 11:42:22.473 ERROR:  at com.sap.platin.r3.plaf.basic.BasicSAPConfigurator.setDefaultIconsImpl(BasicSAPConfigurator.java:60)
25.06. 11:42:22.473 ERROR:  at com.sap.platin.r3.plaf.basic.BasicSAPConfigurator.initDefaults(BasicSAPConfigurator.java:54)
25.06. 11:42:22.473 ERROR:  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
25.06. 11:42:22.473 ERROR:  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
25.06. 11:42:22.473 ERROR:  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
25.06. 11:42:22.473 ERROR:  at java.lang.reflect.Method.invoke(Method.java:606)
25.06. 11:42:22.473 ERROR:  at com.sap.platin.base.plaf.DesignLookAndFeel.getDefaults(DesignLookAndFeel.java:309)
25.06. 11:42:22.473 ERROR:  at javax.swing.UIManager.setLookAndFeel(UIManager.java:536)
25.06. 11:42:22.473 ERROR:  at com.sap.platin.base.logon.GuiImpl$1.run(GuiImpl.java:104)
25.06. 11:42:22.473 ERROR:  at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251)
25.06. 11:42:22.473 ERROR:  at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:733)
25.06. 11:42:22.473 ERROR:  at java.awt.EventQueue.access$200(EventQueue.java:103)
25.06. 11:42:22.473 ERROR:  at java.awt.EventQueue$3.run(EventQueue.java:694)
25.06. 11:42:22.473 ERROR:  at java.awt.EventQueue$3.run(EventQueue.java:692)
25.06. 11:42:22.473 ERROR:  at java.security.AccessController.doPrivileged(Native Method)
25.06. 11:42:22.473 ERROR:  at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
25.06. 11:42:22.473 ERROR:  at java.awt.EventQueue.dispatchEvent(EventQueue.java:703)
25.06. 11:42:22.473 ERROR:  at com.sap.platin.micro.event.GuiEventQueue.dispatchEvent(GuiEventQueue.java:79)
25.06. 11:42:22.473 ERROR:  at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
25.06. 11:42:22.473 ERROR:  at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
25.06. 11:42:22.473 ERROR:  at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
25.06. 11:42:22.473 ERROR:  at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
25.06. 11:42:22.473 ERROR:  at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
25.06. 11:42:22.473 ERROR:  at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
############################# ERROR #############################
############################# ERROR #############################
25.06. 11:42:22.474 ERROR: Exception occured: java.lang.NullPointerException
25.06. 11:42:22.474 ERROR: java.lang.NullPointerException
25.06. 11:42:22.474 ERROR:  at com.sap.platin.micro.Dynamic.getProperty(Dynamic.java:247)
25.06. 11:42:22.474 ERROR:  at com.sap.platin.micro.Dynamic.getProperty(Dynamic.java:234)
25.06. 11:42:22.474 ERROR:  at com.sap.platin.base.util.GuiBitmapMgr.<clinit>(GuiBitmapMgr.java:41)
25.06. 11:42:22.474 ERROR:  at com.sap.platin.r3.plaf.basic.BasicSAPConfigurator.setDefaultIconsImpl(BasicSAPConfigurator.java:60)
25.06. 11:42:22.474 ERROR:  at com.sap.platin.r3.plaf.basic.BasicSAPConfigurator.initDefaults(BasicSAPConfigurator.java:54)
25.06. 11:42:22.474 ERROR:  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
25.06. 11:42:22.474 ERROR:  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
25.06. 11:42:22.474 ERROR:  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
25.06. 11:42:22.474 ERROR:  at java.lang.reflect.Method.invoke(Method.java:606)
25.06. 11:42:22.474 ERROR:  at com.sap.platin.base.plaf.DesignLookAndFeel.getDefaults(DesignLookAndFeel.java:309)
25.06. 11:42:22.474 ERROR:  at javax.swing.UIManager.setLookAndFeel(UIManager.java:536)
25.06. 11:42:22.474 ERROR:  at com.sap.platin.base.logon.GuiImpl$1.run(GuiImpl.java:104)
25.06. 11:42:22.474 ERROR:  at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251)
25.06. 11:42:22.474 ERROR:  at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:733)
25.06. 11:42:22.474 ERROR:  at java.awt.EventQueue.access$200(EventQueue.java:103)
25.06. 11:42:22.474 ERROR:  at java.awt.EventQueue$3.run(EventQueue.java:694)
25.06. 11:42:22.474 ERROR:  at java.awt.EventQueue$3.run(EventQueue.java:692)
25.06. 11:42:22.474 ERROR:  at java.security.AccessController.doPrivileged(Native Method)
25.06. 11:42:22.474 ERROR:  at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
25.06. 11:42:22.474 ERROR:  at java.awt.EventQueue.dispatchEvent(EventQueue.java:703)
25.06. 11:42:22.474 ERROR:  at com.sap.platin.micro.event.GuiEventQueue.dispatchEvent(GuiEventQueue.java:79)
25.06. 11:42:22.474 ERROR:  at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
25.06. 11:42:22.474 ERROR:  at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
25.06. 11:42:22.474 ERROR:  at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
25.06. 11:42:22.474 ERROR:  at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
25.06. 11:42:22.474 ERROR:  at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
25.06. 11:42:22.474 ERROR:  at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
############################# ERROR #############################
java.lang.ExceptionInInitializerError
    at com.sap.platin.r3.plaf.basic.BasicSAPConfigurator.setDefaultIconsImpl(BasicSAPConfigurator.java:60)
    at com.sap.platin.r3.plaf.basic.BasicSAPConfigurator.initDefaults(BasicSAPConfigurator.java:54)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at com.sap.platin.base.plaf.DesignLookAndFeel.getDefaults(DesignLookAndFeel.java:309)
    at javax.swing.UIManager.setLookAndFeel(UIManager.java:536)
    at com.sap.platin.base.logon.GuiImpl$1.run(GuiImpl.java:104)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:733)
    at java.awt.EventQueue.access$200(EventQueue.java:103)
    at java.awt.EventQueue$3.run(EventQueue.java:694)
    at java.awt.EventQueue$3.run(EventQueue.java:692)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:703)
    at com.sap.platin.micro.event.GuiEventQueue.dispatchEvent(GuiEventQueue.java:79)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
Caused by: java.lang.NullPointerException
    at com.sap.platin.base.util.GuiBitmapMgr.<clinit>(GuiBitmapMgr.java:42)
    ... 24 more
java.lang.NoClassDefFoundError: Could not initialize class com.sap.platin.base.util.GuiBitmapMgr
    at com.sap.platin.base.plaf.frog.hueshift.PlatinSystemHueShift.initThemeSpecificDef(PlatinSystemHueShift.java:81)
    at com.sap.platin.r3.plaf.frog.FrogSAPConfigurator.initDefaults(FrogSAPConfigurator.java:45)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at com.sap.platin.base.plaf.DesignLookAndFeel.getDefaults(DesignLookAndFeel.java:350)
    at javax.swing.UIManager.setLookAndFeel(UIManager.java:536)
    at com.sap.platin.base.logon.GuiImpl$1.run(GuiImpl.java:104)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:733)
    at java.awt.EventQueue.access$200(EventQueue.java:103)
    at java.awt.EventQueue$3.run(EventQueue.java:694)
    at java.awt.EventQueue$3.run(EventQueue.java:692)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:703)
    at com.sap.platin.micro.event.GuiEventQueue.dispatchEvent(GuiEventQueue.java:79)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
java.lang.NoClassDefFoundError: Could not initialize class com.sap.platin.base.util.GuiBitmapMgr
    at com.sap.platin.wdp.plaf.ur.WdpUrConfigurator.initUrComponentDefaults(WdpUrConfigurator.java:61)
    at com.sap.plaf.ur.UrConfigurator.initDefaults(UrConfigurator.java:241)
    at com.sap.platin.wdp.plaf.ur.WdpUrConfigurator.initDefaults(WdpUrConfigurator.java:47)
    at com.sap.platin.wdp.plaf.ur.WdpUrConfigurator.getDefaults(WdpUrConfigurator.java:42)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at com.sap.platin.base.plaf.DesignLookAndFeel.getDefaults(DesignLookAndFeel.java:400)
    at javax.swing.UIManager.setLookAndFeel(UIManager.java:536)
    at com.sap.platin.base.logon.GuiImpl$1.run(GuiImpl.java:104)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:733)
    at java.awt.EventQueue.access$200(EventQueue.java:103)
    at java.awt.EventQueue$3.run(EventQueue.java:694)
    at java.awt.EventQueue$3.run(EventQueue.java:692)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:703)
    at com.sap.platin.micro.event.GuiEventQueue.dispatchEvent(GuiEventQueue.java:79)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: Could not initialize class com.sap.platin.base.util.GuiBitmapMgr
    at com.sap.platin.base.logon.GuiLogon.initComponents(GuiLogon.java:1369)
    at com.sap.platin.base.logon.GuiLogon.<init>(GuiLogon.java:291)
    at com.sap.platin.base.logon.GuiLogon.getLogonFrame(GuiLogon.java:1344)
    at com.sap.platin.base.logon.GuiLogonManager.getLogonFrame(GuiLogonManager.java:60)
    at com.sap.platin.base.logon.GuiLogonManager.setVisibleLogonFrame(GuiLogonManager.java:78)
    at com.sap.platin.base.logon.GuiImpl$2.run(GuiImpl.java:164)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:733)
    at java.awt.EventQueue.access$200(EventQueue.java:103)
    at java.awt.EventQueue$3.run(EventQueue.java:694)
    at java.awt.EventQueue$3.run(EventQueue.java:692)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:703)
    at com.sap.platin.micro.event.GuiEventQueue.dispatchEvent(GuiEventQueue.java:79)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)

答案1

所以这里最终的解决方案是:使用刚刚发布的 SAPGUI java 730 rev 3...

答案2

我在 Debian Jessie/sid 和 Oracle 最新的 java SE 1.7.0_25 上遇到了同样的问题。将 java 恢复到 1.7.0_21 后,saplogon 就可以正常工作了!

相关内容