Page 1 of 1

Exception INVALID PARAMETER on web-rpc webservice

Posted: Wed May 15, 2019 8:10 am
by jar
Hi,

We try to get some records through web-rpc, we invoke the "search" function in interface "recordService", but it always returns this exception:

Code: Select all

{
	"class": "org.cyclos.server.spring.webrpc.InvalidParameterException",
	"errorCode": "INVALID_PARAMETER",
	"expectedType": "org.cyclos.model.users.records.RecordQuery",
	"index": 0
}
The json that we try to pass:

Code: Select all

{
	"operation": "search",
	"params": {
		"period": {
			"begin": "2019-03-01",
			"end": "2019-04-01"
		},
		"type": {
			"class": "org.cyclos.model.users.recordtypes.RecordTypeVO",
			"fieldColumns": 1,
			"nowrapLabels": false,
			"pluralName": "Comprovativos de NIF",
			"NewProperty": false,
			"internalName": "ComprovativoNif",
			"name": "Comprovativo de NIF",
			"id": "5741493202915809433"
		},
		"currentPage": 0,
		"pageSize": 100
	}
}
We can't figure out, what the parameter we pass is wrong. Could you help, please?

Thanks.

Re: Exception INVALID PARAMETER on web-rpc webservice

Posted: Wed May 15, 2019 3:09 pm
by jar
Solved.