# How to track down ComponentModel Errors?

**URL:** <https://forum.inductiveautomation.com/t/how-to-track-down-componentmodel-errors/56101>\
**Category:** Ignition\
**Created:** [February 14, 2022, 12:38pm UTC](https://forum.inductiveautomation.com/t/how-to-track-down-componentmodel-errors/56101 "2022-02-14T12:38:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [February 14, 2022, 12:38pm UTC](https://forum.inductiveautomation.com/t/how-to-track-down-componentmodel-errors/56101/1 "2022-02-14T12:38:03Z")

</div>

I’m getting many ComponentModel errors while a particular View is open, but I’m not sure how to find what the error is referring to in the View.  
How would I go about diagnosing this?

This is the full error:

```auto
java.lang.IllegalArgumentException: Cannot set value of valuenode to a Object

at com.inductiveautomation.perspective.gateway.property.PropertyTree$ValueNode.setValueInternal(PropertyTree.java:1162)

at com.inductiveautomation.perspective.gateway.property.PropertyTree$ValueNode.(PropertyTree.java:1151)

at com.inductiveautomation.perspective.gateway.property.PropertyTree.nodeFromJson(PropertyTree.java:326)

at com.inductiveautomation.perspective.gateway.property.PropertyTree.nodeFromJson(PropertyTree.java:292)

at com.inductiveautomation.perspective.gateway.property.PropertyTree$ValueNode.write(PropertyTree.java:1213)

at com.inductiveautomation.perspective.gateway.property.PropertyTree.lambda$write$1(PropertyTree.java:420)

at com.inductiveautomation.perspective.gateway.property.PropertyTree.writeImpl(PropertyTree.java:463)

at com.inductiveautomation.perspective.gateway.property.PropertyTree.write(PropertyTree.java:420)

at com.inductiveautomation.perspective.gateway.property.PropertyTree.writeAll(PropertyTree.java:414)

at com.inductiveautomation.perspective.gateway.model.ComponentModel.onPropertySync(ComponentModel.java:449)

at com.inductiveautomation.perspective.gateway.model.ViewModel.lambda$onPropSync$5(ViewModel.java:324)

at com.inductiveautomation.perspective.gateway.model.ComponentModel.dispatch(ComponentModel.java:394)

at com.inductiveautomation.perspective.gateway.model.ComponentModel.dispatch(ComponentModel.java:400)

at com.inductiveautomation.perspective.gateway.model.ViewModel.onPropSync(ViewModel.java:321)

at com.inductiveautomation.perspective.gateway.model.PageModel$Handlers.lambda$onPropSync$18(PageModel.java:887)

at java.base/java.util.concurrent.CompletableFuture.uniAcceptNow(Unknown Source)

at java.base/java.util.concurrent.CompletableFuture.uniAcceptStage(Unknown Source)

at java.base/java.util.concurrent.CompletableFuture.thenAccept(Unknown Source)

at com.inductiveautomation.perspective.gateway.model.PageModel$Handlers.lambda$onPropSync$19(PageModel.java:885)

at com.inductiveautomation.perspective.gateway.api.LoggingContext.lambda$mdcWrap$0(LoggingContext.java:41)

at com.inductiveautomation.ignition.common.util.ExecutionQueue$PollAndExecute.run(ExecutionQueue.java:210)

at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)

at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

at java.base/java.lang.Thread.run(Unknown Source)

```

---

<div class="post-metadata">

**Author:** ![victordcq](https://avatars.discourse-cdn.com/v4/letter/v/f6c823/32.png) [@victordcq](https://forum.inductiveautomation.com/u/victordcq)\
**Post date:** [February 14, 2022, 12:54pm UTC](https://forum.inductiveautomation.com/t/how-to-track-down-componentmodel-errors/56101/2 "2022-02-14T12:54:26Z")

</div>

> [@nminchin](#):
>
> `valuenode to a Object`

valuenode is something from a tag

> [@nminchin](#):
>
> `property.PropertyTree`

PropertyTree is the props.

Seems like you might be trying to write a tagObject to the properties instead of a "valueObject" or something idk  
maybe its the qualified value? And is the quality bad?

---

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [February 14, 2022, 12:58pm UTC](https://forum.inductiveautomation.com/t/how-to-track-down-componentmodel-errors/56101/3 "2022-02-14T12:58:17Z")

</div>

I think I’ve narrowed it down to a specific component from a module developed for us for QR scanning. It’s out of the box config of the component and as soon as that component is on the page I get 2 errors every 2 seconds while the view is open, so it must be something in the module code. I’ve reached out to the dev for assistance, but still intrigued how you would diagnose it regardless

---

<div class="post-metadata">

**Author:** ![victordcq](https://avatars.discourse-cdn.com/v4/letter/v/f6c823/32.png) [@victordcq](https://forum.inductiveautomation.com/u/victordcq)\
**Post date:** [February 14, 2022, 1:01pm UTC](https://forum.inductiveautomation.com/t/how-to-track-down-componentmodel-errors/56101/4 "2022-02-14T13:01:06Z")

</div>

i had something kinda similar, but for me it was just a warning, so i just ignored it xd  
Maybe it contains something usefull, i was not able to remove the warnings in my code tho xd just from the logs

> [@Warning: Element can not be null](https://forum.inductiveautomation.com/t/warning-element-can-not-be-null/53417/2):
>
> Are you passing anything you manually encoded (in our quality encoding format) from the frontend to the backend? This is happening when the backend receives some JSON content and tries to ‘inflate’ it into a property tree structure with associated quality values.

this is the function that seems to be triggering your error. So it seems its trying to set an object while this function only support primitives (int, string, bool... not array/object)

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/9/4/945ce283af4435c2861ee1bd0d56ca5915399f94.png)
