【问题标题】:Getting java.net.SocketException: Malformed reply from SOCKS server Exception获取 java.net.SocketException:来自 SOCKS 服务器异常的格式错误的回复
【发布时间】:2014-07-25 07:17:13
【问题描述】:

Getting java.net.SocketException: Malformed reply from SOCKS server 以下套接字创建异常。我没有使用任何 SOCKS 服务器 & 它只是一个独立程序,这是起跑线& 仅在此处获取异常。我也在使用反射 API。

public static String tcpSend(String ip, int port, int timeout, String content)
{
     try
     {
         clientSocket = new Socket(ip, port);
             .....
         }
      .....
   }

从其他方法调用,如下所示:

SendReceiveCanMessage.tcpSend("localhost", 8000, 5000,"start");

以下是完整的堆栈跟踪。

java.net.SocketException:来自 SOCKS 服务器的格式错误的回复 在 java.net.SocksSocketImpl.readSocksReply(未知来源) 在 java.net.SocksSocketImpl.connect(未知来源) 在 java.net.Socket.connect(未知来源) 在 java.net.Socket.connect(未知来源) 在 java.net.Socket.(未知来源) 在 java.net.Socket.(未知来源) 在 com.cognizant.vehiclespy.SendReceiveCanMessage.tcpSend(SendReceiveCanMessage.java:19) 在 Executer.executeTest3_12(Executer.java:672) 在 sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 在 sun.reflect.NativeMethodAccessorImpl.invoke(未知来源) 在 sun.reflect.DelegatingMethodAccessorImpl.invoke(未知来源) 在 java.lang.reflect.Method.invoke(未知来源) 在 com.cognizant.controller.SupervisoryControl.execute(SupervisoryControl.java:111) 在 supervisorycontrol.SupervisoryControlView$ExecuteThread.run(SupervisoryControlView.java:466)

【问题讨论】:

    标签: java sockets


    【解决方案1】:

    您在某个地方设置了系统属性“socksProxyHost”。找到它并用核弹攻击它。

    【讨论】:

      猜你喜欢
      • 2013-12-06
      • 2013-01-18
      • 2014-09-06
      • 1970-01-01
      • 2020-09-05
      • 2018-01-07
      • 2023-04-07
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多