java.io.IOException: Server returned HTTP response code: 500 for URL: http://ww
.huadt.com.cn/zh-cn/i/l/@357671030745308@V500@0000@AUTOLOW@1@11d590f7$GPRMC,065
48.000,A,3959.8587,N,11617.2447,E,0.00,55.32,210311,,,A*56@@
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown S
urce)
at hdt.SendCmdToP.Sendplatform(SendCmdToP.java:67)
at hdt.SendCmdToP.process(SendCmdToP.java:198)
at hdt.SendCmdToP.run(SendCmdToP.java:131)
java.lang.NullPointerException
at hdt.SendCmdToP.Sendplatform(SendCmdToP.java:91)
at hdt.SendCmdToP.process(SendCmdToP.java:198)
at hdt.SendCmdToP.run(SendCmdToP.java:131)
Appeared pointer, and 500 wrong with the closure of the abnormal, a firewall relationship? If not is it code problems? Please help everybody see how to solve the problem. thanks。
A 500 response means that the server has detected an internal error. There could be any number of causes.
The best place to look for information on what caused the error is the server logs. But failing that, there maybe some additional diagnostic information in the URLConnection object's "error" stream. Try opening that and copying its contents to standard output, or a logger.
Or just visit the URL in your web browser or using wget or curl, and look at the error message it shows you.
(You have to be cautious with using other tools, because it is conceivable that the problem is caused by something in the HTTP request headers ... and these are likely to depend on the tool that you use to fetch the URL.)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With