I am having a problem with my web view payement in Android from version 4.3.
I assume this is due to the forwarding of the SSL certificate, but I cannot change it.
I tried the url on samsung or sony <4.2 with success, but on two different 4.3 connections I got this dump.
08-08 17:22:38.619: E/AndroidRuntime(7568): FATAL EXCEPTION: WebViewCoreThread 08-08 17:22:38.619: E/AndroidRuntime(7568): java.lang.StringIndexOutOfBoundsException: length=0; index=-1 08-08 17:22:38.619: E/AndroidRuntime(7568): at java.lang.AbstractStringBuilder.indexAndLength(AbstractStringBuilder.java:212) 08-08 17:22:38.619: E/AndroidRuntime(7568): at java.lang.AbstractStringBuilder.charAt(AbstractStringBuilder.java:206) 08-08 17:22:38.619: E/AndroidRuntime(7568): at java.lang.StringBuffer.charAt(StringBuffer.java:346) 08-08 17:22:38.619: E/AndroidRuntime(7568): at com.android.org.bouncycastle.asn1.x509.X509NameTokenizer.nextToken(X509NameTokenizer.java:78) 08-08 17:22:38.619: E/AndroidRuntime(7568): at com.android.org.bouncycastle.asn1.x509.X509Name.<init>(X509Name.java:719) 08-08 17:22:38.619: E/AndroidRuntime(7568): at com.android.org.bouncycastle.asn1.x509.X509Name.<init>(X509Name.java:655) 08-08 17:22:38.619: E/AndroidRuntime(7568): at com.android.org.bouncycastle.asn1.x509.X509Name.<init>(X509Name.java:593) 08-08 17:22:38.619: E/AndroidRuntime(7568): at android.net.http.SslCertificate$DName.<init>(SslCertificate.java:379) 08-08 17:22:38.619: E/AndroidRuntime(7568): at android.net.http.SslCertificate.<init>(SslCertificate.java:189) 08-08 17:22:38.619: E/AndroidRuntime(7568): at android.net.http.SslCertificate.<init>(SslCertificate.java:178) 08-08 17:22:38.619: E/AndroidRuntime(7568): at android.webkit.BrowserFrame.setCertificate(BrowserFrame.java:1206) 08-08 17:22:38.619: E/AndroidRuntime(7568): at android.webkit.JWebCoreJavaBridge.nativeServiceFuncPtrQueue(Native Method) 08-08 17:22:38.619: E/AndroidRuntime(7568): at android.webkit.JWebCoreJavaBridge.handleMessage(JWebCoreJavaBridge.java:113) 08-08 17:22:38.619: E/AndroidRuntime(7568): at android.os.Handler.dispatchMessage(Handler.java:99) 08-08 17:22:38.619: E/AndroidRuntime(7568): at android.os.Looper.loop(Looper.java:137) 08-08 17:22:38.619: E/AndroidRuntime(7568): at android.webkit.WebViewCore$WebCoreThread.run(WebViewCore.java:814) 08-08 17:22:38.619: E/AndroidRuntime(7568): at java.lang.Thread.run(Thread.java:841)
my webview is just
webview=(WebView)findViewById(R.id.my_web_view); WebSettings webSettings = webview.getSettings(); webSettings.setJavaScriptEnabled(true);
thanks a lot
source share