Life Cycle - onAppStop

Hi everyone, I thank you for any help!

onAppStop throws:

ERROR server comment - invoke(onAppStop): java.lang.NoClassDefFoundError: br/com

/xxx/utils/Ether$1: br.com.xxx.utils.Ether.flushHttpRequests

(Ether.java:127)

java.lang.NoClassDefFoundError: br/com/xxx/utils/Ether$1

at br.com.xxx.utils.Ether.flushHttpRequests(Ether.java:127)

at br.com.xxx.Application.onAppStop(Application.java:89)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at com.wowza.wms.module.ModuleFunction.invoke(ModuleFunction.java:451)

at com.wowza.wms.module.ModuleFunctions.a(ModuleFunctions.java:572)

at com.wowza.wms.module.ModuleFunctions.onAppStop(ModuleFunctions.java:5

86)

at com.wowza.wms.application.ApplicationInstance.shutdown(ApplicationIns

tance.java:544)

at com.wowza.wms.application.Application.a(Application.java:378)

at com.wowza.wms.application.Application.doWatchdog(Application.java:459

)

at com.wowza.wms.vhost.VHost.d(VHost.java:1529)

at com.wowza.wms.vhost.VHost.doWatchdog(VHost.java:1569)

at com.wowza.wms.vhost.VHostWatchdog.run(VHostWatchdog.java:47)

“Ether” is a public class with variables and methods statics.

“flushHttpRequests” take 10s to finish

Don’t happen ever, sometimes yes and no. java.lang.NoSuchMethodError also happens.

So, wowza unload all classes when appInstance shutdown? what remains when onAppStop is fired?

One more question, using this to HTTProvider2Base requests before appInstance initialized, will the same thing (class and method not found) ?

Hello there.

This error indicates that the jar file is missing. Make sure the jar is located in [install-dir]/lib and that you have added the module at the end of the section with the correct path in the Application.xml file.

Kind regards,

Salvadore

I believe it is beyond the scope of Wowza support to troubleshoot custom code. But if you still need help with this you can post a request to the find a consultant forum

Kind regards,

Salvadore

I thank you for your response.

The application jar is ok, otherwise nothing should work. This error is exactly on application shutdown, in onAppStop, when flushHttpRequests is called. flushHttpRequests is a slow method (duration for finish: 10s). The application jar includes flushHttpRequests method.

Sometimes all looks well, other not. Yesterday, MethodNotFound Exception I read in the log files nor was onAppStop procedure.

Someone told me that it could be different JVM versions that compile and run, but I made sure the two are equal.