Results 1 to 3 of 3

Thread: HTTP URLConnection Calls not working in custom module

  1. #1
    Join Date
    Jul 2013

    Default Custom Live Record Module not working

    I have been working on a custom live record module. I had tested it locally but then it want working on-line.

    The error received is :
    ERROR server comment - [appname/_definst_]LiveStreamRecorderFLV.startRecording: open file (H:\Program Files\Wowza Media Systems\Wowza Media Server 3.6.4\content\test3_2014-03-31- java.lang.NullPointerException

    But i dont get this error if i am running this module on wowza streaming engine 4.x. However i do get it in 3.6.X. Does this mean live recording is not supported on older wowza ? I followed code examples from here:

    Complete stack trace is:

    ERROR server comment - invoke(closeStream): java.lang.NullPointerException:<init>(null:-1)
    	at<init>(Unknown Source)
    	at com.packagename.server.wms.module.MyLiveRecord$SegmentListener.onSegmentEnd(
    	at com.wowza.wms.livestreamrecord.model.LiveStreamRecorderBase.notifySegmentEnd(
    	at com.wowza.wms.livestreamrecord.model.LiveStreamRecorderFLV.a(
    	at com.wowza.wms.livestreamrecord.model.LiveStreamRecorderFLV.onUnPublish(
    	at com.wowza.wms.livestreamrecord.model.LiveStreamRecordActionNotifier.onUnPublish(
    	at com.wowza.wms.client.Client.closeOpenStream(
    	at com.wowza.wms.module.ModuleCore.closeStream(
    	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.invoke(
    	at com.wowza.wms.request.RequestProcessFunctions.processFunctions(
    	at com.wowza.wms.request.RequestProcessData.flushFunction(
    	at com.wowza.wms.request.RequestProcessData.processNextRequest(
    	at com.wowza.wms.client.ClientWorker.processNextReq(
    	at com.wowza.wms.request.RTMPRequestAdapter.service(
    	at com.wowza.wms.server.ServerHandler.a(
    	at com.wowza.wms.server.ServerHandler.a(
    	at com.wowza.wms.server.ServerHandler.messageReceived(
    	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
    	at java.util.concurrent.ThreadPoolExecutor$ Source)
    	at Source)
    Can some one clarify me on this ?
    Last edited by rajdeeprath; 03-30-2014 at 03:23 PM. Reason: Misleading title

  2. #2
    Join Date
    Jul 2013


    I managed to resolve the issue after using wowza media server 3.6 to debug the module. There seems to be some differences in wowza streaming engine edition and the older WMS. The fragment of code throwing the error was this:

    public void onSegmentStart(ILiveStreamRecord recorder)
    			String filepath = recorder.getCurrentFile();
    This throws a nullpointer exception in wowza 3.6 where as it runs fine on wowza streaming engine. The fix was to use getFilePath rather than getCurrentFile

    public void onSegmentStart(ILiveStreamRecord recorder)
    			String filepath = getFilePath();
    Last edited by rajdeeprath; 03-30-2014 at 03:28 PM.

  3. #3



    Good to see that you got it working.

    As you have noticed, the recording API did change a lot in Wowza Streaming Engine. The main reasons for the changes is so that all of the different recording methods would work together. Previously, if you started a recording using the LiveStreamRecord HTTP provider then it would not be available in the API methods.

    The new method is to use the StreamRecorder API which does allow recordings that are started with the manager to be accessible via the API.


Similar Threads

  1. Expected responses for Verimatrix DRM server http calls
    By dozed.electron in forum Wowza DRM
    Replies: 2
    Last Post: 02-13-2014, 03:28 AM
  2. Control publish access through custom api calls
    By johncblandii in forum Server-side Modules and Code Samples Discussion
    Replies: 6
    Last Post: 01-27-2012, 10:26 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