Menu

version2 [ERROR]: Unexpected element {}:doc_i

Help
Max
2005-10-27
2013-04-03
  • Max

    Max - 2005-10-27

    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

     
    • Maso Gato

      Maso Gato - 2005-10-27

      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,

       
    • Max

      Max - 2005-10-27

      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

       
      • Maso Gato

        Maso Gato - 2005-10-27

        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,

         
    • laoneo

      laoneo - 2005-12-06

      do you know when do you release 0.9.6??

       
    • Elaine

      Elaine - 2005-12-15

      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?

       
    • Elaine

      Elaine - 2005-12-23

      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?

       
      • Maso Gato

        Maso Gato - 2005-12-23

        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!

         
    • Elaine

      Elaine - 2005-12-23

      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? 

       
      • Mai

        Mai - 2005-12-23

        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>).

         
    • Elaine

      Elaine - 2005-12-23

      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?

       
      • Mai

        Mai - 2005-12-24

        No, I couldn't see any other elements.

         
    • Mehul

      Mehul - 2006-02-16

      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.

       
    • Mai

      Mai - 2006-02-16

      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.

       
    • Mehul

      Mehul - 2006-02-17

      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

       
      • laoneo

        laoneo - 2006-02-17

        hello Mai,
        can i get the jar too??
        Thanks a lot
        allon

         
        • laoneo

          laoneo - 2006-02-17

          i forgot my mail address
          allon.moritz[at]gmail.com

           
    • Elaine

      Elaine - 2006-02-18

      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!

       
    • tamjitarya

      tamjitarya - 2006-05-16

      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!

       
      • Maso Gato

        Maso Gato - 2006-05-17

        Hi tamjitarya,

        All source is under sourceforge CVS, you can browse it at:

        http://gdapi.cvs.sourceforge.net/gdapi/gdapi/

        Thanks,

         
    • jennybaotranla

      jennybaotranla - 2006-11-20

      Can someone please send me gdapi.jar. My email address is jennybaotranla@yahoo.com. Thank you very much.

      Jenny

       

Log in to post a comment.

MongoDB Logo MongoDB