facebook

Click to expand cvs version error

  1. MyEclipse IDE
  2.  > 
  3. Off Topic
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #251489 Reply

    blaplante
    Member

    Hi folks,

    I am using Eclipse 3.0.1 build: 200409161125 on XP pro running cvsNT. When I try to expand the version tree from the cvs perspective I get the following error. I have previously saved two versions and I want to delete one of them. I can see the other versions if you do a compare to. Any idea’s what might be wrong?

    An internal error occurred during: “Fetching children of Versions”.
    java.lang.NullPointerException
    org.eclipse.team.internal.ccvs.ui.repo.RepositoryRoot.getDefinedModules(RepositoryRoot.java:116)
    org.eclipse.team.internal.ccvs.ui.repo.RepositoryManager.getFoldersForTag(RepositoryManager.java:186)
    org.eclipse.team.internal.ccvs.ui.model.VersionCategory.getProjectVersionChildren(VersionCategory.java:97)
    org.eclipse.team.internal.ccvs.ui.model.VersionCategory.fetchChildren(VersionCategory.java:64)
    org.eclipse.team.internal.ccvs.ui.model.VersionCategory.fetchDeferredChildren(VersionCategory.java:162)
    org.eclipse.ui.progress.DeferredTreeContentManager$1.run(DeferredTreeContentManager.java:152)
    org.eclipse.core.internal.jobs.Worker.run(Worker.java:66)

    #251490 Reply

    Riyad Kalla
    Member

    Moving to OT > Soft Dev

    #251498 Reply

    blaplante
    Member

    I don’t understand why the error but here are two things I did to fix the problem. Here is the reference link.
    http://dev.eclipse.org/viewcvs/index.cgi/~checkout~/platform-vcm-home/docs/online/cvs_features2.0/cvs-faq.html?rev=HEAD&content-type=text/html

    #1 When I expand HEAD in the CVS Repositories View, it is always empty even though I know the repository has contents. Whats wrong?

    If you also see messages from the server like “-f server: …”, this indicates that your CVS server has not been configured properly. Here is the line as it should appear in the “/etc/inetd.conf” file (example from AIX but the problem has also been seen on Solaris):

    * cvspserver stream tcp nowait root /usr/bin/cvs cvs -f –allow-root=/usr/cvsroot pserver

    The key is the 2nd copy of “cvs”. The online cvs book at http://cvsbook.red-bean.com/cvsbook.html has it right (although I thought it was a typo so never tried it). Look for “The pserver access method is not working” section. Part of the reason I got this wrong is that the linux xinetd configuration does not duplicate the name of the program. At one point I just copied the fields from the linux config into the fields in the AIX inetd.conf file. Now that I know what to look for, the other entries in the inetd.conf file have the program name duplicated.

    #2 Why don’t my branches and versions show up when I am browsing?

    When you are browsing in the CVS Repositories view, you may expect to see branch and version tags which you have previously created. In CVS, such tags are stored on individual files rather than on projects or folders. Rather than scan every file in the repository, Eclipse only scans one well-known file, .project, which should exist in every Eclipse project. It is possible that you have other interesting tags that do not appear on .project but which you would like to show up in the CVS Repositories view.

    To make these tags appear, do the following:

    1. Open the CVS Repositories view.
    2. Expand HEAD and select the project for which you want to configure tags.
    3. Context Menu->Configure Branches and Versions…
    4. In the “Browse files for tags” table, select one or more files that contain tags you would like to see.
    5. Click “Add Selected Tags”.
    6. Click “OK”.

    The CVS Repositories view will now display the chosen tags under the Branches and Versions categories. In addition, these tags will show up in other tag-related operations, such as “Replace With->Branch or Version…”.
    [url][/url]

    #251506 Reply

    Riyad Kalla
    Member

    We appreciate you following up with yoru solution for others to learn from.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Click to expand cvs version error

You must be logged in to post in the forum log in