mail-archives/monodroid/2011-December/007704.html

138 строки
7.6 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [mono-android] calling a web reference async
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:monodroid%40lists.ximian.com?Subject=%5Bmono-android%5D%20calling%20a%20web%20reference%20async&In-Reply-To=">
<META NAME="robots" CONTENT="index,nofollow">
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
<LINK REL="Previous" HREF="007780.html">
<LINK REL="Next" HREF="007781.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[mono-android] calling a web reference async</H1>
<B>Wally McClure</B>
<A HREF="mailto:monodroid%40lists.ximian.com?Subject=%5Bmono-android%5D%20calling%20a%20web%20reference%20async&In-Reply-To="
TITLE="[mono-android] calling a web reference async">theevilprogrammer at hotmail.com
</A><BR>
<I>Fri Dec 9 10:29:11 EST 2011</I>
<P><UL>
<LI>Previous message: <A HREF="007780.html">[mono-android] System.NotSupportedException with ArrayAdapter of custom object
</A></li>
<LI>Next message: <A HREF="007781.html">[mono-android] calling a web reference async
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#7704">[ date ]</a>
<a href="thread.html#7704">[ thread ]</a>
<a href="subject.html#7704">[ subject ]</a>
<a href="author.html#7704">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>
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. ---&gt; 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 &lt;filename unknown&gt;: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 &lt;filename unknown&gt;: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 &lt;filename unknown&gt;:0
12-09 10:03:48.312: I/MonoDroid(464): at System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadMessage (System.Xml.Serialization.XmlMembersMapping typeMap) [0x00000] in &lt;filename unknown&gt;:0
12-09 10:03:48.312: I/MonoDroid(464): at System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadRoot () [0x00000] in &lt;filename unknown&gt;:0
12-09 10:03:48.312: I/MonoDroid(464): at System.Xml.Serialization.XmlSerializer.Deserialize (System.Xml.Serialization.XmlSerializationReader reader) [0x00000] in &lt;filename unknown&gt;: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 () &lt;0x00054&gt;
12-09 10:03:48.312: I/MonoDroid(464): at InternalNetworkData.com.twtmstr.www.LoginCompletedEventArgs.get_LoginResult () &lt;0x00013&gt;
12-09 10:03:48.312: I/MonoDroid(464): at InternalNetworkData.Activity1/&lt;&gt;c__DisplayClass1.&lt;ws_LoginCompleted&gt;b__0 () &lt;0x0002b&gt;
12-09 10:03:48.312: I/MonoDroid(464): at Java.Lang.Thread/RunnableImplementor.Run () &lt;0x0003f&gt;
12-09 10:03:48.312: I/MonoDroid(464): at Java.Lang.IRunnableInvoker.n_Run (intptr,intptr) &lt;0x0003b&gt;
12-09 10:03:48.312: I/MonoDroid(464): at (wrapper dynamic-method) object.2b364c4f-d426-43bb-ab4f-cc23eb7ef2ad (intptr,intptr) &lt;0x0002b&gt;
12-09 10:03:48.342: E/mono(464): Unhandled Exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---&gt; 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 &lt;filename unknown&gt;: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 &lt;filename unknown&gt;: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 &lt;filename unknown&gt;:0
12-09 10:03:48.342: E/mono(464): at System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadMessage (System.Xml.Serialization.XmlMembersMapping typeMap) [0x00000] in &lt;filename unknown&gt;: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: <A HREF="http://lists.ximian.com/pipermail/monodroid/attachments/20111209/61bfaa6c/attachment.html">http://lists.ximian.com/pipermail/monodroid/attachments/20111209/61bfaa6c/attachment.html</A>
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI>Previous message: <A HREF="007780.html">[mono-android] System.NotSupportedException with ArrayAdapter of custom object
</A></li>
<LI>Next message: <A HREF="007781.html">[mono-android] calling a web reference async
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#7704">[ date ]</a>
<a href="thread.html#7704">[ thread ]</a>
<a href="subject.html#7704">[ subject ]</a>
<a href="author.html#7704">[ author ]</a>
</LI>
</UL>
<hr>
<a href="http://lists.ximian.com/mailman/listinfo/monodroid">More information about the Monodroid
mailing list</a><br>
</body></html>