# Gateway Script Error: super(type, obj): obj must be an instance or subtype of type

**URL:** <https://forum.inductiveautomation.com/t/gateway-script-error-super-type-obj-obj-must-be-an-instance-or-subtype-of-type/51042>\
**Category:** Ignition\
**Tags:** ignition81, scripting\
**Created:** [September 16, 2021, 5:48pm UTC](https://forum.inductiveautomation.com/t/gateway-script-error-super-type-obj-obj-must-be-an-instance-or-subtype-of-type/51042 "2021-09-16T17:48:38Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [June 15, 2023, 3:43pm UTC](https://forum.inductiveautomation.com/t/gateway-script-error-super-type-obj-obj-must-be-an-instance-or-subtype-of-type/51042/10 "2023-06-15T15:43:04Z")

</div>

> [@Michael\_Lindon](#):
>
> Do you use much OO programming and inheritance?

Extensively. Including manipulating and extending jython source code for use in my Ignition add-on modules.

Jython's super() is v2.7, but is implemented in java, not C.

I recommend studying this topic and its linked topics:

> [@\[IGN-5244\]Persist Python Class Object](https://forum.inductiveautomation.com/t/ign-5244-persist-python-class-object/30498):
>
> I am working in Perspective, but this probably applies to other modules as well. I have created user defined classes in the project scripts and I am instantiating them from a view in Perspective. Is there a place I can persist the instance of the object for use between events by the user? Right now I have it serializing to a property on the view, but when I want to work with the object again I have to de-serialize the object in order to work with it again. Having to write custom de-serialize me…

---

_[View the full topic](https://forum.inductiveautomation.com/t/gateway-script-error-super-type-obj-obj-must-be-an-instance-or-subtype-of-type/51042)._
