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 198613 - Error while connecting to Subversion via VPN
Summary: Error while connecting to Subversion via VPN
Status: RESOLVED FIXED
Alias: None
Product: versioncontrol
Classification: Unclassified
Component: Subversion (show other bugs)
Version: 6.x
Hardware: PC Linux
: P3 normal (vote)
Assignee: Ondrej Vrabec
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-15 18:47 UTC by naitsirch
Modified: 2012-04-05 07:48 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE Log (61.80 KB, text/plain)
2011-05-15 18:47 UTC, naitsirch
Details
UI Log (252.60 KB, text/plain)
2011-05-15 18:48 UTC, naitsirch
Details
UI Log, after installing Nightly 201105220400 (40.53 KB, application/octet-stream)
2011-05-22 19:00 UTC, naitsirch
Details

Note You need to log in before you can comment on or make changes to this bug.
Description naitsirch 2011-05-15 18:47:22 UTC
Created attachment 108300 [details]
IDE Log

Hi,

today I get a strange error. I am using VPN to connect to the development server in my company. We are using Subversion for version control and everything worked fine until today.
Now I get an error when I try to update or commit something. But when I use svn via shell, everything works.

The Error message is: "Action canceled by user."

Another window says: "A java.net.SocketException exception has occurred.
Please report this at http://www.netbeans.org/community/issues.html,
including a copy of your messages.log file as an attachment.
The messages.log file is located in your /home/christian/.netbeans/6.9/var/log folder."

WHen I try to report the bug, I get a window with info about the UI Gesture Collector and at the and of the text it says:
"However your computer seems to be disconnected from the network. Therefore, we cannot connect to the server to handle your submission request."

But how you see, I am online and have no problems with internet and I don't use any proxy.

When I click on "View data" get the UI Log and the IDE Log. I'll attach them to this bug.


I hope it helps.
Comment 1 naitsirch 2011-05-15 18:48:46 UTC
Created attachment 108301 [details]
UI Log
Comment 2 Ondrej Vrabec 2011-05-15 19:07:07 UTC
The message log is full of 'Network unreachable' error messages and not just from subversion but from all NetBeans modules as well.
> We are using Subversion for version control and everything worked fine until today.
So something must have changed today. Did you modify proxy settings in the IDE for example? I don't know what might be a problem, try to modify the settings in Tools > Options (Proxy settings).
Comment 3 Ondrej Vrabec 2011-05-16 07:59:44 UTC
fix: http://hg.netbeans.org/core-main/rev/23cff7a67771
Comment 4 Ondrej Vrabec 2011-05-16 08:06:10 UTC
i fixed the SocketException you talked about (transplanted to 7.0.1 as http://hg.netbeans.org/releases/rev/d17e2f98b111)
However you won't be able to get subversion working until you fix your network/connection settings
Comment 5 naitsirch 2011-05-16 11:12:05 UTC
That's strange, because my browser did not have any problems with the internet. And in the shell

# svn up

or commit worked well, so it must be a Netbeans issue and I have not changed anything in the options. But I'll try it out once again.
Thanks.
Comment 6 Quality Engineering 2011-05-17 10:03:09 UTC
Integrated into 'main-golden', will be available in build *201105170400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/23cff7a67771
User: Ondrej Vrabec <ovrabec@netbeans.org>
Log: Issue #198613 - Error while connecting to Subversion via VPN
Comment 7 naitsirch 2011-05-21 14:54:03 UTC
Hi, I have an idea what could be the reason.
Our company created a new SSL certificate. I am not well-informed in this topic, but maybe the SSL certificate causes the problem?!

In my browser I had to confirm the certificate, so that I could browse through the repo.
Comment 8 Ondrej Vrabec 2011-05-22 15:19:49 UTC
Download and try the latest dev build: http://bits.netbeans.org/dev/nightly/ and attach the message log from /home/christian/.netbeans/dev/var/log/message.log.
Let's see if this is fixed in the latest or we'll have at least an updated message log without distracting messages.
Comment 9 naitsirch 2011-05-22 19:00:43 UTC
Created attachment 108442 [details]
UI Log, after installing Nightly 201105220400
Comment 10 naitsirch 2011-05-22 19:13:53 UTC
I have installed the nightly 201105220400 and tried it again. There does not occurs an exception but it still does not work (see the attached message.log).

In the log you will see that I tried to relocate the repo. Because the SVN repo is accessable via https://somehostname/svn/project and https://somehostname.fqdn/svn/project 

But now I am sure, that the reason of the problem is the self-signed certificate:
I tried to wget the base URL of the repository. Here's the output:

$ wget https://somehostname.fqdn/svn/project
--2011-05-22 20:03:00--  https://somehostname.fqdn/svn/project
Auflösen des Hostnamen somehostname.fqdn... 192.168.222.7
Verbindungsaufbau zu somehostname.fqdn|192.168.222.7|:443... verbunden.
FEHLER: Kann das Zertifikat von »somehostname.fqdn« nicht prüfen, ausgestellt von »/C=DE/ST=Nordrhein-Westfalen/L=Paderborn/O=LEONEX Internet GmbH/OU=CA-TECHNIK/CN=CA-LEONEX/emailAddress=technik@leonex.de«:.
  Ein selbst-signiertes Zertifikat gefunden.
Verwenden Sie »--no-check-certificate«, um zu dem Server »somehostname.fqdn« eine nicht gesicherte Verbindung aufzubauen.

It is in German but it means something like:
Create connection to ... connected
Error: Could not check the certificate of ... created by ...
  Found a self-signed certificate.
Please use »--no-check-certificate« to create an insecure connection.
Comment 11 Ondrej Vrabec 2011-05-28 17:04:37 UTC
Normally when the server certificate changes, subversion recognizes the change, downloads the new certificate and asks you to accept or reject it. But for some reason (i have no idea why) it cannot connect to your server. Every java connection (and not just subversion) in netbeans to network fails with "java.net.ConnectException: Network is unreachable". IMO it is not subersion related problem but your whole VPN vs java setup. Try to google something, i'll do the same.
Comment 12 naitsirch 2011-08-23 06:22:05 UTC
I found the reason of the problem. Netbeans had neither connection to the internet nor to the LAN. But when I added this option "-J-Djava.net.preferIPv4Stack=true" to the netbeans.conf, the whole problem was resolved!

Here's the full line in the config file:
netbeans_default_options="-J-client -J-Xss2m -J-Xms32m -J-XX:PermSize=32m -J-Dapple.laf.useScreenMenuBar=true -J-Dapple.awt.graphics.UseQuartz=true -J-Dsun.java2d.noddraw=true -J-Djava.net.preferIPv4Stack=true"