[mono-android] calling a web reference async

Wally McClure theevilprogrammer at hotmail.com
Fri Dec 9 10:29:11 EST 2011


Is anyone else able to call a web reference async?  I am getting the following result in the simulator and the device.  When I call the exact same web reference sync with the same parameters, I don't get an error.  

Also, if I create a proxy manually using the silverlight sdk, I can call the web service through the proxy sync and all is ok.  If this were just for some random program, I would move on, but this is for our book and this is in a section where I show options regarding web services.  I'd like to keep it if possible.  

My questions:
1.  Is this a bug? (quite possible that I am doing something stupid).  I'm glad to provide my project if that will help.
2.  If this is a bug, is there more data that I can provide to help fix it?

Wally

output from ddms:

12-09 10:03:45.732: D/dalvikvm(134): GC_EXPLICIT freed 4K, 49% free 3095K/5959K, external 6522K/8145K, paused 769ms
12-09 10:03:48.312: I/MonoDroid(464): UNHANDLED EXCEPTION: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.IndexOutOfRangeException: Array index is out of range.
12-09 10:03:48.312: I/MonoDroid(464):   at (wrapper stelemref) object:virt_stelemref_object (intptr,object)
12-09 10:03:48.312: I/MonoDroid(464):   at System.Xml.Serialization.XmlTypeMapMember.SetValueSpecified (System.Object ob, Boolean value) [0x00000] in <filename unknown>:0 
12-09 10:03:48.312: I/MonoDroid(464):   at System.Xml.Serialization.XmlSerializationReaderInterpreter.SetMemberValue (System.Xml.Serialization.XmlTypeMapMember member, System.Object ob, System.Object value, Boolean isValueList) [0x00000] in <filename unknown>:0 
12-09 10:03:48.312: I/MonoDroid(464):   at System.Xml.Serialization.XmlSerializationReaderInterpreter.SetMemberValueFromAttr (System.Xml.Serialization.XmlTypeMapMember member, System.Object ob, System.Object value, Boolean isValueList) [0x00000] in <filename unknown>:0 
12-09 10:03:48.312: I/MonoDroid(464):   at System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadMessage (System.Xml.Serialization.XmlMembersMapping typeMap) [0x00000] in <filename unknown>:0 
12-09 10:03:48.312: I/MonoDroid(464):   at System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadRoot () [0x00000] in <filename unknown>:0 
12-09 10:03:48.312: I/MonoDroid(464):   at System.Xml.Serialization.XmlSerializer.Deserialize (System.Xml.Serialization.XmlSerializationReader reader) [0x00000] in <filename unknown>:0 
12-09 10:03:48.312: I/MonoDroid(464):   --- End of inner exception stack trace ---
12-09 10:03:48.312: I/MonoDroid(464): at System.ComponentModel.AsyncCompletedEventArgs.RaiseExceptionIfNecessary () <0x00054>
12-09 10:03:48.312: I/MonoDroid(464): at InternalNetworkData.com.twtmstr.www.LoginCompletedEventArgs.get_LoginResult () <0x00013>
12-09 10:03:48.312: I/MonoDroid(464): at InternalNetworkData.Activity1/<>c__DisplayClass1.<ws_LoginCompleted>b__0 () <0x0002b>
12-09 10:03:48.312: I/MonoDroid(464): at Java.Lang.Thread/RunnableImplementor.Run () <0x0003f>
12-09 10:03:48.312: I/MonoDroid(464): at Java.Lang.IRunnableInvoker.n_Run (intptr,intptr) <0x0003b>
12-09 10:03:48.312: I/MonoDroid(464): at (wrapper dynamic-method) object.2b364c4f-d426-43bb-ab4f-cc23eb7ef2ad (intptr,intptr) <0x0002b>
12-09 10:03:48.342: E/mono(464): Unhandled Exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.IndexOutOfRangeException: Array index is out of range.
12-09 10:03:48.342: E/mono(464):   at (wrapper stelemref) object:virt_stelemref_object (intptr,object)
12-09 10:03:48.342: E/mono(464):   at System.Xml.Serialization.XmlTypeMapMember.SetValueSpecified (System.Object ob, Boolean value) [0x00000] in <filename unknown>:0 
12-09 10:03:48.342: E/mono(464):   at System.Xml.Serialization.XmlSerializationReaderInterpreter.SetMemberValue (System.Xml.Serialization.XmlTypeMapMember member, System.Object ob, System.Object value, Boolean isValueList) [0x00000] in <filename unknown>:0 
12-09 10:03:48.342: E/mono(464):   at System.Xml.Serialization.XmlSerializationReaderInterpreter.SetMemberValueFromAttr (System.Xml.Serialization.XmlTypeMapMember member, System.Object ob, System.Object value, Boolean isValueList) [0x00000] in <filename unknown>:0 
12-09 10:03:48.342: E/mono(464):   at System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadMessage (System.Xml.Serialization.XmlMembersMapping typeMap) [0x00000] in <filename unknown>:0 
12-09 10:03:48.342: E/mono(464):   at 
12-09 10:03:48.362: D/Zygote(33): Process 464 exited cleanly (1)
12-09 10:03:48.388: I/WindowManager(62): WIN DEATH: Window{40846018 InternalNetworkData.InternalNetworkData/internalnetworkdata.Activity1 paused=false}
12-09 10:03:48.402: I/ActivityManager(62): Process InternalNetworkData.InternalNetworkData (pid 464) has died.
12-09 10:03:48.462: W/InputManagerService(62): Got RemoteException sending setActive(false) notification to pid 464 uid 10058
12-09 10:04:05.112: D/SntpClient(62): request time failed: java.net.SocketException: Address family not supported by protocol

 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/monodroid/attachments/20111209/61bfaa6c/attachment.html 


More information about the Monodroid mailing list