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 168094 - NullPointerException at org.netbeans.modules.subversion.Subversion.getClient
Summary: NullPointerException at org.netbeans.modules.subversion.Subversion.getClient
Status: RESOLVED INCOMPLETE
Alias: None
Product: versioncontrol
Classification: Unclassified
Component: Subversion (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker with 1 vote (vote)
Assignee: issues@versioncontrol
URL: http://statistics.netbeans.org/except...
Keywords:
: 167422 172485 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-07-03 15:23 UTC by bangpound
Modified: 2009-10-21 14:36 UTC (History)
9 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 153306


Attachments
stacktrace (790 bytes, text/plain)
2009-07-03 15:23 UTC, bangpound
Details

Note You need to log in before you can comment on or make changes to this bug.
Description bangpound 2009-07-03 15:23:37 UTC
This issue was originally marked as duplicate of issue 122411, that is already resolved. This issue is still valid, so this seems to be another issue, but it might be related.

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.7, i386

User Comments:
GUEST: right click on Project --> subversion -> show changes
project is not marked as version controlled but menu is like it is under version control.

GUEST: Trying to show changes in SVN after unfreezing my rails app

GUEST: SNV

pvramsey: opening a just-checked out Subversion project.

GUEST: Have old NetBeans PHP project.
Try to import into SVN repository.
Process always finish with error message.

alexlamsl: refreshing on "Subversion" Tab

orka: refreshing subversion window for project

benbrand: When reverting a file in my project.

tolaware: I opened the subversion windows and tried to "show changes" and the exception was thrown

cycloon: I was trying to refresh my project in the subversion window, the place where you see modified files and stuff.

ejvyas: Subversion->Show Changes

GUEST: Clicked on refresh in the Subversion window

beaucoder: updating SVN

GUEST: Trying to diff subversion revisions

GUEST: Refreshing Subversion changes.

jsr: performing a subversion refresh

GUEST: tried to svn refresh a version controlled project

GUEST: I had copied an old project to an empty workdir. The project used svn. However, after copying NetBeans attempted to use CVS.

GUEST: doing upload with subversion

GUEST: Refreshing the subversion panel to see the local/remote changes

bangpound: i switched project groups.

laurin1: Updating SVN

GUEST: I clicked on the refresh button in subversion view and this exception was thrown. It doesn't seem to cause any problems.

GUEST: Hi,
   I am working on a PHP project and I have subversion set up and working in NetBeans. Changes appear fine in the Projects window.. However the subversion window shows nothing for local or remote... Any questions eMail me at rw5@eircom.net

GUEST: right ckick on project -> subversion -> show changes

GUEST: Deleted entire project from local file system. checked out code from svn, noticed blinking icon in lower right corner.

onolox: I tried to refresh in the panel 'subversion'.

GUEST: when klikin the refresh button on subversion panel

ehsavoie: Subversion update

GUEST: Clicket "synchronize"-button in subversion changes view

ymajoros: Netbeans think my project is versioned, although I remove .svn folders ; I'd like to import it in a new repository --> this exception ; Netbean has been restarted, project closed and reopened, ...

GUEST: Started Netbeans, during loading this exception occurred. Downloaded Netbeans again from www.netbeans.org. Reinstalled Netbeans. And again during starting this exception occurred.

GUEST: cannot open the subversion window. 
I am using collabnet svn

GUEST: cannot open the subversion window. 
I am using collabnet svn

GUEST: Not exactly sure what happened here, but I'm using netbeans to edit files over NFS...

GUEST: refreshing status on Subversion window

GUEST: Tried to delete a local folder, got error before comiting.
(Not local/server changes visible in svn status window).



Stacktrace: 
java.lang.NullPointerException
        at org.netbeans.modules.subversion.Subversion.getClient(Subversion.java:220)
        at org.netbeans.modules.subversion.Subversion.getClient(Subversion.java:270)
        at org.netbeans.modules.subversion.ui.status.StatusAction.executeStatus(StatusAction.java:105)
        at org.netbeans.modules.subversion.ui.status.VersioningPanel$6.perform(VersioningPanel.java:389)
        at org.netbeans.modules.subversion.client.SvnProgressSupport.performIntern(SvnProgressSupport.java:103)
        at org.netbeans.modules.subversion.client.SvnProgressSupport.run(SvnProgressSupport.java:96)
Comment 1 bangpound 2009-07-03 15:23:50 UTC
Created attachment 84339 [details]
stacktrace
Comment 2 Ondrej Vrabec 2009-07-03 16:21:59 UTC
bangpound: you've tried to refresh the subversion panel while it's context was set to '/Users/bjd/Sites/electronicintifada'.
Are you absolutely sure the folder existed in that time? Could you also check if there is a '.svn/entries' folder inside
'/Users/bjd/Sites/electronicintifada'?
I know of only one scenario when you can reproduce this issue:
1) Subversion->Show changes on a project
2) Delete the project
3) Refresh in the Subversion panel - it still holds a context with a not existing folder. Trying to perform any
operations on such context results in a NPE
Comment 3 Marian Mirilovic 2009-07-09 09:34:11 UTC
106 duplicates ... P1 ... candidate for 6.7 Patch (very probably not Patch 1)
Comment 4 Ondrej Vrabec 2009-07-09 09:55:56 UTC
Marian, this is probably not P1, i still think it's P3.
Most of those duplicates are from 6.5 - most of the reproducible scenarios were fixed in issue 122411. There are still
some scenarios which we cannot reveal (and no user has ever provided us with a satisfiable scenario, in fact no user has
ever replied to any of our answers). I know of only one (but highly improbable to be P1) - mentioned in this issue.
So unless we have a reproducible testcase from affected users, i don't think this can be fixed.

The same problem as in issue 167422, but none of the reporters answers for my questions there either.

So to anyone using 6.7, please describe exactly what you were doing before the exception showed.
Comment 5 bangpound 2009-07-09 23:49:06 UTC
I'm sorry I've been late in responding.

I am not deleting a project. The SVN working copy is valid. If I use the CLI to 'svn update' it's fine.

The few times I've seen this error, it's followed me closing one project and opening another followed by running 'show changes' on the root of the newly 
opened project when the 'Subversion' tab panel is displaying the changes for that other already closed project. However, the NPE does not happen each time I 
do this.
Comment 6 Ondrej Vrabec 2009-07-10 12:49:32 UTC
So '/Users/bjd/Sites/electronicintifada' still exists and in commandline works fine?
If you perform Show Changes on this folder, sometimes the NPE happens and sometime it doesn't? Is it random or this
project always triggers the exception?

Well, i still don't see the reason for the exception to occur, but at least added some logging:
cdev #d315dc917baa
Comment 7 Quality Engineering 2009-07-11 06:25:33 UTC
Integrated into 'main-golden', will be available in build *200907110200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/d315dc917baa
User: Ondrej Vrabec <ovrabec@netbeans.org>
Log: #168094 - neverending story with a NPE at o.n.m.subversion.Subversion.getClient
adding some logging that should help us find the original reason for this exception
Comment 8 pubpuck 2009-07-23 19:36:06 UTC
I am an Eclipse user on a Windows Vista 32bit box.  I have a ton of projects checked into SVN from Eclipse.  Now when I 
try to Team->SVN->Checkout in NetBeans, I can do so.  However, after checking out the project, netbeans doesn't 
recognize the project as being an SVN project.  There is a "Versioning" option in the context menu, but only when I 
right click on the project in the "Projects" window.  However, "Show Changes, Diff, Update, Update with Dependencies, 
Commit..., Search History..., Revert Modifications...., Resolve Conflicts..., Svn Properties" are all grayed out.  The 
only options are "Import into CVS Repository..., Initialize Mercurial Project, Copy To..., Switch to Copy..., Merge 
Changes..., Apply Diff Patch...".  


I can see the .svn folders in all the directories, it works fine in Eclipse and Tortoise viewer.  The picture shows what 
options I have available to me.  These options don't change if I change any of the local files.
Comment 9 Peter Pis 2009-09-03 15:36:08 UTC
*** Issue 167422 has been marked as a duplicate of this issue. ***
Comment 10 Ondrej Vrabec 2009-09-17 15:14:30 UTC
*** Issue 172485 has been marked as a duplicate of this issue. ***