Bug 200563 - Null Pointer Exception when trying to use the CVS feature on a project already checked out via WinCVS
Summary: Null Pointer Exception when trying to use the CVS feature on a project alread...
Status: CLOSED WONTFIX
Alias: None
Product: Platform
Classification: Eclipse Project
Component: CVS (show other bugs)
Version: 3.4   Edit
Hardware: PC Windows XP
: P5 normal (vote)
Target Milestone: ---   Edit
Assignee: platform-cvs-inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords: helpwanted
Depends on:
Blocks:
 
Reported: 2007-08-20 11:10 EDT by Radu Solomon CLA
Modified: 2021-10-12 18:12 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Radu Solomon CLA 2007-08-20 11:10:37 EDT
Hi,

Every time the project is refreshed or compiled in Eclipse I get:

An internal error occurred during: "Auto-sharing imported CVS projects".
java.lang.NullPointerException

From the log:

!ENTRY org.eclipse.core.jobs 4 2 2007-08-20 10:54:27.093
!MESSAGE An internal error occurred during: "Auto-sharing imported CVS projects".
!STACK 0
java.lang.NullPointerException
	at org.eclipse.team.internal.ccvs.core.connection.CVSRepositoryLocation.fromString(CVSRepositoryLocation.java:353)
	at org.eclipse.team.internal.ccvs.core.connection.CVSRepositoryLocation.fromString(CVSRepositoryLocation.java:233)
	at org.eclipse.team.internal.ccvs.core.util.KnownRepositories.getRepository(KnownRepositories.java:181)
	at org.eclipse.team.internal.ccvs.core.resources.CVSWorkspaceRoot.setSharing(CVSWorkspaceRoot.java:59)
	at org.eclipse.team.internal.ccvs.core.CVSTeamProviderType$AutoShareJob.autoconnectCVSProject(CVSTeamProviderType.java:117)
	at org.eclipse.team.internal.ccvs.core.CVSTeamProviderType$AutoShareJob.run(CVSTeamProviderType.java:91)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)


=================================

If I try to use the Team > Share option to configure my CVS I get:

Internal Error Occured: java.lang.NullPointerException


From the log:

!ENTRY org.eclipse.team.ui 4 0 2007-08-20 11:07:59.609
!MESSAGE Configure Project
!STACK 0
java.lang.NullPointerException
	at org.eclipse.team.internal.ccvs.core.connection.CVSRepositoryLocation.fromString(CVSRepositoryLocation.java:353)
	at org.eclipse.team.internal.ccvs.core.connection.CVSRepositoryLocation.fromString(CVSRepositoryLocation.java:233)
	at org.eclipse.team.internal.ccvs.ui.wizards.ConfigurationWizardAutoconnectPage.setProject(ConfigurationWizardAutoconnectPage.java:117)
	at org.eclipse.team.internal.ccvs.ui.wizards.SharingWizard.addPages(SharingWizard.java:92)
	at org.eclipse.team.internal.ui.wizards.ConfigureProjectWizard.addPages(ConfigureProjectWizard.java:79)
	at org.eclipse.jface.wizard.WizardDialog.createContents(WizardDialog.java:540)
	at org.eclipse.jface.window.Window.create(Window.java:426)
	at org.eclipse.jface.dialogs.Dialog.create(Dialog.java:1081)
	at org.eclipse.jface.window.Window.open(Window.java:785)
	at org.eclipse.team.internal.ui.actions.ConfigureProjectAction$1.run(ConfigureProjectAction.java:53)
	at org.eclipse.team.internal.ui.actions.TeamAction$2.run(TeamAction.java:237)
	at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)
	at org.eclipse.team.internal.ui.actions.TeamAction.run(TeamAction.java:234)
	at org.eclipse.team.internal.ui.actions.ConfigureProjectAction.execute(ConfigureProjectAction.java:45)
	at org.eclipse.team.internal.ui.actions.TeamAction.run(TeamAction.java:477)
	at org.eclipse.team.internal.ui.actions.TeamAction.runWithEvent(TeamAction.java:511)
	at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:246)
	at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:545)
	at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:490)
	at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:402)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3682)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3293)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2389)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
	at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2219)
	at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:289)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:461)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:106)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:153)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:504)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:443)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1169)
Comment 1 Krzysztof Michalski CLA 2007-08-24 05:51:28 EDT
I cant't reproduce it. Could you give me more information about context: Build id,  specific configuration and steps to reproduce?
Comment 2 Radu Solomon CLA 2007-08-24 09:40:31 EDT
Note: I am not the only one seeing this issue. All the members of my team have same errors showing up

Steps to reproduce:
=====================

1. Checkout a project from CVS using WinCVS 2.0
2. Import the project in Eclipse using Import Project tool
3. Once the project finished importing and compile I start getting the errors



Configuration:
====================
Version: 3.3.0
Build id: I20070621-1340
Java: 1.6.0
Plug-ins installed: WTP 2.0 with Tomcat Servers configured from Eclipse


WinCVS Entries file:
=======================

/.classpath/1.6/Thu Sep 22 14:02:40 2005//
/.project/1.5/Tue Nov 21 18:54:23 2006//
/.tomcatplugin/1.2/Wed Jul 27 13:21:07 2005//
D/META-INF////
/Makefile/1.12/Wed Jun 13 16:26:08 2007//
D/Tomcat////
D/branding////
D/build////
/build.xml/1.18/Tue Jul 17 18:26:11 2007//
D/deploy////
D/download////
D/help////
D/lib////
D/src////
/tomcatTasks.properties/1.2/Wed Jul 27 13:21:07 2005//
D/ui////
/ui.spec.in/1.21/Tue Jul 17 18:21:04 2007//
/ui_eclipse_formatter.xml/1.3/Wed Nov  2 20:46:42 2005//
D/ui_main////
D/utils////




New error that I see:
=======================

!ENTRY org.eclipse.core.jobs 4 2 2007-08-23 17:11:07.921
!MESSAGE An internal error occurred during: "Updating Change Sets for CVS Workspace".
!STACK 0
java.lang.NullPointerException
	at org.eclipse.team.internal.ccvs.core.connection.CVSRepositoryLocation.fromString(CVSRepositoryLocation.java:353)
	at org.eclipse.team.internal.ccvs.core.connection.CVSRepositoryLocation.fromString(CVSRepositoryLocation.java:233)
	at org.eclipse.team.internal.ccvs.core.util.KnownRepositories.getRepository(KnownRepositories.java:181)
	at org.eclipse.team.internal.ccvs.core.resources.RemoteFolder.fromBytes(RemoteFolder.java:57)
	at org.eclipse.team.internal.ccvs.core.resources.RemoteFile.fromBytes(RemoteFile.java:93)
	at org.eclipse.team.internal.ccvs.core.syncinfo.CVSResourceVariantTree.getResourceVariant(CVSResourceVariantTree.java:141)
	at org.eclipse.team.core.variants.ResourceVariantTreeSubscriber.getSyncInfo(ResourceVariantTreeSubscriber.java:52)
	at org.eclipse.team.internal.ccvs.core.CVSSyncTreeSubscriber.getSyncInfo(CVSSyncTreeSubscriber.java:77)
	at org.eclipse.team.internal.ccvs.core.CVSSyncTreeSubscriber.getDiff(CVSSyncTreeSubscriber.java:149)
	at org.eclipse.team.internal.core.subscribers.SubscriberChangeSetManager.getDiff(SubscriberChangeSetManager.java:302)
	at org.eclipse.team.internal.core.subscribers.SubscriberChangeSetManager$EventHandler.handleChange(SubscriberChangeSetManager.java:183)
	at org.eclipse.team.internal.core.subscribers.SubscriberChangeSetManager$EventHandler.doDispatchEvents(SubscriberChangeSetManager.java:80)
	at org.eclipse.team.internal.core.BackgroundEventHandler.dispatchEvents(BackgroundEventHandler.java:394)
	at org.eclipse.team.internal.core.BackgroundEventHandler.processEvents(BackgroundEventHandler.java:374)
	at org.eclipse.team.internal.core.BackgroundEventHandler$1.run(BackgroundEventHandler.java:203)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)


Comment 3 Michael Valenta CLA 2007-08-28 21:38:51 EDT
What connection method are you using with WinCVS? Is it a local repository (i.e. no connection method) or are you using pserver or ext?
Comment 4 Radu Solomon CLA 2007-08-29 08:28:06 EDT
I am using pserver
Comment 5 Michael Valenta CLA 2007-08-30 12:43:23 EDT
Could you show us what your connection string looks like (i.e. the string used to identify your repository)? Feel free to change the server and the path if eitehr contain sensitive information. However, it would appear that there is something in your repository string that is causing the Eclipse parsing to fail.
Comment 6 Radu Solomon CLA 2007-08-30 13:15:44 EDT
My CVSROOT is: (Root file)
======================
:pserver;username=rsolo;password=rsolo!2#:cvs.eng.n-able.com:/home/cvs

Repository Path: (Repository File)
=======================
Development/n-cent/ui


Entries.Extra File
=======================
/.classpath////
/.project////
/.tomcatplugin////
/Makefile////
/build.xml////
/tomcatTasks.properties////
/ui_eclipse_formatter.xml////
D/META-INF////
D/Tomcat////
D/branding////
D/build////
D/deploy////
D/download////
D/help////
D/lib////
D/src////
D/ui////
D/ui_main////
D/utils////
/ui.spec.in////


Comment 7 Michael Valenta CLA 2007-08-30 13:22:31 EDT
Now I remember. WinCVS has it's own non-standard format for the repository string. At some point, we got a patch to support the basic form but there must be something in your string that the patch doesn't cover. To use Eclipse, you will need to switch to the standard format:

  :pserver:username@host:/root/path

You will be prompted for the password by Eclipse.

Also, we are happy to accept a patch that will correct the behavior when using the WinCVS format but we do not intend on addressing this issue ourselves.
Comment 8 Eclipse Webmaster CLA 2019-09-06 16:05:45 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.
Comment 9 Eclipse Genie CLA 2021-10-12 18:12:31 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug.

If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.