# Error #2030: End of file was encountered

**URL:** <https://community.wowza.com/t/error-2030-end-of-file-was-encountered/661>\
**Category:** Wowza Streaming Engine\
**Created:** [July 10, 2009, 1:19pm UTC](https://community.wowza.com/t/error-2030-end-of-file-was-encountered/661 "2009-07-10T13:19:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/system/32/447_2.png) [@system](https://community.wowza.com/u/system)\
**Post date:** [July 10, 2009, 1:19pm UTC](https://community.wowza.com/t/error-2030-end-of-file-was-encountered/661/1 "2009-07-10T13:19:23Z")

</div>

I had posted a thread indicating that the error msg which is the subject of this thread may have been due to Flash issues. I am not so sure any more.

I just happened to examine the log of Wowza server and the log is attached below.

Configure logging: file:///C:/Program Files/Wowza Media Systems/Wowza Media Server Pro 1.7.0/conf/log4j.properties

INFO server server-start Wowza Media Server Pro10 1.7.0 build11414 -

INFO server comment - Serial number: XXXXX-XXXXX-XXXXX-XXXXX-RNDVH

INFO server comment - Maximum connections: 10

INFO server comment - Hardware Available Processors: 2

INFO server comment - Hardware Physical Memory: 616MB/2030MB

INFO server comment - Hardware Swap Space: 2282MB/3923MB

INFO server comment - Max File Descriptor Count: Unlimited

INFO server comment - OS Name: Windows XP

INFO server comment - OS Version: 5.1

INFO server comment - OS Architecture: x86

INFO server comment - Java Name: Java HotSpot™ Client VM

INFO server comment - Java Vendor: Sun Microsystems Inc.

INFO server comment - Java Version: 1.6.0\_13

INFO server comment - Java VM Version: 11.3-b02

INFO server comment - Java Spec Version: 1.6

INFO server comment - Java Home: C:\Program Files\Java\jre6

INFO server comment - Java Max Heap Size: 762MB

INFO server comment - Java Architecture: 32

INFO server comment - CMDInterface now listening: [any]:8083

INFO server comment - vhost home directory: C:/Program Files/Wowza Media Systems/Wowza Media Server Pro 1.7.0

INFO vhost vhost-start _defaultVHost_ -

INFO vhost comment _defaultVHost_ RTMP/RTMPT bind attempt ([any]:1935)

INFO vhost comment _defaultVHost_ Bind successful ([any]:1935)

INFO server comment - Soapbox: onAppStart: Soapbox/24 Default Stream Type: default

INFO application app-start 24 Soapbox/24

INFO session connect-pending 192.168.0.197 -

INFO session connect-pending 192.168.0.197 -

INFO session connect 192.168.0.197 -

INFO session connect 192.168.0.197 -

INFO server comment - onConnectAccept: 1185061863

INFO server comment - onConnectAccept: 2092025175

INFO session connect-pending 192.168.0.197 -

Adding abc@gmail.com to userList

INFO server comment - onConnect: 280409833

INFO session connect 192.168.0.197 -

INFO server comment - onConnectAccept: 280409833

INFO application setstreamtype live -

INFO server comment - onStreamCreate: 1

INFO stream create - -

INFO server comment - onStreamCreate: 2

INFO stream create - -

INFO session connect-pending 127.0.0.1 -

INFO session connect 127.0.0.1 -

INFO server comment - onConnectAccept: 2125717349

INFO session connect-pending 127.0.0.1 -

INFO server comment - onConnect: 1135622220

INFO session connect 127.0.0.1 -

INFO server comment - onConnectAccept: 1135622220

INFO application setstreamtype live-record -

INFO server comment - onStreamCreate: 3

INFO stream create - -

INFO server comment - onStreamCreate: 4

INFO stream create - -

INFO stream publish lesson -

java.lang.NullPointerException

at com.wowza.wms.amf.AMFDataContextSerialize.writeString(Unknown Source)

at com.wowza.wms.amf.AMFDataItem.serialize(Unknown Source)

at com.wowza.wms.amf.AMFDataObj.serialize(Unknown Source)

at com.wowza.wms.amf.AMFDataArray.serialize(Unknown Source)

at com.wowza.wms.amf.AMFDataList.serialize(Unknown Source)

at com.wowza.wms.amf.AMFDataList.serialize(Unknown Source)

at com.wowza.wms.response.ResponseFunction.write(Unknown Source)

at com.wowza.wms.response.ResponseFunction.write(Unknown Source)ERROR server comment - AMFDataContextSerialize.writeString: java.lang.NullPointerException

at com.wowza.wms.response.ResponseFunctions.output(Unknown Source)

at com.wowza.wms.request.RTMPRequestAdapter.service(Unknown Source)

at com.wowza.wms.server.ServerHandler.serviceRequest(Unknown Source)

at com.wowza.wms.server.ServerHandler.handleMessageReceived(Unknown Source)

at com.wowza.wms.server.ServerHandler.messageReceived(Unknown Source)

at com.wowza.wms.server.ServerHandlerThreadedSession.run(Unknown Source)

at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

at java.lang.Thread.run(Unknown Source)

INFO stream play lesson -

INFO server comment - onStreamDestroy: 4

INFO session disconnect 2125717349 -

INFO stream destroy - -

INFO stream stop lesson -

INFO stream unpublish lesson -

INFO server comment - onStreamDestroy: 3

INFO stream destroy lesson -

INFO session disconnect 1135622220 -

INFO session disconnect 2092025175 -

INFO session disconnect 1185061863 -

INFO server comment - onStreamDestroy: 1

INFO stream destroy lesson -

INFO server comment - onStreamDestroy: 2

INFO stream destroy - -

INFO session disconnect 280409833 -

---

<div class="post-metadata">

**Author:** ![Ramesh\_Manian](https://avatars.discourse-cdn.com/v4/letter/r/cab0a1/32.png) [@Ramesh\_Manian](https://community.wowza.com/u/Ramesh_Manian)\
**Post date:** [July 10, 2009, 3:36pm UTC](https://community.wowza.com/t/error-2030-end-of-file-was-encountered/661/2 "2009-07-10T15:36:28Z")

</div>

I narrowe it down to where it is happening. I am making the following call from the flash client;

nc.call(“getUserList”,new Responder(gotUserList,noUserList));

The server handler for the call is :

private AMFDataArray userList = new AMFDataArray();

public void getUserList(IClient client, RequestFunction function, AMFDataList params){

sendResult(client,params,userList);

}

userList was updated with the client name when a viewer client connected before the publisher started to stream content. The publisher before streamign the content asks the server for the list to update its record

---

<div class="post-metadata">

**Author:** ![Ramesh\_Manian](https://avatars.discourse-cdn.com/v4/letter/r/cab0a1/32.png) [@Ramesh\_Manian](https://community.wowza.com/u/Ramesh_Manian)\
**Post date:** [July 10, 2009, 5:28pm UTC](https://community.wowza.com/t/error-2030-end-of-file-was-encountered/661/3 "2009-07-10T17:28:20Z")

</div>

Issue resolved if anyone is interested…

It turns out that one of items in one of the objects in the return value AMFDataArray useList was a null. Once I removed that, there was no EOF error…
