Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X
We have created a user Group let's say 'Comau' under this user group we have various types roles like Admin, Supervisor etc.
We noticed that if we login through Admin type of user under 'Comau' group and try to execute our services of updating property value via service on Mashup using Things[thingName][propertyName] = value; then it gives error as
[context: com.thingworx.webservices.context.HttpExecutionContext@555ebcca][message: Execution error in service script [updatePartLifeTimeProperties] :: Wrapped java.lang.NullPointerException (updatePartLifeTimeProperties#12)]
The Line #12 on this service has snippet like Things[thingName][propertyName] = value;
Solved! Go to Solution.
Hi,
Based on the limited detail given:
Make sure that the user group that your Admin user is in has permissions to execute the service "updatePartLifeTimeProperties". Depending on your service, SystemUser or your Admin user also needs permissions to write to the properties that are being updated in the service "updatePartLifeTimeProperties". If at some point in the service you see or call the current value of the property, you should give read permissions as well.
If this doesn't help, please post the code for the service as well as the permissions you have given.
Thanks
Hi,
I don't quiet get the question.
1. One user group only define one kind of role, unless some of the members are also in another group
2. Was your "admin" user part of system "administrators" group?
3. Was the admin user you choose able to trigger other services?
4. Does real Administrator user able to trigger this service? the problem might be in your coding.
Hi,
Based on the limited detail given:
Make sure that the user group that your Admin user is in has permissions to execute the service "updatePartLifeTimeProperties". Depending on your service, SystemUser or your Admin user also needs permissions to write to the properties that are being updated in the service "updatePartLifeTimeProperties". If at some point in the service you see or call the current value of the property, you should give read permissions as well.
If this doesn't help, please post the code for the service as well as the permissions you have given.
Thanks
If one of the previous responses solved your issue, please mark the appropriate one as the Accepted Solution for the benefit of others on the community.
Regards.
--Sharon