You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Git: Connection can't be established behind proxy with Kerberos authentication #9751
Strictly speaking, not a supported platform. Please check against an equivalent OpenJDK. Looks like it might be a module missing or not loading in the JDK?
I have tried with Eclipse Temurin and same issue
Product Version: Apache NetBeans IDE 32-rc2
Java: 25.0.4.1; OpenJDK 64-Bit Server VM 25.0.4.1+1-LTS
Runtime: OpenJDK Runtime Environment 25.0.4.1+1-LTS
System: Windows 11 version 10.0 running on amd64; UTF-8; en_US (nb)
@draganbjedov please provide the message.log from the run where the problem occurred. The folder can be found by opening the "User directory" directory as shown in Help -> About and from there open the subfolder "var/log". The log is in that folder.
One thing that looks suspicious in the top logs is leading up to the exception in the initial report. Felix not finding something it should be?
INFO [org.netbeans.modules.git.ui.push.PushBranchesStep]: f65d48a51052b73ad0177a84c729d7024dd6b3ab, main
java.lang.ClassNotFoundException: org.ietf.jgss.GSSException not found by org.eclipse.jgit.ssh.apache [181]
at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1591)
at org.apache.felix.framework.BundleWiringImpl.access$300(BundleWiringImpl.java:79)
at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:1976)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:490)
From reading the description of both parameters and the Apache Felix code, I think that the first variant should not change anything. I read this code:
I checked with a debugger and indeed the configuration of the framework holds a long list of packages for org.osgi.framework.system.packages and part of that list is: , org.ietf.jgss; version="0.0.0.JavaSE_021",.
Changing the list using org.osgi.framework.system.packages.extra would, to my understanding, only change the packages that are made available to bundle for importing. The problem I see is, that org.eclipse.jgit.ssh.apache does not import the org.ietf.jgss. That is the reason why I think using org.osgi.framework.bootdelegation could work, as loading should then be delegated to the JDK classloader.
12. The problem I see is, that org.eclipse.jgit.ssh.apache does not import the org.ietf.jgss.
Oops, good spot. I'd thought I'd checked the imports, but it was in the Apache sshd module not that one. I notice that the JGit module doesn't import any packages from the JDK, and the Apache one imports all the ones it needs??!! 🤷
@draganbjedov ok, that are the correct invocations and locally these worked for me. But anyway, the two approaches for fixing this already produced nightlies:
If the theories hold both should work. So it would be great if you could test both nightlies and report back with test results. If they fail the full stack trace for exceptions would be relevant. Thank you!
The idea for the nightlies is that you should not need to mess with command line arguments.
C:\Users\Dragan\Downloads\netbeans-32-rc2\bin.osgi.framework.bootdelegation=org.ietf.jgss does not exist, or is not a plain file.
Mainly checked this for future references. Looks like Windows (at least testing Powershell) requires you to quote the flag, or NetBeans is getting the .osgi.fr... bit as a file to open. Seems odd, but can see the different highlighting in the terminal.
So, ideally please try the nightlies, but to fix your previous launch issue use
Good news: Using the ZAP Attack proxy I was able to simulate the problem locally. I inject WWW-Authenticate: Negotiate as header, causing the JGSS codepath to be invoked. This leads to slightly different problem as before the Proxy authentication failed (and pointed to the org.eclipse.jgit.ssh.apache module) while I see the problem for org.eclipse.jgit.
The bad news: I managed to check in eclipse with a debugger and the situation is slightly more complicated. I placed a method breakpoint onto org.eclipse.osgi.internal.framework.EquinoxContainer#isBootDelegationPackage as that would have interested me anyway and then it got interesting. I checked the configuration and got:
bootDelegationSteams was null
bootDelegation was an empty HashSet
bootDelegationAll was false
So no, there seemed to be no delegation be present. And then I dug deeper and found this gem:
I think both solutions are viable, in the long run jgit needs to be fixed and we'll never know what else is broken unless we put it into the wild. The bootdelegation variant is uglier than in equinox compatibilityBootDelegation as that is a last resort, while boot delegation is an override.
I'm inclined to go with the jgss patches and see the fallout hope that the jgit developers agree, that hitting the fallback path in eclipse is not a sustainable solution.
Edit: I updated #9755 to path both org.eclipse.jgit and org.eclipse.jgit.ssh.apache. I updated the links in #9751 (comment) in place.
@draganbjedov could you please test both of the nightlies as described in #9751 (comment)? This is kind of important as your setup is somewhat special (Kerberos is normally only distributed in Windows-Company Networks), so testing is really ugly for that case.
@draganbjedov did this ever work? What are your proxy settings for the IDE? There was a real problem with the jgit modules, but the connection problem feels different (different as in "the common hell you are faced when working in corporate networks").
I was not using it before because SSH signing was not supported. With 32rc SSH signing works. I tried push in order to work inside IDE, so I do not need to use terminal.
You can see in logs I shared that I tried manual proxy settings and system proxy settings.
@neilcsmith-net I'd like to split the connection problem from the exception. I think the problem for the release is primary the exception that I would prefer to fix using the PR #9755 (fix the jgit jars, not the boot delegation PR). My preference for the boot delegation PR was based on the wrong assumption, that equinox used boot delegation for all the JDK packages, but the equinox mechanism is actually less radical and a last resort, not a direct delegation.
@draganbjedov my experience with timeouts in networks is that you are running against a firewall. The port (8080) indicates, that this is a http proxy. The code currently defaults to socks proxy:
please see if running netbeans like this helps: netbeans64.exe "-J-Dgit.lib.proxyHttpTunneling=true". That should switch you from using socks tunneling to http tunneling (using http CONNECT).
@matthiasblaesing sounds good to me. Not patching third party JARs is preferable if we can achieve the same thing another way, but not always feasible. Let's hope they accept your fix soon. Removed label off the PR. Thanks for diving into this! 😄
and run it with java -Djava.net.useSystemProxies=true ProxySelectorCheck.java. The idea here is to get an idea what type of proxies are reported by your setup. You'll get output like this:
Activity
neilcsmith-net commentedon Oct 26, 2026
Strictly speaking, not a supported platform. Please check against an equivalent OpenJDK. Looks like it might be a module missing or not loading in the JDK?
draganbjedov commentedon Oct 26, 2026
I have tried with Eclipse Temurin and same issue
Product Version: Apache NetBeans IDE 32-rc2
Java: 25.0.4.1; OpenJDK 64-Bit Server VM 25.0.4.1+1-LTS
Runtime: OpenJDK Runtime Environment 25.0.4.1+1-LTS
System: Windows 11 version 10.0 running on amd64; UTF-8; en_US (nb)
neilcsmith-net commentedon Oct 26, 2026
OK, thanks for checking. Marking NB32 milestone for now. If you can share a log, that might be useful.
@matthiasblaesing @mbien thoughts on this given recent changes?
matthiasblaesing commentedon Oct 26, 2026
@draganbjedov please provide the
message.logfrom the run where the problem occurred. The folder can be found by opening the "User directory" directory as shown in Help -> About and from there open the subfolder "var/log". The log is in that folder.draganbjedov commentedon Oct 27, 2026
@matthiasblaesing @mbien Here are the logs:
messages-system-proxy.log
messages-system-proxy-without-config.log
messages-manual-without-config.log
messages-manual-proxy.log
messages-no-proxy.log
messages-no-proxy-without-config.log
I'm on company network with proxy which requires authentication with username and password.
Note that my repository is cloned with SSH.
I have special setting for github.com in .ssh/config. I tried without it as well.
neilcsmith-net commentedon Oct 27, 2026
One thing that looks suspicious in the top logs is leading up to the exception in the initial report. Felix not finding something it should be?
neilcsmith-net commentedon Oct 27, 2026
Out of interest, does running using
help at all?
matthiasblaesing commentedon Oct 27, 2026
@draganbjedov could you please test both of these variants:
From reading the description of both parameters and the Apache Felix code, I think that the first variant should not change anything. I read this code:
so that the modules are scanned for their exported packages. That would mean, that the required package is part of that list:
https://docs.oracle.com/en/java/javase/21/docs/api/java.security.jgss/module-summary.html
I checked with a debugger and indeed the configuration of the framework holds a long list of packages for
org.osgi.framework.system.packagesand part of that list is:, org.ietf.jgss; version="0.0.0.JavaSE_021",.Changing the list using
org.osgi.framework.system.packages.extrawould, to my understanding, only change the packages that are made available to bundle for importing. The problem I see is, thatorg.eclipse.jgit.ssh.apachedoes not import theorg.ietf.jgss. That is the reason why I think usingorg.osgi.framework.bootdelegationcould work, as loading should then be delegated to the JDK classloader.[-]Push does not work[/-][+]Git: Connection can't be established behind proxy with Kerberos authentication[/+]neilcsmith-net commentedon Oct 27, 2026
Oops, good spot. I'd thought I'd checked the imports, but it was in the Apache sshd module not that one. I notice that the JGit module doesn't import any packages from the JDK, and the Apache one imports all the ones it needs??!! 🤷
neilcsmith-net commentedon Oct 27, 2026
Ah, so it looks like Felix sets that boot delegation property to
java.*by default at https://github.com/apache/felix-dev/blob/af89814b23137c8f22593b7d8b37b264f0f7b94a/framework/src/main/java/org/apache/felix/framework/Felix.java#L408 So I assume that's why everything else works without specific import.7 remaining items
matthiasblaesing commentedon Oct 27, 2026
@draganbjedov ok, that are the correct invocations and locally these worked for me. But anyway, the two approaches for fixing this already produced nightlies:
If the theories hold both should work. So it would be great if you could test both nightlies and report back with test results. If they fail the full stack trace for exceptions would be relevant. Thank you!
The idea for the nightlies is that you should not need to mess with command line arguments.
neilcsmith-net commentedon Oct 28, 2026
Mainly checked this for future references. Looks like Windows (at least testing Powershell) requires you to quote the flag, or NetBeans is getting the
.osgi.fr...bit as a file to open. Seems odd, but can see the different highlighting in the terminal.So, ideally please try the nightlies, but to fix your previous launch issue use
Git: Add missing package import org.ietf.jgss to JGIT package
Git: Add missing package import org.ietf.jgss to JGIT package
matthiasblaesing commentedon Oct 28, 2026
Good news: Using the ZAP Attack proxy I was able to simulate the problem locally. I inject
WWW-Authenticate: Negotiateas header, causing the JGSS codepath to be invoked. This leads to slightly different problem as before the Proxy authentication failed (and pointed to theorg.eclipse.jgit.ssh.apachemodule) while I see the problem fororg.eclipse.jgit.The bad news: I managed to check in eclipse with a debugger and the situation is slightly more complicated. I placed a method breakpoint onto
org.eclipse.osgi.internal.framework.EquinoxContainer#isBootDelegationPackageas that would have interested me anyway and then it got interesting. I checked the configuration and got:bootDelegationSteamswasnullbootDelegationwas an emptyHashSetbootDelegationAllwasfalseSo no, there seemed to be no delegation be present. And then I dug deeper and found this gem:
https://github.com/eclipse-equinox/equinox/blob/cf69a894b8ee6b25921943b4280107584a91ab7e/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/loader/BundleLoader.java#L553-L565
And indeed checking the config object in the container I find the field
compatibilityBootDelegationand that istrue.I verified with a breakpoint in the
BundleLoaderthat that codepath is indeed taken.Additional twist, this
trueby default:https://github.com/eclipse-equinox/equinox/blob/cf69a894b8ee6b25921943b4280107584a91ab7e/bundles/org.eclipse.osgi/container/src/org/eclipse/core/runtime/adaptor/EclipseStarter.java#L232-L240
I think both solutions are viable, in the long run jgit needs to be fixed and we'll never know what else is broken unless we put it into the wild. The bootdelegation variant is uglier than in equinox compatibilityBootDelegation as that is a last resort, while boot delegation is an override.
I'm inclined to go with the jgss patches and see the fallout hope that the jgit developers agree, that hitting the fallback path in eclipse is not a sustainable solution.
Edit: I updated #9755 to path both
org.eclipse.jgitandorg.eclipse.jgit.ssh.apache. I updated the links in #9751 (comment) in place.matthiasblaesing commentedon Oct 29, 2026
@draganbjedov could you please test both of the nightlies as described in #9751 (comment)? This is kind of important as your setup is somewhat special (Kerberos is normally only distributed in Windows-Company Networks), so testing is really ugly for that case.
draganbjedov commentedon Nov 2, 2026
@matthiasblaesing sorry for late response. I have tested both. Exception
ClassNotFoundExceptionis fixed in both nightlies .Now I have timeouts:
messages-9756.log
messages-system-9755.log
messages-manual-9755.log
Note: Push from command line also take some time. See what I set in ~/.ssh/config
Is there a way to configure timeout?
matthiasblaesing commentedon Nov 2, 2026
@draganbjedov did this ever work? What are your proxy settings for the IDE? There was a real problem with the jgit modules, but the connection problem feels different (different as in "the common hell you are faced when working in corporate networks").
draganbjedov commentedon Nov 2, 2026
I was not using it before because SSH signing was not supported. With 32rc SSH signing works. I tried push in order to work inside IDE, so I do not need to use terminal.
You can see in logs I shared that I tried manual proxy settings and system proxy settings.
matthiasblaesing commentedon Nov 2, 2026
@neilcsmith-net I'd like to split the connection problem from the exception. I think the problem for the release is primary the exception that I would prefer to fix using the PR #9755 (fix the jgit jars, not the boot delegation PR). My preference for the boot delegation PR was based on the wrong assumption, that equinox used boot delegation for all the JDK packages, but the equinox mechanism is actually less radical and a last resort, not a direct delegation.
@draganbjedov my experience with timeouts in networks is that you are running against a firewall. The port (8080) indicates, that this is a http proxy. The code currently defaults to socks proxy:
netbeans/ide/libs.git/src/org/netbeans/libs/git/jgit/JGitSshSessionFactory.java
Lines 83 to 98 in affaef4
please see if running netbeans like this helps:
netbeans64.exe "-J-Dgit.lib.proxyHttpTunneling=true". That should switch you from using socks tunneling to http tunneling (using httpCONNECT).neilcsmith-net commentedon Nov 2, 2026
@matthiasblaesing sounds good to me. Not patching third party JARs is preferable if we can achieve the same thing another way, but not always feasible. Let's hope they accept your fix soon. Removed label off the PR. Thanks for diving into this! 😄
draganbjedov commentedon Nov 24, 2026
I have tested latest release NetBeans 32.
Push works with system proxy settings and
-J-Dgit.lib.proxyHttpTunneling=true.matthiasblaesing commentedon Nov 28, 2026
@draganbjedov thanks for reporting back! Could you please run this code on your system and report back with the result?
Create a file
ProxySelector.java:and run it with
java -Djava.net.useSystemProxies=true ProxySelectorCheck.java. The idea here is to get an idea what type of proxies are reported by your setup. You'll get output like this:You can mask the host name, but please don't mask the ports or proxy types.
My gut feeling is, that having a http proxy in a corporate setup is more common, than having a socks proxy.