当前位置:网站首页>Org.json Jsonexception: what about no value for value
Org.json Jsonexception: what about no value for value
2022-07-24 22:32:00 【TMS320VC5257H】
Use android studio To write APP Analyze the information returned from Alibaba cloud's Internet of things platform .

Sometimes I meet org.json.JSONException: No value for Value Error messages for
Where to look at this information ?
It's from android studio Of logcat Window view , When debugging, there will be a prompt in this window .

The solution is : Go to the Internet of things platform to check the equipment to be debugged , Whether the material model has data . If there is no data , Then let the device go online , Then send an attribute data . Or use the device simulator to report a data . Run it again android studio, You can find that the problem is eliminated .

The reason for this problem is that the returned data is empty .
If your device defines many attributes , And when parsing , Parse each attribute , Then there is an attribute that has no value , Will be null , And think it's wrong .
So this time may report org.json.JSONException: No value for XX abnormal .
边栏推荐
- Integrated swagger learning
- "Fundamentals of program design" Chapter 10 function and program structure 7-3 recursive realization of reverse order output integer (15 points)
- PHP get thumbnails
- 企业运营自媒体不能“自嗨”:内容要接地气不能接广告
- Boundary extraction of PCL point cloud processing (58)
- About the word 'don't remember'
- Glidemodule appglidemodule and generated API details
- 【数据库学习】Redis 解析器&&单线程&&模型
- 由斐波那契数列引述到矩阵快速幂技巧
- Homework of the 20th week
猜你喜欢

力扣 1184. 公交站间的距离

AVL tree of ordered table

Multi task face attribute analysis based on deep learning (based on paddlepaddle)

Time series data in industrial Internet of things

线段树,,

Monotonic stack structure exercise -- cumulative sum of minimum values of subarrays

C # use SQLite

Morris traversal

从暴力递归到动态规划,记忆化搜索

EL & JSTL: JSTL summary
随机推荐
PCL点云处理之移动最小二乘拟合实验(六十二)
从暴力递归到动态规划,记忆化搜索
Local data enhancement method of icml2022 | graph neural network
Pyqt5 uses qfile and qdatastream to read and write binary files
CAD break command
Monotonic stack structure exercise -- cumulative sum of minimum values of subarrays
Using FRP to achieve intranet penetration
Enterprise operation we media can't "self Hi": the content should be grounded, not advertising
AC automata
GB、MB、KB分别是什么意思。大小分别是多少
PCL点云处理之边界提取(五十八)
Boundary extraction of PCL point cloud processing (58)
窗口内最大值或最小值的更新结构——窗口内最大值
General syntax and classification of SQL language (II)
头脑风暴之——利用reduce方法重构concat函数
基于深度学习的多任务人脸属性分析(基于飞桨PaddlePaddle)
Win10 solution Base64
ICML2022 | 图神经网络的局域数据增强方法
Helm —— 强大的 Kubernetes 应用的包管理工具
[1184. Distance between bus stops]