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

[macos 10.15] FileChooser does not work on macOS Catalina

    Details

      Description

      ADDITIONAL SYSTEM INFORMATION :
      macOS Catalina (10.15 Beta), JDK 1.8, 9, 11

      A DESCRIPTION OF THE PROBLEM :
      component does not work and the following error message is printed out to the Java console:

      java[2748:110752] +[NSXPCSharedListener endpointForReply:withListenerName:]: an error occurred while attempting to obtain endpoint for listener 'com.apple.view-bridge': Connection interrupted

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      fileChooser.showOpenDialog(primaryStage);

      The same issue appears when I try to open a file using the awt,FileDialog component

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      A dialog should be displayed
      ACTUAL -
      Got "an error occurred while attempting to obtain endpoint for listener 'com.apple.view-bridge': Connection interrupted" printed in Java console and component does not show up.

      ---------- BEGIN SOURCE ----------
      public class Test extends Application {
          public static void main(String[] args) throws Exception {
              launch(args);
           }

          @Override
          public void start(Stage primaryStage) {
              primaryStage.setTitle("JavaFX App");

              FileChooser fileChooser = new FileChooser();

              Button button = new Button("Select File");
              button.setOnAction(e -> {
                  File selectedFile = fileChooser.showOpenDialog(primaryStage);
              });

              VBox vBox = new VBox(button);
              Scene scene = new Scene(vBox, 960, 600);

              primaryStage.setScene(scene);
              primaryStage.show();
          }
      }
      ---------- END SOURCE ----------

      FREQUENCY : always


        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                kcr Kevin Rushforth
                Reporter:
                webbuggrp Webbug Group
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: