Android Question java.net.IDN/okHTTP error

sorex

Expert
Licensed User
Hello,

Today I noticed a crash report in the google dev console.

This seems to be related to okHTTP altho I used the standard error trapping in the job completion sub.

How can I figure out what the problem could've been?

This appears to be on a LG Optimus One (thunderg) device running OS 2.2

I'm aware that this could be a one time problem that happend for some unknown reason altho I prefer it not to happen. ;)

B4X:
java.lang.NoClassDefFoundError: java.net.IDN
    at com.squareup.okhttp.HttpUrl$Builder.domainToAscii(HttpUrl.java:1315)
    at com.squareup.okhttp.HttpUrl$Builder.canonicalizeHost(HttpUrl.java:1195)
    at com.squareup.okhttp.HttpUrl$Builder.parse(HttpUrl.java:959)
    at com.squareup.okhttp.HttpUrl.parse(HttpUrl.java:585)
    at com.squareup.okhttp.Request$Builder.url(Request.java:156)
    at anywheresoftware.b4h.okhttp.OkHttpClientWrapper$OkHttpRequest.InitializeGet(OkHttpClientWrapper.java:382)
    at anywheresoftware.b4a.samples.httputils2.httpjob._download(httpjob.java:90)
    at com.sorex.bionoid.binarypuzzle_game._initialize(binarypuzzle_game.java:1257)
    at com.sorex.bionoid.main._activity_create(main.java:333)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:521)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:169)
    at com.sorex.bionoid.main.afterFirstLayout(main.java:102)
    at com.sorex.bionoid.main.access$000(main.java:17)
    at com.sorex.bionoid.main$WaitForLayout.run(main.java:80)
    at android.os.Handler.handleCallback(Handler.java:587)
    at android.os.Handler.dispatchMessage(Handler.java:92)
    at android.os.Looper.loop(Looper.java:123)
    at android.app.ActivityThread.main(ActivityThread.java:4627)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:521)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:878)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:636)
    at dalvik.system.NativeStart.main(Native Method)
 
Last edited:
Top