Results 1 to 2 of 2

Thread: Weird Error invoke(onHTTPCupertinoEncryptionKeyLiveChunk)

  1. #1

    Default Weird Error invoke(onHTTPCupertinoEncryptionKeyLiveChunk)

    Hi Guys,

    Can anyone tell me what does this error mean:

    2014-07-08 11:44:00 CEST comment server ERROR 500 - invoke(onHTTPCupertinoEncryptionKeyLiveChunk): java.lang.reflect.InvocationTargetException|at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)|at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)|at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)|at java.lang.reflect.Method.invoke(Method.java:483)|at com.wowza.wms.module.ModuleFunction.invoke(ModuleFunction.java:196)| - - - 100.898 - - - - - -- - - - - - - - - - - - - - - - - - -

    2014-07-08 11:58:12 CEST comment server ERROR 500 - invoke(onHTTPCupertinoEncryptionKeyLiveChunk): java.lang.reflect.InvocationTargetException|at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)|at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)|at java.lang.reflect.Method.invoke(Method.java:483)|at com.wowza.wms.module.ModuleFunction.invoke(ModuleFunction.java:196)|at com.wowza.wms.module.ModuleFunctions.a(ModuleFunctions.java:463)| - - - 375.487 - - - - - - -- - - - - - - - - - - - - - - - - -

    I know that this might be caused by an error in my custom module but the log doesn't say much in which part exactly so I am having trouble debugging it. This error appears as soon as the nDVR starts recording. I have implemented both IModuleOnHTTPCupertinoEncryption and IModuleOnHTTPSmoothStreamingPlayReady in my module. My question is when such an error like this normally occurs? I observed that it starts when the nDVR recording starts but what does onHTTPCupertinoEncryptionKeyLiveChunk got to do with nDVR if not only to get the encryption data. The live channel works perfect with encryption so I dont think it might have something to do with the implementation on onHTTPCupertinoEncryptionKeyLiveChunk.

    Regards,

  2. #2

    Default

    Hi,

    You get this type of error because of the way Wowza module methods are invoked. It uses Java Reflection which does have the unwanted effect that any stack traces for uncaught exceptions will only go back as far as the invoke method. Unfortunately, the stack trace doesn't provide enough info to tell what caused the original exception.

    To get the information you need, simply wrap the contents for your module methods with a try / catch block and log the exception. That exception should give you more information about the cause.

    The original error tells you that the method that caused the exception was onHTTPCupertinoEncryptionKeyLiveChunk so use the following in that method
    public void onHTTPCupertinoEncryptionKeyLiveChunk(ILiveStreamPacketizer liveStreamPacketizer, String streamName, CupertinoEncInfo encInfo, long chunkId, int mode) 
    {
    	try
    	{
    		// Put original method body here.
    	}
    	catch(Exception e)
    	{
    		// Log exception and stack trace.
    		getLogger().error("onHTTPCupertinoEncryptionKeyLiveChunk Exception: " + e.getMessage(), e);
    	}
    	finally
    	{
    		// Perform any cleanup here.
    	}
    }
    The log statement will log an error similar to what you are already getting but the difference is the stack trace will start from your method.

    Roger.

Similar Threads

  1. weird log error, hack attemp ?
    By gabole29 in forum General Forum
    Replies: 2
    Last Post: 02-06-2014, 04:10 PM
  2. Replies: 1
    Last Post: 04-17-2013, 05:58 AM

Posting Permissions

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