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 - OutOfMemory exception while selecting ssh key
Summary: OutOfMemory exception while selecting ssh key
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 7.0
Hardware: PC Linux
: P3 normal (vote)
Assignee: Andrew Krasny
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-16 02:35 UTC by Andrew Krasny
Modified: 2010-09-16 02:38 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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