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 231498 - JavaHL cannot be selected as preferred client
Summary: JavaHL cannot be selected as preferred client
Status: RESOLVED FIXED
Alias: None
Product: versioncontrol
Classification: Unclassified
Component: Subversion (show other bugs)
Version: 8.0.1
Hardware: PC Windows 7 x64
: P3 normal with 1 vote (vote)
Assignee: Ondrej Vrabec
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-19 08:08 UTC by host
Modified: 2014-09-17 18:11 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
SVN Preferences 1 (95.20 KB, image/png)
2013-06-19 08:08 UTC, host
Details
SVN Preferences 2 (94.96 KB, image/png)
2013-06-19 08:08 UTC, host
Details
Messages Log (52.89 KB, application/octet-stream)
2013-06-23 09:54 UTC, host
Details

Note You need to log in before you can comment on or make changes to this bug.
Description host 2013-06-19 08:08:36 UTC
Created attachment 136013 [details]
SVN Preferences 1

I open the "Preferences" window, go to the "Versioning" and click on
"Subversion" under "Versioning Systems".

Now I select "Javahl" as preferred client and (manually) enter the path to the client libraries folder (see also bug 231495).

Since the "Apply" button is disabled, as you can see on the first attached screenshot, I click on "Ok".

I reopen the SVN preferences and, as you can see on the second screenshot, "CLI" is shown as preferred client and the path I selected as the client libraries folder is now shown as path to the SVN executables.

BTW: Shouldn't "Javahl" be spellt "JavaHL"?
Comment 1 host 2013-06-19 08:08:58 UTC
Created attachment 136014 [details]
SVN Preferences 2
Comment 2 Ondrej Vrabec 2013-06-19 08:11:30 UTC
Attach the messages.log after you switch to JavaHL
Comment 3 Ondrej Vrabec 2013-06-19 08:50:03 UTC
seems to be just a problem with determining if the preferred client changed

fix: http://hg.netbeans.org/core-main/rev/f66e94cb3058
Comment 4 host 2013-06-21 09:47:22 UTC
Should this fix already be in the daily NetBeans built?
Comment 5 Ondrej Vrabec 2013-06-21 09:58:39 UTC
(In reply to comment #4)
> Should this fix already be in the daily NetBeans built?
Not yet, the fix is still on the way to main-golden: http://hg.netbeans.org/main-golden/rev/f66e94cb3058
Comment 6 Quality Engineering 2013-06-22 02:08:05 UTC
Integrated into 'main-golden', will be available in build *201306212301* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/f66e94cb3058
User: Ondrej Vrabec <ovrabec@netbeans.org>
Log: #231498 - JavaHL cannot be selected as preferred client
Comment 7 host 2013-06-22 22:53:24 UTC
I have installed the build 201306212301 and the issues still exists for me. My steps to repoduce are: 
- Open (NetBeans) "Preferences"
- Select "Miscellaneous"
- Switch the preferred client from "SvnKit" to "JavaHL"
-> The "Apply" button is grayed out and thus cannot be clicked 

- Click the "Browse" button
- Select the folder with the JavaHL libraries and click on
-> The "Apply" button is still grayed out

- Click the "Ok" button
- Reopen the "Preferences"
-> "SvnKit" is selected as preferred client
Comment 8 Ondrej Vrabec 2013-06-23 07:58:28 UTC
works for me in 201306222301
1) Tools -> Options ...
2) Switch the preferred client from "SvnKit" to "JavaHL"
3) The Apply button is enabled and after clicking on this or OK NetBeans switches to JavaHL.
Attach the messages.log after you click on OK
Comment 9 host 2013-06-23 09:49:01 UTC
The propblem is that the issue of not the not enabled Apply button happens intermittently and I cannot really find a straightforward way to provoke the issue. It happens both when first SvnKit is selected (directly after opening the preferences) and then selecting CLI or JavaHL.
Comment 10 host 2013-06-23 09:54:19 UTC
Created attachment 136180 [details]
Messages Log
Comment 11 jclemens 2013-07-17 15:21:47 UTC
Issue persists in NetBeans IDE Build 201307152300.  Event when the Apply button is enabled properly, the settings do not save.

Steps to reproduce:
- Open Netbeans
- Tools -> Options
- Miscellaneous tab
- Versioning tab
- Click Subversion
- Change "Preferred Client" from SVNKit to JavaHL
- Click "Browse"
- Select folder containing libsvnjavahl-1.dll (downloaded from CollabNet)
- Click "Apply"

At this point, the "Preferred Client" switches back to SVNKit.
Comment 12 MackSix 2013-07-18 06:08:48 UTC
Steps in Comment 11 are reproducible.

Note that to reproduce steps in Comment 11, you may need to delete userdir and cachedir first because if you restart NetBeans, it may show JavaHL selected and not exhibit this behavior any longer unless you start with fresh userdir and cachedir.

Product Version: NetBeans IDE Dev (Build 201307172300)
Java: 1.7.0_25; Java HotSpot(TM) 64-Bit Server VM 23.25-b01
Runtime: Java(TM) SE Runtime Environment 1.7.0_25-b16
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb
Comment 13 Ondrej Vrabec 2013-07-21 07:11:03 UTC
> At this point, the "Preferred Client" switches back to SVNKit.
Please attach the messages.log at this point. It should contain info why javahl was not loaded.
Comment 14 Ondrej Vrabec 2013-07-23 11:37:43 UTC
This issue mixes several problems:
1) Apply button not enabled when client type is changed, fixed.
2) JavaHL not enabled when it is selected - from Comment #10 - the messages.log prints: Incompatible JavaHL library loaded.  Subversion 1.7.x required. Probably means you're trying loading JavaHL 1.8 -> covered in bug #231506
3) JavaHL not enabled when changing the path to its libraries. In this case the IDE requires restart. I will mention this fact in the options dialog

fix: http://hg.netbeans.org/core-main/rev/68c4dfdd6990
Comment 15 Quality Engineering 2013-07-24 02:35:15 UTC
Integrated into 'main-silver', will be available in build *201307232300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/68c4dfdd6990
User: Ondrej Vrabec <ovrabec@netbeans.org>
Log: #231498 - JavaHL cannot be selected as preferred client
show warning that the IDE requires to be restarted
Comment 16 FiruzzZ 2014-09-17 17:37:17 UTC
The problem still persist on 8.0.1, I installed the build Subversion 1.8.10 (Windows 32-bit) from CollabNet with include the file libsvnjavahl-1.dll (I guess this is the file the IDE should be looking for) but after press on Apply or OK button. Restarting the IDE or just looking  again if the change has been saved, the option is back on "CLI" and sometimes "SvnKit"
Comment 17 Ondrej Vrabec 2014-09-17 18:11:44 UTC
(In reply to FiruzzZ from comment #16)
> The problem still persist on 8.0.1, I installed the build Subversion 1.8.10
> (Windows 32-bit) from CollabNet with include the file libsvnjavahl-1.dll (I
> guess this is the file the IDE should be looking for) but after press on
> Apply or OK button. Restarting the IDE or just looking  again if the change
> has been saved, the option is back on "CLI" and sometimes "SvnKit"
Please file a new issue and attach the IDE log (after you click on Apply).