Skip to content

FileAlreadyExistsException (JGit issue - upgrade req.) #4197

Closed

Description

@aplatypus

Apache NetBeans version

Apache NetBeans 13

What happened

Netbeans notifications displayed this message after start-up.

A java.nio.file.FileAlreadyExistsException exception has occurred.
Please report this at https://netbeans.apache.org/nb/report-issue,
including a copy of your messages.log file as an attachment.
The messages.log file is located in your /home/william/.config/netbeans/v13.00/4ams/v17.00/user-02/var/log folder.

How to reproduce

  • Well I just started Netbeans.
  • The file exists but there is an error because it exists.
  • I believe it should exist
  • I have uploaded logs and the exception error log

Did this work correctly in an earlier version?

Apache NetBeans 12.6

Operating System

Ubuntu 22.04 LTS

JDK

openjdk version "17.0.1" 2021-10-19 LTS

Apache NetBeans packaging

Other

Anything else

Are you willing to submit a pull request?

Yes

Code of Conduct

Yes

Activity

  1. added
    kind:bug
    needs:triage
    on Jun 4, 2022
  2. neilcsmith-net commented on Jun 4, 2022

    @neilcsmith-net
    Member

    Thanks for the report. The log shows this throwing in org.eclipse.jgit.util.SystemReader. Looks like this may be a bug with the version of JGit we're shipping. Is it possibly this? https://bugs.eclipse.org/bugs/show_bug.cgi?id=565637

  3. added
    pending-response
    on Jun 7, 2022
  4. aplatypus commented on Jun 16, 2022

    @aplatypus
    Author

    Same error happened again today. I took another look at the stack trace. The directory:

    • /home/william/.config
      Is a linux desktop standard folder for config files.

    On this system the Git config is:

    • /home/william/.config/git/config

    and

    • /home/william/.config is a symlink --> ../../data/home/william/.config/
    • Which collects all these things under a data/ file tree: /data/home/william/.config/

    I noticed in the Eclipse error there is an association with a symbolic link.

    One thing to remark on, this error doesn't come-up too often So, most of the time it seems to work find with the symlink.

  5. removed
    pending-response
    on Jun 24, 2022
  6. neilcsmith-net commented on Jun 24, 2022

    @neilcsmith-net
    Member

    Thanks for confirming that .config is a symlink so it is that bug - should have asked that directly. I think we can only fix this by upgrade of JGit. Should only be an annoyance rather than causing any usability issues?

  7. added this to the NB15 milestone on Jun 24, 2022
  8. removed
    needs:triage
    on Jun 24, 2022
  9. changed the title [-]Unexpected exception: .FileAlreadyExistsException[/-] [+]FileAlreadyExistsException (JGit issue - upgrade req.)[/+] on Jul 26, 2022
  10. added
    Upgrade Library
    on Jul 26, 2022
  11. modified the milestones: NB15, NB16 on Jul 26, 2022
  12. neilcsmith-net commented on Jul 26, 2022

    @neilcsmith-net
    Member

    Bumping this forward. Annoying bug, but shouldn't affect usage, and late in cycle to risk library upgrade.

  13. modified the milestones: NB16, NB17 on Oct 18, 2022
  14. added
    git
    on Nov 14, 2022
  15. modified the milestones: NB17, NB18 on Jan 6, 2023
  16. modified the milestones: NB18, NB19 on May 23, 2023
  17. modified the milestones: NB19, NB20 on Aug 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Upgrade Librarygitkind:bug

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions