Skip to content

Unable to git commit changes with GPG signing #4439

Closed

Description

@hotis

Apache NetBeans version

Apache NetBeans 14,15,16

What happened

I tried all instruction for Windows, but it doesn't work in NB, work fine manually in cmd with -S flag on commit.
NB show messegebox with error "org.eclipse.jgit.api.errors.JGitInternalException: missing credentials provider" and thats all.

How to reproduce

No response

Did this work correctly in an earlier version?

No / Don't know

Operating System

Windows 8, 10

JDK

17, 1.8

Apache NetBeans packaging

Apache NetBeans binary zip

Anything else

Was pull request, not my #2103

Are you willing to submit a pull request?

No

Code of Conduct

Yes

Activity

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

    @neilcsmith-net
    Member
  3. hotis commented on Jul 27, 2022

    @hotis
    Author

    A part of C:\Users\user\AppData\Roaming\NetBeans\14\var\log\messages.log

    INFO [org.netbeans.modules.git]: org.eclipse.jgit.api.errors.JGitInternalException: missing credentials provider
    org.bouncycastle.openpgp.PGPException: missing credentials provider
    	at org.eclipse.jgit.lib.internal.BouncyCastleGpgKeyPassphrasePrompt.getPassphrase(BouncyCastleGpgKeyPassphrasePrompt.java:87)
    	at org.eclipse.jgit.lib.internal.BouncyCastleGpgKeyLocator.findSecretKeyForKeyBoxPublicKey(BouncyCastleGpgKeyLocator.java:438)
    	at org.eclipse.jgit.lib.internal.BouncyCastleGpgKeyLocator.findSecretKey(BouncyCastleGpgKeyLocator.java:335)
    	at org.eclipse.jgit.lib.internal.BouncyCastleGpgSigner.locateSigningKey(BouncyCastleGpgSigner.java:91)
    	at org.eclipse.jgit.lib.internal.BouncyCastleGpgSigner.sign(BouncyCastleGpgSigner.java:100)
    Caused: org.eclipse.jgit.api.errors.JGitInternalException: missing credentials provider
    	at org.eclipse.jgit.lib.internal.BouncyCastleGpgSigner.sign(BouncyCastleGpgSigner.java:129)
    	at org.eclipse.jgit.api.CommitCommand.call(CommitCommand.java:242)
    	at org.netbeans.libs.git.jgit.commands.CommitCommand.run(CommitCommand.java:138)
    Caused: org.netbeans.libs.git.GitException
    	at org.netbeans.libs.git.jgit.commands.CommitCommand.run(CommitCommand.java:153)
    	at org.netbeans.libs.git.jgit.commands.GitCommand$1.run(GitCommand.java:57)
    	at org.netbeans.libs.git.jgit.commands.GitCommand$1.run(GitCommand.java:54)
    	at java.base/java.security.AccessController.doPrivileged(AccessController.java:569)
    	at org.netbeans.libs.git.jgit.commands.GitCommand.execute(GitCommand.java:54)
    	at org.netbeans.libs.git.GitClient.commit(GitClient.java:480)
    	at org.netbeans.modules.git.client.GitClient$9.call(GitClient.java:297)
    	at org.netbeans.modules.git.client.GitClient$9.call(GitClient.java:293)
    	at org.netbeans.modules.git.client.GitClient$CommandInvoker$1$1.call(GitClient.java:933)
    	at org.netbeans.modules.git.client.GitClient$CommandInvoker$1.call(GitClient.java:956)
    	at org.netbeans.modules.git.FilesystemInterceptor.runWithoutExternalEvents(FilesystemInterceptor.java:473)
    	at org.netbeans.modules.git.Git.runWithoutExternalEvents(Git.java:259)
    	at org.netbeans.modules.git.client.GitClient$CommandInvoker.runMethodIntern(GitClient.java:966)
    	at org.netbeans.modules.git.client.GitClient$CommandInvoker.runMethod(GitClient.java:893)
    	at org.netbeans.modules.git.client.GitClient$CommandInvoker.access$300(GitClient.java:869)
    	at org.netbeans.modules.git.client.GitClient.commit(GitClient.java:293)
    	at org.netbeans.modules.git.ui.commit.CommitAction$CommitProgressSupport.commit(CommitAction.java:343)
    [catch] at org.netbeans.modules.git.ui.commit.CommitAction$CommitProgressSupport.perform(CommitAction.java:234)
    	at org.netbeans.modules.git.client.GitProgressSupport.performIntern(GitProgressSupport.java:92)
    	at org.netbeans.modules.git.client.GitProgressSupport.run(GitProgressSupport.java:85)
    	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418)
    	at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45)
    	at org.openide.util.lookup.Lookups.executeWith(Lookups.java:278)
    	at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)
    

    Can you also try NetBeans 13 and see if that behaves any differently?

    I don't want to repeat this on NB 13, just believe me, I had the same problem and error
    org.eclipse.jgit.api.errors.JGitInternalException: missing credentials provider

  4. neilcsmith-net commented on Jul 27, 2022

    @neilcsmith-net
    Member

    Thanks. Yes, I'd already edited out the comment about NetBeans 13 - mistaken for a different issue.

  5. added
    git
    on Jul 27, 2022
  6. n-tropy247 commented on Sep 18, 2022

    @n-tropy247

    This is also affecting NB 15. Stack trace:

    INFO [org.netbeans.modules.git]: org.eclipse.jgit.api.errors.JGitInternalException: missing credentials provider
    org.bouncycastle.openpgp.PGPException: missing credentials provider
    	at org.eclipse.jgit.lib.internal.BouncyCastleGpgKeyPassphrasePrompt.getPassphrase(BouncyCastleGpgKeyPassphrasePrompt.java:87)
    	at org.eclipse.jgit.lib.internal.BouncyCastleGpgKeyLocator.findSecretKeyForKeyBoxPublicKey(BouncyCastleGpgKeyLocator.java:438)
    	at org.eclipse.jgit.lib.internal.BouncyCastleGpgKeyLocator.findSecretKey(BouncyCastleGpgKeyLocator.java:335)
    	at org.eclipse.jgit.lib.internal.BouncyCastleGpgSigner.locateSigningKey(BouncyCastleGpgSigner.java:91)
    	at org.eclipse.jgit.lib.internal.BouncyCastleGpgSigner.sign(BouncyCastleGpgSigner.java:100)
    Caused: org.eclipse.jgit.api.errors.JGitInternalException: missing credentials provider
    	at org.eclipse.jgit.lib.internal.BouncyCastleGpgSigner.sign(BouncyCastleGpgSigner.java:129)
    	at org.eclipse.jgit.api.CommitCommand.call(CommitCommand.java:242)
    	at org.netbeans.libs.git.jgit.commands.CommitCommand.run(CommitCommand.java:138)
    Caused: org.netbeans.libs.git.GitException
    	at org.netbeans.libs.git.jgit.commands.CommitCommand.run(CommitCommand.java:153)
    	at org.netbeans.libs.git.jgit.commands.GitCommand$1.run(GitCommand.java:57)
    	at org.netbeans.libs.git.jgit.commands.GitCommand$1.run(GitCommand.java:54)
    	at java.base/java.security.AccessController.doPrivileged(AccessController.java:569)
    	at org.netbeans.libs.git.jgit.commands.GitCommand.execute(GitCommand.java:54)
    	at org.netbeans.libs.git.GitClient.commit(GitClient.java:480)
    	at org.netbeans.modules.git.client.GitClient$9.call(GitClient.java:297)
    	at org.netbeans.modules.git.client.GitClient$9.call(GitClient.java:293)
    	at org.netbeans.modules.git.client.GitClient$CommandInvoker$1$1.call(GitClient.java:933)
    	at org.netbeans.modules.git.client.GitClient$CommandInvoker$1.call(GitClient.java:956)
    	at org.netbeans.modules.git.FilesystemInterceptor.runWithoutExternalEvents(FilesystemInterceptor.java:473)
    	at org.netbeans.modules.git.Git.runWithoutExternalEvents(Git.java:259)
    	at org.netbeans.modules.git.client.GitClient$CommandInvoker.runMethodIntern(GitClient.java:966)
    	at org.netbeans.modules.git.client.GitClient$CommandInvoker.runMethod(GitClient.java:893)
    	at org.netbeans.modules.git.client.GitClient$CommandInvoker.access$300(GitClient.java:869)
    	at org.netbeans.modules.git.client.GitClient.commit(GitClient.java:293)
    	at org.netbeans.modules.git.ui.commit.CommitAction$CommitProgressSupport.commit(CommitAction.java:343)
    [catch] at org.netbeans.modules.git.ui.commit.CommitAction$CommitProgressSupport.perform(CommitAction.java:234)
    	at org.netbeans.modules.git.client.GitProgressSupport.performIntern(GitProgressSupport.java:92)
    	at org.netbeans.modules.git.client.GitProgressSupport.run(GitProgressSupport.java:85)
    	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418)
    	at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45)
    	at org.openide.util.lookup.Lookups.executeWith(Lookups.java:278)
    	at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)
    
  7. akintelligentmedia commented on Dec 8, 2022

    @akintelligentmedia

    Hope someone could fix it because it will become a big problem in the future!

  8. hotis commented on Dec 18, 2022

    @hotis
    Author

    Why this not fixed yet? 16 version still not working with it. I saw, somebody had a pull request for it (#2103). Please fix this as fast as possible.

  9. neilcsmith-net commented on Dec 19, 2022

    @neilcsmith-net
    Member

    @hotis simply because no-one has shown interest in completing that pull request or implementing an alternative fix.

  10. added
    Contribution welcome
    and removed
    needs:triage
    on Dec 19, 2022
  11. Denis4l commented on Aug 29, 2023

    @Denis4l

    Same problem with NB18.
    I just installed it (NB I mean), usially working with eclipse... possible mess between eclipse and NB ?

  12. tenent007963 commented on Mar 27, 2024

    @tenent007963

    NetBeans 19, and the issue still exists. Had to go global config and change signed commit from true to false.

  13. matthiasblaesing commented on May 14, 2026

    @matthiasblaesing
    Contributor

    Probably duplicate of #8776. Please wait for NB30 (currently in Vote) or test 30-RC2: #9345

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

    Contribution welcomegitkind:bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions