碰到一個棘手的問題——關於httpclient。

zzkisswll發表於2007-03-17
在運用org.apache.commons.httpclient時出現一個問題:
在透過web呼叫時出錯,但在java 》main()中跑又沒問題,難道是httpclient不支援web方式呼叫??

出錯資訊:
2007-03-17 08:32:10,234 ERROR [org.springframework.web.servlet.DispatcherServlet :412] - Could not complete request
javax.servlet.ServletException: Error occured during request processing: org/apache/commons/httpclient/HttpException
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:724)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:625)
……………………

相關文章