Error 1067 in AIR?

I'm trying to make a Flash game with a simple socket server, and I have this package imported into the Flash document:
package
    import flash.display.Sprite;
    import flash.events.Event;
    import flash.events.IOErrorEvent;
    import flash.events.ProgressEvent;
    import flash.events.ServerSocketConnectEvent;
    import flash.net.ServerSocket;
    import flash.net.Socket;
    public class TCP extends Sprite
        private var serverSocket:ServerSocket;
        private var clientSockets:Array = new Array();
        public function TCP()
            try
                // Create the server socket
                serverSocket = new ServerSocket();
                // Add the event listener
                serverSocket.addEventListener( Event.CONNECT, connectHandler );
                serverSocket.addEventListener( Event.CLOSE, onClose );
                // Bind to local port 8087
                serverSocket.bind( 8087, "127.0.0.1" );
                // Listen for connections
                serverSocket.listen();
                trace( "Listening on " + serverSocket.localPort );
            catch(e:SecurityError)
                trace(e);
        public function connectHandler(event:ServerSocketConnectEvent):void
            //Thesocket is provided by the event object
            var socket:Socket = event.socket as Socket;
            clientSockets.push( socket );
            socket.addEventListener( ProgressEvent.SOCKET_DATA, socketDataHandler);
            socket.addEventListener( Event.CLOSE, onClientClose );
            socket.addEventListener( IOErrorEvent.IO_ERROR, onIOError );
            //Send a connect message
            socket.writeUTFBytes("Connected.");
            socket.flush();
            trace( "Sending connect message" );
        public function socketDataHandler(event:ProgressEvent):void
            var socket:Socket = event.target as Socket
            //Read the message from the socket
            var message:String = socket.readUTFBytes( socket.bytesAvailable );
            trace( "Received: " + message);
            // Echo the received message back to the sender
            message = "Echo -- " + message;
            socket.writeUTFBytes( message );
            socket.flush();
            trace( "Sending: " + message );
        private function onClientClose( event:Event ):void
            trace( "Connection to client closed." );
            //Should also remove from clientSockets array...
        private function onIOError( errorEvent:IOErrorEvent ):void
            trace( "IOError: " + errorEvent.text );
        private function onClose( event:Event ):void
            trace( "Server socket closed by OS." );
However, when I try to run the SWF, I get this:
1067: Implicit coercion of a value of type Class to an unrelated type Function.
This is what is in the FLA:
import TCP;
addEventListener(Event.ENTER_FRAME, TCP);
The error shows up on the addEventListener. I have the publish settings in the FLA set to AIR 2.6. Why? Because when I have it set to Flash Player 10.2, I get this error:
1046: Type was not found or was not a compile-time constant: ServerSocketConnectEvent.
The ServerSocketConnectEvent is in the "TCP" package. I switched the publish settings to AIR because after doing a quick Google search, ServerSocketConnectEvent is apparently strictly meant for AIR. So that means switching the publish settings to AIR was the correct thing to do... right? Unless I'm getting something horribly wrong here...
But basically, when it's set to Flash Player, it imports the package and TCP eventlistener just fine, but it screws up at the ServerSocketConnectEvent. So when I switch to AIR, I get that weird 1067 error at the addEventListener... is there something wrong with the package? I got it straight off of an example Adobe had, I couldn't imagine something being improperly coded... is there something I'm missing? Any help would be greatly appreciated, thanks.

I've tried importing an example class as well, with literally no lines of code in it other than:
package  {
    public class example {
        public function example() {
And then this is in the FLA:
import example;
addEventListener(Event.ENTER_FRAME, example);
And even with something as simple as that, I get the same error. So yes I would think you're right, but what would I do to fix this? Change the names of the function and class to unique ones? Change the name of the package itself? If so could I get some example? Because I'm a total noob when it comes to class importing and such... and again like I said, when I'm publishing with Flash Player it returns no errors as far as the importing goes, I'm just curious as to why it would be different when using AIR...

Similar Messages

  • Error 1067: when trying to update Adobe Acrobat 9 Pro

    I have Adobe Acrobat 9 Pro and have been using it for over 3 years. I Changed computers and uninstalled it from my first and then reinstalled it in my new, but have run into a problem that I cannot find an answer to, nor can I get any help from Adobe.
    I will be notified that there are updates available and I will select yes to update the program, but after 20-30 second, a new window will pop up stating:
    Update Failed
    The process terminated unexpectedly.
    Error: 1067
    Details   (http://helpx.adobe.com/acrobat/kb/update-errors-acrobat-reader-windows.html)
    From there, I will click on the Details link and be sent to an Adobe page telling me:
    Try downloading Reader directly from this page.
    This link sends me to a page to download the latest version of Adobe Reader (http://get.adobe.com/reader/direct/), so, I will make all of the selections, download it, install it, restart my computer, but when I open Acrobat 9 Pro and try to run the update again, nothing changes and I receive the same error message.
    Now, I go to try and get some help from Adobe, but am just sent here to see if I can find out any other information because they "no longer" help with Acrobat 9 Pro(?).
    Does anyone have any answer on what I can do to fix this or why this is happening? I've never had any problems with this program before. It just all started when I changed computers, and this one is a brand new computer, so no bugs or anything. I installed Photoshop CS5, Illustrator CS5 and InDesign CS5 without any problems and they all updated without a problem.
    I'm not sure how important the updating really is, but it makes me feel better, knowing that any changes or problems with the program can get "fixed" with these updates.
    Thank You,
    Sean

    Not that it is going to ease the testing of your patience at all to suggest you try somewhere else, but there is a forum dedicated to Acrobat Installation and Update Issues that might have some info or people ready and able to help you:
    http://forums.adobe.com/community/acrobat/installation_and_update_installation?view=discus sions

  • Apple Mobile Device service is not started error 1067

    Apple Mobile Device service is not started error 1067 in Windows 7.

    Thanks Ryan Sensei. I followed your link. Though I didn't have any Megaupload software installed on my computer, I saw a related article on http://senseiphone.com/fix-apple-mobile-device-not-started_itunes-0315129/ which was my actual problem and fixed it perfectly. 

  • Error:1067 - Implicit coercion of a value of type QName to an unrelated type QName

    hi,
    I'm new in flex and my english not good. I'll try to explain
    my problem :(
    I have an application mxml and a component mxml. I imported a
    wsdl from .net webservice.
    In main mxml I added:
    <mx:Application .....
    xmlns:webservices="generated.webservices.*"/>
    and
    <webservices:xService id="m_service"/>
    there is no problem for this. But when I added into component
    mxml like this:
    <mx:Canvas.....
    xmlns:webservices2="generated.webservices.*"/>
    and
    <webservices2:xService id="m_service2"/>
    I'm getting the following error:
    error line sample: (and 633 similar lines in
    generated.webservices)
    responseMessage.wrappedQName = new QName("
    http://tempuri.org/","GetMemberListResponse");
    error:
    1067: Implicit coercion of a value of type QName to an
    unrelated type QName
    When I removed the <webservices2:xService
    id="m_service2"/> line from component mxml, I'm not getting an
    error.
    Flex 3.0 - sdk 4.0
    Thanx for your helps

    thanx your answer,
    I changed (like this:[WebService(Namespace = "
    http://Info.WebService/MyInfoService"))
    but it doesn't work. I still have same problem.
    It's really strange problem. When I used in application mxml,
    it's working. But when I used in component mxml, I'm getting error.
    I tested the web servise in other test application mxml with
    following code: (it's working excellent)
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="absolute" xmlns:webservices="generated.webservices.*"
    creationComplete="test12()">
    <mx:Script>
    <![CDATA[
    import mx.rpc.AsyncToken;
    private function test12():void
    m_service12.addgetFuelList_header(GetAuthHeader());
    m_service12.getFuelList();
    ]]>
    </mx:Script>
    <mx:Script source="***/ServiceAuthHeaderGetter.as"/>
    <webservices:TankInfoService id="m_service12"/>
    <mx:DataGrid
    dataProvider="{m_service12.getFuelList_lastResult}">
    </mx:DataGrid>
    </mx:Application>
    And finally I closed "Enable strict type checking" from
    project properties and the errors are disappeared.
    But now I got new problems with webservice :)
    TypeError: Error #1009: Cannot access a property or method of
    a null object reference.
    I guess <webservices:TankInfoService id="m_service"/>
    is null.
    But why?
    in component mxml
    I added xmlns:webservices="generated.webservices.*" namespace
    and
    <webservices:TankInfoService id="m_service"/>
    my code is:
    m_service.addgetMemberList_header(GetAuthHeader());
    m_service.getMemberByUserPassword(this.txtUser.text,
    this.txtPassword.text);
    the error:
    TypeError: Error #1009: Cannot access a property or method
    of a null object reference.
    Any ideas???

  • Could not start the hyperion workspace-web application Error 1067

    Hi,
    I have installed hyperion from scratch in a distributed environment...everything was working fine.......i.e. shared services, workspace, essbase, sql server, and hfm. I was able to logon and navigate different options in the hyperion products...but essbase stopped working when I re-started all four servers ....?
    (1) When I restarted all four servers and stopped and restarted all hyperion services as per giving sequence then everything works fine but essbase EAS console and workspace web console...i was getting error message " could not connect to administration server" whenever i try to connect EAS console to essbase then I went to services there I saw workspace agent and workspace web application service is down.
    (2) as soon as I started those both services then my shared services automatically stopped but I was able to logon in Essbase console and workspace console but my shared services are down...
    (3) as soon as I start shared service they started but my workspace agent and workspace web application automatically stopped...and when I try to start again workspace web application then I get this error "[ Could not start the hyperion workspace-web application services on local computer. Error 1067: the process terminated unexpectedly]"
    I have been searching online and googling but have a hard luck to get some best solution for this...can some one help me or guide me to walk through with this issue...
    Thank you very much in advance ...
    Regards,
    Safi

    I solved this issue...It was with Hyperion Services those were stop responding some how.....but I stopped each service and restarted then those started working again...
    Regards,
    Safi

  • Regarding Essbase Server start up error 1067

    Hi frnds please help me out in this aurgent issue
    Iam trying to start the essbase server iam ending up with fallowing error
    ERROR:1067
    Description:Could not start HYP S9 BI+ analytic services 9.3.1 Essbase service on local computer. Process terminated unexpectedly
    Essbase logs:
    [Tue May 05 13:57:21 2009]Local/ESSBASE0///Info(1051286)
    License information retrieved.
    [Tue May 05 13:58:13 2009]Local/ESSBASE0///Error(1051223)
    Single Sign On function call [css_init] failed with error [Native Directory is not reachable. ]
    [Tue May 05 13:58:13 2009]Local/ESSBASE0///Info(1051198)
    Single Sign-On Initialization Failed !
    [Tue May 05 13:58:13 2009]Local/ESSBASE0///Info(1051232)
    Using English_UnitedStates.Latin1@Binary as the Essbase Locale
    [Tue May 05 13:58:13 2009]Local/ESSBASE0///Error(1051527)
    In Shared Services Security mode it is not possible to start Analytic Services when single sign on initialization fails.
    Thanks,
    KRK

    Hi Mint,
    Hyperion is installed before and this is the DEV box.
    Here shared services are installed on this box but iam unable to see it in my services and iam unable to find shared services console.
    Its not configured to analytic server.
    So to configure it with shared services what are the steps to be taken.
    Thanks,
    KRK
    Edited by: user10305488 on May 6, 2009 11:49 AM
    Edited by: user10305488 on May 6, 2009 1:06 PM

  • Error 1067: When Starting HTTP Server

    Hi all
    I am getting "Error 1067: The Process Terminated Unexpectedly" when I try to start HTTP Server service.
    Any ideas?
    null

    below are the entries from oracle_apache.conf
    Which one would u like me to delete in order to start my apache.exe.
    include "E:\oracle\ora90\sqlplus\admin\isqlplus.conf"
    include "E:\oracle\ora90\xdk\admin\xml.conf"
    include "E:\oracle\ora90\Apache\modose\conf\ose.conf"
    include "E:\oracle\ora90\Apache\modplsql\cfg\plsql.conf"
    include "E:\oracle\ora90\Apache\jsp\conf\ojsp.conf"
    # Advanced Queuing - AQ XML
    include "E:\oracle\ora90\rdbms\demo\aqxml.conf"
    # Oracle BC4J
    include E:\oracle\ora90\BC4J\bc4j.conf
    include "E:\oracle\ora90/oem_webstage/oem.conf"
    # Advanced Queuing - AQ XML
    include "E:\oracle\ora90\rdbms\demo\aqxml.conf"
    #

  • Error 1067 : The process terminated unexpectedely

    Hi Everyone,
    I'm getting the error when i am starting the Oracle BI Server services. The error is as below : Error 1067 : The process terminated unexpectedly.
    On my machine OBI EE was installed and it was running successfully till today. But now it is giving me the above error. Please guide me as i'm new to this application.
    Regards
    Brijesh.

    Do check if ur NQS config file is updated properly with the repository name .

  • Apache http server won't run - error 1067 - after installing forms

    Hi, I succesfully installed the 9i on a Windows XP machine. I included the Apache HTTP server in the install. It all worked fine. Then I installed the Oracle development suite (rapid application development selection), and since cannot get the Apache server to run. It gives error 1067. On issueing "F:\oracle\ora90\Apache\Apache>apache.exe start -k" I get the following error: "Syntax error on line 14 of F:\oracle\ora90\rdbms\demo\aqxml.conf: Invalid command 'ApJServGroupMount', perhaps mis-spelled or defined by a module not included in the server configuration".
    Any ideas?? I amnew to both Oracle and Apache. Thanks for any help offered.

    did you install the development suite on a different Oracle home? In case it is on its own oracle home, it happens that the new install overwrites the PATH environment variable and sets the path of the new oracle home prior to the previously installed oracle home, this could affect old oracle home, since it will be looking for libraries and executables at the wrong OH. Change back the PATH environment variable, so the old OH is referred first.
    Start once more the oracle http server, first by means of the windows service, and verify the httpd.pid file doesn't exist prior to attempt restarting it.
    ~ Madrid

  • Did you get error 1067 when updating Reader?

    If you got update error 1067 when updating Reader, I'd like to hear more so we can find a solution.
    What OS are you using and what version (such as Window XP SP2)?
    What version of Reader do you have?
    What was the error message you got?
    How much disk space do you have available?
    How much memory (RAM) is on your system?
    I recommend you try installing again using the direct download link noted in this document under "Try a different download link":
    http://kb2.adobe.com/cps/836/cpsid_83641.html#main_Try_a_different_download_link
    Please let me know if this helps. We haven't been able to reproduce this error.
    Thanks so much!

    I just worked through this error on my Dad's computer.  He has XP Home SP 3, Adobe Acrobat 4 and Reader 9.4.7 were already installed. He has been getting to 1067 error for some time and just clicking through it.  I manually un-installed Acrobat 4,  but left the shared files in web/common alone.  I did not touch Reader 9.4.7. I downloaded the alternate installer for Adobe 10.1.2 for English and ran it.  It did complain, eventually, about 9.4.7 still having a file in use, but I'd left the previous dialog from the 9.4.7 updater failure open.  I closed that 9.4.7 failure dialog and hit 'retry', and the installer proceeded onward and seems to have completed successfully.
    This machine has 1 gig of RAM and approx 4G of free disk space on C:. 

  • Error while installign AIR Application (invalid package signature errorID=5022)

    Hi All,
    I am new to Adobe AIR and facing error while Installing AIR application. This specially happens when in include a folder named "htmls" in the assets directory in my project.
    This folder have lots of html files and others folders. These file names have some special characters as well like ". & - _".
    However I can install the Application when I exclude this folder and everything works fine. Not able to find out the exact problem.
    Looking forward for help !!
    Log contents:
    .airappinstall
    failed while unpackaging: [ErrorEvent type="error" bubbles=false cancelable=false eventPhase=2 text="invalid package signature" errorID=5022]
    starting cleanup of temporary files
    application installer exiting
    .airinstall
    App installer failed; exit code 7
    begin quitting

    You may have found a bug in the AIR installer or packager. Given that the signature is an XML file, the "&" character seems the most likely culprit.
    The only short-term workaround is to identify which characters cause the problem and avoid using it.
    You should avoid the following characters in any case, since these cannot be used in file names on all platforms:
    Character            Hexcode
    various     0x00 - x1F
    *           x2A
    "           x22
    :           x3A
    >           x3C
    <           x3E
    ?           x3F
    \           x5C
    |           x7C

  • I am getting an installation error for Adobe AIR

    I am getting an installation error for Adobe AIR when I try to update Pandora and it will not allow Pandora to update to the latest version. I have gotten this same msg when I tried to updaqte a program that uses Microsoft server. The error msg says see author.

    Hi ricky,
    I would use highlight execution (light bulb on LabVIEW toolbar) to see exactly what AI Single Scan VI is causing the error. You could also use breakpoints on each wire right before the AI Single Scan VI is called so that you can turn highlight execution on to see if the call generates an error.
    Another suggestion is to create a new VI and copy and paste all the VIs from your current VI to this new VI. This might correct a problem if the VI is corrupt.
    Finally, you could use the AI Config, AI Start, AI Read VIs instead of the AI Single Scan. I doubt there is something wrong with the VI, it is morelikely a corrupt VI. Recreating the VI will morelikely fix this problem.
    Anyway, hope that helps. Have a good day.
    Ron

  • Error 1067 while starting oracle css service in XP

    Error 1067 while starting oracle css service in XP

    Hi all,
    I have installed Oracle10g in windows xp ...
    I am unable to connect from my application . On viewing the services, oracleCSService is not yet started eventhough it is automatic . While manually starting it
    its showing an error
    "Could not start the oracleCSService on Local Computer
    Error 1067: Process terminated Unexpectedly...."
    I hope somebody can help me on this !!
    Thanks

  • SAPRouter service is not starting Error:1067

         Hi All,
    I Installed a Sap Router on windows2008R2 with SNC,
    For installation i followed all the steps shown in below link
    SAProuter via SNC - Basis Corner - SCN Wiki  But when i am trying to  start the SAProuter service in the services it is not starting.
    I tried to start the SAPRouter from the command prompt then it is working fine and i checked the OSS1 connection also it's working fine.
    Error showing while starting the router service is :
    Error 1067:the process terminated unexpectedly
    and i checked the log in Event Viewer also it is saying as :
    The description for Event ID 1 from source SAPRouter cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.
    Please give your valuable suggestion to overcome the error.
    Thanks&Regards,
    Praveen.

    This sounds like the application and not networking. Did you download the right version for your OS?
    2008r2 is only 64bit I believe, looking at the download site..you got 3 options..you got the right one..
    file is saprouter_617-20010469.sar right?
    I guess if it was 32 bit, server would complain during installation.
    take a look at this http://scn.sap.com/thread/768187
    100% sure about your system variable?

  • Oracle 10g for Windows installation - Error 1067

    Hello Folks
    I am trying to install Oracle 10g for Windows on my WIndows 7 Ultimate OS. Everything went fine until I rebooted and tried to run the *SQL Plus. ALthough the Listener as well as the Oracle Servide shoudl automatically start, but for some reason..they didn't. As a result, I went into the Services and tried to manually run them but to my disappointment getting the folowing error:
    Windows could not start the OracleServiceORADB1 service on local computer.
    Error 1067: The process terminated unexpetedly.
    Any idea what went wrong..and how should I get this right?
    Thanks

    Pl identify the exact version of "10g" that was installed.
    The only version that is supported is 10.2.0.5 - see http://download.oracle.com/docs/cd/B19306_01/relnotes.102/b14264/toc.htm#CIHCFAGA
    Srini

Maybe you are looking for

  • Understanding report need backup recovery window ..

    Hello, I have a big database which backed up within several days at night time. The retention policy is "recovery window of 3 days". I've tried to analyze the results of report need backup;But I noticed than this command return just the list of dataf

  • How to log Synchornous Messages in XI

    Hi, how to log Synchornous Messages in XI ?

  • New shuffle will not fully charge. green light never comes on

    can leave my shuffle docked all day, never fully charges till the green light comes on. only amber light. its not my computer or usb cable or my settings as my sons nano charges just fine thru the usb. this shuffle is 5 days old. [Edited by host.]

  • Need to download license key,Authorization error!

    Hi, Background: We had taken 1 year Netweaver subscription which expired in november and later on, we renewed it for next year. Problem:  We have to download the license key form SAP market place. But after login, when I click on "Request permanent l

  • 2 SSID's in AP1121G

    Is it possible to assign to different SSID's on an 1121AP? I would like to have both SSID's apply to the local subnet. However, one SSID would use one WEP key, while the secondary SSID would use a different WEP key. I've configured both SSID's in the