# NetConnection invoke callback error. Long string in parameter

**URL:** <https://community.wowza.com/t/netconnection-invoke-callback-error-long-string-in-parameter/39391>\
**Category:** Wowza Streaming Engine\
**Created:** [April 17, 2013, 4:54am UTC](https://community.wowza.com/t/netconnection-invoke-callback-error-long-string-in-parameter/39391 "2013-04-17T04:54:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dmitry\_Zin](https://avatars.discourse-cdn.com/v4/letter/d/e95f7d/32.png) [@Dmitry\_Zin](https://community.wowza.com/u/Dmitry_Zin)\
**Post date:** [April 17, 2013, 4:54am UTC](https://community.wowza.com/t/netconnection-invoke-callback-error-long-string-in-parameter/39391/1 "2013-04-17T04:54:44Z")

</div>

I got this exeption when send long string from wowza to flash client.

> Error #2044: Unhandled AsyncErrorEvent:. text=Error #2095: flash.net.NetConnection was unable to invoke callback updateStats. error=ArgumentError: Error #1063: Argument count mismatch on ru.rulet.gateway::ServerListener/updateStats(). Expected 1, got 9.

Call from wowza:

```auto
client.call("updateStats", null, longString);

```

Flash part:

```auto
public function updateStats(jsonString:String):void {
			trace("updateStats", jsonString);
}

```

If I send short string all works fine.

---

<div class="post-metadata">

**Author:** ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)\
**Post date:** [April 17, 2013, 12:58pm UTC](https://community.wowza.com/t/netconnection-invoke-callback-error-long-string-in-parameter/39391/2 "2013-04-17T12:58:27Z")

</div>

> Expected 1, got 9.

Somehow the long string is being seen as 9 args instead of 1, perhaps some delimiting character in the string, but not sure.

Richard
