Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KmlDemoActivity remote URL is broken #570

Closed
barbeau opened this issue Oct 30, 2019 · 0 comments
Closed

KmlDemoActivity remote URL is broken #570

barbeau opened this issue Oct 30, 2019 · 0 comments
Labels
priority: p2 Moderately-important priority. Fix may not be included in next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Milestone

Comments

@barbeau
Copy link
Collaborator

barbeau commented Oct 30, 2019

While looking at #558, I found that the URL used to demonstrate loading a remote KML file as a layer is broken (returns an HTTP 404).

Resource is kml_url in strings.xml, and here's the broken URL:
https://googlemaps.github.io/kml-samples/morekml/Polygons/Polygons.Google_Campus.kml

@jpoehnelt Do you know where this might have moved?

I think it may be the same file as the bundled campus.kml in the demo app raw directory, IIRC, if we can't find the original remote file.

Environment details

The current master branch at 80d9497 (0.6.2)

Steps to reproduce

  1. Run the demo app
  2. Tap on "KML LAYER OVERLAY" button at the bottom

What I expect to see

Polygons should load from the remote KML file and be shown on the map

What I actually see

No polygons load on the map - I just seem a blank, zoomed out world map (see screenshot below)

image

Stacktrace

2019-10-30 17:20:22.793 31875-32562/com.google.maps.android.utils.demo W/System.err: java.io.FileNotFoundException: https://googlemaps.github.io/kml-samples/morekml/Polygons/Polygons.Google_Campus.kml
2019-10-30 17:20:22.796 31875-32562/com.google.maps.android.utils.demo W/System.err:     at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getInputStream(HttpURLConnectionImpl.java:251)
2019-10-30 17:20:22.796 31875-32562/com.google.maps.android.utils.demo W/System.err:     at com.android.okhttp.internal.huc.DelegatingHttpsURLConnection.getInputStream(DelegatingHttpsURLConnection.java:210)
2019-10-30 17:20:22.796 31875-32562/com.google.maps.android.utils.demo W/System.err:     at com.android.okhttp.internal.huc.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:26)
2019-10-30 17:20:22.796 31875-32562/com.google.maps.android.utils.demo W/System.err:     at java.net.URL.openStream(URL.java:1073)
2019-10-30 17:20:22.796 31875-32562/com.google.maps.android.utils.demo W/System.err:     at com.google.maps.android.utils.demo.KmlDemoActivity$DownloadKmlFile.doInBackground(KmlDemoActivity.java:91)
2019-10-30 17:20:22.797 31875-32562/com.google.maps.android.utils.demo W/System.err:     at com.google.maps.android.utils.demo.KmlDemoActivity$DownloadKmlFile.doInBackground(KmlDemoActivity.java:82)
2019-10-30 17:20:22.797 31875-32562/com.google.maps.android.utils.demo W/System.err:     at android.os.AsyncTask$2.call(AsyncTask.java:333)
2019-10-30 17:20:22.797 31875-32562/com.google.maps.android.utils.demo W/System.err:     at java.util.concurrent.FutureTask.run(FutureTask.java:266)
2019-10-30 17:20:22.797 31875-32562/com.google.maps.android.utils.demo W/System.err:     at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:245)
2019-10-30 17:20:22.797 31875-32562/com.google.maps.android.utils.demo W/System.err:     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
2019-10-30 17:20:22.797 31875-32562/com.google.maps.android.utils.demo W/System.err:     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
2019-10-30 17:20:22.797 31875-32562/com.google.maps.android.utils.demo W/System.err:     at java.lang.Thread.run(Thread.java:764)
2019-10-30 17:20:22.801 31875-31875/com.google.maps.android.utils.demo W/System.err: java.lang.NullPointerException: Attempt to get length of null array
2019-10-30 17:20:22.801 31875-31875/com.google.maps.android.utils.demo W/System.err:     at java.io.ByteArrayInputStream.<init>(ByteArrayInputStream.java:106)
2019-10-30 17:20:22.801 31875-31875/com.google.maps.android.utils.demo W/System.err:     at com.google.maps.android.utils.demo.KmlDemoActivity$DownloadKmlFile.onPostExecute(KmlDemoActivity.java:108)
2019-10-30 17:20:22.801 31875-31875/com.google.maps.android.utils.demo W/System.err:     at com.google.maps.android.utils.demo.KmlDemoActivity$DownloadKmlFile.onPostExecute(KmlDemoActivity.java:82)
2019-10-30 17:20:22.801 31875-31875/com.google.maps.android.utils.demo W/System.err:     at android.os.AsyncTask.finish(AsyncTask.java:695)
2019-10-30 17:20:22.801 31875-31875/com.google.maps.android.utils.demo W/System.err:     at android.os.AsyncTask.access$600(AsyncTask.java:180)
2019-10-30 17:20:22.801 31875-31875/com.google.maps.android.utils.demo W/System.err:     at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:712)
2019-10-30 17:20:22.801 31875-31875/com.google.maps.android.utils.demo W/System.err:     at android.os.Handler.dispatchMessage(Handler.java:106)
2019-10-30 17:20:22.801 31875-31875/com.google.maps.android.utils.demo W/System.err:     at android.os.Looper.loop(Looper.java:214)
2019-10-30 17:20:22.801 31875-31875/com.google.maps.android.utils.demo W/System.err:     at android.app.ActivityThread.main(ActivityThread.java:7050)
2019-10-30 17:20:22.801 31875-31875/com.google.maps.android.utils.demo W/System.err:     at java.lang.reflect.Method.invoke(Native Method)
2019-10-30 17:20:22.801 31875-31875/com.google.maps.android.utils.demo W/System.err:     at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
2019-10-30 17:20:22.801 31875-31875/com.google.maps.android.utils.demo W/System.err:     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:964)
@barbeau barbeau added type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns. triage me I really want to be triaged. priority: p2 Moderately-important priority. Fix may not be included in next release. and removed triage me I really want to be triaged. labels Oct 30, 2019
pauminku added a commit to pauminku/android-maps-utils that referenced this issue Nov 26, 2019
* googleOrigin/master: (107 commits)
  Remove unnecessary interface method public modifiers. (googlemaps#587)
  Remove unnecessary primitives boxing. (googlemaps#586)
  Fix googlemaps#575 - Change Travis config, use matrix of API emulators (googlemaps#585)
  Retain the bitmap cache (googlemaps#381)
  Made GeoJsonParser with parseGeometry public to use the parser standalone. (googlemaps#492)
  Fix googlemaps#570 - Use project GitHub URL for remote KML loading demo (googlemaps#581)
  Bump Gradle plugin for Android Studio v3.5.2 (googlemaps#574)
  Fix googlemaps#575 - Use API 26 emulator instead of API 28 (googlemaps#576)
  Fix googlemaps#371 - Run emulator-based unit tests on Travis (googlemaps#573)
  Fix googlemaps#371 - Run emulator-based unit tests on Travis (googlemaps#573)
  Fix googlemaps#532 - Use ContextCompat to load drawable resources for scaling (googlemaps#571)
  Change test methods visibility (googlemaps#569)
  Release 0.6.2 (googlemaps#568)
  Demo clustering with ViewModel (googlemaps#506)
  Differentiate between initial start and configuration change restore (googlemaps#567)
  Fix wrapping around IDL (googlemaps#564)
  Update Gradle wrapper to 5.6.3 (googlemaps#566)
  Add MaxIntensity functionality for user defined intensities on HeatMapTiles (googlemaps#499)
  Use float zoom to calculate visible bounds (googlemaps#483)
  Remove apklib publishing (googlemaps#563)
  ...

# Conflicts:
#	library/src/androidTest/java/com/google/maps/android/PolyUtilTest.java
@arriolac arriolac added this to the 1.0 milestone Feb 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: p2 Moderately-important priority. Fix may not be included in next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Projects
None yet
Development

No branches or pull requests

2 participants