You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@netbeans.apache.org by "seb.-ice@t-online.de" <se...@t-online.de> on 2021/02/25 20:12:34 UTC

Error when connecting to Remote Git Repository

Hello,
 
I have a problem pushing my Netbeans Project to a Gitlab Repository. I 
tried to connect to my repository with two other programs that worked well 
so there should be no mistake with my login credentials. When I try to 
clone or push to a remote repository, I always get the error: "Incorrect 
credentials for repository at https://gitlab.com/xxx/xxx.git".
In addition to that, an unexpected exception occurred with the the error:
 
java.lang.NoClassDefFoundError: Could not initialize class 
org.netbeans.modules.keyring.mac.SecurityLibrary
at org.netbeans.modules.keyring.mac.MacProvider.delete(MacProvider.java:89)
at org.netbeans.api.keyring.Keyring.deleteImpl(Keyring.java:168)
at org.netbeans.api.keyring.Keyring.access$300(Keyring.java:52)
at org.netbeans.api.keyring.Keyring$3.run(Keyring.java:189)
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)
[catch] at 
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)
 
I am using Apache NetBeans IDE 11.0 (Build 
incubator-netbeans-release-404-on-20190319) with Java 12.0.1 on macOS 
11.2.1 Big Sur.
 
I thought that NetBeans is too old and tried to update to 12.2. I renamed 
all the NetBeans 11 folders at /Applications, "/Application Support" and 
"/Caches" but I always get the error "Cannot initialize registry. 
Exception: org.netbeans.installer.utils.exceptions.InitializationException: 
No components matching the requirement: nb-extide/12.2.0.0.201121 requires 
nb-all/12.2.0.0.201121 - 12.2.0.0.201121.
This error appers a few times and then the installer crashes.
 
For any help I would be thankful. I would like to update to Netbeans 12, 
but its not necessary. If you need a log file I will provide it.
 
Thanks
Sebastian


AW: Error when connecting to Remote Git Repository

Posted by "seb.-ice@t-online.de" <se...@t-online.de>.
Hello,
 
thanks for your answers. I just wrote a issue here: https://issues.apache.org/jira/browse/NETBEANS-5390
 
Can someone give me tips for upgrading Netbeans 11.0 to 12.0/12.2? How can I remove the old version complete to install the new version and don't get the error:
Cannot initialize registry. Exception: org.netbeans.installer.utils.exceptions.InitializationException: No components matching the requirement: nb-extide/12.2.0.0.201121 requires nb-all/12.2.0.0.201121 - 12.2.0.0.201121


Thanks to you all!
Sebastian
 
-----Original-Nachricht-----
Betreff: Error when connecting to Remote Git Repository
Datum: 2021-02-25T21:14:10+0100
Von: "seb.-ice@t-online.de" <se...@t-online.de>
An: "users@netbeans.apache.org" <us...@netbeans.apache.org>
 
 
 
Hello,
 
I have a problem pushing my Netbeans Project to a Gitlab Repository. I tried to connect to my repository with two other programs that worked well so there should be no mistake with my login credentials. When I try to clone or push to a remote repository, I always get the error: "Incorrect credentials for repository at https://gitlab.com/xxx/xxx.git".
In addition to that, an unexpected exception occurred with the the error:
 
java.lang.NoClassDefFoundError: Could not initialize class org.netbeans.modules.keyring.mac.SecurityLibrary
at org.netbeans.modules.keyring.mac.MacProvider.delete(MacProvider.java:89)
at org.netbeans.api.keyring.Keyring.deleteImpl(Keyring.java:168)
at org.netbeans.api.keyring.Keyring.access$300(Keyring.java:52)
at org.netbeans.api.keyring.Keyring$3.run(Keyring.java:189)
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)
[catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)
 
I am using Apache NetBeans IDE 11.0 (Build incubator-netbeans-release-404-on-20190319) with Java 12.0.1 on macOS 11.2.1 Big Sur.
 
I thought that NetBeans is too old and tried to update to 12.2. I renamed all the NetBeans 11 folders at /Applications, "/Application Support" and "/Caches" but I always get the error "Cannot initialize registry. Exception: org.netbeans.installer.utils.exceptions.InitializationException: No components matching the requirement: nb-extide/12.2.0.0.201121 requires nb-all/12.2.0.0.201121 - 12.2.0.0.201121.
This error appers a few times and then the installer crashes.
 
For any help I would be thankful. I would like to update to Netbeans 12, but its not necessary. If you need a log file I will provide it.
 
Thanks
Sebastian


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
For additional commands, e-mail: users-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


Re: Error when connecting to Remote Git Repository

Posted by Timothy Eberly <eb...@gmail.com>.
Can you please unsubscribe me from the email list? Thank you.

On Thu, Feb 25, 2021 at 3:14 PM Laszlo Kishalmi <la...@gmail.com>
wrote:

> Well, if it is BitBucket (not BibBucket which I do not know of), then the
> trick with using it with ssh keys is Cloning the repository with the
> bitbucket user name instead of "git" (however it is the later which
> BitBucket offer by default): eg:
>
> Instead of: git clone git@bitbucket.org:<organization>/<repository>.git
>
> Use : git clone <bb username>@bitbucket.org
> :<organization>/<repository>.git
>
> On 2/25/21 2:26 PM, Darin Miller wrote:
>
> Hi Sebastian,
>
> At work, we use BibBucket (git fork) where standard SSH keys, BB and
> Netbean do not play well together.  Try using an SSH key that was generated
> with PEM, i.e:
>
>   ssh-key -t rsa -m PEM
>
> I am not sure if the limitation is a "feature" or a "bug".
>
>  o__
>   >/
> ( )\( ) Darin | 208-283-1574
>
>
> On Thu, Feb 25, 2021 at 1:14 PM seb.-ice@t-online.de <se...@t-online.de>
> wrote:
>
>> Hello,
>>
>>
>>
>> I have a problem pushing my Netbeans Project to a Gitlab Repository. I
>> tried to connect to my repository with two other programs that worked well
>> so there should be no mistake with my login credentials. When I try to
>> clone or push to a remote repository, I always get the error:
>> "Incorrect credentials for repository at https://gitlab.com/xxx/xxx.git".
>>
>> In addition to that, an unexpected exception occurred with the the error:
>>
>>
>> java.lang.NoClassDefFoundError: Could not initialize class
>> org.netbeans.modules.keyring.mac.SecurityLibrary
>> at
>> org.netbeans.modules.keyring.mac.MacProvider.delete(MacProvider.java:89)
>> at org.netbeans.api.keyring.Keyring.deleteImpl(Keyring.java:168)
>> at org.netbeans.api.keyring.Keyring.access$300(Keyring.java:52)
>> at org.netbeans.api.keyring.Keyring$3.run(Keyring.java:189)
>> 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)
>> [catch] at
>> org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)
>>
>>
>> I am using Apache NetBeans IDE 11.0 (Build
>> incubator-netbeans-release-404-on-20190319) with Java 12.0.1 on macOS
>> 11.2.1 Big Sur.
>>
>>
>>
>> I thought that NetBeans is too old and tried to update to 12.2. I renamed
>> all the NetBeans 11 folders at /Applications, "/Application Support" and
>> "/Caches" but I always get the error "Cannot initialize registry.
>> Exception: org.netbeans.installer.utils.exceptions.InitializationException:
>> No components matching the requirement: nb-extide/12.2.0.0.201121 requires
>> nb-all/12.2.0.0.201121 - 12.2.0.0.201121.
>>
>> This error appers a few times and then the installer crashes.
>>
>>
>>
>> For any help I would be thankful. I would like to update to Netbeans 12,
>> but its not necessary. If you need a log file I will provide it.
>>
>>
>>
>> Thanks
>>
>> Sebastian
>> 
>>
>

-- 

-----------------------------------------------------------------------------------
*Timothy Eberly*
*Creative Designer and SEO*

p: 509 276-1131  m: 509 262-8622
a: 6437 Highway Dr
web: www.timothyeberly.com
<https://www.facebook.com/jest.ninja/>   <https://twitter.com/JestNinja>
<https://www.instagram.com/jestelite/>

*The content of this email is confidential and intended for the recipient
specified in message only. It is strictly forbidden to share any part of
this message with any third party, without a written consent of the sender.
If you received this message by mistake, please reply to this message and
follow with its deletion, so that we can ensure such a mistake does not
occur in the future.*

Re: Error when connecting to Remote Git Repository

Posted by Laszlo Kishalmi <la...@gmail.com>.
Well, if it is BitBucket (not BibBucket which I do not know of), then 
the trick with using it with ssh keys is Cloning the repository with the 
bitbucket user name instead of "git" (however it is the later which 
BitBucket offer by default): eg:

Instead of: git clone git@bitbucket.org:<organization>/<repository>.git

Use : git clone <bb username>@bitbucket.org:<organization>/<repository>.git


On 2/25/21 2:26 PM, Darin Miller wrote:
> Hi Sebastian,
>
> At work, we use BibBucket (git fork) where standard SSH keys, BB and 
> Netbean do not play well together.  Try using an SSH key that was 
> generated with PEM, i.e:
>
>   ssh-key -t rsa -m PEM
>
> I am not sure if the limitation is a "feature" or a "bug".
>
>  o__
> __>/ __
> (__)\(__) Darin | 208-283-1574
>
>
> On Thu, Feb 25, 2021 at 1:14 PM seb.-ice@t-online.de 
> <ma...@t-online.de> <seb.-ice@t-online.de 
> <ma...@t-online.de>> wrote:
>
>     Hello,
>
>     I have a problem pushing my Netbeans Project to a Gitlab
>     Repository. I tried to connect to my repository with two other
>     programs that worked well so there should be no mistake with my
>     login credentials. When I try to clone or push to a remote
>     repository, I always get the error:
>     "Incorrect credentials for repository at
>     https://gitlab.com/xxx/xxx.git" <https://gitlab.com/xxx/xxx.git%22>.
>
>     In addition to that, an unexpected exception occurred with the the
>     error:
>
>     java.lang.NoClassDefFoundError: Could not initialize class
>     org.netbeans.modules.keyring.mac.SecurityLibrary
>     at
>     org.netbeans.modules.keyring.mac.MacProvider.delete(MacProvider.java:89)
>     at org.netbeans.api.keyring.Keyring.deleteImpl(Keyring.java:168)
>     at org.netbeans.api.keyring.Keyring.access$300(Keyring.java:52)
>     at org.netbeans.api.keyring.Keyring$3.run(Keyring.java:189)
>     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)
>     [catch] at
>     org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)
>
>     I am using Apache NetBeans IDE 11.0 (Build
>     incubator-netbeans-release-404-on-20190319) with Java 12.0.1 on
>     macOS 11.2.1 Big Sur.
>
>     I thought that NetBeans is too old and tried to update to 12.2. I
>     renamed all the NetBeans 11 folders at /Applications,
>     "/Application Support" and "/Caches" but I always get the error
>     "Cannot initialize registry. Exception:
>     org.netbeans.installer.utils.exceptions.InitializationException:
>     No components matching the requirement: nb-extide/12.2.0.0.201121
>     requires nb-all/12.2.0.0.201121 - 12.2.0.0.201121.
>
>     This error appers a few times and then the installer crashes.
>
>     For any help I would be thankful. I would like to update to
>     Netbeans 12, but its not necessary. If you need a log file I will
>     provide it.
>
>     Thanks
>
>     Sebastian
>
>     
>

Re: Error when connecting to Remote Git Repository

Posted by Darin Miller <da...@gmail.com>.
Hi Sebastian,

At work, we use BibBucket (git fork) where standard SSH keys, BB and
Netbean do not play well together.  Try using an SSH key that was generated
with PEM, i.e:

  ssh-key -t rsa -m PEM

I am not sure if the limitation is a "feature" or a "bug".

 o__
  >/
( )\( ) Darin | 208-283-1574


On Thu, Feb 25, 2021 at 1:14 PM seb.-ice@t-online.de <se...@t-online.de>
wrote:

> Hello,
>
>
>
> I have a problem pushing my Netbeans Project to a Gitlab Repository. I
> tried to connect to my repository with two other programs that worked well
> so there should be no mistake with my login credentials. When I try to
> clone or push to a remote repository, I always get the error:
> "Incorrect credentials for repository at https://gitlab.com/xxx/xxx.git".
>
> In addition to that, an unexpected exception occurred with the the error:
>
>
> java.lang.NoClassDefFoundError: Could not initialize class
> org.netbeans.modules.keyring.mac.SecurityLibrary
> at org.netbeans.modules.keyring.mac.MacProvider.delete(MacProvider.java:89)
> at org.netbeans.api.keyring.Keyring.deleteImpl(Keyring.java:168)
> at org.netbeans.api.keyring.Keyring.access$300(Keyring.java:52)
> at org.netbeans.api.keyring.Keyring$3.run(Keyring.java:189)
> 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)
> [catch] at
> org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)
>
>
> I am using Apache NetBeans IDE 11.0 (Build
> incubator-netbeans-release-404-on-20190319) with Java 12.0.1 on macOS
> 11.2.1 Big Sur.
>
>
>
> I thought that NetBeans is too old and tried to update to 12.2. I renamed
> all the NetBeans 11 folders at /Applications, "/Application Support" and
> "/Caches" but I always get the error "Cannot initialize registry.
> Exception: org.netbeans.installer.utils.exceptions.InitializationException:
> No components matching the requirement: nb-extide/12.2.0.0.201121 requires
> nb-all/12.2.0.0.201121 - 12.2.0.0.201121.
>
> This error appers a few times and then the installer crashes.
>
>
>
> For any help I would be thankful. I would like to update to Netbeans 12,
> but its not necessary. If you need a log file I will provide it.
>
>
>
> Thanks
>
> Sebastian
> 
>

Re: Error when connecting to Remote Git Repository

Posted by Laszlo Kishalmi <la...@gmail.com>.
That's bad. I guess it's because changes in BigSur. As I see NetBeans is 
not able to talk with the Native keyring. Please file a bug into the 
JIRA, at worst case NetBeans shoud offer to use its private KeyRing 
implementation instead of throwing a NCDFE.

On 2/25/21 12:12 PM, seb.-ice@t-online.de wrote:
>
> Hello,
>
> I have a problem pushing my Netbeans Project to a Gitlab Repository. I 
> tried to connect to my repository with two other programs that worked 
> well so there should be no mistake with my login credentials. When I 
> try to clone or push to a remote repository, I always get the error: 
> "Incorrect credentials for repository at 
> https://gitlab.com/xxx/xxx.git" <https://gitlab.com/xxx/xxx.git">.
>
> In addition to that, an unexpected exception occurred with the the error:
>
> java.lang.NoClassDefFoundError: Could not initialize class 
> org.netbeans.modules.keyring.mac.SecurityLibrary
> at 
> org.netbeans.modules.keyring.mac.MacProvider.delete(MacProvider.java:89)
> at org.netbeans.api.keyring.Keyring.deleteImpl(Keyring.java:168)
> at org.netbeans.api.keyring.Keyring.access$300(Keyring.java:52)
> at org.netbeans.api.keyring.Keyring$3.run(Keyring.java:189)
> 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)
> [catch] at 
> org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)
>
> I am using Apache NetBeans IDE 11.0 (Build 
> incubator-netbeans-release-404-on-20190319) with Java 12.0.1 on macOS 
> 11.2.1 Big Sur.
>
> I thought that NetBeans is too old and tried to update to 12.2. I 
> renamed all the NetBeans 11 folders at /Applications, "/Application 
> Support" and "/Caches" but I always get the error "Cannot initialize 
> registry. Exception: 
> org.netbeans.installer.utils.exceptions.InitializationException: No 
> components matching the requirement: nb-extide/12.2.0.0.201121 
> requires nb-all/12.2.0.0.201121 - 12.2.0.0.201121.
>
> This error appers a few times and then the installer crashes.
>
> For any help I would be thankful. I would like to update to Netbeans 
> 12, but its not necessary. If you need a log file I will provide it.
>
> Thanks
>
> Sebastian
>
>