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.




Create Issue Comment

api

I am new to the Gemini API and I have been looking how to create an issue comment. There were no problem to get issue comment, but I had no success to create issue comment. Is the CommentID assigned automatically ? Which comment fields should be set to avoid the error below ? Any ideas where I am going wrong?

Thanks for help!

============= Object reference not set to an instance of an object. CounterSoft.Gemini.Presenter at CounterSoft.Gemini.Presenter.IssuePresenter.CreateIssueComment(IssueEN issue, IssueCommentEN comment)
at CounterSoft.Gemini.Web.Api.IssuesRestHandler.CommentCreate(RequestDetails rd) System.NullReferenceException Exception has been thrown by the target of an invocation. mscorlib at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at CounterSoft.Gemini.Web.Api.RestHandler.GetResponse(RequestDetails rd, MethodInfo method) System.Reflection.TargetInvocationException Exception has been thrown by the target of an invocation. InternalServerError

amir
· 1
amir
Replies (4)
helpful
0
not helpful

It seems like you are not sending the correct comment entity (XML).

How are you calling the web service? Are you using .NET?


Saar Cohen
· 5000
Saar Cohen
helpful
0
not helpful

The application runs as pure vb script (off a server) using XMLHttpRequest object to send comment entity. The comment entity is formated as a string containing xml tags including xml header. Sended by POST method, content type set as "text/xml" plus other HTTP headers needed for authentication.
I tried to paste a sample into this reply but the content was badly formated. Please provide an email address if needed.


amir
· 1
amir
helpful
0
not helpful

Please have a look at our Java sample app: http://www.countersoft.com/downloads/v36/CounterSoftGeminiAPI_Java.zip it will help you.

send sample to support at countersoft dot com


Saar Cohen
· 5000
Saar Cohen
helpful
0
not helpful

The problem was caused by closing xml tag on the new line. It is required to keep starting and closing xml tags in one line (at least for some items).

Thank you for your support, it was very helpful !


amir
· 1
amir