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 242553 - NullPointerException at org.netbeans.modules.php.project.connections.sftp.SftpClient.setProxy
Summary: NullPointerException at org.netbeans.modules.php.project.connections.sftp.Sft...
Alias: None
Product: php
Classification: Unclassified
Component: Project (show other bugs)
Version: 8.0
Hardware: All All
: P2 normal (vote)
Assignee: Tomas Mysik
Keywords: 8.0_HR_FIX
: 244061 (view as bug list)
Depends on:
Reported: 2014-03-04 16:27 UTC by mmolda
Modified: 2014-05-26 07:44 UTC (History)
6 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 205594

stacktrace (8.15 KB, text/plain)
2014-03-04 16:27 UTC, mmolda

Note You need to log in before you can comment on or make changes to this bug.
Description mmolda 2014-03-04 16:27:52 UTC
Build: NetBeans IDE Dev (Build 201403040001)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.0-b69, Java(TM) SE Runtime Environment, 1.8.0-b131
OS: Windows 7

User Comments:
CoffeeNerd: This just started happening after I installed the current daily build - now none of my installations (production 7.4 patch 1, 20131108 build nor this build are able to upload files to my remote server via sFTP.

GUEST: I tried to make a remote php project.
Used SFTP connection mode and hit test connection button

mmolda: Configuring new SFTP connection. Filled in Host name, username, password and clicked on Test Connection - exception thrown.

GUEST: upload not possible <Please provide a description of the problem or the steps to reproduce>

   at org.netbeans.modules.php.project.connections.sftp.SftpClient.setProxy(
   at org.netbeans.modules.php.project.connections.sftp.SftpClient.createSftpSession(
   at org.netbeans.modules.php.project.connections.sftp.SftpClient.init(
   at org.netbeans.modules.php.project.connections.sftp.SftpClient.connect(
   at org.netbeans.modules.php.project.connections.RemoteClient.connect(
   at org.netbeans.modules.php.project.connections.ui.RemoteConnectionsPanel.testConnection(
Comment 1 mmolda 2014-03-04 16:27:54 UTC
Created attachment 145751 [details]
Comment 2 Tomas Mysik 2014-03-05 07:23:45 UTC
Unfortunately, this happens for SFTP if proxy is used. Definitely a patch candidate...

Should be fixed now, please verify (proxy, no proxy, ssh-agent, no ssh-agent). 

Comment 3 Tomas Mysik 2014-03-05 07:48:44 UTC
Since the fix should be safe (reviewed by Ondra), transplanting to release repo to branch release80.

Comment 4 Tomas Mysik 2014-03-05 07:50:06 UTC
Láďo/Milane, verify please this issue in latest biuld of NB 8.0. Thanks a lot.
Comment 5 Tomas Mysik 2014-03-05 07:50:42 UTC
Sorry, I have removed the keyword.
Comment 6 Quality Engineering 2014-03-06 01:11:58 UTC
Integrated into 'releases/release80', will be available in build *201403052200* or newer. Wait for official and publicly available build.

User: Tomas Mysik <>
Log: #242553 - NullPointerException at org.netbeans.modules.php.project.connections.sftp.SftpClient.setProxy
(transplanted from a81945598267160779c52b5fc1a4c381af6d89a0)
Comment 7 mmolda 2014-03-06 09:15:21 UTC
Works great. I also tried upload/download/synchronize.

Product Version: NetBeans IDE 8.0 (Build 201403052200)
Java: 1.8.0; Java HotSpot(TM) 64-Bit Server VM 25.0-b69
Runtime: Java(TM) SE Runtime Environment 1.8.0-b131
System: Windows 7 version 6.1 running on amd64; Cp1250; en_US (nb)
Comment 8 Quality Engineering 2014-03-07 02:40:14 UTC
Integrated into 'main-silver', will be available in build *201403070001* on (upload may still be in progress)

User: Tomas Mysik <>
Log: #242553 - NullPointerException at org.netbeans.modules.php.project.connections.sftp.SftpClient.setProxy
Comment 9 Marian Mirilovic 2014-05-26 07:44:09 UTC
*** Bug 244061 has been marked as a duplicate of this bug. ***