Unable to implement PUT request in angular 2 ,getting an error “null values are not allowed”

邮差的信 提交于 2019-12-11 02:25:39

问题


I have implemented GET request in my application and able to fetch data for my Account Table in the AccountComponent.

When I click on a particular row in the DataGrid , I get a POPUP window where I can access the row_data and using the dropdowns can update the **DataGrid **

But when I am selecting the required values for the dropdowns and trying to update, I'm getting the following error in my console.

Error code is : Error {"message":"Null values are not allowed","error":"java.lang.NullPointerException","path":"/spacestudy/rockefeller/admin/account/saveAttributes"}

Please access my sample StackBlitz here

Below shown are the screenshots of my sample app.

This is my Account Table

When I click on a row here is my POPUP

When I try to update I'm getting the following error in my console & Network tab

But when I'm trying to save it from backend through Swagger UI,then I'm able to successfully update the data

Can anybody please help me to solve this issue....?

Latest screen shot

来源:https://stackoverflow.com/questions/52188340/unable-to-implement-put-request-in-angular-2-getting-an-error-null-values-are

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!