This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 190383

Summary: OutOfMemory exception while selecting ssh key
Product: cnd Reporter: Andrew Krasny <akrasny>
Component: -- Other --Assignee: Andrew Krasny <akrasny>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P3    
Version: 7.0   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:

Description Andrew Krasny 2010-09-16 02:35:13 UTC
Steps to reproduce:
- start NB (with C/C++)
- Tools/Options/C/C++/
- 'Edit' on Development hosts
- Add any new host; Next
- select SSH Key; click Browse; 
- in file chooser browse to a directory with a big file =>

java.lang.OutOfMemoryError: Java heap space
        at com.jcraft.jsch.IdentityFile.newInstance(IdentityFile.java:84)
        at com.jcraft.jsch.JSch.addIdentity(JSch.java:206)
        at com.jcraft.jsch.JSch.addIdentity(JSch.java:192)
        at org.netbeans.modules.nativeexecution.support.SSHKeyFileChooser$SSHKeyFilter.accept(SSHKeyFileChooser.java:92)
        at javax.swing.JFileChooser.accept(JFileChooser.java:1576)
        at javax.swing.plaf.basic.BasicDirectoryModel$LoadFilesThread$1.call(BasicDirectoryModel.java:230)
        at javax.swing.plaf.basic.BasicDirectoryModel$LoadFilesThread$1.call(BasicDirectoryModel.java:216)
        at sun.awt.shell.ShellFolderManager$DirectInvoker.invoke(ShellFolderManager.java:207)
        at javax.swing.plaf.basic.BasicDirectoryModel$LoadFilesThread.run0(BasicDirectoryModel.java:216)
        at javax.swing.plaf.basic.BasicDirectoryModel$LoadFilesThread.run(BasicDirectoryModel.java:211)
SEVERE [org.openide.util.Exceptions]
java.lang.OutOfMemoryError: Java heap space
        at com.jcraft.jsch.IdentityFile.newInstance(IdentityFile.java:84)
        at com.jcraft.jsch.JSch.addIdentity(JSch.java:206)
        at com.jcraft.jsch.JSch.addIdentity(JSch.java:192)
        at org.netbeans.modules.nativeexecution.support.SSHKeyFileChooser$SSHKeyFilter.accept(SSHKeyFileChooser.java:92)
        at javax.swing.JFileChooser.accept(JFileChooser.java:1576)
        at javax.swing.plaf.basic.BasicDirectoryModel$LoadFilesThread$1.call(BasicDirectoryModel.java:230)
        at javax.swing.plaf.basic.BasicDirectoryModel$LoadFilesThread$1.call(BasicDirectoryModel.java:216)
        at sun.awt.shell.ShellFolderManager$DirectInvoker.invoke(ShellFolderManager.java:207)
        at javax.swing.plaf.basic.BasicDirectoryModel$LoadFilesThread.run0(BasicDirectoryModel.java:216)
[catch] at javax.swing.plaf.basic.BasicDirectoryModel$LoadFilesThread.run(BasicDirectoryModel.java:211)
Comment 1 Andrew Krasny 2010-09-16 02:38:51 UTC
http://hg.netbeans.org/cnd-main/rev/30c13496d710