Results 1 to 2 of 2

Thread: AMFDataObj java.nio.BufferUnderflowException

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Dec 2008

    Default AMFDataObj java.nio.BufferUnderflowException

    The code used to work on Wowza 2. We upgraded to Wowza 3 recently. Yesterday after we restart wowza server, we get the following exception. The exception is thrown when we call AMFDataList.toString in the onConnect event. Code is given

    All the exception comes from the same client we believe connected to us before restart, the connection must be lost after restart. Our problem is it repeatedly calls onConnect around 10 times/second and throws exception. After some time, the server crashed.

    Several hours later, we believe the client closed their browser. And our server returns to normal finally after restart.

    Although I may remove the AMFDataList.toString call temporarily to solve this problem, I'm afraid the same kind of error may come out from other event because the connection data doesn't exist and wowza still call our code.

    ERROR server comment - constructor AMFDataObj(ByteBuffer)[582:583]: java.nio.BufferUnderflowException
    INFO session connect-pending -
    ERROR server comment - invoke(onConnect): java.lang.NullPointerException: com.wowza.wms.amf.AMFDataItem.toString(null:-1)
    at com.wowza.wms.amf.AMFDataItem.toString(Unknown Source)
    at com.wowza.wms.amf.AMFDataList.toString(Unknown Source)
    at XXX.StreamApp.onConnect(
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(
    at java.lang.reflect.Method.invoke(
    at com.wowza.wms.module.ModuleFunction.invoke(Unknown Source)
    at com.wowza.wms.module.ModuleFunctions.a(Unknown Source)
    at com.wowza.wms.module.ModuleFunctions.onConnect(Unknown Source)
    at com.wowza.wms.module.ModuleConnect.connect(Unknown Source)
    at com.wowza.wms.request.RequestProcessFunctions.processFunctions(Unknown Source)
    at com.wowza.wms.request.RTMPRequestAdapter.service(Unknown Source)
    at com.wowza.wms.server.ServerHandler.a(Unknown Source)
    at com.wowza.wms.server.ServerHandler.a(Unknown Source)
    at com.wowza.wms.server.ServerHandler.messageReceived(Unknown Source)
    at Source)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(
    at java.util.concurrent.ThreadPoolExecutor$

    public void onConnect(IClient client, RequestFunction function, AMFDataList params)
    getLogger().info(new Date().toString() + " " + client.getClientId() + " onConnect: " + client.getClientId() + params.toString());

    Last edited by jordanliuhao; 12-06-2012 at 11:04 AM.

Similar Threads

  1. Internal BufferUnderflowException
    By yunxlynx in forum General Forum
    Replies: 2
    Last Post: 10-10-2014, 05:06 AM
  2. BufferUnderflowException error in origin server
    By vineethkdlr in forum General Forum
    Replies: 1
    Last Post: 07-16-2013, 06:04 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