Hello, I have new GDS, gdapi0.9.5 and when I use API's or use command line I have always the same error that is [ERROR]: Unexpected element {}:doc_id
Anybody know about it???
Any way to get around it?
gdapi.cmd "google"
GDAPI
url:http://127.0.0.1:4664/search&s=GdGuSWVdL72m0dLcDiB1cti4sIE?q=google++filetyp
e%3Adoc+&format=xml&num=25&start=0&flags=544
DefaultValidationEventHandler: [ERROR]: Unexpected element {}:doc_id
Location:
Exception in thread "main" jgd.JGDError: Error executing desktop query: Unexpect
ed element {}:doc_id
at jgd.JGDQuery.execute(Unknown Source)
at jgd.test.JGDTest.main(Unknown Source)
Regards,
Max
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am also having this error and would like to use the Java API to access Google Desktop from a Java application. Will the 0.9.6 version be released soon? If not, are there any other options for using the Java API?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I read the "Schema Changes" messages and it looks like Mai has found a way to work with the Java API. I would like to try this too.
I think that using the "cvs version" means downloading all the latest source code versions of each file and then compiling them to get the "class" files to put in the jars. Also, download the latest "gdsdk.xsd" file and the ICE_JNIResistry.dll file. Is this correct? Is there anything else I need to know other than what is said in the "Schema Changes" messages?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Yes, it is correct. But it is very easy, because you only have to checkout cvs latest version, as is. This version includes all files you need.
You may use build.xml ant builder to compile, package, etc.
If you change XSD file, then you have to run ant builder with xjc argument, to generate new jaxb classes.
Please, let me know if your solution works well.
Thank!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thank you, Maso. I guess I thought that checking out cvs was only for project developers. From the documentation it looks like I would need to download some software to use cvs and I will try it later.
Anyway, before I read your message, I created a project in Eclipse and downloaded all of the files from cvs that were changed for Google Desktop version 2 and added the jars and it did work OK. I did not get the DefaultValidationEventHandler: [ERROR]: Unexpected element {}:doc_id error.
Configuration.java does have the format=xml and with running JGDTest the elements were: category, doc_id, event_id, title, url, time, snippet, icon, cache and flags. I did not see an element called folder. Are these the elements that Mai saw? I'm wondering why Mai got the element folder in a DefaultValidationEventHandler error?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
the element folder appears if you use GDS 2 and the results contain an e-mail. There the folder, where the e-mail is stored is given in this element (e.g. <folder>Inbox</folder>).
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thank you, Mai. I am using Google Desktop 2 and I do have email in the results, but there is not an element called folder. Maybe it will happen later while I'm working on this, under certain circumstances. Were there any other properties that you noticed not documented by GDS, other than doc_id, event_id, message_id and flags?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
hi,
Well i'm really new to GDApi,and have just started working on it.I want to use these api in a desktop application i'm developing.
I did a very basic experimenting program to query the google desktop.But geting the same exception as mention in this discussion.I've gone through this entire discussion(and have got a lot of information.Thanks a lot) but still not clear how to download and compile the cvs version. Can you please guide me for this.It will be very helpfull.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
hello Mai,
thanks a lot for your help.Pls send me the gdapi.jar which i can use on mehul5000@gmail.com as soon as possible.Thanks again.
Regards,
Mehul
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I would like the gdapi.jar file as well. I tried to compile gdsdk.xsd, using ant xjc, after adding the xml code you showed in Schema changes for the wildcard:
Hello, I have new GDS, gdapi0.9.5 and when I use API's or use command line I have always the same error that is [ERROR]: Unexpected element {}:doc_id
Anybody know about it???
Any way to get around it?
gdapi.cmd "google"
GDAPI
url:http://127.0.0.1:4664/search&s=GdGuSWVdL72m0dLcDiB1cti4sIE?q=google++filetyp
e%3Adoc+&format=xml&num=25&start=0&flags=544
DefaultValidationEventHandler: [ERROR]: Unexpected element {}:doc_id
Location:
Exception in thread "main" jgd.JGDError: Error executing desktop query: Unexpect
ed element {}:doc_id
at jgd.JGDQuery.execute(Unknown Source)
at jgd.test.JGDTest.main(Unknown Source)
Regards,
Max
Max,
You are probably using google desktop 2.
Only API 0.9.6 version will support V2.
Please, check out http://sourceforge.net/forum/forum.php?thread_id=1342180&forum_id=423116
Thanks,
thank you for the answer, but there is no version 0.9.6 on download page. is it only place to get it from is CVS?
thanks
Yes, actually 0.9.6 is not released, but this bug is fixed in CVS.
I'm thinking in release new version when test period has passed. (one week m/l)
Thanks,
do you know when do you release 0.9.6??
Please, check out "Schema changes" topic
http://sourceforge.net/forum/forum.php?thread_id=1407138&forum_id=423116
I am also having this error and would like to use the Java API to access Google Desktop from a Java application. Will the 0.9.6 version be released soon? If not, are there any other options for using the Java API?
I read the "Schema Changes" messages and it looks like Mai has found a way to work with the Java API. I would like to try this too.
I think that using the "cvs version" means downloading all the latest source code versions of each file and then compiling them to get the "class" files to put in the jars. Also, download the latest "gdsdk.xsd" file and the ICE_JNIResistry.dll file. Is this correct? Is there anything else I need to know other than what is said in the "Schema Changes" messages?
Yes, it is correct. But it is very easy, because you only have to checkout cvs latest version, as is. This version includes all files you need.
You may use build.xml ant builder to compile, package, etc.
If you change XSD file, then you have to run ant builder with xjc argument, to generate new jaxb classes.
Please, let me know if your solution works well.
Thank!
Thank you, Maso. I guess I thought that checking out cvs was only for project developers. From the documentation it looks like I would need to download some software to use cvs and I will try it later.
Anyway, before I read your message, I created a project in Eclipse and downloaded all of the files from cvs that were changed for Google Desktop version 2 and added the jars and it did work OK. I did not get the DefaultValidationEventHandler: [ERROR]: Unexpected element {}:doc_id error.
Configuration.java does have the format=xml and with running JGDTest the elements were: category, doc_id, event_id, title, url, time, snippet, icon, cache and flags. I did not see an element called folder. Are these the elements that Mai saw? I'm wondering why Mai got the element folder in a DefaultValidationEventHandler error?
Hello,
the element folder appears if you use GDS 2 and the results contain an e-mail. There the folder, where the e-mail is stored is given in this element (e.g. <folder>Inbox</folder>).
Thank you, Mai. I am using Google Desktop 2 and I do have email in the results, but there is not an element called folder. Maybe it will happen later while I'm working on this, under certain circumstances. Were there any other properties that you noticed not documented by GDS, other than doc_id, event_id, message_id and flags?
No, I couldn't see any other elements.
hi,
Well i'm really new to GDApi,and have just started working on it.I want to use these api in a desktop application i'm developing.
I did a very basic experimenting program to query the google desktop.But geting the same exception as mention in this discussion.I've gone through this entire discussion(and have got a lot of information.Thanks a lot) but still not clear how to download and compile the cvs version. Can you please guide me for this.It will be very helpfull.
Hello mehulmistry,
if you want to, I can send you the changed gdapi.jar which I use and which is working for me by e-mail.
hello Mai,
thanks a lot for your help.Pls send me the gdapi.jar which i can use on mehul5000@gmail.com as soon as possible.Thanks again.
Regards,
Mehul
hello Mai,
can i get the jar too??
Thanks a lot
allon
i forgot my mail address
allon.moritz[at]gmail.com
Hi Mai,
I would like the gdapi.jar file as well. I tried to compile gdsdk.xsd, using ant xjc, after adding the xml code you showed in Schema changes for the wildcard:
<xs:any namespace="##any" processContents="strict"
minOccurs="0" maxOccurs="unbounded">
<xs:annotation><xs:appinfo>
<jxb:property name="Extension"/>
</xs:appinfo></xs:annotation>
</xs:any>
But I get the error message:
The prefix "jxb" for element "jxb:property" is not bound. I tried some variations.
So I just added the xml code for the element: folder and this compiled OK and works, but I would prefer the wildcard.
My email address is: elaine_li_3@msn.com
Thanks!
hi all,
i m experiencing the same problem: Unexpected element : folder.
can anybody mail me the comeplete source code(zip file) for this api.
My email address is: tamjit@gmail.com
Thanks!
Hi tamjitarya,
All source is under sourceforge CVS, you can browse it at:
http://gdapi.cvs.sourceforge.net/gdapi/gdapi/
Thanks,
Can someone please send me gdapi.jar. My email address is jennybaotranla@yahoo.com. Thank you very much.
Jenny