facebook

Repository registry initialization has encountered a problem

  1. MyEclipse IDE
  2.  > 
  3. Installation, Configuration & Updates
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #323751 Reply

    sirdag
    Member

    After using Norton Ghost backup to recover the project area and the corresponding csvn directory tree, this problem crops up. The message continues with one more line:
    “For input string: “(1).gen”
    Now, I know that when Ghost restores a same named file to an existing path, it will label the file with a suffix name, such as properties(1).txt

    Here is the log “clipping”: Where might I look?

    !ENTRY org.eclipse.core.jobs 4 2 2012-02-27 15:26:14.957
    !MESSAGE An internal error occurred during: “Repository registry initialization”.
    !STACK 0
    java.lang.NumberFormatException: For input string: “(1).gen”
    at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
    at java.lang.Long.parseLong(Long.java:403)
    at org.apache.lucene.index.SegmentInfos.generationFromSegmentsFileName(SegmentInfos.java:161)
    at org.apache.lucene.index.SegmentInfos.getCurrentSegmentGeneration(SegmentInfos.java:97)
    at org.apache.lucene.index.SegmentInfos.getCurrentSegmentGeneration(SegmentInfos.java:116)
    at org.apache.lucene.index.IndexReader.indexExists(IndexReader.java:506)
    at org.sonatype.nexus.index.context.DefaultIndexingContext.prepareIndex(DefaultIndexingContext.java:169)
    at org.sonatype.nexus.index.context.DefaultIndexingContext.<init>(DefaultIndexingContext.java:153)
    at org.sonatype.nexus.index.DefaultNexusIndexer.addIndexingContextForced(DefaultNexusIndexer.java:149)
    at org.maven.ide.eclipse.internal.index.NexusIndexManager.createIndexingContext(NexusIndexManager.java:890)
    at org.maven.ide.eclipse.internal.index.NexusIndexManager.setIndexDetails(NexusIndexManager.java:855)
    at org.maven.ide.eclipse.internal.index.NexusIndexManager.repositoryAdded(NexusIndexManager.java:800)
    at org.maven.ide.eclipse.internal.repository.RepositoryRegistry.addRepository(RepositoryRegistry.java:142)
    at org.maven.ide.eclipse.internal.repository.RepositoryRegistry.updateRegistry(RepositoryRegistry.java:216)
    at org.maven.ide.eclipse.internal.repository.RepositoryRegistryUpdateJob.run(RepositoryRegistryUpdateJob.java:42)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

    #323770 Reply

    support-tony
    Keymaster

    sirdag,

    Sorry you’re seeing this issue and thanks for the explanation about the suffixed file names. It seems as though the restore has created one of more files “segments(1).gen”, when maven functionality is expecting “segments.gen”. It looks like they get created in one or more sub-folders of the .cache folder in your local maven repository (.m2/repository in your home folder, usually). I guess the quickest fix would be to delete the .cache folder or the entire repository and allow it to be be rebuilt by MyEclipse.

    Please let us know if this fixes the problem.

    #323782 Reply

    sirdag
    Member

    Thankyou! Your post was completely accurate!

    #323795 Reply

    support-tony
    Keymaster

    sirdag,

    I’m glad that’s working now. Thanks for letting us know.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Repository registry initialization has encountered a problem

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