Skip navigation
Currently Being Moderated

Getting ioerrorevent type ioerror during webservice call from mobile app

Jan 9, 2012 2:21 AM

Tags: #android #ioerrorevent:. #web_service



I building a mobile employee directory and for that I am using Flash Builder 4.6/AIR 3.1.0. I am using RESTful web service to get XML results and to display on my mobile application. I am getting the same below error when accessing the webservice from mobile app (Android - Galaxy Tab 7 inch).


Error: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error # 2032"] URL:"> ntext-root/jersey/restlab ntext-root/jersey/restlabEmployeeDetails-context-root/jersey/restlab


The same code is working in Flash Builder 4.6. I have checked Network Monitor to "Disabled" before deploying to mobile. What am i doing wrong here? I am pasting my code below-



<?xml version="1.0" encoding="utf-8"?>

<s:View xmlns:fx=""

   xmlns:s="library://" title="HomeView" xmlns:dao="dao.*"





    import mx.collections.ArrayCollection;

    import mx.collections.IList;

    import mx.collections.XMLListCollection;




    import mx.rpc.xml.SimpleXMLDecoder;

    import mx.utils.ArrayUtil;


    import valueObjects.EmployeeDetail;


    private var myXml:XML;



    public var resultCollection:IList;

    public function handleXml(event:ResultEvent):void


     var xmlListCollection:XMLListCollection = new XMLListCollection(event.result.children());

     var xmlListCollectionValues:XMLListCollection = new XMLListCollection(event.result.emp.children());

     var resultArray:Array = xmlListCollection.toArray();

     var resultArrayValues:Array = xmlListCollectionValues.toArray();



     var objEmployeeDetails:EmployeeDetail;

     var resultCollection:ArrayCollection = new ArrayCollection();


     var j:int = 0;

     for(var i:int=0;i<resultArray.length;i++){


      objEmployeeDetails = new EmployeeDetail();

      objEmployeeDetails.brand = resultArrayValues[j];

      objEmployeeDetails.division = resultArrayValues[j+1]; = resultArrayValues[j+2];

      objEmployeeDetails.employee_name = resultArrayValues[j+3];

      objEmployeeDetails.employee_number = resultArrayValues[j+4];

      objEmployeeDetails.grade = resultArrayValues[j+5]; = resultArrayValues[j+6];

      objEmployeeDetails.position = resultArrayValues[j+7];


      j = j + 8;




     list.dataProvider = resultCollection;

     //return resultCollection;



    public function handleFault(event:FaultEvent):void


     //, "Error");             



    protected function sesrchEmployee():void









   <dao:EmployeeDAO id="srv"/>


   <mx:HTTPService id="xmlRpc"

       url=" ntext-root/jersey/restlab"



       resultFormat="e4x" showBusyCursor="true">

    <mx:request xmlns="">












   <s:VGroup width="100%">

   <s:HGroup width="100%">

    <s:Label top="40" paddingTop="10" paddingRight="13" height="29" text="Employee Name:"/>

    <s:TextInput id="key" width="559"/>


   <s:HGroup width="100%">

    <s:Label height="30" paddingTop="10" text="Employee Number:"/>

    <s:TextInput id="key1" width="100%"/>







   <s:Button icon="@Embed('assets/search.png')" click="sesrchEmployee()"/> 



<s:List id="list" top="0" bottom="0" left="0" right="0" 

    change="navigator.pushView(EmployeeDetails, list.selectedItem)">



     <s:IconItemRenderer label="{data.employee_name}"









Please help me to resolve this issue as soon as possible. Appreciate your quick response in this regard.




Murtaza Ghodawala

Mobile: +965 97180549


More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points