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 170828 - NullPointerException at org.netbeans.modules.php.project.connections.RemoteClient.renameLocalFileTo
Summary: NullPointerException at org.netbeans.modules.php.project.connections.RemoteCl...
Status: RESOLVED WORKSFORME
Alias: None
Product: php
Classification: Unclassified
Component: Project (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Tomas Mysik
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-24 17:19 UTC by darrenoh
Modified: 2009-11-10 08:47 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 142931


Attachments
stacktrace (1.50 KB, text/plain)
2009-08-24 17:20 UTC, darrenoh
Details

Note You need to log in before you can comment on or make changes to this bug.
Description darrenoh 2009-08-24 17:19:56 UTC
Build: NetBeans IDE 6.7 (Build 200906241340)
VM: Java HotSpot(TM) Client VM, 1.5.0_19-137, Java(TM) 2 Runtime Environment, Standard Edition, 1.5.0_19-b02-304
OS: Mac OS X, 10.5.8, i386

User Comments:
GUEST: uploading files from remote server

GUEST: I tried to Download project from SFTP source / gigabit internet connection / 
Not all files have been downloaded.

darrenoh: Downloading project source files via sftp after deleting all source files locally.



Stacktrace: 
java.lang.NullPointerException
        at org.netbeans.modules.php.project.connections.RemoteClient.renameLocalFileTo(RemoteClient.java:991)
        at org.netbeans.modules.php.project.connections.RemoteClient.access$000(RemoteClient.java:79)
        at org.netbeans.modules.php.project.connections.RemoteClient$1.run(RemoteClient.java:645)
        at org.openide.filesystems.FileUtil$1.run(FileUtil.java:452)
        at org.openide.filesystems.EventControl.runAtomicAction(EventControl.java:120)
        at org.openide.filesystems.FileSystem.runAtomicAction(FileSystem.java:509)
Comment 1 darrenoh 2009-08-24 17:20:01 UTC
Created attachment 86578 [details]
stacktrace
Comment 2 Tomas Mysik 2009-09-08 14:54:46 UTC
Sorry, I have no idea how this can happen. Would it be possible to get a reproducible use case? Or if you could provide any information which could help
us to simulate this issue. Thanks a lot.
Comment 3 darrenoh 2009-09-18 17:55:23 UTC
1. Do an SVN checkout on the remote server.
2. Create a NetBeans project that updates to the remote site.
3. Download files.
4. Close NetBeans.
5. Delete all files from source directory.
6. Open NetBeans.
7. Download files from remote server to source directory.
Comment 4 Tomas Mysik 2009-09-29 11:37:58 UTC
Thanks, I will look at it.
Comment 5 Tomas Mysik 2009-11-10 08:47:47 UTC
Unfortunately, I cannot reproduce this bug. What I did exactly:

- create PHP project with existing sources (on local disk)
- create Remote Run Configuration (SFTP type)
- upload existing sources
- close NB
- manually delete all project files (except nbproject directory)
- start NB
- download all sources

No NPE occured.

If I'm doing something wrong (but it should be basically the same steps I think), please, reopen this bug and let me know.

Thanks for reporting.

Product Version: NetBeans IDE Dev (Build 091110-e438bb2abf94)
Java: 1.6.0_16; Java HotSpot(TM) 64-Bit Server VM 14.2-b01
System: Linux version 2.6.31-14-generic running on amd64; UTF-8; cs_CZ (nb)