重庆思庄Oracle、Redhat认证学习论坛

标题: Oracle Universal Installer Crashes: Could not initialize class java.awt.dnd.D [打印本页]

作者: 郑全    时间: 2020-7-19 20:23
标题: Oracle Universal Installer Crashes: Could not initialize class java.awt.dnd.D
Oracle Universal Installer Crashes: Could not initialize class java.awt.dnd.DragSource (Doc ID 2154348.1)

In this Document
Symptoms
Changes
Cause
Solution
APPLIES TO:
Oracle Database - Enterprise Edition - Version 12.1.0.2 and later
Oracle Database Exadata Cloud Machine - Version N/A and later
Oracle Cloud Infrastructure - Database Service - Version N/A and later
Oracle Database Exadata Express Cloud Service - Version N/A and later
Oracle Database Cloud Exadata Service - Version N/A and later
Linux x86-64
SYMPTOMS
During Grid Infrastructure install, after selecting "Advanced Installation" from OUI then clicking Next, the installer crashes with the following error(s)
installActions<time_stamp>.log
====================
...
SEVERE: [FATAL] java.lang.NoClassDefFoundError: Could not initialize class java.awt.dnd.DragSource
SUMMARY:
- Could not initialize class java.awt.dnd.DragSource.
Refer associated stacktrace #oracle.install.commons.util.exception.DefaultErrorAdvisor:522
oraInstall<time_stamp>.err
====================
java.lang.RuntimeException: cannot load system cursor: CopyDrop.32x32
at sun.awt.X11.XToolkit.lazilyLoadDesktopProperty(XToolkit.java:1136)     <-----HERE
at java.awt.Toolkit.getDesktopProperty(Toolkit.java:1759)
at java.awt.dnd.DragSource.load(DragSource.java:119)
at java.awt.dnd.DragSource.<clinit>(DragSource.java:135)
at oracle.bali.ewt.shuttle.ShuttleDnDSupport._init(ShuttleDnDSupport.java:363)
at oracle.bali.ewt.shuttle.ShuttleDnDSupport.<init>(ShuttleDnDSupport.java:59)
at oracle.bali.ewt.shuttle.Shuttle._createShuttleDnDSupport(Shuttle.java:3394)
at oracle.bali.ewt.shuttle.Shuttle._setPicker(Shuttle.java:1662)
at oracle.bali.ewt.shuttle.Shuttle._setToPicker(Shuttle.java:1575)
at oracle.bali.ewt.shuttle.Shuttle.setToPicker(Shuttle.java:572)
at oracle.install.ivw.common.view.ProductLanguagePane.buildUI(ProductLanguagePane.java:157)
at oracle.install.ivw.common.view.ProductLanguagePane.<init>(ProductLanguagePane.java:94)
at oracle.install.ivw.common.view.ProductLanguageGUI.<init>(ProductLanguageGUI.java:55)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at java.lang.Class.newInstance0(Class.java:357)
at java.lang.Class.newInstance(Class.java:310)
at oracle.install.commons.flow.ViewManager.getView(ViewManager.java:58)
at oracle.install.commons.flow.State.getView(State.java:113)
at oracle.install.commons.flow.jewt.WizardBottomPanelHandler.updatePanel(WizardBottomPanelHandler.java:84)
at oracle.install.commons.flow.jewt.WizardBottomPanelHandler$1.call(WizardBottomPanelHandler.java:63)
at oracle.install.commons.flow.jewt.WizardBottomPanelHandler$1.call(WizardBottomPanelHandler.java:61)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:679)
at java.awt.EventQueue.access$400(EventQueue.java:81)
at java.awt.EventQueue$2.run(EventQueue.java:640)
at java.awt.EventQueue$2.run(EventQueue.java:638)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:86)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:649)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Caused by: java.awt.AWTException: Exception: class java.lang.IllegalArgumentException Width (0) and height (0) must be non-zero occurred while creating cursor CopyDrop.32x32
at java.awt.Cursor.getSystemCustomCursor(Cursor.java:339)       <-----AWT trying to draw GUI on Display with invalid width and height values
at sun.awt.X11.XToolkit.lazilyLoadDesktopProperty(XToolkit.java:1134)
... 39 more
No additional information is given when clicking the Details button.
Additionally, choosing 'Typical Installation' in OUI works with no issue.
  
NOTE: This has also been observed under the same circumstances when installing RDBMS standalone. It is not specific to Grid OUI.
  
CHANGES
None
CAUSE
The root cause is unknown at this time but from the java class error messages it can be narrowed down to the display as the culprit.
OUI was launched from directly at the server using a KVM(Keyboard Video Mouse) and not through a remote PC forwarding X session.
SOLUTION
Workaround: Install remotely from another system utilizing X forwarding.
Perform the installation via X11 Forwarding
1) Login to a Linux System that has X11 installed (has a GUI)
2) Connect to the target server that Oracle Grid Infrastructure is being installed on via SSH

ssh -X username@serverIP
3) Launch the installer

cd <Location of extracted installer>/grid
./runInstaller





欢迎光临 重庆思庄Oracle、Redhat认证学习论坛 (http://bbs.cqsztech.com/) Powered by Discuz! X3.2