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.




Error with SVN integration

add-ons

Getting more error:

Commit failed (details follow):
'pre-commit' hook failed with error output:

Unhandled Exception: System.Xml.XmlException: '--' is an unexpected token. The
expected token is '>'. Line 81, position 5.
   at System.Xml.XmlTextReaderImpl.Throw(Exception e)
at
System.Xml.XmlTextReaderImpl.DtdParserProxy.System.Xml.IDtdParserAdapter.Throw(Exception
e)
   at System.Xml.DtdParser.Throw(Int32 curPos, String res, String[] args)
at System.Xml.DtdParser.ThrowUnexpectedToken(Int32 pos, String expectedToken1,
String expectedToken2)
   at System.Xml.DtdParser.ScanClosingTag()
   at System.Xml.DtdParser.GetToken(Boolean needWhiteSpace)
   at System.Xml.DtdParser.ParseEntityDecl()
   at System.Xml.DtdParser.ParseSubset()
   at System.Xml.DtdParser.ParseExternalSubset()
   at System.Xml.DtdParser.ParseInDocumentDtd(Boolean saveInternalSubset)
   at System.Xml.DtdParser.Parse(Boolean saveInternalSubset)
   at System.Xml.XmlTextReaderImpl.ParseDoctypeDecl()
   at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
   at System.Xml.XmlTextReaderImpl.Read()
at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace)
   at System.Xml.XmlDocument.Load(XmlReader reader)
   at System.Xml.XmlDocument.Load(Stream inStream)
at CounterSoft.Gemini.Commons.Rest.Serializer.ConvertToObject[T](Stream stream)
at CounterSoft.Gemini.WebServices.BaseService.GetObjectFromReponse[T](Stream stream)
at
CounterSoft.Gemini.WebServices.BaseService.ThrowResponseException(WebResponse response)
at CounterSoft.Gemini.WebServices.BaseService.ProcessResponse[T](String url,
Object obj, RequestType requestType)
   at CounterSoft.Gemini.WebServices.BaseService.WhoAmI()
   at CounterSoft.Gemini.SourceControl.SVN.Program.Main(String[] args)

 

Please help!

talbengal
· 1
talbengal
Replies (29)
helpful
0
not helpful

Please make sure that the URL, username and password are correct in the Gemini SVN config file.


Saar Cohen
· 5000
Saar Cohen
helpful
0
not helpful

URL is the right one, user name / password is correct in

CounterSoft.Gemini.SourceControl.SVN.exe.config

 

 

 


talbengal
· 1
talbengal
helpful
0
not helpful

Please run DebugView. http://technet.microsoft.com/en-us/sysinternals/bb896647.aspx and post the output.


Saar Cohen
· 5000
Saar Cohen
helpful
0
not helpful

Dose the DebugView has to run on the server where the SVN is

or

On the server where the Gemini web site on?

Or

On the Pc that doing the SVN commit?

 

 


talbengal
· 1
talbengal
helpful
0
not helpful

On the SVN server (the server that you have put the hook files).


Saar Cohen
· 5000
Saar Cohen
helpful
0
not helpful

here is the log from DebugView:

 

00000000 15:59:22 [2832] CounterSoft Gemini: Main 
00000001 15:59:22 [2832] CounterSoft Gemini: Argument: pre-commit 
00000002 15:59:22 [2832] CounterSoft Gemini: Argument: c:\repos 
00000003 15:59:22 [2832] CounterSoft Gemini: Argument: 4961-2 
00000004 15:59:22 [2832] CounterSoft Gemini: Constructing Service Manager. 
00000005 15:59:26 [2832] CounterSoft Gemini: Constructed Service Manager. 
00000006 15:59:26 [2832] CounterSoft Gemini: Gemini Username: admin 

And then I get the error on the SVN Commint and no more entries in DebugView.

 


talbengal
· 1
talbengal
helpful
0
not helpful

And are you sure that the user admin is correct?

Also, please double check the URL, these 2 things are the possible cause.


Saar Cohen
· 5000
Saar Cohen
helpful
0
not helpful

Yes !

The URL is http://intranet/gemini3.5

This where I put all the Gemini bugs all the time - so YES sore its OK.

The username / password can log me in tothis URL with admin rights - so Yes it is the right username / password.

SVNBinPath -> c:\Program Files\Subversion\bin

UseWindowsAuthentication->False

        <setting name="PerformPreCommitChecks" serializeAs="String">
                <value>True</value>
            </setting>
            <setting name="AddIssueSourceCodeFileLink" serializeAs="String">
                <value>True</value>
            </setting>
            <setting name="AddIssueComment" serializeAs="String">
                <value>True</value>

 

 

The SVN run on windows 2003 server (under Tomcat 5.0).

The gemini WEB site is on other windows 2003 server running IIS 6.

The Client is XP.

All in the same domain.

 

the error is:

Commit failed (details follow):
'pre-commit' hook failed with error output:

Unhandled Exception: System.Net.WebException: The underlying connection was
closed: An unexpected error occurred on a receive. ---> System.IO.IOException:
Unable to read data from the transport connection: An existing connection was
forcibly closed by the remote host. ---> System.Net.Sockets.SocketException: An
existing connection was forcibly closed by the remote host
at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size,
SocketFlags socketFlags)
at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)
   --- End of inner exception stack trace ---
at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)
   at System.Net.PooledStream.Read(Byte[] buffer, Int32 offset, Int32 size)
at System.Net.Connection.SyncRead(HttpWebRequest request, Boolean
userRetrievedStream, Boolean probeRead)
   --- End of inner exception stack trace ---
   at System.Net.HttpWebRequest.GetResponse()
at System.Xml.XmlDownloadManager.GetNonFileStream(Uri uri, ICredentials credentials)
at System.Xml.XmlDownloadManager.GetStream(Uri uri, ICredentials credentials)
at System.Xml.XmlUrlResolver.GetEntity(Uri absoluteUri, String role, Type ofObjectToReturn)
   at System.Xml.XmlTextReaderImpl.OpenStream(Uri uri)
at System.Xml.XmlTextReaderImpl.DtdParserProxy_PushExternalSubset(String
systemId, String publicId)
at
System.Xml.XmlTextReaderImpl.DtdParserProxy.System.Xml.IDtdParserAdapter.PushExternalSubset(String
systemId, String publicId)
   at System.Xml.DtdParser.ParseExternalSubset()
   at System.Xml.DtdParser.ParseInDocumentDtd(Boolean saveInternalSubset)
   at System.Xml.DtdParser.Parse(Boolean saveInternalSubset)
   at System.Xml.XmlTextReaderImpl.ParseDoctypeDecl()
   at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
   at System.Xml.XmlTextReaderImpl.Read()
at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace)
   at System.Xml.XmlDocument.Load(XmlReader reader)
   at System.Xml.XmlDocument.Load(Stream inStream)
at CounterSoft.Gemini.Commons.Rest.Serializer.ConvertToObject[T](Stream stream)
at CounterSoft.Gemini.WebServices.BaseService.GetObjectFromReponse[T](Stream stream)
at
CounterSoft.Gemini.WebServices.BaseService.ThrowResponseException(WebResponse response)
at CounterSoft.Gemini.WebServices.BaseService.ProcessResponse[T](String url,
Object obj, RequestType requestType)
   at CounterSoft.Gemini.WebServices.BaseService.WhoAmI()
   at CounterSoft.Gemini.SourceControl.SVN.Program.Main(String[] args)

 


talbengal
· 1
talbengal
helpful
0
not helpful

The only other thing we can think of is firewall issues. Can the SVN server "see" the Gemini web server?


Saar Cohen
· 5000
Saar Cohen
helpful
0
not helpful

Yes, no problem getting onto the Gemini web site from the SVN server.

Is it to do with not having WIN version of SVN (TomCat)


talbengal
· 1
talbengal
helpful
0
not helpful

Can you please try to run the attached program on the SVN server? It will ask for the Gemini details and will output what we get back, please post it here.


Mark Wing
· 9108
Mark Wing
helpful
0
not helpful

It is stack on this screen:


Please enter Gemini URL:http://intranet/Gemini3.5

Please enter Gemini username (enter WINDOWS for win auth):admin
Please enter Gemini password:xxxxxxxxxx
Request for the permission of type 'System.Net.WebPermission, System, Version=2.
0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

But I can go to http://intranet/Gemini3.5 from this Server and log on as admin with no problem.

I can see the problem when i try to access our Intranet (http://intranet/Gemini3.5) its asking for windows domain username / password, and only after I am on the gemini page I enter the user / password for gemini - could this be the problem?

 


talbengal
· 1
talbengal
helpful
0
not helpful

Yes, this might be the issue. Are you using windows authentication? If not, please make sure that anonymous access is allowed in the directory security tab of the Gemini site in IIS.


Mark Wing
· 9108
Mark Wing
helpful
0
not helpful

I am using  windows authenticationfor the intranet web site and

anonymous access is allowed.

 


talbengal
· 1
talbengal
helpful
0
not helpful

Do you get the windows login pop up when connecting to Gemini from your PC?


Mark Wing
· 9108
Mark Wing
helpful
0
not helpful

Not from my PC.

Fom the SVN server yes.


talbengal
· 1
talbengal
helpful
0
not helpful

Is it possible for you to do the same test on the SVN server but run it under your credentials?


Mark Wing
· 9108
Mark Wing
helpful
0
not helpful

How the H.. do i do this?

I try everything it dose not work every time I go from the SVN server into http://intranet/gemini3.5 it ask for user name / password.

 


talbengal
· 1
talbengal
helpful
0
not helpful

You should run the browser under different credentials by right clicking on it and click on "Run As".


Mark Wing
· 9108
Mark Wing
helpful
0
not helpful

I am log in to the SVN server as myself (I am a domain admin)

I run the IE as myself, still asking me for username and password for http://intranet/gemini3.5

 


talbengal
· 1
talbengal
helpful
0
not helpful

Well I oper new repos and set SVN server on the Server that run the Gemini web site.

Did not help !!

I am getting the same error.

On the Application event log on the server I am getting this:

System.Xml - '--' is an unexpected token. The expected token is '>'. Line 81, position 5. - at System.Xml.XmlTextReaderImpl.Throw(Exception e)

at System.Xml.XmlTextReaderImpl.DtdParserProxy.System.Xml.IDtdParserAdapter.Throw(Exception e)

at System.Xml.DtdParser.Throw(Int32 curPos, String res, String[] args)

at System.Xml.DtdParser.ThrowUnexpectedToken(Int32 pos, String expectedToken1, String expectedToken2)

at System.Xml.DtdParser.ScanClosingTag()

at System.Xml.DtdParser.GetToken(Boolean needWhiteSpace)

at System.Xml.DtdParser.ParseEntityDecl()

at System.Xml.DtdParser.ParseSubset()

at System.Xml.DtdParser.ParseExternalSubset()

at System.Xml.DtdParser.ParseInDocumentDtd(Boolean saveInternalSubset)

at System.Xml.DtdParser.Parse(Boolean saveInternalSubset)

at System.Xml.XmlTextReaderImpl.ParseDoctypeDecl()

at System.Xml.XmlTextReaderImpl.ParseDocumentContent()

at System.Xml.XmlTextReaderImpl.Read()

at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace)

at System.Xml.XmlDocument.Load(XmlReader reader)

at System.Xml.XmlDocument.Load(Stream inStream)

at CounterSoft.Gemini.Commons.Rest.Serializer.ConvertToObject[T](Stream stream)

at CounterSoft.Gemini.WebServices.BaseService.GetObjectFromReponse[T](Stream stream)

at CounterSoft.Gemini.WebServices.BaseService.ThrowResponseException(WebResponse response)

at CounterSoft.Gemini.WebServices.BaseService.ProcessResponse[T](String url, Object obj, RequestType requestType)

at CounterSoft.Gemini.WebServices.AdminService.GetConfiguration()

at CounterSoft.Gemini.Scheduler.EmailAlertsProcess.Process()

 

Please, Please HELP!


talbengal
· 1
talbengal
helpful
0
not helpful

Can you try and run the application I posted yesterday?


Mark Wing
· 9108
Mark Wing
helpful
0
not helpful

its giving me the same:

Please enter Gemini URL:http://intranet/gemini3.5
Please enter Gemini username (enter WINDOWS for win auth):admin
Please enter Gemini password:s0ftechgl0bal
Request for the permission of type 'System.Net.WebPermission, System, Version=2.
0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

 

 


talbengal
· 1
talbengal
helpful
0
not helpful

Where is the test application directory? It should be on the actual machine, say C:\temp


Mark Wing
· 9108
Mark Wing
helpful
0
not helpful

D:\Gemini3.5\Gemini Web Application

 


talbengal
· 1
talbengal
helpful
0
not helpful

Can you please try it on C:\temp?


Mark Wing
· 9108
Mark Wing
helpful
0
not helpful

Copy the directory to c:\temp and set the IIS to take it from there, user can log in as before.

Its now in C:\Temp\Gemini Web Application

When running your test getting the same error:

Please enter Gemini URL:http://intranet/gemini3.5/
Please enter Gemini username (enter WINDOWS for win auth):admin
Please enter Gemini password:xxxxxxxx

Request for the permission of type 'System.Net.WebPermission, System, Version=2.
0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

 


talbengal
· 1
talbengal
helpful
0
not helpful

I'm getting the same kind of error that talbengal is describing. This is a new install and we are using build 2390. I'm using Windows Authentication on both the SVN server (VisualSVN server 2.05) and on the Gemini server. I have "allow anonymous access" unchecked in IIS on the Gemini server and we are using https on both servers.  The servers are in the same domain. One other piece of information worth noting is that both servers are Windows 2003 R2 x64.

Error: Commit failed (details follow): 
Error: Commit blocked by pre-commit hook (exit code -532459699) with output: 
Error:  
Error: Unhandled Exception: System.Xml.XmlException: '--' is an unexpected token. The  
Error: expected token is '>'. Line 81, position 5. 
Error:    at System.Xml.XmlTextReaderImpl.Throw(Exception e) 
Error: at  
Error: System.Xml.XmlTextReaderImpl.DtdParserProxy.System.Xml.IDtdParserAdapter.Throw(Exception  
Error: e) 
Error:    at System.Xml.DtdParser.Throw(Int32 curPos, String res, String[] args) 
Error:    at System.Xml.DtdParser.ScanClosingTag() 
Error:    at System.Xml.DtdParser.ParseEntityDecl() 
Error:    at System.Xml.DtdParser.ParseSubset() 
Error:    at System.Xml.DtdParser.Parse(Boolean saveInternalSubset) 
Error:    at System.Xml.XmlTextReaderImpl.ParseDoctypeDecl() 
Error:    at System.Xml.XmlTextReaderImpl.ParseDocumentContent() 
Error: at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace) 
Error:    at System.Xml.XmlDocument.Load(XmlReader reader) 
Error:    at System.Xml.XmlDocument.Load(Stream inStream) 
Error: at CounterSoft.Gemini.Commons.Rest.Serializer.ConvertToObject[T](Stream stream) 
Error: at CounterSoft.Gemini.WebServices.BaseService.GetObjectFromReponse[T](Stream stream) 
Error: at  
Error: CounterSoft.Gemini.WebServices.BaseService.ThrowResponseException(WebResponse response) 
Error: at CounterSoft.Gemini.WebServices.BaseService.ProcessResponse[T](String url,  
Error: Object obj, RequestType requestType) 
Error: at CounterSoft.Gemini.WebServices.BaseService.GetResponse[T](String url, Object  
Error: o, RequestType r) 
Error:    at CounterSoft.Gemini.WebServices.BaseService.WhoAmI() 
Error:    at CounterSoft.Gemini.SourceControl.SVN.Program.Main(String[] args) 
Finished!:  

The Debug view shows:
[2892] CounterSoft Gemini: Constructing Service Manager.
[2892] CounterSoft Gemini: Constructed Service Manager.
[2892] CounterSoft Gemini: Gemini Username: manager

 

My config file looks like this:

<applicationSettings>
        <CounterSoft.Gemini.SourceControl.SVN.Properties.Settings>
            <setting name="PerformPreCommitChecks" serializeAs="String">
                <value>False</value>
            </setting>
            <setting name="AddIssueSourceCodeFileLink" serializeAs="String">
                <value>True</value>
            </setting>
            <setting name="AddIssueComment" serializeAs="String">
                <value>True</value>
            </setting>           
            <setting name="SVNBinPath" serializeAs="String">               
                <value>C:\Program Files (x86)\VisualSVN Server\bin\</value>
            </setting>           
            <setting name="GeminiURL" serializeAs="String">
                <value>https://gemini.**</value>
            </setting>
            <setting name="GeminiUsername" serializeAs="String">
                <value>manager</value>
            </setting>
            <setting name="GeminiPassword" serializeAs="String">
                <value>manager</value>
            </setting>           
            <setting name="UseWindowsAuthentication" serializeAs="String">
                <value>True</value>
            </setting>
        </CounterSoft.Gemini.SourceControl.SVN.Properties.Settings>
    </applicationSettings>

 

I feel like there is definitely something missing in your setup process for Windows authentication. For example, I don't see how the username and password in the config file are of any use when using windows authentication. Are you expecting us to put an actual Windows domain user in those values? We can't do that for security reasons and I'd expect that many other organizations would have the same rule.

Any help would be appreciated.


dgsiss
· 1
dgsiss
helpful
0
not helpful

We expect the user name only without the password. Please send an email to support at countersoft dot com and we can remote into your system to see if we can solve this for both of you.


Mark Wing
· 9108
Mark Wing