Netbeans always crashes when adding a project via svn

Bug #424875 reported by oli z
74
This bug affects 15 people
Affects Status Importance Assigned to Milestone
netbeans (Ubuntu)
Confirmed
Undecided
Unassigned
Nominated for Karmic by Isaac Gelado

Bug Description

NB always crashes when trying to checkout a svn project - it just stops working...
when i try to close the window (by clicking x in the upper right corner) nothing happens... i always must use xkill or kill

Description: Ubuntu karmic (development branch)
Release: 9.10

netbeans:
  Installiert: 6.7.1-0ubuntu1
  Kandidat: 6.7.1-0ubuntu1
  Versions-Tabelle:
 *** 6.7.1-0ubuntu1 0
        500 http://de.archive.ubuntu.com karmic/universe Packages
        100 /var/lib/dpkg/status

Revision history for this message
Carl-Erik Kopseng (kopseng) wrote :

This has something to do with the Gnome Keyring!
At first I couldn't authorize with the remote SVN server (worked on every other machine, including an Ubuntu 9.04 sitting nearby), and the checkout process would fail with a
"org.tigris.subversion.... : Autorization failed
OPTIONS of ... rejected Basic challenge (servername)"

This error message magically went away after I manually used svn from the command line and the username+password had been added to the Gnome Keyring. Then everything worked. Seeing this, I wanted to confirm my belief that this had something to do with the keyring, I removed the keyring from .gnome2/keyrings/ and BOOM: it froze upon checkout. Not an error message this time, just complete standstill. Adding/removing it gave various results, and sometimes the Gnome Keyring manager came up when doing the Team->Subversion->Checkout command (as it should). But it was not consistent. I believe OpenJDK is at fault ...

Revision history for this message
Carl-Erik Kopseng (kopseng) wrote :

The problem described by me seems to be solved by updating to the latest packages. Sorry for not updating it before reporting the bug...

Revision history for this message
Carl-Erik Kopseng (kopseng) wrote :

Too early of me, the errors mentioned by the original bug poster and those described by myself above still remain.

There are four (possibly closely related) bugs that arise when trying to checkout a repository, pressing the Next button:
* Error message (screendump in zip)
* Java crashes (assertion error). I reported this here: https://bugs.launchpad.net/ubuntu/+source/openjdk-6/+bug/455526
* It freezes.
* It succeeds and you go to the next screen, but upon pressing Finish the program stalls/freezes.

Revision history for this message
Carl-Erik Kopseng (kopseng) wrote :

A quickfix for anyone experiencing this is to install the Sun Java package (sun-java6-jdk). Netbeans will still start using OpenJDK (even if you use updata-java-alternatives), so you will either have to give it a paramater that tells it to use Sun's Java (netbeans --jdkhome /usr/lib/jvm/java-6-sun/) or update /etc/netbeans.conf.

Revision history for this message
oli z (oliver-z) wrote :

i switched to sun's jdk and netbeans from netbeans.org, the crashes stopped
but this disgusting svn problem as you described (rejected Basic challenge (servername)") remains
i'm now using the commandline version of svn because with the NB svn its impossible to work with

Revision history for this message
Carl-Erik Kopseng (kopseng) wrote :

@oli z: You actually just need to use the command line svn once. Once you have done that NB will have working SVN. That is, until you log out again, but if you like me just hibernate or use Ubuntu in a virtual machine, then it won't bug you too much :)

Revision history for this message
oli z (oliver-z) wrote :

yes, i already noticed that. i think it has something to do with that gnome-keyring app

Revision history for this message
Pablo Antonio (crazy2k) wrote :

Checkout acessing the repository via http seems to work correctly. Problem arises when trying https.

Netbeans has some fields for the "Client Certificate File" and "Passphrase". Maybe it doesn't like them to be empty?

Revision history for this message
oli z (oliver-z) wrote :

i have only http svn's, no ssl support

Revision history for this message
Joshua Lückers (joshualuckers) wrote :

I have the same issue with Netbeans when commiting stuff to google code (https).

Revision history for this message
James Smith (james-floppy) wrote :

Just a quick note to state that this problem persisted after an upgrade to Netbeans 6.8, using the installer from their website, so no longer using the Karmic package. I guess that means that it's an OpenJDK problem rather than Netbeans. Anyway, the fix above, to use Sun's JDK instead, works a treat.

Revision history for this message
Gabriel M. (gabrielm) wrote : apport-collect data

Architecture: amd64
DistroRelease: Ubuntu 9.10
InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release Candidate amd64 (20091020.3)
NonfreeKernelModules: fglrx
Package: netbeans 6.7.1-0ubuntu1
PackageArchitecture: all
ProcEnviron:
 SHELL=/bin/bash
 LANG=fr_CA.UTF-8
ProcVersionSignature: Ubuntu 2.6.31-19.56-generic
Uname: Linux 2.6.31-19-generic x86_64
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare
XsessionErrors:
 (gnome-settings-daemon:1900): GLib-CRITICAL **: g_propagate_error: assertion `src != NULL' failed
 (gnome-settings-daemon:1900): GLib-CRITICAL **: g_propagate_error: assertion `src != NULL' failed
 (polkit-gnome-authentication-agent-1:2097): GLib-CRITICAL **: g_once_init_leave: assertion `initialization_value != 0' failed
 (nautilus:2075): Eel-CRITICAL **: eel_preferences_get_boolean: assertion `preferences_is_initialized ()' failed
 (firefox:3064): GLib-WARNING **: g_set_prgname() called multiple times

Revision history for this message
Gabriel M. (gabrielm) wrote : Dependencies.txt
tags: added: apport-collected
Revision history for this message
Gabriel M. (gabrielm) wrote :

Netbeans sometimes hits a org.tigris.subversion.javahl.ClientException and giving me the message "Could not authenticate to server: rejected Basic challenge" when I try to update.

I'm including the output of the jstack command when netbeans is giving me the dialog box with the above error messages.

ADDITIONALLY, when it does start working, it sometimes hangs on some operations such as commit (and also update I think)

Changed in netbeans (Ubuntu):
status: New → Confirmed
Revision history for this message
Gabriel M. (gabrielm) wrote :

I got it to hang on update, steps to reproduce:
1 - Boot Ubuntu, Log in, start Netbeans
2 - Open already set-up project that uses svn
3 - Attempt to svn update through project context menu
4 - Get authentification error as described in my post above
5 - Go to command line, do svn log on project folder, enter Gnome keyring password on the command line when asked
6 - Attempt to svn update again in Netbeans, IDE freezes

Here's attached the jstack output of frozen Netbeans in this situation.

Revision history for this message
Matthias Klose (doko) wrote :

see bug #455526 about an (unreproducible) openjdk-6 crash in this context

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.