Menu

IllegalStateException when syncing

2010-10-20
2013-03-16
  • Daniel Nilsson

    Daniel Nilsson - 2010-10-20

    Hi
    This little utility has been really useful to me, but all of a sudden I have started to get errors, causing the sync to fail ::(

    When I am trying to sync I get the following exception:

    Is it possible to add som more error-information, for example what data is incorrect, or is causing the error… so it is possible to correct any odd entry in the calendar.

    (
    //daniel

    ….

    Starting sync
        Application Version: 1.8
        OS: Windows 7 6.1 x86
        Java: 1.6.0_17 Sun Microsystems Inc.
        Local Server: true
        Use Proxy: false
        Use SSL: true
        Sync Description: true
        Sync Alarms: false

    Getting Lotus Notes calendar entries (1.5 s)
      112 entries found within date range
        Lotus Version: Release 8.5.1|September 28, 2009            
    Logging into Google (2.2 s)
    Getting Google calendar entries (2.2 s)
      102 entries found within date range
    Comparing Lotus Notes and Google calendar entries (0.0 s)
      10 entries to create. 0 entries to delete.
    Creating new Google calendar entries

    === ERROR ===

    There was an error synchronizing the calendars.
    java.lang.IllegalStateException: g:when/@startTime must be less than or equal to g:when/@endTime.
    at com.google.gdata.data.extensions.When.validate(When.java:98)
    at com.google.gdata.data.AbstractExtension.generate(AbstractExtension.java:172)
    at com.google.gdata.data.ExtensionPoint.generateExtensions(ExtensionPoint.java:489)
    at com.google.gdata.data.BaseEntry.generateAtom(BaseEntry.java:795)
    at com.google.gdata.client.Service.insert(Service.java:1240)
    at com.google.gdata.client.GoogleService.insert(GoogleService.java:561)
    at LotusNotesGoogleCalendarBridge.GoogleService.GoogleImport.createCalendarEntries(GoogleImport.java:610)
    at LotusNotesGoogleCalendarBridge.mainGUI.doSync(mainGUI.java:213)
    at LotusNotesGoogleCalendarBridge.mainGUI$SyncSwingWorker.doInBackground(mainGUI.java:231)
    at LotusNotesGoogleCalendarBridge.mainGUI$SyncSwingWorker.doInBackground(mainGUI.java:224)
    at javax.swing.SwingWorker$1.call(Unknown Source)
    at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
    at java.util.concurrent.FutureTask.run(Unknown Source)
    at javax.swing.SwingWorker.run(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)

     
  • Daniel Nilsson

    Daniel Nilsson - 2010-10-21

    Hi
    Thanks for the Beta…

    I tried it, but didn't get any more information in the error (it looked the same as before…)
    I also believe I have an incorrect entry, the problem is to find out which one it is…

    Regards
    Daniel

     
  • Dean Hill

    Dean Hill - 2010-10-21

    Can you post the full error info? It has line numbers that might help me.

     
  • Daniel Nilsson

    Daniel Nilsson - 2010-10-22

    Hi
    here it comes:
    but I think it looks the same as the previous…

    === ERROR ===
    There was an error synchronizing the calendars.
    java.lang.IllegalStateException: g:when/@startTime must be less than or equal to g:when/@endTime.
    at com.google.gdata.data.extensions.When.validate(When.java:98)
    at com.google.gdata.data.AbstractExtension.generate(AbstractExtension.java:172)
    at com.google.gdata.data.ExtensionPoint.generateExtensions(ExtensionPoint.java:489)
    at com.google.gdata.data.BaseEntry.generateAtom(BaseEntry.java:795)
    at com.google.gdata.client.Service.insert(Service.java:1240)
    at com.google.gdata.client.GoogleService.insert(GoogleService.java:561)
    at LotusNotesGoogleCalendarBridge.GoogleService.GoogleImport.createCalendarEntries(GoogleImport.java:608)
    at LotusNotesGoogleCalendarBridge.mainGUI.doSync(mainGUI.java:212)
    at LotusNotesGoogleCalendarBridge.mainGUI$SyncSwingWorker.doInBackground(mainGUI.java:230)
    at LotusNotesGoogleCalendarBridge.mainGUI$SyncSwingWorker.doInBackground(mainGUI.java:223)
    at javax.swing.SwingWorker$1.call(Unknown Source)
    at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
    at java.util.concurrent.FutureTask.run(Unknown Source)
    at javax.swing.SwingWorker.run(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)

     
  • Daniel Nilsson

    Daniel Nilsson - 2010-10-26

    Hello
    With the 1.10Bet I got the following:

    There was an error synchronizing the calendars.
    java.lang.Exception: Couldn't create Google entry.
    Subject: com.google.gdata.data.PlainTextConstruct@1014e21
    Start Date: 2010-10-31T00:02:00.000
    at LotusNotesGoogleCalendarBridge.GoogleService.GoogleImport.createCalendarEntries(GoogleImport.java:618)
    at LotusNotesGoogleCalendarBridge.mainGUI.doSync(mainGUI.java:214)
    at LotusNotesGoogleCalendarBridge.mainGUI$SyncSwingWorker.doInBackground(mainGUI.java:232)
    at LotusNotesGoogleCalendarBridge.mainGUI$SyncSwingWorker.doInBackground(mainGUI.java:225)
    at javax.swing.SwingWorker$1.call(Unknown Source)
    at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
    at java.util.concurrent.FutureTask.run(Unknown Source)
    at javax.swing.SwingWorker.run(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
    Caused by: java.lang.IllegalStateException: g:when/@startTime must be less than or equal to g:when/@endTime.
    at com.google.gdata.data.extensions.When.validate(When.java:98)
    at com.google.gdata.data.AbstractExtension.generate(AbstractExtension.java:172)
    at com.google.gdata.data.ExtensionPoint.generateExtensions(ExtensionPoint.java:489)
    at com.google.gdata.data.BaseEntry.generateAtom(BaseEntry.java:795)
    at com.google.gdata.client.Service.insert(Service.java:1240)
    at com.google.gdata.client.GoogleService.insert(GoogleService.java:561)
    at LotusNotesGoogleCalendarBridge.GoogleService.GoogleImport.createCalendarEntries(GoogleImport.java:608)
    … 10 more

    And I can now see where the problem is. Seems my Notes Calendar has gone berserc :(

    Thanks for the help

     
  • Daniel Nilsson

    Daniel Nilsson - 2010-10-26

    Hi
    The root-problem seems to be the transition to Wintertime…

    When looking in my calendar I have two timeslots at 2AM this week since we are going over to wintertime Sunday night.
    In the calendar I see one time slot saying 2:00 as normal, and one saying 2:00 DST, and I think it is the latter which is the problem…

    So hopefully my sync will continue as normal next week :)

     
  • Daniel Nilsson

    Daniel Nilsson - 2010-10-26

    I'll be happy to!

    Here you are:

    === ERROR ===
    There was an error synchronizing the calendars.
    java.lang.Exception: Couldn't create Google entry.
    Subject: Irene kommer
    Start Date: 2010-10-31T00:02:00.000
    at LotusNotesGoogleCalendarBridge.GoogleService.GoogleImport.createCalendarEntries(GoogleImport.java:618)
    at LotusNotesGoogleCalendarBridge.mainGUI.doSync(mainGUI.java:214)
    at LotusNotesGoogleCalendarBridge.mainGUI$SyncSwingWorker.doInBackground(mainGUI.java:232)

     
  • Dean Hill

    Dean Hill - 2010-10-26

    Excellent. The Subject is displaying fine now.

    If anyone has the same problem as you in the future, hopefully they can diagnose it easier.  :-)

     

Log in to post a comment.