Flex project can't connect to local electroserver
Hi all,
A friend recently told me to check out IntelliJ to replace flashbuilder for me so I downloaded the 10.01 and started importing some flashbuilder projects. I encountered a problem though that I can't figure out; my project throws an error when it tries to connect to my local electroserver. This project, and others like it that I have, run fine in FB, but all do the same thing in IntelliJ.
Is there something I need to do to get it to connect to this server?
Thanks,
TJ
[EDIT]
Here's the error I'm getting. I know it's not related to intelliJ but it may give a hint:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at com.electrotank.electroserver5.connection::ESEngine/getNewConnection()[/Users/jason/Projects/Electrotank/ES/client/as3/src/core/com/electrotank/electroserver5/connection/ESEngine.as:748]
at com.electrotank.electroserver5.connection::ESEngine/attemptNextConnection()[/Users/jason/Projects/Electrotank/ES/client/as3/src/core/com/electrotank/electroserver5/connection/ESEngine.as:707]
at com.electrotank.electroserver5.connection::ESEngine/connect()[/Users/jason/Projects/Electrotank/ES/client/as3/src/core/com/electrotank/electroserver5/connection/ESEngine.as:143]
at com.electrotank.eup.network::Connection/reconnect()[/mnt/bamboo-ebs/bamboo-agent/build-dir/EUP-NIGHTLY/client/client/src/main/flex/com/electrotank/eup/network/Connection.as:164]
at com.electrotank.eup.network::Connection/connect()[/mnt/bamboo-ebs/bamboo-agent/build-dir/EUP-NIGHTLY/client/client/src/main/flex/com/electrotank/eup/network/Connection.as:97]
at com.electrotank.eup::Eup/login()[/mnt/bamboo-ebs/bamboo-agent/build-dir/EUP-NIGHTLY/client/client/src/main/flex/com/electrotank/eup/Eup.as:486]
at com.electrotank.eup::Eup/loginAsProspect()[/mnt/bamboo-ebs/bamboo-agent/build-dir/EUP-NIGHTLY/client/client/src/main/flex/com/electrotank/eup/Eup.as:415]
at LockerTest/handleGameConfig()[C:\Users\tgillis\Documents\Work\**********\virtual_world\trunk\world\client\modules\locker2\src\main\as3\LockerTest.mxml:109]
at Function/com.electrotank.utils:XmlUtil/loadXml/com.electrotank.utils:onXmlLoaded()[/mnt/bamboo-ebs/bamboo-agent/build-dir/ETCOM-DAILY/et-common-loader/src/main/as3/com/electrotank/utils/XmlUtil.as:122]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at com.electrotank.utils.assetsloader::Asset/completeHandler()[/mnt/bamboo-ebs/bamboo-agent/build-dir/ETCOM-DAILY/et-common-loader/src/main/as3/com/electrotank/utils/assetsloader/Asset.as:597]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at flash.net::URLLoader/onComplete()
Please sign in to leave a comment.
Hello TJ,
Since there's an exception in library code, it's hard to say anything reliable before looking at the sources.
If you start your Flex application in debug mode, what console output will you get? Also please check that 'Place SWF in local-trusted sanbox' option is turned on in your run configuration dialog.
Regards,
Kirill
Hello Kirill,
I've tried importanting another project and now I'm getting this error:
Custom compiler configuration file 'C:/Users/tgillis/Documents/Work/*******/virtual_world/trunk/world/client/shell/target/********-A1-SNAPSHOT-config-report.xml' for module '********' is not found or invalid.
Thanks,
TJ
It seems that you have inported Maven Flexmojos project but not FlashBuilder one.If you have both pom.xml and .project in the same folder (i.e. both maven and FB project files) then you can control what to import if use File | New Project | Import project from external model.
More about Flexmojos projects importing here: http://blogs.jetbrains.com/idea/2009/09/flexmojos-inmaia/. The most important tip is in Troubleshooting section.