okhttp此浏览器不支持帧

k2fxgqgv  于 2021-08-25  发布在  Java
关注(0)|答案(0)|浏览(240)

当尝试通过android应用程序中的DDN(dynu.com)获取网页内容时,它会显示:此浏览器不支持帧。该网页只显示一个数字,该数字会不时更改。这只发生在试图通过DDN获取内容时,而不是在我使用路由器的公共ip地址时。
完整错误消息:

2021-07-05 16:30:08.096 25391-25391/com.example.esp32 E/AndroidRuntime: FATAL EXCEPTION: main
    Process: com.example.esp32, PID: 25391
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.esp32/com.example.esp32.MainActivity}: java.lang.NumberFormatException: For input string: "<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
    <html>
    <!-- WEB REDIRECTION PROVIDED BY DYNU.COM http://www.dynu.com/ -->
    <head>
      <title>The Doors</title>
      <link rel="icon" href="http://MY_PUBLIC_IP/favicon.ico" type="image/ico">
      <link rel="shortcut icon" href="http://MY_PUBLIC:IP/favicon.ico">
    </head>
    <!--
    <script language="JavaScript">
      if(window != top) {
        top.location.href = location.href;
      }
    </script>
    -->
    <frameset marginwidth=0 marginheight=0 frameborder=0 border=0 rows =" 1,*">
      <frame src="emptypage">
      <frame src="http://MY_PUBLIC_IP/" name="main">
      <noframes>This browser does not support frames. Please <a href="http://MY_PUBLIC_IP/" target="_top">click here</a> to access the website.</noframes>
    </frameset>
    </html>"
        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3298)
        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3437)
        at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:83)
        at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
        at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2041)
        at android.os.Handler.dispatchMessage(Handler.java:107)
        at android.os.Looper.loop(Looper.java:214)
        at android.app.ActivityThread.main(ActivityThread.java:7386)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:980)
     Caused by: java.lang.NumberFormatException: For input string: "<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
    <html>
    <!-- WEB REDIRECTION PROVIDED BY DYNU.COM http://www.dynu.com/ -->
    <head>
      <title>The Doors</title>
      <link rel="icon" href="http://MY_PUBLIC_IP/favicon.ico" type="image/ico">
      <link rel="shortcut icon" href="http://MY_PUBLIC_IP/favicon.ico">
    </head>
    <!--
    <script language="JavaScript">
      if(window != top) {
        top.location.href = location.href;
      }
    </script>
    -->
    <frameset marginwidth=0 marginheight=0 frameborder=0 border=0 rows =" 1,*">
      <frame src="emptypage">
      <frame src="http://myPublicIp/" name="main">
      <noframes>This browser does not support frames. Please <a href="http://MY_PUBLIC_IP/" target="_top">click here</a> to access the website.</noframes>
    </frameset>
    </html>"
        at 

java.lang.Integer.parseInt(Integer.java:615)
    at java.lang.Integer.parseInt(Integer.java:650)
    at com.example.esp32.MainActivity.setView(MainActivity.java:590)
    at com.example.esp32.MainActivity.onCreate(MainActivity.java:417)
    at android.app.Activity.performCreate(Activity.java:7802)
    at android.app.Activity.performCreate(Activity.java:7791)
    at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1306)
    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3273)
        ... 11 more

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题