Log Error Messages in the Text File using Flex

Hi,
I am using try/Catch block to catch exception and am trying to write these error messages in the text file.
I do not know how to achive such funcionality.
looking forward for your help in this regard. Please have a look on the code as pasted below:
private function onItemRollOver(evt : ListEvent) : void
                try
                         var s:String= evt.target.Participation;
                           var partRange:Number = evt.rowIndex;
                        if (partRange == 2)
                                dgCohorts.setStyle( "rollOverColor", "red" );
                        if (partRange == 7)
                            dgCohorts.setStyle( "rollOverColor", "green" );
                        dgCohorts.validateNow();
                   catch(e:Error)
                            var callLaterErrorEvent:DynamicEvent = new DynamicEvent("callLaterError");                        
                            callLaterErrorEvent.error = e;
                            systemManager.dispatchEvent(callLaterErrorEvent);
Thanks,
Vivek Jain

Hi,
I am using try/Catch block to catch exception and am trying to write these error messages in the text file.
I do not know how to achive such funcionality.
looking forward for your help in this regard. Please have a look on the code as pasted below:
private function onItemRollOver(evt : ListEvent) : void
                try
                         var s:String= evt.target.Participation;
                           var partRange:Number = evt.rowIndex;
                        if (partRange == 2)
                                dgCohorts.setStyle( "rollOverColor", "red" );
                        if (partRange == 7)
                            dgCohorts.setStyle( "rollOverColor", "green" );
                        dgCohorts.validateNow();
                   catch(e:Error)
                            var callLaterErrorEvent:DynamicEvent = new DynamicEvent("callLaterError");                        
                            callLaterErrorEvent.error = e;
                            systemManager.dispatchEvent(callLaterErrorEvent);
Thanks,
Vivek Jain

Similar Messages

  • I tried to sync my Macbook Pro photos in iPhoto with my iPod Touch.  I have done this numerous times, but today I got an error message saying the required file cannot be found.  At the same time all of my photos on my iPod vanished.  Can anyone help me?

    I tried to sync my Macbook Pro photos in iPhoto with my iPod Touch.  I have done this numerous times, but today I got an error message saying the required file cannot be found.  At the same time all of my photos on my iPod vanished.  Can anyone help me?

    Try deleting the photo cache from your computer and then re-try the photo sync - the location of the cache, and how to delete it, is on this page http://support.apple.com/kb/TS1314

  • I've been receiving an error message, "That the .itl file is locked, on a locked disc or you do not have write permission". Can someone tell me how to unlock the file or disc?

    I've been receiving an error message, "That the .itl file is locked, on a locked disc or you do not have write permission". Can someone tell me how to unlock the file or disc?

    theres no - in "itunes" its all one word
    try right clicking and running itunes as adminstrator or try on a different user account

  • Error in Downloading the Text file on Application Server

    Hi All,
              I am working on ECC6.0. I have written a program in whcih I am downloading the text file on
              application server in UTF-8 format. However when I am opening this file in Excel I am getting
              garbage value for some characters(as Excel does not support UTF-8 format). So now I
              want to download the data on application server in text file in non unicode format(Like ANSI or
              other non unicode format) which is supported by excel. When I am writing the code as
              OPEN DATASET DN_FILE FOR OUTPUT IN LEGACY TEXT MODE it is giving me dump saying
              CHARACTER CONVERSION FROM CODE PAGE '4102' to CODEPAGE '1100' NOT POSSIBLE.
              Same in case if I add the code OPEN DATASET DN_FILE FOR OUTPUT IN LEGACY TEXT
              MODE CODE PAGE '8000' is also giving dump.
              So please let me know how can I download the file in non unicode format ?
              Any help would be greatly appricated.
    Thanks & Regards
    Jitendra Gujarathi.

    OPEN DATASET l_filename FOR INPUT IN TEXT MODE  ENCODING NON-UNICODE IGNORING CONVERSION ERRORS.
    CHECK sy-subrc EQ 0.
      DO.
        CLEAR wa_file_content.
        READ DATASET l_filename INTO wa_file_content.
        IF sy-subrc EQ 0.
          APPEND wa_file_content TO it_file_content.
        ELSE.
          EXIT.
        ENDIF.
      ENDDO.
      CLOSE  DATASET l_filename.
      t_filedata[] = it_file_content[].
    can you use like this.

  • Getting error while running the XML file using XML Publisher Desktop

    Hi all,
    We have successfully loaded the XML file using XML Publisher Desktop. But when we preview the same using PDF format we are getting the following error.
    Font Dir: C:\Program Files\Oracle\XML Publisher Desktop\Template Builder for Word\fonts
    Run XDO Start
    RTFProcessor setLocale: en-us
    FOProcessor setData: C:\Documents and Settings\smanmadh\Desktop\ProductCompensationDT.xml
    FOProcessor setLocale: en-us
    java.lang.NullPointerException
         at oracle.apps.xdo.template.fo.area.PageNumber.formatString(PageNumber.java:104)
         at oracle.apps.xdo.template.fo.IDManager.registerId(IDManager.java:44)
         at oracle.apps.xdo.template.fo.area.AreaTree.registerLastPageJoinSeq(AreaTree.java:1106)
         at oracle.apps.xdo.template.fo.area.AreaTree.incrementJoinSequenceIndex(AreaTree.java:219)
         at oracle.apps.xdo.template.fo.area.AreaTree.registerLastPageDocument(AreaTree.java:1089)
         at oracle.apps.xdo.template.fo.area.AreaTree.forceOutput(AreaTree.java:471)
         at oracle.apps.xdo.template.fo.elements.FORoot.end(FORoot.java:58)
         at oracle.apps.xdo.template.fo.FOHandler.endElement(FOHandler.java:386)
         at oracle.xml.parser.v2.XMLContentHandler.endElement(XMLContentHandler.java:196)
         at oracle.xml.parser.v2.NonValidatingParser.parseElement(NonValidatingParser.java:1212)
         at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:301)
         at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:268)
         at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:149)
         at oracle.apps.xdo.template.fo.FOProcessingEngine.process(FOProcessingEngine.java:279)
         at oracle.apps.xdo.template.FOProcessor.generate(FOProcessor.java:1022)
         at RTF2PDF.runRTFto(RTF2PDF.java:626)
         at RTF2PDF.runXDO(RTF2PDF.java:460)
         at RTF2PDF.main(RTF2PDF.java:251)
    Thanks in Advance.
    Sudeep.

    This is BI related. You will get a quicker answer from the BI Publisher forum
    BI Publisher

  • Error while running the XML file using XML Publisher Desktop

    Hi All,
    We have successfully loaded the XML file using XML Publisher Desktop.But when we try to preview it using the PDF format we are getting the following error.
    Font Dir: C:\Program Files\Oracle\XML Publisher Desktop\Template Builder for Word\fonts
    Run XDO Start
    RTFProcessor setLocale: en-us
    FOProcessor setData: C:\Documents and Settings\smanmadh\Desktop\ProductCompensationDT.xml
    FOProcessor setLocale: en-us
    java.lang.NullPointerException
         at oracle.apps.xdo.template.fo.area.PageNumber.formatString(PageNumber.java:104)
         at oracle.apps.xdo.template.fo.IDManager.registerId(IDManager.java:44)
         at oracle.apps.xdo.template.fo.area.AreaTree.registerLastPageJoinSeq(AreaTree.java:1106)
         at oracle.apps.xdo.template.fo.area.AreaTree.incrementJoinSequenceIndex(AreaTree.java:219)
         at oracle.apps.xdo.template.fo.area.AreaTree.registerLastPageDocument(AreaTree.java:1089)
         at oracle.apps.xdo.template.fo.area.AreaTree.forceOutput(AreaTree.java:471)
         at oracle.apps.xdo.template.fo.elements.FORoot.end(FORoot.java:58)
         at oracle.apps.xdo.template.fo.FOHandler.endElement(FOHandler.java:386)
         at oracle.xml.parser.v2.XMLContentHandler.endElement(XMLContentHandler.java:196)
         at oracle.xml.parser.v2.NonValidatingParser.parseElement(NonValidatingParser.java:1212)
         at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:301)
         at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:268)
         at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:149)
         at oracle.apps.xdo.template.fo.FOProcessingEngine.process(FOProcessingEngine.java:279)
         at oracle.apps.xdo.template.FOProcessor.generate(FOProcessor.java:1022)
         at RTF2PDF.runRTFto(RTF2PDF.java:626)
         at RTF2PDF.runXDO(RTF2PDF.java:460)
         at RTF2PDF.main(RTF2PDF.java:251)
    Any pointers will be of great help.
    Thanks in Advance
    Sudeep.


    I had a similar error which when I searched, came up with this thread.
    My issue was resolved after I discovered that my RTF template was not really RTF. It was sill in MS Word DOC format. This was discovered by reviewing two templates in NOTEPAD. The MS-DOC files have a lot of "special" characters in them. My RTF was not really RTF.
    After doing a SAVE AS - RTF format, then the preview worked as expected.
    Just Sharing...
    --Tim                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Need to send the text file using webservice

    Hi,
    I want to send the text file with contains data through oracle pl/sql using webservice. How can i handle this program?
    Kindly share with your details.
    Thanks in advance,
    Maran

    user8732035 wrote:
    I want to send the text file with contains data through oracle pl/sql using webservice. How can i handle this program?Web services supply XML structured data. Not text files.
    PL/SQL supports web services (XML output) and web procedures (text and binary output).
    You need to clarify your requirements.

  • How do i split content from the text file using tab and spaces...?

    Hi.. Just want to ask help to all the experts. Im new in java and i have this problem on how to split the contents of the text file. ill show you the contents in order to let you see what i mean.
    FileName: COL.txt
    AcctNo AcctName Primary Secondary Status Opendate
    121244 IPI Company Noel Jose Active 12/05/2007
    As you can see the content i want to split it per column.. Please help me

    Jose_Noel wrote:
    Hi prometheuzz,
    What do you mean by one thread...?You created two threads* with the same question in it. That way, people might end up giving you an answer that has already been posted in your other thread: thus wasting that person's time.
    Just don't create multiple threads with the same question please.
    * a thread is a post here at the forum

  • Error while encrypting the xml file using asymmetric cipher...pls help

    i am encryption the xml file using asymmetric cyper....
    in one class , i am generating private key and public key using "RSA" algorithm..using 1024 byte initialization...
    it is generating properly...
    and after that in second class i am encrypting the xml file using "DESede" algorithm and i am using public key of above class..
    but i am getting exceptione :
    java.security.InvalidKeyException: Invalid key length: 162 bytes
    at com.sun.crypto.provider.DESedeCipher.engineGetKeySize(DashoA6275)
    at javax.crypto.Cipher.init(DashoA6275)
    at XmlEncryption.getEncryptedData(XmlEncryption.java:147)
    at XmlEncryption.encryptCompleteXmlFile(XmlEncryption.java:123)
    at demoXmlEncApp.simulateBookSellersEnd(demoXmlEncApp.java:72)
    at demoXmlEncApp.main(demoXmlEncApp.java:29)
    so, what is that ?
    i want to use RSA algo for key generatiion and DESede for cipher initialization .
    is there any site for where source code of xml file encryption using asymmetric cipher is available?
    pls, help me.....

    Sachin,
    What sabre150 is trying to explain to you, is that encrypting data (such as an XML file) is a 2-step process. In the first step, you generate a symmetric key (such as DES, 3DES, AES) and encrypt your file with this key (and the appropriate mode and padding).
    In order to ensure that your encrypted data cannot be decrypted by unauthorized individuals, you now need to protect the symmetric key. Encrypting your symmetric key with another symmetric key does not solve the problem, since you have a chain of symmetric keys that need to be encrypted into infinity.
    Cryptographers solve this problem by encrypting the symmetric key with an asymmetric key, such as as RSA. To perform this second step, you generate an RSA key-pair, encrypt the symmetric key you generated in step 1 with the Public key of the RSA key-pair, and give the recipient of the encrypted XML file, access to the Private key of the RSA key-pair as well as the encrypted symmetric key.
    The recipient, then uses the RSA Private key to decrypt the symmetric key first, and then uses the "plaintext" symmetric key to decrypt the XML file.
    What sabre150 was also attempting to explain to you, is the traditional way of transporting an encrypted "blob" that consists of data + symmetric key. With a modern key-management system, combining the two would be unnecessary.

  • Error message Deploying the sample HRapp using OBE

    I a novice to 9ias and I am using the OBE documents to get hands on on the Oracle 9ias. I tried to deploy the sample hrweb following the OBE document and encountered the error below. I need some help as to what to do next to correct this situation.
    On installation, I have the J2EE and webcache on one host and the infrastructure and database on another host.
    Here is the error message:
    Deployment failed: Nested exception Root Cause: Error loading web-app 'hrweb' at D:\Oracle9iAS\j2ee\home\applications\__hrapp\hrweb: Unknown assembly tag in file:/D:/Oracle9iAS/j2ee/home/applications/__hrapp/hrweb/: <ejb-local-ref>; nested exception is: java.lang.InstantiationException: Error loading web-app 'hrweb' at D:\Oracle9iAS\j2ee\home\applications\__hrapp\hrweb: Unknown assembly tag in file:/D:/Oracle9iAS/j2ee/home/applications/__hrapp/hrweb/: <ejb-local-ref>. Error loading web-app 'hrweb' at D:\Oracle9iAS\j2ee\home\applications\__hrapp\hrweb: Unknown assembly tag in file:/D:/Oracle9iAS/j2ee/home/applications/__hrapp/hrweb/: <ejb-local-ref>; nested exception is: java.lang.InstantiationException: Error loading web-app 'hrweb' at D:\Oracle9iAS\j2ee\home\applications\__hrapp\hrweb: Unknown assembly tag in file:/D:/Oracle9iAS/j2ee/home/applications/__hrapp/hrweb/: <ejb-local-ref>

    Hi,
    <ejb-local-ref> tag is used to reference an entity bean that has a local home and local interface. <ejb-local-ref> tag is supported in EJB 2.0 and later versions. Looking at the error message it appears that the container you are using does not support EJB 2.0.
    Which version of 9iAS are you using?
    Thanks

  • I have one contact that i have been texting for months. About 5 hours ago, when I send a text I get an error message that the text couldnt be sent.  However, when I send a picture with a text message, then it goes through to the contact.  Why am I getting

    I have one contact that I've been texting for months,  about 5 hours ago, I started receiving an error that the text was not sent.  However, if I text a picture and then text with the picture the message goes through.  Why am I getting this error?

    You can also try out few things >
    1) check if the ipod constantly appears in mycomputer section .
    - if it does try changing the drive letter of the ipod and try to format the ipod drive(Right click format)
    2) if its not comin up in mycomputer then.. there has to be problem with the USB drivers in your computer
    you can try
    http://docs.info.apple.com/article.html?artnum=304508
    The best way to check whether the ipod is faulty or the computer is creating the problem is,
    connect the ipod to a different computer which has itunes on it(If possible)

  • Error while loading the jar file using loadjava

    Hi,
    I'm trying to load a jar file in to a database through the loadjava utility. First time when i loaded a jar file it created few public synonyms with /'s. like /5b3d7f97_BeanInfoIndexer.
    Now i want to drop these synonyms before i reload the jar file with loadjava.
    If i use DROP PUBLIC SYNONYM /5b3d7f97_BeanInfoIndexer; it gives the following error...
    ERROR at line 1:
    ORA-00933: SQL command not properly ended
    I wonder how to drop these synonyms. I have to drop all these synonyms to freshly load the jar file.
    Thanks
    Shiva

    You can include the synonym names in double quotes in the drop synonym command. But it is not a good idea to drop the synonyms(which have been created by loadjava) using drop synonym command. Instead, you can use dropjava command which will automatically drop all the synonyms created by the loadjava command.

  • Search the text file using vbscript.

    Hi I have some data in my text file. Below is the content. Now I need to search the file whether it contains identityType as ApplicationPoolIdentity. Any help in vbscript???
     name:"example"
     queueLength:"1000"
     autoStart:"true"
     enable32BitAppOnWin64:"false"
     managedRuntimeVersion:"v2.0"
     managedRuntimeLoader:"webengine4.dll"
     enableConfigurationOverride:"true"
     managedPipelineMode:"Integrated"
     CLRConfigFile:""
     passAnonymousToken:"true"
     startMode:"OnDemand"
     [processModel]
       identityType:"ApplicationPoolIdentity"
       userName:""
       password:""
       loadUserProfile:"false"

    ok my solution is below,
    CONST ForReading = 1
    Dim File1
    Dim FileToRead
    Dim strLine
    Dim infoResult
    Dim strDir, objFile, returnvalue
    strDir = "C:\Scripts\"
    File1 = "sample.txt"
    FileToRead = strDir & File1
    Set objFSO = CreateObject("Scripting.FileSystemObject")
    Set objFile = objFSO.OpenTextFile(FileToRead, ForReading)
    Do Until objFile.AtEndOfStream
        strLine = objFile.ReadLine
            if instr(strLine, "identityType") <> 0 then
              if instr(strLine, "LocalSystem") <> 0 then
                    infoResult = "Found"
                    exit do
                end if
            else
                infoResult = "Not Found"
            end if
    Loop
    objFile.Close
     Wscript.Echo infoResult    
    Set objFSO = Nothing
    Set objFile = Nothing

  • I changed to a Sumsung S4. I deactivated my iphone.  When some iphones sent me text messages they get error messages.  The texts don't send.  Help?

    I switched from iphone 5 to Samsung S4.   I could not receive messages from iphones.  Learned I needed to deactivate imessaging.  I did.  Iphones give error messages now when sending messages to me,  and I don't get the messages.   Help!

    See this about all the steps to deactivate iMessage. http://support.apple.com/kb/TS5185
    The last step is to contact Apple Support if necessary.

  • Trying to read the text file via Flex FileStream.

    Hello,
    I am following the Flex Help and trying to read a text file.
    I have created project called test, and within test.mxml, I have
    created the <mx:script> tags and within I am pasting this
    code yet I get errors:
    What am I doing wrong? Please help.
    Please see the code:

    You cannot do all that complex assignment work outside of a
    function. Because of the way components are generated/compiled, the
    declared vars do not exist when called.
    Declare the vars in instance scope, but use an init()
    function to do the assignments.

Maybe you are looking for

  • Login settings will not update the local testing server files

    When uploading to web server from local testing server, changing login settings in the control panel does not update the local testing server Restrict Access to page files. Causing login on website not to function. It does however update the Connecti

  • Sender and receiver in va88

    Dear All, In va88, I have a settlement rule to settle from sales order to profit segment. i notice in both sender and receiver also debit. The title says Sender debits and Receiver debits. why? Thanks

  • Changing input with leading zeros

    Can anyone please help me with the following? If a user inputs an integer such as 23, I would like my program to read it as 00023 (always with 5 digits) before it sends it to the encodeZip method ( by the way the method encodeZip requires integer val

  • Can't add a photo to the addresscard in address book

    For some reason, photo's don't stick in new address cards anymore. When I drag a picture in, it shows the green ball plus but then when I release the mouse button a cloud appears and gone is the picture! Anybody any idea why? Thanks for any answer! G

  • Unlock phone by EMEI mobile bought overseas

    I bought my iPhone 4 in Spain but I moved to here a few months ago. I cant use it with an American carrier since I updated to the to IOS 5. I cant activate it so it is totally useless. My carrier in Spain told me I was eligeble to unlock by emei so I