Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8189938

Exception in thread "Swing-Shell" java.lang.InternalError: Could not initialize COM: HRESULT=0x80010106

XMLWordPrintable

    • x86_64
    • other

      FULL PRODUCT VERSION :
      Java 9.0.1

      ADDITIONAL OS VERSION INFORMATION :
      Windows 10 (Creators Update)

      EXTRA RELEVANT SYSTEM CONFIGURATION :
      Java Swing GUI application installed via the Windows Store (i.e. APPX package)

      A DESCRIPTION OF THE PROBLEM :
      The Desktop Bridge makes it possible to deploy Java Swing applications in the Windows Store. This worked for Java 8, but for the latest Java 9 there seem to be issues running in this environment.

      e.g. opening JFileChooser deadlocks the Swing EDT and freezes the application, drag-n-drop not working, etc.

      REGRESSION. Last worked in version 8u144

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      Java Swing applications packaged with Java 9 and deployed on the Windows Store should work.

      ERROR MESSAGES/STACK TRACES THAT OCCUR :
      Exception in thread "Swing-Shell" java.lang.InternalError: Could not initialize COM: HRESULT=0x80010106
          at java.desktop/sun.awt.shell.Win32ShellFolderManager2.initializeCom(Native Method)
          at java.desktop/sun.awt.shell.Win32ShellFolderManager2$ComInvoker$1.run(Unknown Source)
          at java.base/java.lang.Thread.run(Unknown Source)

      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      Creating a test case would take a few hours. I will create one if it's necessary.
      ---------- END SOURCE ----------

      CUSTOMER SUBMITTED WORKAROUND :
      Using Java 8 works fine, but we need Java 9 for HiDPI support.

        1. screenshot.png
          93 kB
          Prasanta Sadhukhan

            psadhukhan Prasanta Sadhukhan
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: