Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - PPS Resource Manager: Malformed Attribute: (3 Items)
   
PPS Resource Manager: Malformed Attribute  
I have source code which takes a struct and serializes it as a JSON obj through the use of the PPS library. However 
using slog2info the log reads the following:

pps: WARNING: msgpid 58171611: tid 1: coid 3: malformed attribute name in (`"clientRequest_t":{"msg":"msg","id":"id","
location":{"period":2.445311,"accuracy":1.01023,"response_time":1,"background":true,"passive":false,"last_known":true,"
report_sat":true,"flow_control":true,"stationary_detection":false,"provider":"provider","fix_type":"fix_type","app_id":
999,"app_password":"app_password","pde_url":"pde_url","slp_url":"slp_url","reset_type":"reset_type"}}')

The error is not specific to which attribute, should someone know the issue could you please let me know. 
Thank you in advanced. 
RE: PPS Resource Manager: Malformed Attribute  
If you're encoding data to send to PPS then it has to be encoded as PPS data.  So when you call pps_encoder_initialize 
you pass false for the second parameter.

PPS data always looks like:

attrname:encoding:value

and PPS is interpreting your attribute name to be: 

"clientRequest_t"

which is not legal.

Perhaps you're confused by the fact that a lot of PPS data has data encoded in JSON.  This all happens automatically if 
the attribute you're encoding is complex, it doesn't mean that you have to explicitly tell it to encode as JSON.  The 
ability to specify JSON as the encoding is for other uses not connected with PPS.



________________________________________
From: Idris Soule [community-noreply@qnx.com]
Sent: Friday, August 02, 2013 3:09 PM
To: general-community
Subject: PPS Resource Manager: Malformed Attribute

I have source code which takes a struct and serializes it as a JSON obj through the use of the PPS library. However 
using slog2info the log reads the following:

pps: WARNING: msgpid 58171611: tid 1: coid 3: malformed attribute name in (`"clientRequest_t":{"msg":"msg","id":"id","
location":{"period":2.445311,"accuracy":1.01023,"response_time":1,"background":true,"passive":false,"last_known":true,"
report_sat":true,"flow_control":true,"stationary_detection":false,"provider":"provider","fix_type":"fix_type","app_id":
999,"app_password":"app_password","pde_url":"pde_url","slp_url":"slp_url","reset_type":"reset_type"}}')

The error is not specific to which attribute, should someone know the issue could you please let me know.
Thank you in advanced.



_______________________________________________

General
http://community.qnx.com/sf/go/post103927
To cancel your subscription to this discussion, please e-mail general-community-unsubscribe@community.qnx.com
RE: PPS Resource Manager: Malformed Attribute  
Roger, thank you much appreciated.
________________________________________
From: Roger Maclean [community-noreply@qnx.com]
Sent: August-02-13 6:04 PM
To: general-community@community.qnx.com
Subject: RE: PPS Resource Manager: Malformed Attribute

If you're encoding data to send to PPS then it has to be encoded as PPS data.  So when you call pps_encoder_initialize 
you pass false for the second parameter.

PPS data always looks like:

attrname:encoding:value

and PPS is interpreting your attribute name to be:

"clientRequest_t"

which is not legal.

Perhaps you're confused by the fact that a lot of PPS data has data encoded in JSON.  This all happens automatically if 
the attribute you're encoding is complex, it doesn't mean that you have to explicitly tell it to encode as JSON.  The 
ability to specify JSON as the encoding is for other uses not connected with PPS.



________________________________________
From: Idris Soule [community-noreply@qnx.com]
Sent: Friday, August 02, 2013 3:09 PM
To: general-community
Subject: PPS Resource Manager: Malformed Attribute

I have source code which takes a struct and serializes it as a JSON obj through the use of the PPS library. However 
using slog2info the log reads the following:

pps: WARNING: msgpid 58171611: tid 1: coid 3: malformed attribute name in (`"clientRequest_t":{"msg":"msg","id":"id","
location":{"period":2.445311,"accuracy":1.01023,"response_time":1,"background":true,"passive":false,"last_known":true,"
report_sat":true,"flow_control":true,"stationary_detection":false,"provider":"provider","fix_type":"fix_type","app_id":
999,"app_password":"app_password","pde_url":"pde_url","slp_url":"slp_url","reset_type":"reset_type"}}')

The error is not specific to which attribute, should someone know the issue could you please let me know.
Thank you in advanced.



_______________________________________________

General
http://community.qnx.com/sf/go/post103927
To cancel your subscription to this discussion, please e-mail general-community-unsubscribe@community.qnx.com




_______________________________________________

General
http://community.qnx.com/sf/go/post103933
To cancel your subscription to this discussion, please e-mail general-community-unsubscribe@community.qnx.com