Gemini Community Support Site

This Gemini community support site can be used to find solutions to product issues. You can log in using Open Id, Google Profile and even Facebook. Feel free to ask a question or browse FAQs and documentation. Product tour videos are also available along with how-to videos demonstrating key Gemini capabilities.




SVN commit hook failing

install
usage
api

Hi,

I've just upgraded our Gemini to version 4.2. Also took the new code for the commit hook to use on our SVN server, compiled it and put it in the hooks folder on the SVN machine and configured the config file.

When I'm trying to do a commit now it's crashing with a nullreference exception, this is crash:

Error: Commit failed (details follow):
Error: 'pre-commit' hook failed (did not exit cleanly: apr_exit_why_e was 2, exitcode
Error: was -1073741819). with output:
Error:
Error: Unhandled Exception: System.NullReferenceException: Object reference not set to
Error: an instance of an object.
Error: at CounterSoft.Gemini.SourceControl.SVN.Program.Main(String[] args) in
Error: D:\Projects\Subversion\misc\Gemini\CounterSoft.Gemini.SourceControl.SVN\V4.2\Program.cs:line
Error: 120
Finished!:

Line 120 in the program class is DiagnosticsManager.TraceMessage("Gemini Logged in user: " + GeminiServiceManager.UsersService.WhoAmI().UserName);

The commit hook has always worked perfectly (old gemini version 3.6). Am I missing something for the UsersService or something?

Koen Mevissen
· 1
Koen Mevissen
Replies (6)
helpful
0
not helpful

Did you upgrade your Gemini? If so you need to use the same version of the hook.


Saar Cohen
· 5000
Saar Cohen
helpful
0
not helpful

Yes, I upgraded both Gemini and the commit hook, both are version 4.2.0.


Koen Mevissen
· 1
Koen Mevissen
helpful
0
not helpful

Are there any errors in Gemini's system log? Can you navigate to http://.../api/users.ashx whay do you get?


Saar Cohen
· 5000
Saar Cohen
helpful
0
not helpful

Thanks for your swift responses :)

Unfortunately there are no error's in Gemini's system log. At least not related to this commit hook. When browsing to the API i'm getting "Welcome to the Gemini Users REST API", that still seems to work. I haven't changed any of that since this was all still working with the 3.6 version.

I'll double check the deploy and all the settings today with a colleague to see if I missed anything.


Koen Mevissen
· 1
Koen Mevissen
helpful
1
not helpful

Check the version of the Countersoft DLLs for the add-on.


Mark Wing
· 9108
Mark Wing
helpful
0
not helpful

That got me in the right direct, thanks Mark.

I checked the version of the deployed DLLs and found out they were the old version. I went back to the code and checked the build. Noticed on building the DLLs in the release folder got replaced, which made me realise the references where still pointing to a location having the old DLLs. After updating and rebuilding the commit hook is now working again.

I feel a bit stupid now :)

Thanks again for your quick help guys! Much appreciated.


Koen Mevissen
· 1
Koen Mevissen