Bug 29611 - StockService monodroid-sample experiencing error connecting to web service
Summary: StockService monodroid-sample experiencing error connecting to web service
Alias: None
Product: Android
Classification: Xamarin
Component: General ()
Version: 5.1
Hardware: Macintosh Mac OS
: Normal normal
Target Milestone: ---
Assignee: Jonathan Pryor
Depends on:
Reported: 2015-04-30 12:52 UTC by Ben Beckley
Modified: 2015-04-30 13:49 UTC (History)
2 users (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report for Bug 29611 on Developer Community or GitHub if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: Developer Community HTML or GitHub Markdown
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:

Description Ben Beckley 2015-04-30 12:52:39 UTC
This sample is not able to connect to the web services that it requires to work as intended. This error is reproducible on XA master 5.1.99-222 / f4b67981 but not reproducible on XA master 5.1.99-207 / 52456eda. The error in the application output and logcat is as follows :

> D/StockService(23299): error connecting to web service: Error getting response stream (ReadDone1): ReceiveFailure
> D/StockService(23299): stocks is null
> D/StockService(23299): error connecting to web service: Error getting response stream (ReadDone2): ReceiveFailure
> D/StockService(23299): stocks is null

full logcat : https://gist.github.com/BenBeckley/d2cfa42a890d6774d88a

Reproduction Steps:
1) Install XA 5.1.99-222 or higher (confirmed up to build 232).
2) Run monodroid-sample StockService
4) Observe that the ListView is not populated with stock listings
3) Observe error connecting to web serive in application output
Comment 1 Naqeeb 2015-04-30 13:49:09 UTC
I have checked this issue with sample 'StockService' and able to reproduce it successfully. To reproduce this issue I have followed steps
given in bug description. I am also getting same error. Please refer same as screencast: http://www.screencast.com/t/iqvES3bild

Application Output: https://gist.github.com/Shruti360/a17e760ee4313ac30d42
adb log: https://gist.github.com/Shruti360/5b6827f3e41eae8f7a19
Ide log: https://gist.github.com/Shruti360/67105de12339fd8878bc

Environment info: 
=== Xamarin Studio ===

Version 5.9 (build 456)
Installation UUID: 2939b8b4-8977-42bd-82d6-100275ccd9cd
	Mono 4.0.0 ((detached/d136b79)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 400000143

=== Apple Developer Tools ===

Xcode 6.2 (6776)
Build 6C131e

=== Xamarin.iOS ===

Version: (Enterprise Edition)
Hash: 6481535
Branch: master
Build date: 2015-04-27 04:38:13-0400

=== Xamarin.Android ===

Version: (Enterprise Edition)
Android SDK: /Users/360_macmini/Library/Developer/Xamarin/android-sdk-mac_x86
	Supported Android versions:
		2.3    (API level 10)
		4.0.3  (API level 15)
		4.1    (API level 16)
		4.2    (API level 17)
		4.3    (API level 18)
		4.4    (API level 19)
		4.4.87 (API level 20)
		5.0    (API level 21)
Java SDK: /usr
java version "1.7.0_75"
Java(TM) SE Runtime Environment (build 1.7.0_75-b13)
Java HotSpot(TM) 64-Bit Server VM (build 24.75-b04, mixed mode)

=== Xamarin Android Player ===

Version: Unknown version
Location: /Applications/Xamarin Android Player.app

=== Xamarin.Mac ===

Version: (Enterprise Edition)

=== Build Information ===

Release ID: 509000456
Git revision: 2666387bc794c06828a59aa95d2435714f732b12
Build date: 2015-04-29 08:16:42-04
Xamarin addins: df9b5918c9f7aca6da509fe3e5a62553aa101910

=== Operating System ===

Mac OS X 10.9.4
Darwin 360-MACMINIs-Mac-mini-2.local 13.3.0 Darwin Kernel Version 13.3.0
    Tue Jun  3 21:27:35 PDT 2014
    root:xnu-2422.110.17~1/RELEASE_X86_64 x86_64