mysterious problem - RangeError: Error #2006: The supplied index is out of bounds

215 views
Skip to first unread message

tobber harley

unread,
Nov 2, 2009, 7:32:11 AM11/2/09
to Merapi
Hey,

Ok I have a mysterious problem. I send a lot of messages from java to
my air application, and sometimes it happens, that the merapi bridge
break (no more messages are handled by the AIR application). I
inserted some trace points in the merapi code (the merapi-core.swc
library) to find out what the problem is. I get this stacktrace:

RangeError: Error #2006: The supplied index is out of bounds.
at flash.utils::ByteArray/readObject()
at merapi.io.amf::AMF3Reader/read()[C:\Development\Projects\Flex
Projects\merapi-core\src\merapi\io\amf\AMF3Reader.as:62]
at merapi::Bridge/handleReceiveSocketData()[C:\Development\Projects
\Flex Projects\merapi-core\src\merapi\Bridge.as:474]

The error only occurs sometimes (at the moment I cannot reproduce the
problem) , but it seems to be independent from the message size. Maybe
someone had the same problem, or can give me a little advice what goes
wrong..

Thanks!!!!!!
Tobber

tobber harley

unread,
Nov 2, 2009, 1:57:49 PM11/2/09
to Merapi

tobber harley

unread,
Nov 4, 2009, 5:03:22 AM11/4/09
to Merapi
Hey,

do Merapi use blocking or non-blocking sockets? Maybe this problem
occurs, if the AIR and the Java app writes at the same moment messages
on the socket?

Thanks!
--Tobber
Reply all
Reply to author
Forward
0 new messages