Menu

connection ICAL SERVER failure

Help
Vincent
2013-07-30
2013-07-30
  • Vincent

    Vincent - 2013-07-30

    Hi all,
    I need to connect to the Apple iCal Server,I use the ical4j-connector however I could not find any doc or examples of this .
    I try to connect to the Apple iCal Server however get a error ‘org.apache.commons.httpclient.auth.AuthenticationException: basic authorization challenge expected, but not found’
    this is my code:
    URL url = new URL("https", "www.google.com", -1, "");
    CalDavCalendarStore store =
    new CalDavCalendarStore("-//MacTI//WOCal//EN", url, PathResolver.GCAL);
    store.connect("lusenx@gmail.com", "*".toCharArray());
    List<CalDavCalendarCollection> collectons = store.getCollections();

    what the matter?
    thanks.

     

    Last edit: Vincent 2013-07-30
  • Pascal Robert

    Pascal Robert - 2013-07-30

    You are connecting to Google Calendar (the URL is www.google.com), that's a iCal Server.

     
    • Vincent

      Vincent - 2013-07-30

      sorry,
      My target is connect to the Apple iCal Server,but connet failure,so I try connet the GooGle Calendar however connect is failure too,
      this is my code:
      // URL url = new URL("https", "106.187.47.147", "8843");
      // CalDavCalendarStore store =
      // new CalDavCalendarStore("-//MacTI//WOCal//EN", url, PathResolver.ICAL_SERVER);
      // store.connect("*", "***".toCharArray());
      // List<CalDavCalendarCollection> coll=store.getCollections();

      URL url = new URL("https", "www.google.com", -1, "");
      CalDavCalendarStore store =
          new CalDavCalendarStore("-//MacTI//WOCal//EN", url, PathResolver.GCAL);
      store.connect("lusenx@gmail.com", "*******".toCharArray());
      List<CalDavCalendarCollection> collectons = store.getCollections();
      

      thanks.

       

      Last edit: Vincent 2013-08-05
      • Erich Bremer

        Erich Bremer - 2013-07-30

        Please send all e-mail for me to erich.bremer@stonybrook.edu

         
        • Vincent

          Vincent - 2013-07-30

          Thanks

           
    • Erich Bremer

      Erich Bremer - 2013-07-30

      Please send all e-mail for me to erich.bremer@stonybrook.edu

       
      • Vincent

        Vincent - 2013-07-30

        Email has been sen,Have you received?

         

Log in to post a comment.