Results 1 to 4 of 4

Thread: Life Cycle - onAppStop

  1. #1
    Join Date
    Jun 2013

    Question Life Cycle - onAppStop

    Hi everyone, I thank you for any help!

    onAppStop throws:

    ERROR server comment - invoke(onAppStop): java.lang.NoClassDefFoundError: br/com
    java.lang.NoClassDefFoundError: br/com/xxx/utils/Ether$1
    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(
    at com.wowza.wms.module.ModuleFunctions.a(
    at com.wowza.wms.module.ModuleFunctions.onAppStop(
    at com.wowza.wms.application.ApplicationInstance.shutdown(ApplicationIns
    at com.wowza.wms.application.Application.a(
    at com.wowza.wms.application.Application.doWatchdog(
    at com.wowza.wms.vhost.VHost.d(
    at com.wowza.wms.vhost.VHost.doWatchdog(

    "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) ?

  2. #2


    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 <Modules> section with the correct <Class> path in the Application.xml file.

    Kind regards,


  3. #3
    Join Date
    Jun 2013


    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.
    Last edited by lgbmdev; 12-10-2014 at 05:12 PM.

  4. #4


    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,


Similar Threads

  1. Life cycle diagram for Application
    By sam.shm in forum Tutorials
    Replies: 3
    Last Post: 05-25-2014, 02:21 PM
  2. onAppStop called from another thread?
    By Benny Veo in forum General Forum
    Replies: 4
    Last Post: 04-24-2013, 05:35 AM
  3. Wowza Media Life Cycle
    By keomamoek in forum Server-side Modules and Code Samples Discussion
    Replies: 1
    Last Post: 02-25-2013, 04:05 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts