Android Air App因RPCDataManager而锁定?

时间:2011-10-09 10:48:44

标签: flex flash-builder

我目前正在使用FlashBuilder 4.5(AIR)开发一个Android应用程序,除了一些东西,我几乎已经完成了它。其中一个问题是,在测试应用程序时,我注意到RPCDataManager发生了错误。我相信这可能与应用程序中的NavigateToUrl函数有关,因为这是在eroor发生时。应用程序中的两个NavigateToUrl函数如下:

protected function link_icon_clickHandler(event:MouseEvent):void
            {
                navigateToURL(new URLRequest(getJByIDResult.lastResult.link));
                //tel, sms, mailto, market, http and https
            }

            protected function email_icon_clickHandler(event:MouseEvent):void
            {
                var urlString:String = "mailto:";
                urlString += "?subject=";
                urlString += getJByIDResult.lastResult.c_name+" Information";
                urlString += "&body=";
                urlString += getJByIDResult.lastResult.j_name+" "+getJByIDResult.lastResult.dl+" "+desc_txt.text+" "+getJByIDResult.lastResult.link;
                navigateToURL(new URLRequest(urlString));
            }

现在,当用户访问邮件图标或Internet图标时,会启动这些功能。他们的功能实际上工作,并将您重定向到网站并发送电子邮件,但无论您选择哪一个,似乎都会触发错误,然后完成锁定应用程序并且不允许任何进一步的操作(返回,主页)等等。)。创建热错误代码如下所示:

Error: Requesting : cRPCDataManager:cRPCDataManager:#:1.website_link
    at mx.data::DataList/http://www.adobe.com/2006/flex/mx/internal::fetchItemProperty()[C:\depot\DataServices\branches\milestone\lcds45_fb45\frameworks\projects\data\src\mx\data\DataList.as:3609]
    at mx.data::ConcreteDataService/fetchItemProperty()[C:\depot\DataServices\branches\milestone\lcds45_fb45\frameworks\projects\data\src\mx\data\ConcreteDataService.as:2540]
    at mx.data.utils::Managed$/getProperty()[C:\depot\DataServices\branches\milestone\lcds45_fb45\frameworks\projects\data\src\mx\data\utils\Managed.as:164]
    at valueObjects::_Super_Companies/get website_link()[C:\Users\Jack\Documents\Dropbox\Projects\GApp\GApp Final\src\valueObjects\_Super_C.as:132]
    at ObjectOutput/writeObject()
    at mx.data::DataList/writeExternal()
    at mx.data::DataList/writeExternal()[C:\depot\DataServices\branches\milestone\lcds45_fb45\frameworks\projects\data\src\mx\data\DataList.as:727]
    at mx.collections::ArrayCollection/writeExternal()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\collections\ArrayCollection.as:161]
    at ObjectOutput/writeObject()
    at spark.components.supportClasses::ViewDescriptor/writeExternal()[E:\dev\4.5.1\frameworks\projects\mobilecomponents\src\spark\components\supportClasses\ViewDescriptor.as:179]
    at ObjectOutput/writeObject()
    at spark.components.supportClasses::NavigationStack/writeExternal()[E:\dev\4.5.1\frameworks\projects\mobilecomponents\src\spark\components\supportClasses\NavigationStack.as:238]

有人可以帮我解决这个问题吗?

由于

戴夫

1 个答案:

答案 0 :(得分:0)

如果你不提供更多代码,很难提供帮助,但我的猜测是你试图在你的LCDS服务中调用类似“#:1.website_link”的东西。我不认为这与navigateToURL有任何关系,因为它指定了一个LCDS类。