java.lang.IllegalArgumentException: Unabled to select file /Applications/TextEdit.app: the file chooser can only open files

GitHub | aguelle | 2 months ago
  1. 0

    JFileChooserFixture.selectFile() fails with IllegalArgumentException on choosing .app directories on OSX

    GitHub | 2 months ago | aguelle
    java.lang.IllegalArgumentException: Unabled to select file /Applications/TextEdit.app: the file chooser can only open files
  2. 0

    GitHub comment 1490#142624956

    GitHub | 1 year ago | InfinityApps
    java.lang.IllegalArgumentException: Two configurations with different schemas are trying to open the same Realm file. Their schema must be the same: /data/data/com.example.app/files/info.realm
  3. 0

    Query.getLockMode() does not throw IllegalStateException when the query is found not to be a Java Persistence query language SELECT query or a Criteria API query

    Eclipse Bugzilla | 5 years ago | stephen.dimilla
    java.lang.IllegalArgumentException: A lock type can only be used with a select query (which allows the database to be locked where necessary).
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    .Query.setLockMode ( LockModeType ) does not throw IllegalStateException when the query is found not to be a Java Persistence query language SELECT query or a Criteria API query

    Eclipse Bugzilla | 5 years ago | stephen.dimilla
    java.lang.IllegalArgumentException: A lock type can only be used with a select query (which allows the database to be locked where necessary).
  6. 0

    Backup fails if dropbox is running

    areca | 3 years ago | christianrapp
    java.lang.IllegalArgumentException: Only files are accepted. .dropbox/command_socket is not a file.

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      Unabled to select file /Applications/TextEdit.app: the file chooser can only open files

      at org.assertj.swing.driver.JFileChooserSelectFileTask.cannotSelectFile()
    2. org.assertj.swing
      GuiTask.run
      1. org.assertj.swing.driver.JFileChooserSelectFileTask.cannotSelectFile(JFileChooserSelectFileTask.java:81)
      2. org.assertj.swing.driver.JFileChooserSelectFileTask.checkSelectionMode(JFileChooserSelectFileTask.java:72)
      3. org.assertj.swing.driver.JFileChooserSelectFileTask.access$000(JFileChooserSelectFileTask.java:37)
      4. org.assertj.swing.driver.JFileChooserSelectFileTask$1.executeInEDT(JFileChooserSelectFileTask.java:44)
      5. org.assertj.swing.edt.GuiTask.run(GuiTask.java:36)
      5 frames
    3. Java RT
      JFileChooser.showOpenDialog
      1. java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
      2. java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
      3. java.awt.EventQueue.access$500(EventQueue.java:97)
      4. java.awt.EventQueue$3.run(EventQueue.java:709)
      5. java.awt.EventQueue$3.run(EventQueue.java:703)
      6. java.security.AccessController.doPrivileged(Native Method)
      7. java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
      8. java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
      9. java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
      10. java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
      11. java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:109)
      12. java.awt.WaitDispatchSupport$2.run(WaitDispatchSupport.java:184)
      13. java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:229)
      14. java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:227)
      15. java.security.AccessController.doPrivileged(Native Method)
      16. java.awt.WaitDispatchSupport.enter(WaitDispatchSupport.java:227)
      17. java.awt.Dialog.show(Dialog.java:1084)
      18. javax.swing.JFileChooser.showDialog(JFileChooser.java:758)
      19. javax.swing.JFileChooser.showOpenDialog(JFileChooser.java:656)
      19 frames
    4. Unknown
      FileChooserFrame$1.actionPerformed
      1. FileChooserFrame$1.actionPerformed(FileChooserFrame.java:30)
      1 frame
    5. Java RT
      EventDispatchThread.run
      1. javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022)
      2. javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2348)
      3. javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
      4. javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
      5. javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252)
      6. java.awt.Component.processMouseEvent(Component.java:6535)
      7. javax.swing.JComponent.processMouseEvent(JComponent.java:3324)
      8. java.awt.Component.processEvent(Component.java:6300)
      9. java.awt.Container.processEvent(Container.java:2236)
      10. java.awt.Component.dispatchEventImpl(Component.java:4891)
      11. java.awt.Container.dispatchEventImpl(Container.java:2294)
      12. java.awt.Component.dispatchEvent(Component.java:4713)
      13. java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4888)
      14. java.awt.LightweightDispatcher.processMouseEvent(Container.java:4525)
      15. java.awt.LightweightDispatcher.dispatchEvent(Container.java:4466)
      16. java.awt.Container.dispatchEventImpl(Container.java:2280)
      17. java.awt.Window.dispatchEventImpl(Window.java:2750)
      18. java.awt.Component.dispatchEvent(Component.java:4713)
      19. java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
      20. java.awt.EventQueue.access$500(EventQueue.java:97)
      21. java.awt.EventQueue$3.run(EventQueue.java:709)
      22. java.awt.EventQueue$3.run(EventQueue.java:703)
      23. java.security.AccessController.doPrivileged(Native Method)
      24. java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
      25. java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
      26. java.awt.EventQueue$4.run(EventQueue.java:731)
      27. java.awt.EventQueue$4.run(EventQueue.java:729)
      28. java.security.AccessController.doPrivileged(Native Method)
      29. java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
      30. java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
      31. java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
      32. java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
      33. java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
      34. java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
      35. java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
      36. java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
      36 frames
    6. org.assertj.swing
      JFileChooserFixture.selectFile
      1. org.assertj.swing.edt.GuiActionRunner.execute(GuiActionRunner.java:102)
      2. org.assertj.swing.driver.JFileChooserSelectFileTask.setSelectedFile(JFileChooserSelectFileTask.java:40)
      3. org.assertj.swing.driver.JFileChooserDriver.selectFile(JFileChooserDriver.java:75)
      4. org.assertj.swing.fixture.JFileChooserFixture.selectFile(JFileChooserFixture.java:142)
      4 frames
    7. Unknown
      FileChooserTest.selectAppWithFileChooser
      1. FileChooserTest.selectAppWithFileChooser(FileChooserTest.java:53)
      1 frame
    8. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:498)
      4 frames
    9. JUnit
      ParentRunner.run
      1. org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
      2. org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
      3. org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
      4. org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
      5. org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
      6. org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
      7. org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
      8. org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
      9. org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
      10. org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
      11. org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
      12. org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
      13. org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
      14. org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
      15. org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
      16. org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
      17. org.junit.runners.ParentRunner.run(ParentRunner.java:363)
      17 frames
    10. JUnit4 Runner
      JUnit4TestReference.run
      1. org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
      1 frame
    11. JUnit3 Runner
      RemoteTestRunner.main
      1. org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
      2. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:459)
      3. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:675)
      4. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:382)
      5. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:192)
      5 frames