为了账号安全,请及时绑定邮箱和手机立即绑定

依旧报错,是不是云的接口变了

Exception in thread "main" java.lang.RuntimeException: java.lang.RuntimeException: ognl.OgnlException: source is null for getProperty(null, "showapi_res_body")

at com.imooc.weather.impl.WeatherUtilsImpl.w24h(WeatherUtilsImpl.java:78)

at com.imooc.weather.Application.main(Application.java:25)

Caused by: java.lang.RuntimeException: ognl.OgnlException: source is null for getProperty(null, "showapi_res_body")

at com.imooc.weather.impl.WeatherUtilsImpl.getValue(WeatherUtilsImpl.java:39)

at com.imooc.weather.impl.WeatherUtilsImpl.w24h(WeatherUtilsImpl.java:55)

... 1 more

Caused by: ognl.OgnlException: source is null for getProperty(null, "showapi_res_body")

at ognl.OgnlRuntime.getProperty(OgnlRuntime.java:2410)

at ognl.ASTProperty.getValueBody(ASTProperty.java:114)

at ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:212)

at ognl.SimpleNode.getValue(SimpleNode.java:258)

at ognl.ASTChain.getValueBody(ASTChain.java:141)

at ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:212)

at ognl.SimpleNode.getValue(SimpleNode.java:258)

at ognl.Ognl.getValue(Ognl.java:467)

at ognl.Ognl.getValue(Ognl.java:569)

at ognl.Ognl.getValue(Ognl.java:539)

at com.imooc.weather.impl.WeatherUtilsImpl.getValue(WeatherUtilsImpl.java:36)

... 2 more    不知道是不是最新的返回的参数变了,改了调试地址url ,但是又有了新的问题 

搜索

复制

正在回答

1 回答

搞定了。。。还是那个新地址的问题,注意要把新地址里面的http(s)改为https,其次地址后面有个?area=别漏了

搜索

复制

0 回复 有任何疑惑可以回复我~
#1

星期9

文件不是只读吗,不能修改啊
2024-03-09 回复 有任何疑惑可以回复我~
#2

爱吃米粉的缪缪

只读的,你咋改的?
5天前 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消

依旧报错,是不是云的接口变了

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信