# Custom delegation

**URL:** <https://community.wowza.com/t/custom-delegation/95466>\
**Category:** Wowza Streaming Engine\
**Created:** [September 29, 2022, 6:45am UTC](https://community.wowza.com/t/custom-delegation/95466 "2022-09-29T06:45:05Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Siavash\_Heydari](https://avatars.discourse-cdn.com/v4/letter/s/3e96dc/32.png) [@Siavash\_Heydari](https://community.wowza.com/u/Siavash_Heydari)\
**Post date:** [September 29, 2022, 6:45am UTC](https://community.wowza.com/t/custom-delegation/95466/1 "2022-09-29T06:45:05Z")

</div>

I tried to override FileVersionDelegate with the example [here](https://github.com/WowzaMediaSystems/wse-plugin-autorecord/blob/main/src/com/wowza/wms/example/ModuleAutoRecordAdvancedExample.java), but in log file I am getting this error:

> [stream/_definst_]StreamRecorderParameters: Error creating FileVersionDelegate: xxx.xx.xxx.class\_name : java.lang.SecurityException: sealing violation: package xx.xx.xxx is sealed|at java.base/java.net.URLClassLoader.getAndVerifyPackage(Unknown Source)

or :

> Error creating FileVersionDelegate: com.wowza.wms.example.ModuleAutoRecordAdvancedExample : java.lang.ClassCastException: class com.wowza.wms.example.ModuleAutoRecordAdvancedExample cannot be cast to class com.wowza.wms.livestreamrecord.manager.IStreamRecorderFileVersionDelegate (com.wowza.wms.example.ModuleAutoRecordAdvancedExample and com.wowza.wms.livestreamrecord.manager.IStreamRecorderFileVersionDelegate are in unnamed module of loader com.wowza.wms.bootstrap.Bootstrap$BootstrapURLClassLoader @4efbca5a)

also, do I need to change anything in properties or add a custom property?  
Any suggestions for me?

Thanks

---

<div class="post-metadata">

**Author:** ![Rose\_Power-Wowza\_Com](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/rose_power-wowza_com/32/431_2.png) [@Rose\_Power-Wowza\_Com](https://community.wowza.com/u/Rose_Power-Wowza_Com)\
**Post date:** [September 29, 2022, 8:16pm UTC](https://community.wowza.com/t/custom-delegation/95466/2 "2022-09-29T20:16:07Z")

</div>

Hello, can you share what version of Engine you are on and also what version of Java you are using?

Thanks.

---

<div class="post-metadata">

**Author:** ![Siavash\_Heydari](https://avatars.discourse-cdn.com/v4/letter/s/3e96dc/32.png) [@Siavash\_Heydari](https://community.wowza.com/u/Siavash_Heydari)\
**Post date:** [September 30, 2022, 7:02am UTC](https://community.wowza.com/t/custom-delegation/95466/3 "2022-09-30T07:02:22Z")

</div>

Hello,

I am using 4.8.19+4. First I complied it with java 9 I got those errors and it didn’t work, now you mentioned about java version, I tried with java 11, and got the same error in logs but this time module works properly and I’m able to have custom naming.  
Thanks.

---

<div class="post-metadata">

**Author:** ![Rose\_Power-Wowza\_Com](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/rose_power-wowza_com/32/431_2.png) [@Rose\_Power-Wowza\_Com](https://community.wowza.com/u/Rose_Power-Wowza_Com)\
**Post date:** [October 4, 2022, 3:53pm UTC](https://community.wowza.com/t/custom-delegation/95466/4 "2022-10-04T15:53:05Z")

</div>

Oh good, but interesting it still shows error in the logs. Thanks for raising this!
