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 76258 - I18N: NullPointerException if svn config can't be found.
Summary: I18N: NullPointerException if svn config can't be found.
Status: VERIFIED FIXED
Alias: None
Product: versioncontrol
Classification: Unclassified
Component: Subversion (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: issues@versioncontrol
URL:
Keywords:
: 76345 76815 77683 78996 79141 80560 82275 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-05-12 10:30 UTC by tkellerer
Modified: 2006-11-01 08:40 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Log file after first checkout (22.72 KB, text/plain)
2006-05-12 12:48 UTC, tkellerer
Details
Log file after second restart. Checkout dialog not working (19.76 KB, text/plain)
2006-05-12 12:48 UTC, tkellerer
Details
SVN Checkout with a http based repository (22.72 KB, text/plain)
2006-05-12 12:59 UTC, tkellerer
Details
patch (2.61 KB, patch)
2006-05-12 16:12 UTC, Peter Pis
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description tkellerer 2006-05-12 10:30:19 UTC
When using Subversion -> Update (NB 5.5 Beta, svn module downloaded from beta
update center, version 1.0) I get the following NPE. The same repository was
working fine with the "old" svn module


java.lang.NullPointerException
	at
org.netbeans.modules.subversion.config.SvnConfigFiles.copyConfigFileToIDEConfigDir(SvnConfigFiles.java:371)
	at
org.netbeans.modules.subversion.config.SvnConfigFiles.<init>(SvnConfigFiles.java:61)
	at
org.netbeans.modules.subversion.config.SvnConfigFiles.getInstance(SvnConfigFiles.java:73)
	at
org.netbeans.modules.subversion.client.SvnClientExceptionHandler.handleNoCertificateError(SvnClientExceptionHandler.java:118)
	at
org.netbeans.modules.subversion.client.SvnClientExceptionHandler.handleException(SvnClientExceptionHandler.java:71)
	at
org.netbeans.modules.subversion.client.SvnClientInvocationHandler.handleException(SvnClientInvocationHandler.java:215)
	at
org.netbeans.modules.subversion.client.SvnClientInvocationHandler.invoke(SvnClientInvocationHandler.java:110)
	at $Proxy11.update(Unknown Source)
	at
org.netbeans.modules.subversion.ui.update.UpdateAction.updateRoots(UpdateAction.java:122)
	at
org.netbeans.modules.subversion.ui.update.UpdateAction.access$000(UpdateAction.java:38)
	at
org.netbeans.modules.subversion.ui.update.UpdateAction$1.perform(UpdateAction.java:103)
	at
org.netbeans.modules.subversion.client.SvnProgressSupport.performIntern(SvnProgressSupport.java:54)
	at
org.netbeans.modules.subversion.client.SvnProgressSupport.run(SvnProgressSupport.java:47)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:493)
[catch] at
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:926)
Comment 1 Peter Pis 2006-05-12 10:47:28 UTC
Can't reproduce. Could you please provide more details? Thanks.
Comment 2 tkellerer 2006-05-12 10:56:27 UTC
The SVN output gives the following:

==[IDE]== May 12, 2006 11:52:30 AM Updating "migrator"
up -N -r HEAD
C:\Projects\AOL\Lasttest\repository\Source\Collector\src\java\de\aol\loadtest\migrator
--non-interactive --config-dir C:\Daten\NetBeans55\config\svn\config
svn: PROPFIND request failed on
'/svnrepos-esps/trunk/tools/Loadtest/Collector/src/java/de/aol/loadtest'
svn: PROPFIND of
'/svnrepos-esps/trunk/tools/Loadtest/Collector/src/java/de/aol/loadtest': Server
certificate verification failed: issuer is not trusted
(https://devfund14.labhh.aol.de)
==[IDE]== May 12, 2006 11:52:32 AM Update "migrator" finished.


Could it be that this is related to the fact that I'm using https?

Using TortoiseSVN works fine.

What I did was to switch from 5.5 daily to 5.5 beta with a fresh userdir. After
opening my project the new Subversion module automatically picked up my SVN
repository but then gives this error when updating a folder. 

Switching the package display from List to Tree did not solve the issue either
(the old module did have problems with the List display)
Comment 3 tkellerer 2006-05-12 12:47:33 UTC

Downloaded and installed the unlimited encryption for the JRE as suggested on
the mailing list.

The deleted the UserDir completely
Started NB 5.5 beta
Downloaded the Subversion module
Restarted the IDE
Select Subversion -> Checkout 
Enter my repository URL 
Click next, nothing happens. Blinking red stop sign in the status bar indicates
an exception. (See attached messages.log.1)

After another restart of the IDE the Subversion Checkout dialog does not come up
at all (see attached messages.log.2)


Comment 4 tkellerer 2006-05-12 12:48:16 UTC
Created attachment 30365 [details]
Log file after first checkout
Comment 5 tkellerer 2006-05-12 12:48:54 UTC
Created attachment 30366 [details]
Log file after second restart. Checkout dialog not working
Comment 6 tkellerer 2006-05-12 12:59:09 UTC
I just tried a non-https repository and I get the same NPE. 
I have attached messages.log.3 but it essentially looks the same as .2
Comment 7 tkellerer 2006-05-12 12:59:52 UTC
Created attachment 30367 [details]
SVN Checkout with a http based repository
Comment 8 Peter Pis 2006-05-12 13:15:01 UTC
Is your svn configuration directory placed in standard location?

<home drive>\<home path>\<user name>\"Application Data"\subversion

Can you perform check out from commandline?
Comment 9 tkellerer 2006-05-12 13:16:24 UTC
Yes. Although - as it is a german Windows - the path is 

<home drive>\<home path>\<user name>\Anwendungsdaten\subversion
Comment 10 Peter Pis 2006-05-12 13:22:46 UTC
Unfortunatelly, I have found were the problem is... :(

It's again problem of i18n. We are searching for "Application Data/Subversion/"
only. So for now the only workaroud is to create this structure and copy the
content of it there. 
Comment 11 Peter Pis 2006-05-12 13:26:46 UTC
windows environment variable "APPDATA=C:\Documents and
Settings\peter\Application Data" should be used for finding subversion config
directory.
Comment 12 tkellerer 2006-05-12 13:30:16 UTC
Copying the settings as suggested does work. 

I can live with the workaround for now (this means I need to keep two copies of
the settings around in order to not break TortoiseSVN). 

I do hope the fix will make it into the final release!
Comment 13 Peter Pis 2006-05-12 16:11:20 UTC
tstupka, could you please review my patch? I also added method to recognize
windows environment variables. So I hope this will also resolve problem of
non-english windows. And it should also fix this issue.
Comment 14 Peter Pis 2006-05-12 16:12:08 UTC
Created attachment 30374 [details]
patch
Comment 15 Tomas Stupka 2006-05-12 17:39:00 UTC
fixed

Checking in SvnConfigFiles.java;
/cvs/subversion/main/src/org/netbeans/modules/subversion/config/SvnConfigFiles.java,v
 <--  SvnConfigFiles.java
new revision: 1.20; previous revision: 1.19
done
Comment 16 Peter Pis 2006-05-14 10:30:18 UTC
*** Issue 76345 has been marked as a duplicate of this issue. ***
Comment 17 Peter Pis 2006-05-18 08:53:21 UTC
*** Issue 76524 has been marked as a duplicate of this issue. ***
Comment 18 Tomas Stupka 2006-05-24 16:02:08 UTC
*** Issue 76815 has been marked as a duplicate of this issue. ***
Comment 19 Peter Pis 2006-06-10 19:35:00 UTC
*** Issue 77683 has been marked as a duplicate of this issue. ***
Comment 20 Peter Pis 2006-06-23 18:09:56 UTC
*** Issue 78996 has been marked as a duplicate of this issue. ***
Comment 21 Peter Pis 2006-06-27 08:08:06 UTC
*** Issue 79141 has been marked as a duplicate of this issue. ***
Comment 22 Tomas Stupka 2006-07-19 13:09:14 UTC
*** Issue 80560 has been marked as a duplicate of this issue. ***
Comment 23 Peter Pis 2006-08-09 15:11:55 UTC
*** Issue 82275 has been marked as a duplicate of this issue. ***
Comment 24 Peter Pis 2006-11-01 08:40:58 UTC
Verified.