美文网首页
JDK报出应用程序的错误

JDK报出应用程序的错误

作者: 飞跑的蛤蟆 | 来源:发表于2016-11-06 11:59 被阅读564次

    IllegalArgumentException:Invalid characters in hostname.
    Bug 238843 -则抛出︰ 主机名中的字符无效


    image.png
    java.lang.IllegalArgumentException: Invalid characters in hostname
        at java.net.HostPortrange.toLowerCase(Unknown Source)
        at java.net.HostPortrange.<init>(Unknown Source)
        at java.net.URLPermission$Authority.<init>(Unknown Source)
        at java.net.URLPermission.parseURI(Unknown Source)
        at java.net.URLPermission.init(Unknown Source)
        at java.net.URLPermission.<init>(Unknown Source)
        at sun.net.www.protocol.http.HttpURLConnection.URLtoSocketPermission(Unknown Source)
        at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
        at sun.net.www.protocol.http.HttpURLConnection.getHeaderField(Unknown Source)
        at java.net.URLConnection.getContentType(Unknown Source)
        at com.sun.deploy.net.proxy.AbstractAutoProxyHandler.isSupportedINSFile(Unknown Source)
        at com.sun.deploy.net.proxy.AbstractAutoProxyHandler.retrieveContentOfPACFile(Unknown Source)
        at com.sun.deploy.net.proxy.AbstractAutoProxyHandler.contructLegacyPACScript_16(Unknown Source)
        at com.sun.deploy.net.proxy.AbstractAutoProxyHandler.init(Unknown Source)
        at com.sun.deploy.net.proxy.SunAutoProxyHandler.init(Unknown Source)
        at com.sun.deploy.net.proxy.DynamicProxyManager.reset(Unknown Source)
        at com.sun.deploy.net.proxy.DeployProxySelector.reset(Unknown Source)
        at com.sun.javaws.Main.initializeExecutionEnvironment(Unknown Source)
        at com.sun.javaws.Main.continueInSecureThread(Unknown Source)
        at com.sun.javaws.Main.access$000(Unknown Source)
        at com.sun.javaws.Main$1.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
    

    解决方案:
    怀疑安装路径中含有空格等非法字符。

    相关文章

      网友评论

          本文标题:JDK报出应用程序的错误

          本文链接:https://www.haomeiwen.com/subject/lezguttx.html