Dhruti90 / google-gdata1111

Automatically exported from code.google.com/p/google-gdata
0 stars 0 forks source link

The Batch Upload for Calendar Retruned a NullReferenceException #320

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
Using VB 2009 from VS2009
While Using the Calendar Batch Upload

Dim MyUri As New Uri(MyCurrentEventFeed.Batch)
Dim batchResultFeed As EventFeed = gService.Batch(batchFeed, MyUri)

What is the expected output? What do you see instead?
Intended: return the batch feed result
Returned: System.NullReferenceException was unhandled

What version of the product are you using? On what operating system?
.NET 1.4.0.2

Please provide any additional information below.
Complete Exception data
System.NullReferenceException was unhandled
  Message="Object reference not set to an instance of an object."
  Source="Google.GData.Client"
  StackTrace:
       at Google.GData.Client.AtomFeed.WalkTree(IBaseWalkerAction action) 
  at Google.GData.Client.AtomBase.OnVersionInfoChanged()    at
Google.GData.Client.AtomBase.set_ProtocolMajor(Int32 value)    at
Google.GData.Client.VersionInformation.ImprintVersion(IVersionAware v)   
at Google.GData.Client.Service.EntrySend(Uri feedUri, AtomBase baseEntry,
GDataRequestType type, AsyncSendData data)    at
Google.GData.Client.Service.Batch(AtomFeed feed, Uri batchUri,
AsyncSendData data)    at Google.GData.Client.Service.Batch(AtomFeed feed,
Uri batchUri)    at GoogleGeoCalendar.frmMain.SendEventsToGoogle(eCache[]
EventList, String CalendarURI) in C:\Documents and Settings\Owner\My
Documents\Visual Studio
2008\Projects\GoogleGeoCalendar\GoogleGeoCalendar\frmMain.vb:line 472    at
GoogleGeoCalendar.frmMain.btnUpload_Click(Object sender, EventArgs e) in
C:\Documents and Settings\Owner\My Documents\Visual Studio
2008\Projects\GoogleGeoCalendar\GoogleGeoCalendar\frmMain.vb:line 299    at
System.Windows.Forms.Control.OnClick(EventArgs e)    at
System.Windows.Forms.Button.OnClick(EventArgs e)    at
System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)    at
System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button,
Int32 clicks)    at System.Windows.Forms.Control.WndProc(Message& m)    at
System.Windows.Forms.ButtonBase.WndProc(Message& m)    at
System.Windows.Forms.Button.WndProc(Message& m)    at
System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)   
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)   
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32
msg, IntPtr wparam, IntPtr lparam)    at
System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)    at
System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNat
iveMethods.IMsoComponentManager.FPushMessageLoop(Int32
dwComponentID, Int32 reason, Int32 pvLoopData)    at
System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32
reason, ApplicationContext context)    at
System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason,
ApplicationContext context)    at
System.Windows.Forms.Application.Run(ApplicationContext context)    at
Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun()
   at
Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicat
ionModel()
   at
Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(String
[]
commandLine)    at GoogleGeoCalendar.My.MyApplication.Main(String[] Args)
in 17d14f5c-a337-4978-8281-53493378c1071.vb:line 81    at
System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)    at
System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence
assemblySecurity, String[] args)    at
Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()    at
System.Threading.ThreadHelper.ThreadStart_Context(Object state)    at
System.Threading.ExecutionContext.Run(ExecutionContext executionContext,
ContextCallback callback, Object state)    at
System.Threading.ThreadHelper.ThreadStart()
  InnerException: 

Original issue reported on code.google.com by trspraypaint on 22 Jan 2010 at 3:14

GoogleCodeExporter commented 9 years ago
Ok i gave it a go once more, and found that I had forgot to add the create 
entries to
the array being added so it was adding null entries...

So this is fixed... but now I am having a different issue... 47 items sent in 
the
batch and only one item returned and it failed... but nothing seems to have been
deleted or added...

Original comment by trspraypaint on 22 Jan 2010 at 3:37

GoogleCodeExporter commented 9 years ago
Remove this Issue Please :)

Original comment by trspraypaint on 27 Jan 2010 at 9:10

GoogleCodeExporter commented 9 years ago
With pleasure :)

Original comment by fman...@gmail.com on 1 Feb 2010 at 9:08