Mapsforge Austria map error - openstreetmap

I have tried download Austria map from http://download.mapsforge.org/ and generate Austria map file by myself (osmosis-0.43.1, mapsforge-map-writer-0.4.0) too. But they give same issue.
Some data map near Perchtoldsdorf are missing at zoom level>=12.
The error message:
09-05 10:52:30.745: E/MapsforgeTileProvider(4279):
java.lang.IllegalArgumentException: invalid latitude:
-90.14254932030728 09-05 10:52:30.745: E/MapsforgeTileProvider(4279): at
org.mapsforge.core.util.LatLongUtils.validateLatitude(LatLongUtils.java:172)
09-05 10:52:30.745: E/MapsforgeTileProvider(4279): at
org.mapsforge.core.model.LatLong.(LatLong.java:46) 09-05
10:52:30.745: E/MapsforgeTileProvider(4279): at
org.mapsforge.map.reader.MapDatabase.decodeWayNodesDoubleDelta(MapDatabase.java:356)
09-05 10:52:30.745: E/MapsforgeTileProvider(4279): at
org.mapsforge.map.reader.MapDatabase.processWayDataBlock(MapDatabase.java:674)
09-05 10:52:30.745: E/MapsforgeTileProvider(4279): at
org.mapsforge.map.reader.MapDatabase.processWays(MapDatabase.java:780)
09-05 10:52:30.745: E/MapsforgeTileProvider(4279): at
org.mapsforge.map.reader.MapDatabase.processBlock(MapDatabase.java:449)
09-05 10:52:30.745: E/MapsforgeTileProvider(4279): at
org.mapsforge.map.reader.MapDatabase.processBlocks(MapDatabase.java:538)
09-05 10:52:30.745: E/MapsforgeTileProvider(4279): at
org.mapsforge.map.reader.MapDatabase.readMapData(MapDatabase.java:321)
09-05 10:52:30.745: E/MapsforgeTileProvider(4279): at
org.mapsforge.map.layer.renderer.DatabaseRenderer.executeJob(DatabaseRenderer.java:169)
09-05 10:52:30.745: E/MapsforgeTileProvider(4279): at
at.xylem.mapin.mapext.MapsforgeTileProvider.readTileImage(MapsforgeTileProvider.java:75)
09-05 10:52:30.745: E/MapsforgeTileProvider(4279): at
at.xylem.mapin.mapext.MapsforgeTileProvider.getTile(MapsforgeTileProvider.java:67)
09-05 10:52:30.745: E/MapsforgeTileProvider(4279): at
com.google.android.gms.maps.model.TileOverlayOptions$2.getTile(Unknown
Source) 09-05 10:52:30.745: E/MapsforgeTileProvider(4279): at
com.google.android.gms.maps.model.internal.g$a.onTransact(Unknown
Source) 09-05 10:52:30.745: E/MapsforgeTileProvider(4279): at
android.os.Binder.transact(Binder.java:361) 09-05 10:52:30.745:
E/MapsforgeTileProvider(4279): at gwl.a(SourceFile:96) 09-05
10:52:30.745: E/MapsforgeTileProvider(4279): at gve.a(SourceFile:73)
09-05 10:52:30.745: E/MapsforgeTileProvider(4279): at owd.run(Unknown
Source) 09-05 10:52:30.745: E/MapsforgeTileProvider(4279): at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:422)
09-05 10:52:30.745: E/MapsforgeTileProvider(4279): at
java.util.concurrent.FutureTask.run(FutureTask.java:237) 09-05
10:52:30.745: E/MapsforgeTileProvider(4279): at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:152)
09-05 10:52:30.745: E/MapsforgeTileProvider(4279): at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:265)
09-05 10:52:30.745: E/MapsforgeTileProvider(4279): at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
09-05 10:52:30.745: E/MapsforgeTileProvider(4279): at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
09-05 10:52:30.745: E/MapsforgeTileProvider(4279): at
java.lang.Thread.run(Thread.java:841)
I also try Austria map at http://www.openandromaps.org/ and it's OK but the map file size quite big (~400Mb). (The Austria map file from download.mapsforge.org or created my me ~ 210Mb).
Anyone have any solutions to fix this?
(I have posted at https://code.google.com/p/mapsforge/issues/detail?id=519&colspec=ID%20Type%20Status%20Priority%20Stars%20Owner%20Summary%20Modified but no feedback)

java.lang.IllegalArgumentException: invalid latitude: -90.14254932030728
I'd be looking very closely into that, latitude is supposed to be a value between -90 and 90.
Since Austria is around the 40-50N mark, I'd say that was a data error in the files you've downloaded, or an error in the code that handles zooming.
Given the known issues on the MapsForge site are:
It is known that these maps have problems displaying some water areas correctly.
The build for some of the maps has failed. We are trying to bring these maps to you shortly.
I'm not sure how much faith I'd put in them.

I fixed my problem via use the old mapsforge writer version (0.3.0)
I guess the checking valid data function was removed in the new version.
I saw some warning message about invalid data during generate the map file with map writer version 0.3.0

Related

Android Studio--Flutter Exception in thread "main" javax.net.ssl.SSLException: Connection has been shutdown: javax.net.ssl.SSLException: Tag mismatch

I have just created a new flutter project and I cannot run it. In my old computer, I succesfully run the project, but in the new one I get;
Exception in thread "main" javax.net.ssl.SSLException: Connection has been shutdown: javax.net.ssl.SSLException: Tag mismatch!
at sun.security.ssl.SSLSocketImpl.checkEOF(SSLSocketImpl.java:1533)
at sun.security.ssl.AppInputStream.available(AppInputStream.java:60)
at java.io.BufferedInputStream.available(BufferedInputStream.java:410)
at sun.net.www.MeteredStream.available(MeteredStream.java:170)
at sun.net.www.http.KeepAliveStream.close(KeepAliveStream.java:85)
at java.io.FilterInputStream.close(FilterInputStream.java:181)
at sun.net.www.protocol.http.HttpURLConnection$HttpInputStream.close(HttpURLConnection.java:3527)
at org.gradle.wrapper.Download.downloadInternal(Download.java:77)
at org.gradle.wrapper.Download.download(Download.java:44)
at org.gradle.wrapper.Install$1.call(Install.java:61)
at org.gradle.wrapper.Install$1.call(Install.java:48)
at org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAccessManager.java:65)
at org.gradle.wrapper.Install.createDist(Install.java:48)
at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:128)
at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:61)
Caused by: javax.net.ssl.SSLException: Tag mismatch!
at sun.security.ssl.Alerts.getSSLException(Alerts.java:208)
at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1946)
at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1022)
at sun.security.ssl.SSLSocketImpl.readDataRecord(SSLSocketImpl.java:933)
at sun.security.ssl.AppInputStream.read(AppInputStream.java:105)
at java.io.BufferedInputStream.read1(BufferedInputStream.java:284)
at java.io.BufferedInputStream.read(BufferedInputStream.java:345)
at sun.net.www.MeteredStream.read(MeteredStream.java:134)
at java.io.FilterInputStream.read(FilterInputStream.java:133)
at sun.net.www.protocol.http.HttpURLConnection$HttpInputStream.read(HttpURLConnection.java:3454)
at sun.net.www.protocol.http.HttpURLConnection$HttpInputStream.read(HttpURLConnection.java:3447)
at org.gradle.wrapper.Download.downloadInternal(Download.java:62)
... 7 more
Caused by: javax.crypto.AEADBadTagException: Tag mismatch!
at com.sun.crypto.provider.GaloisCounterMode.decryptFinal(GaloisCounterMode.java:592)
at com.sun.crypto.provider.CipherCore.finalNoPadding(CipherCore.java:1116)
at com.sun.crypto.provider.CipherCore.fillOutputBuffer(CipherCore.java:1053)
at com.sun.crypto.provider.CipherCore.doFinal(CipherCore.java:941)
at com.sun.crypto.provider.AESCipher.engineDoFinal(AESCipher.java:491)
at javax.crypto.Cipher.doFinal(Cipher.java:2376)
at sun.security.ssl.CipherBox.decrypt(CipherBox.java:461)
at sun.security.ssl.InputRecord.decrypt(InputRecord.java:172)
at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1017)
... 16 more
Exception: Gradle task assembleDebug failed with exit code 1
I tried all the solution in stackoverflow, yet I could not solve it. New ideas will be appraciated.
The error javax.net.ssl.SSLException: Connection has been shutdown: javax.net.ssl.SSLException: Tag mismatch seems to be commonly caused by network issues as mentioned in this issue thread. If you have cached pub dependencies, you can try running it offline with `flutter pub run --offline. Other than that, you can try restarting your machine or try a different network.

Problem with Jboss EAP 7 server.log and application log

i have the following problem with jboss log and my application log. Some errors are write in server log in this way
15:46:16,834 ERROR [io.undertow.request] (default task-41) UT005023: Exception handling request to /fnsuap/cmd/home: org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.springframework.webflow.conversation.impl.LockTimeoutException: Unable to acquire conversation lock after 30 seconds
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:982)
at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:872)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:846)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:74)
at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:129)
....
And then are write in my application log in this way:
[09/06/20 03:46:15:015 CEST] ERROR stderr: org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.springframework.webflow.conversation.impl.LockTimeoutException: Unable to acquire conversation lock after 30 seconds
[09/06/20 03:46:15:015 CEST] ERROR stderr: at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:982)
[09/06/20 03:46:15:015 CEST] ERROR stderr: at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:872)
[09/06/20 03:46:15:015 CEST] ERROR stderr: at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
[09/06/20 03:46:15:015 CEST] ERROR stderr: at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:846)
[09/06/20 03:46:15:015 CEST] ERROR stderr: at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
[09/06/20 03:46:15:015 CEST] ERROR stderr: at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:74)
[09/06/20 03:46:15:015 CEST] ERROR stderr: at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:129)
...
So is like every line of stacktrace is a new error.
Why this happens? How can i solve this?
Use log4j1.2

Porting Android App to BB10 OS (BlackBerry)

I am trying to port a native Android app to BB10 OS (BlackBerry). I was able to install the app but when I launch it, I see this error:
FATAL EXCEPTION: main
java.lang.RuntimeException: Unable to create application com.example.MyApplication: java.lang.SecurityException: Failed to open /dev/urandom for writing
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4454)
at android.app.ActivityThread.access$1300(ActivityThread.java:141)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1316)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:5116)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:525)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:787)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:600)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.SecurityException: Failed to open /dev/urandom for writing
at o.dD$if.Ë‹(:279)
at o.dD$if.engineSetSeed(:215)
at java.security.SecureRandom.setSeed(SecureRandom.java:243)
at java.security.SecureRandom.setSeed(SecureRandom.java:258)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:525)
at o.ff$Õ™.<clinit>(Unknown Source)
at o.dA.ËŠ(:285)
at o.dA.<init>(:99)
at o.dA.ËŠ(:151)
at com.example.MyApplication.ͺ(:182)
at com.example.MyApplication.onCreate(:66)
at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1007)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4451)
... 10 more
Caused by: java.io.FileNotFoundException: /dev/urandom: open failed: EACCES (Permission denied)
at libcore.io.IoBridge.open(IoBridge.java:409)
at java.io.FileOutputStream.<init>(FileOutputStream.java:88)
at java.io.FileOutputStream.<init>(FileOutputStream.java:73)
at o.dD$if.Ë‹(:277)
... 23 more
Caused by: libcore.io.ErrnoException: open failed: EACCES (Permission denied)
at libcore.io.Posix.open(Native Method)
at libcore.io.BlockGuardOs.open(BlockGuardOs.java:110)
at libcore.io.IoBridge.open(IoBridge.java:393)
... 26 more
W/ActivityManager(6766745): Force finishing activity com.example.android.agent/com.example.agent.activities.LaunchActivity
E/OrientationUtil(6766745): Unable to read sensor data. errno 11
D/dalvikvm(20689057): GC_CONCURRENT freed 307K, 5% free 10097K/10576K, paused 1ms+1ms, total 48ms
Any insights into addressing this issue is highly appreciated.

Issue : Trying to register my Emulator (Google cloud messaging)?

I have downloaded some Google cloud messaging sample application. If I run my example application. unfortunately, gcm-client-demo has stopped. I got this kind of problem.
I have sender id, app key and server url.
compulsory I need to sig-in for google account for my emulator. Right now my emulator not
sign-in
why i am facing this problem please explain me..
logcat:
02-28 14:48:03.189: D/AndroidRuntime(976): Shutting down VM
02-28 14:48:03.189: W/dalvikvm(976): threadid=1: thread exiting with uncaught exception (group=0x40a13300)
02-28 14:48:03.229: E/AndroidRuntime(976): FATAL EXCEPTION: main
02-28 14:48:03.229: E/AndroidRuntime(976): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.google.android.gcm.demo.app/com.google.android.gcm.demo.app.DemoActivity}: java.lang.UnsupportedOperationException: Device does not have package com.google.android.gsf
02-28 14:48:03.229: E/AndroidRuntime(976): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2059)
02-28 14:48:03.229: E/AndroidRuntime(976): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2084)
02-28 14:48:03.229: E/AndroidRuntime(976): at android.app.ActivityThread.access$600(ActivityThread.java:130)
02-28 14:48:03.229: E/AndroidRuntime(976): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1195)
02-28 14:48:03.229: E/AndroidRuntime(976): at android.os.Handler.dispatchMessage(Handler.java:99)
02-28 14:48:03.229: E/AndroidRuntime(976): at android.os.Looper.loop(Looper.java:137)
02-28 14:48:03.229: E/AndroidRuntime(976): at android.app.ActivityThread.main(ActivityThread.java:4745)
02-28 14:48:03.229: E/AndroidRuntime(976): at java.lang.reflect.Method.invokeNative(Native Method)
02-28 14:48:03.229: E/AndroidRuntime(976): at java.lang.reflect.Method.invoke(Method.java:511)
02-28 14:48:03.229: E/AndroidRuntime(976): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
02-28 14:48:03.229: E/AndroidRuntime(976): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
02-28 14:48:03.229: E/AndroidRuntime(976): at dalvik.system.NativeStart.main(Native Method)
02-28 14:48:03.229: E/AndroidRuntime(976): Caused by: java.lang.UnsupportedOperationException: Device does not have package com.google.android.gsf
02-28 14:48:03.229: E/AndroidRuntime(976): at com.google.android.gcm.GCMRegistrar.checkDevice(GCMRegistrar.java:98)
02-28 14:48:03.229: E/AndroidRuntime(976): at com.google.android.gcm.demo.app.DemoActivity.onCreate(DemoActivity.java:51)
02-28 14:48:03.229: E/AndroidRuntime(976): at android.app.Activity.performCreate(Activity.java:5008)
02-28 14:48:03.229: E/AndroidRuntime(976): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1079)
02-28 14:48:03.229: E/AndroidRuntime(976): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2023)
02-28 14:48:03.229: E/AndroidRuntime(976): ... 11 more
02-28 14:48:03.260: W/ActivityManager(372): Force finishing activity com.google.android.gcm.demo.app/.DemoActivity
02-28 14:48:03.279: W/WindowManager(372): Failure taking screenshot for (343x201) to layer 21010
02-28 14:48:03.719: I/Choreographer(372): Skipped 39 frames! The application may be doing too much work on its main thread.
02-28 14:48:03.809: W/ActivityManager(372): Activity pause timeout for ActivityRecord{4125ba80 com.google.android.gcm.demo.app/.DemoActivity}
02-28 14:48:04.718: I/Choreographer(930): Skipped 95 frames! The application may be doing too much work on its main thread.
02-28 14:48:05.369: I/ARMAssembler(36): generated scanline__00000077:03515104_00008001_00000000 [113 ipp] (134 ins) at [0x41407610:0x41407828] in 8278218 ns
02-28 14:48:06.488: I/ActivityManager(372): No longer want com.android.contacts (pid 544): hidden #16
02-28 14:48:16.499: W/ActivityManager(372): Activity destroy timeout for ActivityRecord{4125ba80 com.google.android.gcm.demo.app/.DemoActivity}
02-28 14:52:21.518: D/dalvikvm(456): GC_CONCURRENT freed 397K, 9% free 6557K/7175K, paused 32ms+13ms, total 125ms
02-28 14:53:03.318: I/Process(976): Sending signal. PID: 976 SIG: 9
02-28 14:53:03.378: I/ActivityManager(372): Process com.google.android.gcm.demo.app (pid 976) has died.
02-28 14:53:03.428: W/InputMethodManagerService(372): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy#41317c60 attribute=null
02-28 14:53:17.979: E/ThrottleService(372): problem during onPollAlarm: java.lang.IllegalStateException: problem parsing stats: java.io.FileNotFoundException: /proc/net/xt_qtaguid/iface_stat_all: open failed: ENOENT (No such file or directory)
02-28 14:59:57.108: D/dalvikvm(456): GC_CONCURRENT freed 385K, 9% free 6555K/7175K, paused 17ms+9ms, total 98ms
It sounds as though your emulator does not have the Google API's installed, based on this error message:
Device does not have package com.google.android.gsf
You can read about the GCM client requirements in the Google GCM docs: http://developer.android.com/google/gcm/demo.html#requirements
The important part being this:
For the Android application:
Emulator (or device) running Android 2.2 with Google APIs.
The Google API project number of the account registered to use GCM.
So when you create your emulator make sure that the target has the Google API's installed. E.g.:
Google APIs (Google Inc.) - API Level 10

Android: Published App crashes with ClassNotFoundException

I have just published my first app today but for some reason when I use the published version I keep getting a ClassNotFoundException error when it starts up. It works fine when I test it in debug mode on my phone so I'm not sure whats causing this.
java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.androidProjects.personal/com.androidProjects.personal.GAAClubFinderActivity}: java.lang.ClassNotFoundException: com.androidProjects.personal.GAAClubFinderActivity
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2141)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2260)
at android.app.ActivityThread.access$600(ActivityThread.java:139)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1277)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:156)
at android.app.ActivityThread.main(ActivityThread.java:5045)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.ClassNotFoundException: com.androidProjects.personal.GAAClubFinderActivity
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:61)
at java.lang.ClassLoader.loadClass(ClassLoader.java:501)
at java.lang.ClassLoader.loadClass(ClassLoader.java:461)
at android.app.Instrumentation.newActivity(Instrumentation.java:1039)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2132)
... 11 more
Any Ideas?