Missing query returns null exception in URL Forward feature

hackerunet6 years ago

The issue is caused because there is a missing query or structure that get the device information and currently the getUniqueId method is null, in WebDataHandler line 81, my question is, which query is responsable for filling the forward URL base of information?

public String formatRequest(Position position) {
        System.out.println(position.toString());

        Device device = Context.getIdentityManager().getById(position.getDeviceId());
        System.out.println(device.toString());
        System.out.println(device.getName());
        System.out.println(device.getUniqueId());

This is the queries list I'm not using:

2018-08-25 02:10:54  INFO: Version: null
2018-08-25 02:11:10  INFO: Query not provided: database.selectUsers
2018-08-25 02:11:10  INFO: Query not provided: database.selectUserUsers
2018-08-25 02:11:10  INFO: Query not provided: database.selectGroups
2018-08-25 02:11:10  INFO: Query not provided: database.selectServers
2018-08-25 02:11:10  INFO: Query not provided: database.selectGroups
2018-08-25 02:11:10  INFO: Query not provided: database.selectUserGroups
2018-08-25 02:11:10  INFO: Query not provided: database.selectUserDevices
2018-08-25 02:11:10  INFO: Query not provided: database.selectGroups
2018-08-25 02:11:10  INFO: Query not provided: database.selectAttributes
2018-08-25 02:11:10  INFO: Query not provided: database.selectUserAttributes
2018-08-25 02:11:10  INFO: Query not provided: database.selectGroupAttributes
2018-08-25 02:11:10  INFO: Query not provided: database.selectDeviceAttributes
2018-08-25 02:11:10  INFO: Query not provided: database.selectDrivers
2018-08-25 02:11:10  INFO: Query not provided: database.selectUserDrivers
2018-08-25 02:11:10  INFO: Query not provided: database.selectGroupDrivers
2018-08-25 02:11:10  INFO: Query not provided: database.selectDeviceDrivers
2018-08-25 02:11:10  INFO: Query not provided: database.selectCommands
2018-08-25 02:11:10  INFO: Query not provided: database.selectUserCommands
2018-08-25 02:11:10  INFO: Query not provided: database.selectGroupCommands
2018-08-25 02:11:10  INFO: Query not provided: database.selectDeviceCommands
2018-08-25 02:11:10  INFO: Starting server...
Anton Tananaev6 years ago
hackerunet6 years ago

Sorry I've been trying to delete my last post and was impossible so I opened up this one, but I have found the issue already.. missing name parameter in one of the queries.