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)求给力。
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)求给力。
解决方案 »
- ASP下Set GetSession("conn")=server.CreateObject("adodb.connection");
- 严重: Servlet.service() for servlet jsp threw exception
- 急!!!求助!!如果得到MySQL中的时间?要求精确到毫秒级!!!
- 怎么在JSP代码里取值,访问数据库?
- STRUTS 中action执行时间长,页面等待问题
- 用什么方法在jsp页面里做个打印按钮就可以控制纸张大小和页边距?
- 在struts 中ActionErrors 类是系统自带的还是自己定义的,如果是系统自带的,那它是在哪里定义的,谢谢
- 关于:JSP的开发工具使用调查
- 汉字显示问题
- 有电脑鼠标(方口)以前可以用,突然不行(如果先接手写板再换过来可以用),重新安装系统后,(还是要先接手写板,不然提示,没 有找到鼠标之类) 现在是每次重起都要先接手写板,再换 非常麻烦
- 怎么进行数据库设置啊
- 急!在网站中设置表格的Width=100%,在手机上浏览时右边会出现一条白色间隔。
这表明服务器没有实现任何的代码使用的HTTP方法。