Wowza Community

Custom delegation

I tried to override FileVersionDelegate with the example here, but in log file I am getting this error:

[stream/definst]StreamRecorderParameters: Error creating FileVersionDelegate: : java.lang.SecurityException: sealing violation: package is sealed|at java.base/ 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?


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



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.

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