IOS 6.0 simulator error / Flex+AIR 3.5

I am not able to run a Flex/AIR program on the IOS 6.0 simulator. I searched all forums. I am new to using IOS simulator. Any help is appreciated.
I am using Flex 4.6 and AIR 3.5, with target swf version 18. A simple Flex app (WindowedApplication with a Label in it) crashes at initialization in IOS simulator.
<?xml version="1.0"?>
<s:WindowedApplication
  xmlns:fx="http://ns.adobe.com/mxml/2009"
  xmlns:mx="library://ns.adobe.com/flex/mx"
  xmlns:s="library://ns.adobe.com/flex/spark">
  <s:Label text="Test"/>
</s:WindowedApplication>
TypeError: Error #1009: Cannot access a property or method of a null object reference.
  at spark.components::WindowedApplication/initialize()
  at ptest/initialize()
  at mx.managers.systemClasses::ChildManager/childAdded()
  at mx.managers.systemClasses::ChildManager/initializeTopLevelWindow()
  at mx.managers::SystemManager/initializeTopLevelWindow()
  at mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::kickOff()  at mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::preloader_completeHandler()
  at flash.events::EventDispatcher/dispatchEventFunction()
  at flash.events::EventDispatcher/dispatchEvent()
  at mx.preloaders::Preloader/timerHandler()

Update: the problem was resolved by changing WindowedApplication to Application.
Is WindowedApplication not allowed for IOS/mobile ? I couldn't find any doc on this.

Similar Messages

  • Flex AIR iOS application with rtmps

    Hi,
    If I am accessing flex AIR application from Mac or iOS (iPad) using secure rtmp then it gives me error. It is not able to connect to the server.  I have a self signed certificate generated using java keytool. I have configured it on tomcat and it works for the ssl in browser with https://localhost:8080, but fails when using rtmps from flex application especially in Mac and iPad.  It works in Android tablet and windows machine though.
    Here is the configuration in I gave in the server for ssl.
    <server id="secure-nio-server" class="flex.messaging.socketserver.SocketServer">
            <properties>
                <keystore-file>D:/keystore.jks</keystore-file>
                <keystore-password>password</keystore-password>
            </properties>
        </server>
    <channel-definition id="mobility-rtmp"
          class="mx.messaging.channels.SecureRTMPChannel">
          <endpoint url="rtmps://{server.name}:@flex.rtmp.port@"
            class="flex.messaging.endpoints.SecureRTMPEndpoint"/>
       <server ref="secure-nio-server">
          <properties>
            <idle-timeout-minutes>20</idle-timeout-minutes>
            <!-- for deployment on WebSphere, must be mapped to a WorkManager available in the web application's jndi context.
            <websphere-workmanager-jndi-name>java:comp/env/wm/MessagingWorkManager</websphere-workman ager-jndi-name>
            -->
    </properties>
    </server>
        </channel-definition>
    Here is the exception I am getting on server side.
    INFO: [LCDS] 01/21/2012 17:14:44.258 [ERROR] [SocketServer.General] Thread[secure-nio-server-WorkerThread-2,5,main] failed to read Connection '521330370' or process the data; Connection is in the 'Handshaking' state and will be forced closed.
    javax.net.ssl.SSLException: Inbound closed before receiving peer's close_notify: possible truncation attack?
    at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Unknown Source)
    at com.sun.net.ssl.internal.ssl.SSLEngineImpl.fatal(Unknown Source)
    at com.sun.net.ssl.internal.ssl.SSLEngineImpl.fatal(Unknown Source)
    at com.sun.net.ssl.internal.ssl.SSLEngineImpl.closeInbound(Unknown Source)
    at flex.messaging.socketserver.SSLConnection.handshake(SSLConnection.java:298)
    at flex.messaging.socketserver.Connection$ConnectionReader.run(Connection.java:845)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
    Jan 21, 2012 5:14:44 PM org.apache.catalina.core.ApplicationContext log
    INFO: [LCDS] 01/21/2012 17:14:44.258 [DEBUG] [SocketServer.General] Thread[secure-nio-server-WorkerThread-2,5,main] Connection '521330370' has changed state to: Closing
    Jan 21, 2012 5:14:44 PM org.apache.catalina.core.ApplicationContext log
    INFO: [LCDS] 01/21/2012 17:14:44.258 [DEBUG] [SocketServer.General] Thread[secure-nio-server-WorkerThread-2,5,main] closing Connection '521330370'.
    Jan 21, 2012 5:14:44 PM org.apache.catalina.core.ApplicationContext log
    INFO: [LCDS] 01/21/2012 17:14:44.258 [DEBUG] [SocketServer.General] Thread[secure-nio-server-WorkerThread-2,5,main] Connection '521330370' has changed state to: Closed
    Jan 21, 2012 5:14:44 PM org.apache.catalina.core.ApplicationContext log
    INFO: [LCDS] 01/21/2012 17:14:44.258 [DEBUG] [SocketServer.General] Thread[secure-nio-server-WorkerThread-2,5,main] closed Connection '521330370'.
    Jan 21, 2012 5:14:44 PM org.apache.catalina.core.ApplicationContext log
    INFO: [LCDS] 01/21/2012 17:14:44.258 [DEBUG] [SocketServer.General] Thread[secure-nio-server-WorkerThread-2,5,main] Connection '521330370' finished a read. -1 bytes were read.
    Please help.
    Thanks,
    Swathi.

    Did you get anywhere with this, I'm having a similar issue?
    I have an Air app that works fine using rtmp in iOS but not rtmps (it works fine in Android for both). The release notes for 3.1 (http://kb2.adobe.com/cps/923/cpsid_92350.html) suggest there was a problem for rtmps on iOS, but I'm using the latest 3.1 SDK version.
    I'm suspecting an SSL certificate issue as in Android I get prompted as to whether I trust the certificate, but not on the iPhone. I have installed the certificate manually but to no avail.

  • Error loading/installing iOS 5.0 Simulator in XCode 4.4.1

    I'm new to iOS and Apple.
    Just got XCode installed, but when I try to dowload/install iOS 5.0 Simulator using the 'Download' tab of XCode preferences, I get the following error consistently:
    Failed to mount file://localhost/Users/reza/Library/Caches/com.apple.dt.Xcode/Downloads/Xcode.S DK.iPhoneSimulator.5.0-5.0.0.1.dmg at file://localhost/var/folders/bm/kz0d00lx18ncwq3fxyf50pn00000gn/T/attached-image -122057767f890c101413b3e8c64917b42f1eb792/: not recognized
    What I'm doing wrong and how can I fix it, Please ?
    I'm using Xcode 4.4.1 on OS X 10.8.1

    KT
    Thnx for the suggestions,
    I tried all of yours (logged in as a newer user, ran disk utility and everything was ok, and I have over 300GB free space on the SDD drive) but still have exactly the same problem!
    Anyone else has any other ideas on how to solve this problem, PLEASE?

  • Error crating AIR file: notafter {date time} (Publish   with flex)

    I publish AIR file with Flex builder
    but it said Error crating AIR file: notafter follow with date
    and time
    How can I fix it?

    I have the same problem. Does anyone know how to fix this
    ?

  • Error creating AIR file: could not generate timestamp

    I have been getting this error the last few days.
    Error creating AIR file: could not generate timestamp:
    sun.security.validator.BalidatorException:PKIX path building failed:
    sun.security.provider.certpath.SunCertPathBuilderException: unable to find
    valid certificatio path to requested target.
    https://timestamp.geotrust.com/tsa
    I found one thread saying this url must be accessible but when I go there I get "404 -- page not found".
    Since this was working now it is not I'm looking for a direction.

    Hey Karthik,
    First of all, are you using ECLIPSE? What is your development
    Environment. I had run into same issue, after hours of trying
    different things, I installed the FLEX BUILDER and was able to
    create the application without any issues. I have also noticed that
    FLEX BUILDER works more smoothly than Eclipse and since then I have
    been developing within FB.
    Thanks.

  • Error building AIR file

    hi guys
    i have one problem building AIR file it is displaying an
    error message as
    "Error creating AIR File: Could not generate timestamp: No
    route to host: connct"
    in some blog it is saying that we need to get connected to
    internet but i am already connected
    any idea
    please help
    karthik.k

    Hey Karthik,
    First of all, are you using ECLIPSE? What is your development
    Environment. I had run into same issue, after hours of trying
    different things, I installed the FLEX BUILDER and was able to
    create the application without any issues. I have also noticed that
    FLEX BUILDER works more smoothly than Eclipse and since then I have
    been developing within FB.
    Thanks.

  • Failure installing iOS 8.3, causing Error 56

    When trying to install iOS 8.3 on my iPad Air 2, I get the message that I need to plug into iTunes.  When plugged into iTunes it fails to restore with the message "An unknown error has occurred (56).  Any suggestions?

    I have the same problem w/ my iPhone 6 128GB.  Error installing the update.  iPhone is locked in recovery mode and unable to update or restore.  Keeps giving me the unknown error 56 message.  I've read that people can take out their SIM cards and put the phone in recovery mode.  Then try restoring again.  I've had no luck w/ this even when trying to downgrade back to iOS 8.2.  Reading all the forums, sounds like only option left is to replace it.  Taking it in to my Sprint store today since I don't have an Apple Store nearby

  • Error creating AIR file: 105:ERROR, application.installFolder

    I renamed my project and can not create release build.
    would be nice to what I did that broke it.
    here is the Error message during the Export Release Build:
    Error creating AIR file: 105: ERROR,
    application.installFolder
    also, when I close flex builder then try to reopen it, my
    default workspace is busy..
    oops.. I had messed with the default install folder and had
    dropped in a C:\Program Files\... which it should only be a sub as
    air defaults already to C:\Program Files\<filename> or on mac
    \Applications\<filename>.app
    <installFolder>subfolder/subsubfolder</installFolder>

    It's not uncommong while editing your app.xml file... that one can leave stray < or >. Check to make sure the file is valid and that any included references (like icons) aren't missing or in the wrong location.
    Rick Winscot

  • Application error running air app

    My air app is a sildeshow viewer which sends request to the
    server and represents the response data using chart component.
    I encounter a very tricky problem that when this app runs for
    hours it will get a application error, as air dismiss all the
    exception while running, I can not get the stacktrace. I tried
    debug this app in flex builder, but still got a application error
    from air debug launcher without exception stacktrace. That mean adl
    crashed while I run my app.
    The difficulty is that this error does not always occur. It
    happens usually once a week while running , so I can not get the
    location of the error generated.
    The application error is kind of "memory could not be
    written", so did anyone ever face this problem? And is there any
    suggestion for me? I want to know what kind of exception could
    crash adl.
    Thanks very much, it bothers me a lot.

    This kind of error is bug. If you can capture a crash report
    of some kind (use a web search to find out how to do that for your
    OS) and file it as a bug, that'd be great.
    That said, a common cause with applications that run for a
    long time and use lots of data is that they run out of memory. You
    might check your memory use; if it increases without bound, that's
    a sign that your application is leaking.

  • How to install iOS 7.0 Simulator in xcode 6.0.1

    I go to preference and download the simulator 7.0,then i got this error Could not download and install iOS 7.0 Simulator. Failed to mount file:///Users//Library/Caches/com.apple.dt.Xcode/Downloads/Xcode.SDK.iPhoneSimu lator.7.0-7.0.dmg at file:///var/folders/p0/94d17pz545l9w47byr0z2gzcr14jm4/T/attached-image-0f91fbf0 58f8f65f6ddbe8e8e28dbeaa6b366f89/: image not recognized.Kindly help me solve this issue.
    Message was edited by: sassudalai

    KT
    Thnx for the suggestions,
    I tried all of yours (logged in as a newer user, ran disk utility and everything was ok, and I have over 300GB free space on the SDD drive) but still have exactly the same problem!
    Anyone else has any other ideas on how to solve this problem, PLEASE?

  • Error signing AIR applicaiton

    I recently purchased a code signing certificate from Thawte.
    The cert was imported into Firefox, and then exported as a P12
    file, with a password.
    In flex builder, I tried to export my project and selected
    the certificate and typed the password, but then I get this error:
    Error creating AIR file: Could not generate timestamp:
    sun.security.validator.ValidatorException: PKIX path building
    failed:
    sun.security.provider.certpath.SunCertPathBuilderException:
    unable to find valid certification path to requested target
    I am using OS X 10.5.2, Eclipse 3.3.2 and flex builder build
    3.0.194161
    Any help would be appreciated!

    A time stamp is a validated date and time from a remote time
    server. AIR requests this time stamp whenever you sign an AIR
    application. This time stamp is protected from alteration with a
    separate digital signature of its own. It looks like Flex
    Builder/ADT couldn't verify the signature associated with the time
    stamp on your system. Do you use a proxy server for your internet
    connection? If so, you may need to configure your Java runtime
    environment proxy settings. Otherwise, it could be an issue with
    the way root certificates are trusted on your machine -- although
    the default time stamp server is operated by Verisign, I believe,
    so it's certificate should already be trusted.

  • HTTPService problem (ioerror #2032) in flex AIR application

    Hi all,
    I am using flex 4.5 Hero Sdk. Flex Builder plugin. Win7x64. Adobe Air 2.5.
    I have a flex air project which contains 3 library projects included.
    The project uses one of the included libraries for managing HttpService calls to a Tomcat server.
    When I use "merge into code" option for building all projects there is no problem. I can both run in Adl and installed application (exe). HttpService calls works fine in both Adl and Air 2.5 runtime.
    When I use Rsl option for building all projects I can run-debug in Adl However when I run the installed version (I mean this time running the application not with adl, but with Flex Air 2.5.x version installed in win7x64) this time HttpService calls to the server gives ioerror (Error#2032).
    Some information I discovered (may not be related to the problem I stated above)
    When using rsl option, "use local RSLs when debugging" option makes the difference. If this option is false, Adl cannot run the application.
    I tried -use-network=true compiler option, but not sure if I did everything right while trying.
    Shortly I think I need some knowledge for working with RSLs. So, can anybody help me?

    Take a look at http://forums.adobe.com/message/3345972#3345972

  • Identical flex-air applications do not compile

    I'm having terrible difficulty with writing Air Applications for compiling with the flex 3.2 SDK.
    I have two identical basic flex air applications, but one will not compile, the other will.
    When I try to run the application from flex builder the first app runs fine while the second one doesn't.
    any ideas?
    http://www.andy-hayes.com/download/TestApp.zip
    http://www.andy-hayes.com/download/TestTransparentApplication.zip
    I've just about had enough of flex builder's bs. tbh.

    Hi Randy,<br /><br />This forum really isn't the place to try to get support on app compilation.  We try to keep discussion here to development of the SDK itself.  I'd suggest looking at the regular Flex forums or flexcoders and posting more details as to the error you're seeing.<br /><br />Matt<br /><br /><br />On 1/13/09 3:51 AM, "randy gland" <[email protected]> wrote:<br /><br />A new discussion was started by randy gland in<br /><br />Developers --<br />  Identical flex-air applications do not compile<br /><br />I'm having terrible difficulty with writing Air Applications for compiling with the flex 3.2 SDK.<br /><br />I have two identical basic flex air applications, but one will not compile, the other will.<br /><br />When I try to run the application from flex builder the first app runs fine while the second one doesn't.<br /><br />any ideas?<br /><br />http://www.andy-hayes.com/download/TestApp.zip<br />http://www.andy-hayes.com/download/TestTransparentApplication.zip<br /><br />I've just about had enough of flex builder's bs. tbh.<br /><br />________________________________<br />View/reply at Identical flex-air applications do not compile <a href=http://www.adobeforums.com/webx?13@@.59b78044><br />Replies by email are OK.<br />Use the unsubscribe <a href=http://www.adobeforums.com/webx?280@@.59b78044!folder=.3c060fa3>  form to cancel your email subscription.

  • TS3694 good evening i have an problem with my iphone 4 the wif and network cant on now if i tray is showing iTunes i tray to reload the ios is showing an error -1 can you help me

    good evening i have an problem with my iphone 4 the wif and network cant on now if i tray is showing iTunes i tray to reload the ios is showing an error -1 can you help me

    No problem, glad to help!
    Update: my PC USB hub was connected to a USB 3 port, I connected the 30 pin cable directly to my PC, And the restore worked just fine. Restored phone from iCloud backup and seems to be working fine.

  • No WIFI after iOS 5.0.1 over-the-air update on original iPad

    No WIFI after iOS 5.0.1 over-the-air update on original iPad. I have reset the network settings,  power off the iPad, trying static IP and nothing, it's unable to join my wifi network. anybody with the same issue?

    Great!  Thanks, this works.
    I have an old Linksys WRT54G in it I can select WPA Personal and AES as algorithm--it works for me (though maybe just changing to anything works!  but I will not try anything different since I have spent already so much time with this problem.)  Again, thanks for the solution Juan.

Maybe you are looking for

  • Problem with Sales Set in ECC 6.0

    Hai Guys, I am having a problem on having a Sales Set. We have two company codes. I am creating the sales set by the following steps. 1. Create an article, (type: Sales set instead of single article) and in the Basic Data, click the components button

  • Cannot download iTunes 10.6.1 on Windows 7 64 bit

    I am trying to download iTunes 10.6.1 onto my Windows 7 64 bit PC and get the message that the installer has insufficient privileges to access this directory: C\ Program Data\Microsoft Windows\Start Menu\Programs\iTunes. The installation cannot conti

  • Digital Signatures for cProjects Approval

    Hi Folks, I am on cProjects 4.5 and from what I understand there are 2 options for this based on whether or not I check the "Signature of Approval with User Certificate" box in Project Type config. Unchecked - user is prompted for cProjects password

  • Color 1.0.4 update not working - vram issue?

    so i just updated Color via software update to 1.0.4 - i try to open it, and it's telling me that i need 124mb vram - ? Now color won't open at all. do i have any options of salvage? or do i have to re-install? ****...

  • Best Method to calculate Net requirement

    Hi Expers, can you suggest the best methods to calculate net requirement for FMCG products in APO Production and distribution planning. Best Regards, Anandharaj