Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#460 Add Extra Class Button Crashes the Client

2.3final
closed-invalid
Colin Bell
Core (461)
5
2006-12-07
2006-12-05
akubimarco
No

I tried to add extra class path for adding driver HSQL. But when I click on the add button, CPU activity growth to 100% and nothing happened. I have to kill the process because the application is not responding anymore.
I use squirrel 2.3.1, java 1.5.09 and windows XP

Discussion

  • Colin Bell
    Colin Bell
    2006-12-05

    Logged In: YES
    user_id=233132
    Originator: NO

    Did the "open file" dialog display? And if so what was the file path that you tried to add?

     
  • Colin Bell
    Colin Bell
    2006-12-05

    • labels: --> Core
    • assigned_to: nobody --> colbell
     
  • akubimarco
    akubimarco
    2006-12-06

    Logged In: YES
    user_id=1585079
    Originator: YES

    The "open file" dialog did not display. Then i couldnt try to add any file.

     
  • Colin Bell
    Colin Bell
    2006-12-06

    Logged In: YES
    user_id=233132
    Originator: NO

    Could you attach your SQLDrivers.xml file to this bug report. You can find it in the .squirrel-sql\ directory within your home directory - usually c:\Documents,and Settings\<your logon>

     
  • akubimarco
    akubimarco
    2006-12-06

    SQLDrivers.xml

     
    Attachments
  • akubimarco
    akubimarco
    2006-12-06

    Logged In: YES
    user_id=1585079
    Originator: YES

    Here is the file。
    File Added: SQLDrivers.xml

     
  • Colin Bell
    Colin Bell
    2006-12-06

    Logged In: YES
    user_id=233132
    Originator: NO

    Does it happen on drivers other than HSQL?

     
  • akubimarco
    akubimarco
    2006-12-06

    Logged In: YES
    user_id=1585079
    Originator: YES

    My manipulation is not related to HSQL driver. I go to the menu drivers->New Driver. Then I click the Extra Class Path tab. Then I click the Add button. And then CPU activity raise and nothing happens.

     
  • Rob Manning
    Rob Manning
    2006-12-07

    Logged In: YES
    user_id=1287991
    Originator: NO

    Sun's JFileChooser has had bugs fixed in the past that manifested themselves as infinite loops and/or slow response. For instance:

    http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6317789

    documents an edge case that deals with shortcuts on the desktop. Can you compile and run the following test case so that we might have another data point:

    public class Test {
    public static void main(String[] args) {
    SwingUtilities.invokeLater(new Runnable() {
    public void run() {
    // java will hang here if a particular shortcut is present on the desktop
    JFileChooser fileChooser = new JFileChooser();
    };
    });
    }
    }

    Put it in a file called Test.java then exec 'javac Test.java' and finally 'java -cp . Test'

    I suspect it's a bug that we are triggering in JFileChooser. I previously optimized the code that the file editor uses (it was instantiating the JFileChooser unnecessarily - that is more than once). The symptom that I was seeing that allowed me to track down the "hanging" response mysteriously vanished while I was working on the bug. We might want to verify that the file chooser only gets instantiated once in the driver definition dialog. Beyond that, I really think this is a Sun bug that we're exposing. Does the SQL editor give the same problem when opening a file, or does it seem better behaved?

    Rob

    Rob

     
  • akubimarco
    akubimarco
    2006-12-07

    Logged In: YES
    user_id=1585079
    Originator: YES

    You are right. It s for sure a problem with the sdk.... I have the same problem with my own application, i just realised by testing. So it means that one of my updates of jdk 1.5 is not ok i guess. I think i will try to uninstall all my jdk and jdk updates, and install a clean an new one.

     
  • akubimarco
    akubimarco
    2006-12-07

    Logged In: YES
    user_id=1585079
    Originator: YES

    I'm sorry to have bothered you with this bug which is not a bug. I just found the answer :
    http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6317789
    This bug is due to network or desktop shortcut present on the desktop when the file chooser is open. File Chooser tries to resolve shortcut but seems to get lost with network or desktop links...
    A problem with the JDK since version 1.5...

     
  • Rob Manning
    Rob Manning
    2006-12-07

    Logged In: YES
    user_id=1287991
    Originator: NO

    No problem. It's happened to me before and it sure is frustrating when it happens. It's nice to at least have this documented in the bug database so if anyone else hits it we'll know.

    Rob

     
  • Rob Manning
    Rob Manning
    2006-12-07

    • status: open --> closed-invalid