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 199307 - [70cat] NullPointerException at org.netbeans.modules.versioning.spi.VersioningSystem.moveChangeListeners
Summary: [70cat] NullPointerException at org.netbeans.modules.versioning.spi.Versionin...
Status: RESOLVED FIXED
Alias: None
Product: versioncontrol
Classification: Unclassified
Component: Code (show other bugs)
Version: 7.0
Hardware: All All
: P3 normal (vote)
Assignee: Tomas Stupka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-09 13:18 UTC by misterm
Modified: 2011-06-10 17:46 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 179264


Attachments
stacktrace (990 bytes, text/plain)
2011-06-09 13:18 UTC, misterm
Details

Note You need to log in before you can comment on or make changes to this bug.
Description misterm 2011-06-09 13:18:27 UTC
Build: NetBeans IDE Dev (Build 20110609-9855b74ca032)
VM: Java HotSpot(TM) Client VM, 16.2-b04, Java(TM) SE Runtime Environment, 1.6.0_19-b04
OS: Windows 7

Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.versioning.spi.VersioningSystem.moveChangeListeners(VersioningSystem.java:279)
   at org.netbeans.modules.versioning.spi.AccessorImpl.moveChangeListeners(AccessorImpl.java:64)
   at org.netbeans.modules.versioning.DelegatingVCS.getDelegate(DelegatingVCS.java:91)
   at org.netbeans.modules.versioning.DelegatingVCS.awake(DelegatingVCS.java:177)
   at org.netbeans.modules.versioning.DelegatingVCS.getTopmostManagedAncestor(DelegatingVCS.java:144)
   at org.netbeans.modules.versioning.VersioningManager.getOwner(VersioningManager.java:411)
Comment 1 misterm 2011-06-09 13:18:31 UTC
Created attachment 108822 [details]
stacktrace
Comment 2 Tomas Stupka 2011-06-09 15:05:44 UTC
the NPE is a aftereffect of a previous error:
INFO [org.netbeans.core.startup.layers.BinaryFS]: value = org.netbeans.modules.git.GitVCS from Services/VersioningSystem/org-netbeans-modules-git-GitVCS.instance
java.lang.ClassNotFoundException: org.netbeans.modules.git.GitVCS
	at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
	at org.netbeans.ProxyClassLoader.loadClass(ProxyClassLoader.java:262)

org.netbeans.modules.git.GitVCS couldn't be loaded even if the git module was listed on startup

- did you do anything with the Git module - deactivated or uninstalled?
- do you have some mixed repositories? e.g. a cvs checkout under a folder containing a .git folder?
Comment 3 Tomas Stupka 2011-06-09 15:05:45 UTC
the NPE is a aftereffect of a previous error:
INFO [org.netbeans.core.startup.layers.BinaryFS]: value = org.netbeans.modules.git.GitVCS from Services/VersioningSystem/org-netbeans-modules-git-GitVCS.instance
java.lang.ClassNotFoundException: org.netbeans.modules.git.GitVCS
	at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
	at org.netbeans.ProxyClassLoader.loadClass(ProxyClassLoader.java:262)

org.netbeans.modules.git.GitVCS couldn't be loaded even if the git module was listed on startup

- did you do anything with the Git module - deactivated or uninstalled?
- do you have some mixed repositories? e.g. a cvs checkout under a folder containing a .git folder?
Comment 4 misterm 2011-06-09 15:14:26 UTC
I've updated it.
Comment 5 Tomas Stupka 2011-06-09 15:21:50 UTC
do you have some mixed repositories? e.g. a cvs checkout under a folder
containing a .git folder?
Comment 6 misterm 2011-06-09 15:23:27 UTC
I have parallel checkouts, but not contained within each other. For instance:

- parent/cvs-based-project1
- parent/cvs-based-project2
- parent/git-based-project1
Comment 7 Tomas Stupka 2011-06-09 15:25:12 UTC
did you get the exception in the same nb session in which you updated the
plugin?
Comment 8 misterm 2011-06-09 15:26:04 UTC
Hmmm, I think so, can't tell for sure now... I had to do a restart today, so I can't remember.
Comment 9 Tomas Stupka 2011-06-09 15:46:11 UTC
fixed the NPE 
core-main #a852fae8816f
Comment 10 Tomas Stupka 2011-06-10 17:46:29 UTC
hm, not sure at the moment what might have been the cause for this, but there were recently some version misconfigurations (fixed in #4d55725576d5) so could be that.

the NPE is handled and also added more log #a852fae8816f in case similar behavior reappears

will close for now