Sorry : A correction, my setup misbehaved partly. I did a re-setup and tried the same.
it is resolving to the correct forwarder URL, however as response I still get the Rest CLient Error. This is a bit confusing, because if I try to send the same query (
http://127.0.0.1/~/mn-cse/mn-name?rcn=5) using Postman it works.
[INFO] - org.eclipse.om2m.binding.http.RestHttpClient
Sending request: RequestPrimitive [operation=2,
to=
http://127.0.0.1:8282/~/mn-cse/mn-name,
from=admin:admin,
requestIdentifier=Rsuhas,
resultContent=5,
filterCriteria=
<FilterCriteria>
createdBefore null
createdAfter null
modifiedSince null
unmodifiedSince null
stateTagSmaller null
stateTagBigger null
expireBefore null
expireAfter null
resourceType null
sizeAbove null
sizeBelow null
filterUsage null
filterOperation null
limit null
level null
offset null
</FilterCriteria>,
returnContentType=application/xml,
requestContentType=application/xml,
queryStrings={rcn=[5]},
,tokens=null]
[ERROR] - org.eclipse.om2m.core.comm.RestClient
RestClient error
java.lang.NullPointerException
at java.math.BigInteger.<init>(BigInteger.java:415)
at java.math.BigInteger.<init>(BigInteger.java:606)
at org.eclipse.om2m.commons.resource.FilterGroup.getResourceType(FilterGroup.java:328)
at org.eclipse.om2m.binding.http.RestHttpClient.getParameters(RestHttpClient.java:311)
....