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

运行不出来啥情况啊

C:\Java\JDK9\bin\java.exe -javaagent:C:\Java\IDEA\lib\idea_rt.jar=53667:C:\Java\IDEA\bin -Dfile.encoding=UTF-8 -classpath C:\Live_java\weather\out\production\weather;C:\Live_java\weather\lib\weather-util.jar com.china.weather.Application查询最近天气预报:输入1:查询未来24小时天气预报输入2:查询未来3天天气预报输入3:查询未来7天天气预报请输入您的选择:1用户输入数字:1请输入城市名称查询天气预报:北京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:82)	at com.china.weather.Application.main(Application.java:27)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:34)	at com.imooc.weather.impl.WeatherUtilsImpl.w24h(WeatherUtilsImpl.java:63)	... 1 moreCaused 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:31)	... 2 moreProcess finished with exit code 1


正在回答

环境对不对哦

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

举报

0/150
提交
取消
Java入门第二季 升级版
  • 参与学习       530006    人
  • 解答问题       6086    个

课程升级!以终为始告别枯燥,在开发和重构中体会Java面向对象编程的奥妙

进入课程

运行不出来啥情况啊

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