Weird java.net.SocketException Permission Denied connect error when running Groovy in Intellij IDEA

后端 未结 1 1753
轮回少年
轮回少年 2020-12-09 11:46

When running a VERY simple URL grab script from within IntelliJ IDEA, I get:

java.net.SocketException: Permission denied: connect
<         


        
相关标签:
1条回答
  • 2020-12-09 12:01

    There is a known bug in JDK 1.7 related to IPv6.

    Adding -Djava.net.preferIPv4Stack=true in VM Options should fix the problem.

    See also related question on this site.

    0 讨论(0)
提交回复
热议问题