Expand my Community achievements bar.

Remoting error with Flex Stress testing

Avatar

Level 1
Hi,



I am using Flex stress testing framework for testing an
application that uses Remote object to connect to a java class,
which in-turn connects to a MySQL database to retrieve somewhere
around 20,000 records. When I run a single instance of the
application, it works fine. If I try to open multiple instances of
the application (for stress testing purpose), some of the instances
fail to initialize and throw the following error (even before I
trigger the code to retrieve the data from remote object):



ArgumentError: Error #2082: Connect failed because the object
is already connected.

at flash.net::LocalConnection/connect()

at mx.managers::HistoryManagerImpl$iinit()

at mx.managers::HistoryManagerImpl$/getInstance()

at mx.core::Singleton$/getInstance()

at mx.managers::HistoryManager$/get ::impl()

at mx.managers::HistoryManager$/register()

at
mx.containers::ViewStack/mx.containers:ViewStack::commitProperties()

at mx.core::UIComponent/validateProperties()

at mx.managers::LayoutManager/::validateProperties()

at mx.managers::LayoutManager/::doPhasedInstantiation()

at Function/
http://adobe.com/AS3/2006/builtin::apply()

at mx.core::UIComponent/::callLaterDispatcher2()

at mx.core::UIComponent/::callLaterDispatcher()





Can anybody please help me understand what the problem could
be. I have tried searching the internet for a solution but to no
avail.



Thanks in advance. Please help...

1 Reply

Avatar

Level 1
BTW, I am using IE 7 for testing this. It works fine on
Firefox.