JDK-8213595 : Error while opening the JFileChooser with linkage problem
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 8u191
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_10
  • CPU: x86_64
  • Submitted: 2018-11-08
  • Updated: 2019-01-17
  • Resolved: 2018-12-03
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 8
8-poolResolved
Related Reports
Duplicate :  
Relates :  
Description
ADDITIONAL SYSTEM INFORMATION :
Microsoft Windows 10 Enterprise (10.0.17134) 
java version "1.8.0_191"
Java(TM) SE Runtime Environment (build 1.8.0_191-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.191-b12, mixed mode) 

A DESCRIPTION OF THE PROBLEM :
Whenever I open the JFileChooser to the operating system to select a file I get a shortcut error with the following message:

"The drive or network connection to which the "" shortcut refers is not available. Make sure the disk is inserted correctly or the network resource is available, and then repeat the procedure."

After I have removed all network drives and network resources the JFileChooser works as usual.

The problem occurs after you update to Minor Version 191. The JFilechooser can be opened reproducibly with Minor Version 181.

REGRESSION : Last worked in version 8u181

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Add a network resource to the Windows Explorer and open the JFileChooser anywhere.

EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
The JFileChooser is displayed without error message and I can select a file.
ACTUAL -
An error message with the following text is displayed:

"The drive or network connection to which the "" shortcut refers is not available. Make sure the disk is inserted correctly or the network resource is available, and then repeat the procedure."

---------- BEGIN SOURCE ----------
Not necessary.
---------- END SOURCE ----------

CUSTOMER SUBMITTED WORKAROUND :
After I have removed all network drives and network resources the JFileChooser works as usual.


FREQUENCY : always



Comments
This bug and JDK-8213583 have the same root cause. Closing this one as dupe of JDK-8213583.
23-11-2018

Submitter informed that the issue is reproducible when running Oracle SQL Developer with JDK 8u192. Checked with 8u191 as well and could confirm the issue. Steps to reproduce: - Create a simple .txt file - foo.txt - Create a shortcut and placed in public as well as user's desktop. - Delete the original .txt file (foo.txt) - Start Oracle SQL Developer with JDK 8u191/8u192. Application launches with reference to "Problem with Shortcut". Further it does not allow to cancel the dialog. Restoring file allow it tun run fine though. Ref: See attached screenshot as reference.
16-11-2018

Additional information received by submitter: ====================================== The problem is reproducible as follows: A network address must be linked under Windows (e.g. Microsoft Sharepoint). By this I don't mean a network drive but a network address. After the address has been added, the computer must be restarted so that the user is not authenticated at the address. Now the problem occurs under "Java Web Start" when I call the JFileChooser anywhere in the operating system. For this the respective application must be executed under "Java Web Start". I have attached the error message as a picture to the email (in german). I hope this description is sufficiently accurate. ========================================
09-11-2018

With a network resource selected in Windows Explorer via JFileChooser receives error - "The drive or network connection to which the " shortcut refers is not available. Checked this with JDK 8u181 and 8u191 with attached program as well but couldn't reproduce the issue as reported. Written back to the submitter requesting detailed information and clarification w.r.t statement in the description "The problem occurs after you update to Minor Version 191. The JFilechooser can be opened reproducibly with Minor Version 181".
09-11-2018