Trace & Alert is not working

Dear Friends,
iam using snackr open source to evaluate and learn flex. i
know Flash3 & AIR very well. iam New to Flex.iam trying to use
trace or alert.show command in order to debug the coding. it is not
giving out put. even it is not going to that line. i read the help
file and searching for mm.cfg to edit and fix enabletrace =1.
pls help me..
Thanks and Regards,
Syed Abdul Rahim

Dear Mr.Rushme,
Thks for your reply, as u said, i creeated a folder called
c:\user\syed.rahim\mm.cfg, and run the following code, i want to
find the saving path of the file, i mean application storage
i.e. trace(docRoot.nativePath);
Alert.show(docRoot.nativePath);
in some case i want to use trace for debugging, like certain
function is getting fire or not? but the trace or alert is not
working, basically i want to display a message and debug..
code is:
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"
applicationComplete="handleApplicationComplete(event)"
frameRate="60"
visible="false"
autoExit="true">
<mx:Style source="styles/styles.css"/>
<mx:Script>
<![CDATA[
import ui.utils.UIUtils;
import model.logger.Logger;
import model.feeds.FeedModel;
import model.options.OptionsModel;
import ui.windows.SnackrMainWindow;
import mx.controls.Alert;
* Name of the database where we store all feeds and options.
This file
* is within the user's documents folder in the Snackr
subfolder.
static private const DB_FILE: String = "FeedDatabase.sql";
private var _mainWindow: SnackrMainWindow = null;
private function handleApplicationComplete(event: Event):
void {
// Create the Snackr data folder if it doesn't exist (inside
the user's
// document's folder).
var docRoot: File =
File.documentsDirectory.resolvePath(UIUtils.appName);
docRoot.createDirectory();
trace(docRoot.nativePath);
Alert.show(docRoot.nativePath);
// Initialize the logger. The logger writes to the file
Log.txt in the
// Snackr data folder. We keep the previous 3 log files
around.
var oldLogFile: File;
for (var i: int = 2; i >= 0; i--) {
oldLogFile = docRoot.resolvePath("Log" + (i == 0 ? "" :
String(i)) + ".txt");
if (oldLogFile.exists) {
try {
oldLogFile.moveTo(docRoot.resolvePath("Log" + String(i+1) +
".txt"), true);
catch (e: Error) {
// Too early to log this. Oh well. It just means that we
won't be preserving
// log files earlier than the current one.
trace("Can't back up log file " + oldLogFile.name);
Logger.instance.initialize(docRoot.resolvePath("Log.txt"));
Logger.instance.log("Snackr starting");
// Open the Snackr database file and initialize the models
from it.
var feedModel: FeedModel = null;
var optionsModel: OptionsModel = null;
var sqlConnection: SQLConnection = null;
var dbFile: File = docRoot.resolvePath(DB_FILE);
try {
sqlConnection = new SQLConnection();
sqlConnection.open(dbFile);
sqlConnection.compact();
optionsModel = new OptionsModel(sqlConnection);
feedModel = new FeedModel(sqlConnection);
catch (error: SQLError) {
Logger.instance.log("Couldn't read or create the database
file: " + error.details, Logger.SEVERITY_SERIOUS);
throw error;
_mainWindow = new SnackrMainWindow();
_mainWindow.initializeModels(sqlConnection, feedModel,
optionsModel);
var showInTaskbar: String =
optionsModel.getValue(OptionsModel.OPTION_SHOW_IN_TASKBAR);
if (showInTaskbar == "0") {
_mainWindow.type = "lightweight";
else {
_mainWindow.type = "normal";
_mainWindow.open();
]]>
</mx:Script>
</mx:Application>
Thanks and Regards,
Syed Abdul Rahim

Similar Messages

  • Iphone 4 Alerts Tones Not Working / Ringer Is WORKING KINDLY REPLY ME

    HI , PLEASE HELP ME I WANT TO FIX THIS ISSUE THAT I AM GETTING PLEASE HELP
    MY ISSUE IS IPHONE 4 ALERTS TONES NOT WORKING AND CALL RINGER IS WORKING.. PLEASE HELP ME!

    If the iPhone came from the US then it is locked to AT&T. To unlock an iPhone the original carrier is the only one who can unlock the iPhone and AT&T will not unlock iPhones. So there is not official way to unlock the iPhone 4.
    At this point there is no way to hack the iPhone 4 running 4.2.1 to unlock it either so the phone and messaging apps will never work. You basically have an iPod touch.

  • Alert is not working for a library

    Hi,
      Alert is not working for one library in a site collection only. For others it is working fine. So, we have taken the template of the library and created a new library and tested there, alerts are working fine also.
    So any idea what can be the issue?

    Hi
    Try troubleshooting using the link
    http://blogs.technet.com/b/steve_chen/archive/2009/11/20/alerts-in-sharepoint-troubleshooting-moss-wss.aspx
    Please remember to click 'Mark as Answer' on the answer if it helps you

  • Alert configuration Not working in RWB

    Hi,
       In RWB alertconfiguration is not working, showing the error
    <b>404 Not Found</b>". I gone through this thread
    Alert configuration or Alert Inbox-----404 Not Found  
    And my host name is full host name.
    In exchange profiles my port is 50100 (J2EE PORT)  (Not Changed)
    1. In SMICM when I changed to port to 50100 (J2EE) then alert configuration
    working, But My scenarios not working throwing error : System Error.
    <b>Error Category XI_J2EE_MESSAGING_SYSTEM
    Error Code HTTP_TRANSMISSION_ERROR</b>
    2. In SMICM when I changed to port to 8001 (ABAP Port) then Alert configuration not working (Error : 404 Not Found), but my scenarios were working fine.
    what would be the reason?
    thx in advance,
    Ansar.

    HI,
    If Error: 404 Not Found
    Description: The server has not found anything matching the Request-URI. No indication is given of whether the condition is temporary or permanent. The 410 (Gone) status code SHOULD be used if the server knows, through some internally configurable mechanism, that an old resource is permanently unavailable and has no forwarding address. This status code is commonly used when the server does not wish to reveal exactly why the request has been refused, or when no other response is applicable.
    Possible Tips:- for HTTP_RESP_STATUS_CODE_NOT_OK 404
    • 404 is an HTTP response code that indicates that the resource in question couldn't be found. Usually this is due to an incorrect URL, so it is better to cross check all URLs.
    Check pipeline URL in the SLD in the business system of the Integration Server For this go to SLD->Business System-><yourIntegrtaion Server>->Pipeline URL: It should be like this http://<host>:<port>/sap/xi/engine?type=entry Where host is the host name of the Integration Server and port is the HTTP(8xxx) port. To verify this in Integration Server you can do like this. Go to SXMB_ADM->Integration Engine Configuration->Choose Edit from Menu -> Change Global Configuration Data to switch to change mode. Then select System Landscape - Load Configuration. (This is not required always)
    • Check that the port really is the ICM HTTP Port and not the J2EE port i.e SMICM then menu GOTO --> SERVICES and check the port number for HTTP. It should be HTTP port
    • If the error is Page cannot be displayed, cannot find server in https configurations Check and correct the SSL configuration for the ABAP and the J2EE side of the system
    • If the error is because of integration server when using Proxy communications then check these. i.e SXMB_ADM->Integration Engine Configuration->Corresponding Integration Server enrty should be dest://<Http Integration server-Destination> Where < Http Integration server -Destination > is the RFC destination (SM59) of type HTTP connection (type H) to the Integration Server. In this case, host name, port, and path prefix are saved in the RFC destination
    Also see the below links
    /people/michal.krawczyk2/blog/2005/09/09/xi-alerts--troubleshooting-guide
    http://help.sap.com/saphelp_nw04/helpdata/en/3f/81023cfa699508e10000000a11402f/content.htm
    Regards
    Chilla

  • Ical alerts are not working on Lion

    I've got a problem with the new ical on Lion: alerts are not working. Any clues?
    (The "turn off all alerts" is unchecked )

    Same problem, alerts are not being triggered. I am getting fast and perfect syncronizing between iCal, MobileMe Cal, and iPhone. But alerts are not happening consistantly.
    Unreliable notification is a big problem.
    I looked in my user preferences as noted by "xbarn" but there's no iCal login item. Can't imagine that iCal would need to be running for events to activate, since they are syncing correctly without iCal open.

  • Alerts are not working for Site collections in a content database

    Hi,
    We have been into a strange issue that alerts are not working for site collections from a particular content database. When user subscribed for the alerts, they are getting mail about their subscription but not after that for any new items/documents added
    or changes happen in the list/document library.
    We have tried with Immediate as well as scheduled alerts both are not working.
    FYI, Alerts for all other site collections from different content database for the same web application are working without any issues.
    Any help would be appreciated.
    Thanks
    Ramkumar

    Looks like an Timer job Issue for your web application. Can you please check if these jobs are enabled and check error log for the alerts Timer jobs .Check whether the "Immediate Alerts" job is enabled for your web application.
    job-immediate-alerts
    job-daily-alerts
    job-weekly-alerts
    Please check this wiki -
    Troubleshooting Steps for SharePoint Alert Email Does Not Go Out
    Thanks
    Ganesh Jat [My Blog |
    LinkedIn | Twitter ]
    Please click 'Mark As Answer' if a post solves your problem or 'Vote As Helpful' if it was useful.

  • Trace("helo world"); not working

    Hi Experts,
    i am new in Flex world and just wrote my first action script program which just ouput Helo World but it doesn't give me anything.
    when i run my program, it simply load empty browser but doesn't show anything on console
    package {
    import flash.display.Sprite;
    import flash.events.*;
        import flash.net.*;
    public class ReblogrAPI
    public function ReblogrAPI()
    trace("Helo World");

    thanks,
    debuger was not working because of flash player.
    i reinstalled flex and now i got my first program running.
    Date: Thu, 4 Jun 2009 16:15:40 -0600
    From: [email protected]
    To: [email protected]
    Subject: trace("helo world"); not working
    Launch in Debug mode.
    >

  • Iphone 4 sms,lock sound,charge sound,alert sound not working KINDLY HELPP!

    iphone 4 sms,lock sound,charge sound,alert sound not working KINDLY HELPP!

    Why are you shouting?
    All caps indicates shouting, is considered rude and is difficult to read.
    There is no need to be rude to those trying to help.
    Good luck

  • IPhone 6 plus alert sounds not working/only vibration works

    Sound is not working when I get text messages or other alerts and notifications. Phone only vibrates. I have already checked settings. Even keyboard clicks are not making a noise and under settings it is set to make a noise when clicked

    Hey LeighannM,
    Thanks for the question. This may sound simple, but is your Ring/Silent switch toggled?
    Ring/Silent switch - iPhone
    http://help.apple.com/iphone/8/#/iph3bd01398
    If not, then let’s try restarting your device:
    Restart or reset your iPhone, iPad, or iPod touch - Apple Support
    http://support.apple.com/en-us/HT201559
    Thanks,
    Matt M.

  • Alert Rule - not working. Wild Card character issue

    Hi All,
           I have a requirement where I need to trigger alerts for mapping failures
    of all the interfaces whose namespace is urn:abc.com:odna* or urn:abc.com.odna*.     (in the first instance, there is dot before odna and int he second instance, a colon before odna )
    So to suit both the cases, I gave urn:abc.comodna in the Alert Rule.
    It worked before. But now its not working.
    Then when i changed it to urn:abc.com:odna* it works again. i really dont understand how it worked before and why it fails now.
    What is the reason for the unpredicatable behaviour of WildCard Character based Alert Rules?
    Should Wild Card Characters be avoided completely?

    Hey
    Just create two separate alert rules for the same alert category
    one for urn:abc.com:odna* and another for urn:abc.com.odna*.
    but before that please make sure that "Suppress multiple alerts of this rule" box is unchecked.
    Also please check SAP Note 913858
    Thanx
    Aamir
    Edited by: Aamir Suhail on May 20, 2009 9:16 AM

  • ALERT code not working, need help.

    Hello Everyone,
         i'm working in forms 10.1.2.0.2 and i have written some code to call an Alert when the user puts in an invalid number, however, the alert isn't poping up and the cursor will not move out of the field.  This is on a post-text script.
    basic:
    declare
      al_button number;
    al_id alert;
    begin
    i select 3 columns from a table based on input by the user.
    if the input is valid, then the form is populated.  This works no problem.
    however, when the following is not true, the cursor will not leave the field, but the alert will not pop up either.
    if v_nsn = nvl(t_rnsn, 0), then
    select the values and put them in the form.
    else  -- this is not working
    al_id := find_alert ('BAD_NSN_ALERT34');
    if Id_null(al_id) then
    message ('THE ALERT NAMED BAD_NSN_ALERT34 DOES NOT EXIST');
    RAISE FORM_TRIGGER_FAILURE;
    else
    al_button := SHOW_ALERT(al_id);
    if al_button = alert_button1 then
         ...DO SOMETHING;
    else al_button := show_alert (al_id);
    if al_button = alert_button2 then
    do something;
    end if;
    end if;
    end if;
    end if;
    end;

    Why are you using a Post-Text-Item trigger instead of a When-Validate-Item trigger?  How is your user leaving the field that this trigger is attached to?  If the user is mouse-clicking to leave the field - the Post-Text-Item trigger will not fire.  Take a look at the "Post-Text-Item trigger Restrictions" listed in the Forms Help system for this and other restrictions on using the Post-Text-Item trigger.
    Craig...

  • Alert sounds not working in iPad

    My iPad does not play alert sounds and line2 does not send push notifications with sound until i open the app.  Maybe the app but does anyone else have this issue?  I have gone to settings/generalsound and set the "Ringer and Alerts" section sound to wide open and I turned the "Change with Buttons" to off.  Does anyone else have this issue.  I was not really looking forward to restoring a back up copy but I might have to.

    I have found the answer to my own problem...listed here in this discussion: https://discussions.apple.com/thread/3008964?start=0&tstart=0 it has to do with the lock mute/rotation button.  When the selector switch is on lock rotation alerts will not play sound.  Also sounds in apps and sometimes video will not work unless you are listening through head phones.  This bug has existed for a while according to the post in the link. 

  • JavaScript alert() is not working in mozilla 19.0.2.Why?

    I have created a .aspx page in it i have added gew javascript function containing alert(). But niether the functions nor the alerts are invoking.why? i have created a javascript function on keypress event as:
    function isSpaceKey(evt) {
    // debugger;
    var charCode = (evt.which) ? evt.which : event.keyCode
    if ((charCode < 47 || charCode > 57) && charCode != 8) {
    alert("Enter Numeral Values only!");
    return false;
    return true;
    and added validation summary in .aspx page enabling its message box if user validation fails . But it is also not working. Before using Firefox i was using IE on which it was working fine. What is the problem? Thanks.

    See:
    *https://developer.mozilla.org/en-US/docs/Web/API/event.which

  • Alerts do not work on one site collection - Alerts have EventTypeBitmask of -1 - do you think this is the problem

    I have a farm with approx 200 site collections in it. 
    We did recently move sites from one farm to another.  All other site collection alerts work,  Yet I have one site collection that just does not send alerts.
    Things I have done to attempt to get them to work:
    1. Turn Alerts off and back on
    stsadm -o setproperty -url "sitecollectionurl" -pn Alerts-enabled -pv False
    stsadm -o setproperty -url "sitecollectionurl" -pn Alerts-enabled -pv True
    2. Update the alerts template
    stsadm -o updatealerttemplates -url "sitecollectionurl" -f "c:\program files\path to \AlertTemplates.xml
    3. Update all the siteurl properties of all alerts to the correct url
    4. update all the mobilurl propties of all alerts to the correct url
    5. updated all the Alert.Titles
    None of these have worked for me to get the alerts to start working
    The only thing I see different is this EventTypeBitMask property.
    Does anyone have any other suggestions to get alerts working on this site collection?
    Thank you for any help
    [email protected]

    Hi,
    Whether all of the user can’t receive alert email in this site collection.
    Check whether the "Immediate Alerts" time job is enabled for your web application.
    Try to do restart SharePoint Timer services and IISReset.
    Here are two articles about troubleshooting SharePoint alerts not working, you can use as a reference:
    http://www.sharepointdiary.com/2012/02/sharepoint-alerts-not-working-troubleshooting-checklist.html#ixzz2aSvOz3hB
    http://blogs.technet.com/b/steve_chen/archive/2009/11/20/alerts-in-sharepoint-troubleshooting-moss-wss.aspx
    Besides, here is a similar post, you can take a look at:
    https://social.technet.microsoft.com/Forums/en-US/895a5612-9237-4d66-8cb3-37e7eefe8dbb/alerts-not-working-for-a-single-site-collection?forum=sharepointadminlegacy
    Best Regards,
    Lisa Chen
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Lisa Chen
    TechNet Community Support

  • Email alert/notification not working with Exchange/Activesync

    Hello, I have an Exchange Active sync setup that is otherwise working just fine. Up until this morning, I had the standard audible and vibrate alert when an email was 'pushed' to the iPhone (when locked). This stopped working. I now have to go into the email app, it seems to then 'check' for emails, and only then I receive an alert. I should mention that I upgraded to 2.1 this morning so this could be related. Is it possible that 'push' is not working properly? All my other 'push' settings are the same, and I deleted my account and re-established it to verify I did not miss anything. Thanks in advance.

    I am experiencing the same issue. I logged a support incident with Apple; the tech I spoke to added an Exchange acocunt to his iPhone and had the same problem - no "push". He promised to get back to me tomorrow with hopefully a solution. I will keep you posted.

Maybe you are looking for

  • Resetting a password is there a way?

    A friend of mine lost all his original disks for his Macbook. My question is: Is there a way to rest his login password in single user mode without causing more harm or anyway other way of reseting the password without the disks. He is not worried ab

  • HTML5 course does not play in a browser CP8

    I have published it several times before, now I've got following errors from a console: CPM.js:1 SyntaxError: Expected an identifier but found 'window' instead index.html:17 ReferenceError: Can't find variable: cp Does anybody knows what does it mean

  • What is the excel button in alv grid supposed to do?

    Hi All. In the ALV reports, we see an Excel button too. But on pressing it, a blank excel sheet opens, and there is no way to go out of it. We have to exit the report. What is it supposed to do? Thanks everybody !

  • Z key not working

    HI folks, I'm having a problem with my Z key on my laptop. It works when i use command+Z, for upper case, or undo fucntion (thank god), but if i just press "z" by itself, it doesnt work. No lower case z is possible Any ideas anyone??? thanks S7

  • Help: Custom Encoder + Netbeans 5.5.1 enterp. pack

    Help me, please: All points are finished in the Installation Guide for installing CustomEncoder component (link for guide - http://www.glassfishwiki.org/jbiwiki/Wiki.jsp?page=EncoderInstallation chapter "Installation Process for NetBeans IDE 5.5.1")