java.io.IOException: Server returned HTTP response code: 405 for URL: http://s.web2.qq.com/api/get_user_friends2
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection$6.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.net.www.protocol.http.HttpURLConnection.getChainedException(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at biz.QQClient.httpURLConnectionConnect(QQClient.java:319)
at biz.QQClient.loginWebIM(QQClient.java:234)
at biz.QQClient.main(QQClient.java:384)
Caused by: java.io.IOException: Server returned HTTP response code: 405 for URL: http://s.web2.qq.com/api/get_user_friends2
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getHeaderFields(Unknown Source)
at biz.QQClient.httpURLConnectionConnect(QQClient.java:312)
... 2 more
Exception in thread "main" java.lang.NullPointerException
at biz.QQClient.httpURLConnectionConnect(QQClient.java:366)
at biz.QQClient.loginWebIM(QQClient.java:234)
at biz.QQClient.main(QQClient.java:384)求给力。