This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 219691 - ClassNotFoundException: javax.net.ssl.TrustManager in org.eclipse.jgit [was netbeans cannot open git-upload pack Git]
Summary: ClassNotFoundException: javax.net.ssl.TrustManager in org.eclipse.jgit [was n...
Status: RESOLVED FIXED
Alias: None
Product: versioncontrol
Classification: Unclassified
Component: Git (show other bugs)
Version: 7.2
Hardware: PC Linux
: P3 normal with 1 vote (vote)
Assignee: Ondrej Vrabec
URL: https://bugs.eclipse.org/bugs/show_bu...
Keywords:
: 220015 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-10-08 10:11 UTC by baverhey
Modified: 2012-11-07 08:31 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
latest log file fresh install 7.2 (135.29 KB, application/octet-stream)
2012-10-08 12:29 UTC, baverhey
Details
log file1 (35.33 KB, application/octet-stream)
2012-10-08 12:29 UTC, baverhey
Details
log file 0 (55.10 KB, text/x-log)
2012-10-08 12:30 UTC, baverhey
Details
new erro rlog after editing git file (254.33 KB, text/x-log)
2012-10-09 10:07 UTC, baverhey
Details
proposed patch on our side (3.96 KB, patch)
2012-10-17 14:15 UTC, Ondrej Vrabec
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description baverhey 2012-10-08 10:11:13 UTC
Not able to connect to git
error: "cannot open git-upload pack"
Comment 1 Marian Mirilovic 2012-10-08 11:19:50 UTC
Please attach entire messages.log file and reopen. Thanks in advance.
Comment 2 baverhey 2012-10-08 12:29:07 UTC
Created attachment 125579 [details]
latest log file fresh install 7.2

latest log
Comment 3 baverhey 2012-10-08 12:29:56 UTC
Created attachment 125580 [details]
log file1
Comment 4 baverhey 2012-10-08 12:30:24 UTC
Created attachment 125581 [details]
log file 0
Comment 5 Ondrej Vrabec 2012-10-08 13:37:24 UTC
The problem is in your server certificate. It is self-signed and not trusted. You have to add http.sslVerify=false into your user .gitconfig file.
> ondra@linux-ynm6:~> cat /home/ondra/.gitconfig
> [http]
>        sslVerify = false
Comment 6 Ondrej Vrabec 2012-10-09 07:32:50 UTC
as i said, use http.sslVerify = false
Comment 7 baverhey 2012-10-09 08:59:03 UTC
This change results in 
java.lang.NoClassDefFoundError: javax/net/ssl/TrustManager

pleas advice, thx for the response
Comment 8 Ondrej Vrabec 2012-10-09 09:27:22 UTC
(In reply to comment #7)
> This change results in java.lang.NoClassDefFoundError: javax/net/ssl/TrustManager
Could you please attach the messages.log with this exact error?
Comment 9 baverhey 2012-10-09 10:07:27 UTC
Created attachment 125624 [details]
new erro rlog after editing git file
Comment 10 Ondrej Vrabec 2012-10-09 10:42:29 UTC
org.eclipse.jgit is an osgi bundle and tries to load the class javax.net.ssl.TrustManager, which ends in a ClassNotFoundException. There's a workaround: generate new manifest file for the jar and add:
> Import-Package: javax.net.ssl 
The same workaround is used for Jira (i thing), however for jgit it's not an option because as i was told the WA is applicable only to osgi jars with Apache license while JGit ships under EPL and we cannot modify the manifest.

Can it be fixed in Netigso??
Comment 11 Ondrej Vrabec 2012-10-10 09:56:41 UTC
> JGit ships under EPL
sorry, not under EPL but EDL-1.0
Comment 12 Ondrej Vrabec 2012-10-12 15:44:38 UTC
*** Bug 220015 has been marked as a duplicate of this bug. ***
Comment 13 Ondrej Vrabec 2012-10-15 14:25:57 UTC
a similar problem is discussed in bug #208616. We'll either try to resolve it on our side or file a bug on JGit. In the meantime you should run the IDE with the following commandline switch (as suggested by jtulach in #208616). Add this to your netbeans.conf (netbeans_default_options): -J-Dosgi.compatibility.bootdelegation=true
Comment 14 baverhey 2012-10-15 14:46:49 UTC
To le tyou know:
The change in netbeans.conf crashed netbeans and my whole pc.
Comment 15 rolandas 2012-10-16 10:43:25 UTC
Running Netbeans with -J-Dosgi.compatibility.bootdelegation=true works for me.
Comment 16 Ondrej Vrabec 2012-10-16 12:47:14 UTC
see https://bugs.eclipse.org/bugs/show_bug.cgi?id=392056
Comment 17 Ondrej Vrabec 2012-10-17 14:15:18 UTC
Created attachment 126087 [details]
proposed patch on our side
Comment 18 Ondrej Vrabec 2012-11-01 16:20:13 UTC
fixed: http://hg.netbeans.org/core-main/rev/f490836cd0c8
Comment 19 Quality Engineering 2012-11-03 02:40:39 UTC
Integrated into 'main-golden', will be available in build *201211030001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/f490836cd0c8
User: Ondrej Vrabec <ovrabec@netbeans.org>
Log: #219691 - ClassNotFoundException: javax.net.ssl.TrustManager in org.eclipse.jgit [was netbeans cannot open git-upload pack Git]
Comment 20 Ondrej Vrabec 2012-11-07 08:31:55 UTC
*** Bug 221557 has been marked as a duplicate of this bug. ***