Improvement #10094
closedAdd a note in the APN policy UI mentioning availability only for system apps / APN policy is not working
100%
Description
Environment details
513 server and 520 server
Agent version: v4.01.00.36
Prerequisites
Policy with APN details
Steps
Apply the APN policy in to the devices.
Description
The policy did not applied. Policy Bundle operation fails with an error [1].
Result
APN policy is not appliyng due to payload issue [1].
[1]
Unrecoverable error with payload {io.entgra.iot.agent.seperator}org.wso2.iot.agent.AndroidAgentException: Error in parsing APN policy payload. at org.wso2.iot.agent.services.operation.OperationManager.configureAPN(OperationManager.java:1673) at org.wso2.iot.agent.services.operation.OperationProcessor.doTask(OperationProcessor.java:144) at org.wso2.iot.agent.services.operation.OperationProcessor.setPolicyBundle(OperationProcessor.java:523) at org.wso2.iot.agent.services.operation.OperationProcessor.doTask(OperationProcessor.java:204) at org.wso2.iot.agent.services.MessageSyncService.performOperation(MessageSyncService.java:219) at org.wso2.iot.agent.services.MessageSyncService.onReceiveAPIResult(MessageSyncService.java:798) at org.wso2.iot.agent.proxy.APIController$3.parseNetworkResponse(APIController.java:209) at com.android.volley.NetworkDispatcher.processRequest(NetworkDispatcher.java:144) at com.android.volley.NetworkDispatcher.processRequest(NetworkDispatcher.java:111) at com.android.volley.NetworkDispatcher.run(NetworkDispatcher.java:90) Caused by: org.json.JSONException: Value at proxyPort of type java.lang.String cannot be converted to int at org.json.JSON.typeMismatch(JSON.java:101) at org.json.JSONObject.getInt(JSONObject.java:492) at org.wso2.iot.agent.services.operation.OperationManager.configureAPN(OperationManager.java:1390) ... 9 more
[1]
Files