Console not showing trace statement output

Hello,
I have set up Flash Builder 4.6 for the first time for an ActionScript project. All good so far except that the console window doesn't show the output from my simple trace statement for my first little Hello World tester? There wasn't a console window on the workspace so I added one but on Run it says
No consoles to display at this time.
What do I need to do?
Any help much appreciated...
Steve

I don't see any attempt to assign text to any textfields in your code.  What code are you using that is not working? Where would you be trying to assign to these textfields in your code?  You need to create two textfields and give them instance names.  Then, in your code, you assign the x and y values to those textfeilds...
tFieldX.text = String(mCoordPlane.mAlignment.x);
tFieldY.text = String(mCoordPlane.mAlignment.y);
I also don't see any code relative to checking the position of the mCoordPlane.mAlignment to show a message.  After that object changes position you should have a conditional to test if its x,y properties are 0,0, and then assign to a textfield for that message or make a moviewclip appear that has that message, or whatever your intention is for displaying a message.
if(mCoordPlane.mAlignment.x == 0 && mCoordPlane.mAlignment.y == 0){
     messageField.text = "aligned";
You may end up having issues with accuracy regarding geting a zero value since you are operating with decimal value changes... meaning you may not get exactly 0,0 values.
Also, in the code you showed there is unnecessary repetition of these lines...
        trace(mCoordPlane.mAlignment.x);
        trace(mCoordPlane.mAlignment.y);
If each conditional includes it, then you only need to have it once at the end after the conditionals

Similar Messages

  • XSJS Tracing - Trace files do not show trace levels other than 'error'

    Hi!
    I'm doing some experiments with server side javascript tracing on Hana. I created a small xsjs file that searches for some parameters on the web request (first name, last name and email) so I can call a DB procedure later. As I wanted to make sure that client data was arriving to the server properly, I added some trace calls using $.trace as you can see in the snipped below.
    After some time I noticed that just $.trace.error calls were added to xsengine*trc trace files. In other words, information, debug and warnings were not being included on the trace files.
    $.trace.info("INFO: Register_user.xsjs called");
    $.trace.error("ERROR: Register_user.xsjs called");
    if($.request.method === $.net.http.POST || $.request.method === $.net.http.GET) {
        var first_name = $.request.parameters.get("first_name");
        var last_name = $.request.parameters.get("last_name");
        var email = $.request.parameters.get("email");
        $.trace.error("ERROR: First Name:" + first_name);
        $.trace.error("ERROR: Last Name:" + last_name);
        $.trace.error("ERROR: Email:" + email);
        $.trace.warning("WARNING: First Name:" + first_name);
        $.trace.warning("WARNING: Last Name:" + last_name);
        $.trace.warning("WARNING: Email:" + email);
        // send response
        $.response.contentType = "application/json";
        $.response.status = $.net.http.OK;
        $.response.setBody(" { \"message\" : \"User registered successfully\"} ");
      } else {
        // unsupported method
      $.trace.error("ERROR: Method was not POST");
        $.response.status = $.net.http.INTERNAL_SERVER_ERROR;
    A small piece of a xsengine*.trc file is shown below.
    [4940]{-1}[-1/-1] 2014-09-08 20:37:10.453384 e xsa: demo.user_c register_user.xsjs(00026) : ERROR: Register_user.xsjs called
    [4940]{-1}[-1/-1] 2014-09-08 20:37:10.453690 e xsa: demo.user_c register_user.xsjs(00037) : ERROR: First Name:war
    [4940]{-1}[-1/-1] 2014-09-08 20:37:10.453710 e xsa: demo.user_c register_user.xsjs(00038) : ERROR: Last Name:ning
    [4940]{-1}[-1/-1] 2014-09-08 20:37:10.453796 e xsa: demo.user_c register_user.xsjs(00039) : ERROR: Email:[email protected]
    [4940]{-1}[-1/-1] 2014-09-08 20:58:21.854254 e xsa: demo.user_c register_user.xsjs(00024) : ERROR: request path: /demo/user_creation/logic/register_user.xsjs
    [4940]{-1}[-1/-1] 2014-09-08 20:58:21.854285 e xsa: demo.user_c register_user.xsjs(00026) : ERROR: Register_user.xsjs called
    Here are my doubts:
    Is there any standard filter for trace calls (which for example would show just error messages as default)? If there is, where to change it?
    Are there separate trace files for each trace level?
    Looking at the beginning of each row on the trace file, are the numbers from the left side of the timestamp somehow relevant to determine what kind of trace leve is shown? What do they mean? (the sequence of [4635]{-1}[-1/-1] )
    Related (and useful) links which couldn't solve the problem:
    How to print from XSJS to Console
    JSDoc: Namespace: trace
    I'm using:
    Cloudshare (SAP HANA SPS6 server)
    Hana Studio Version: 1.80.3
    Thanks for the support!

    Hi Fabio,
    You need to do some configurations. Please have a look at Trace Server-Side JavaScript Applications - SAP HANA Developer Guide - SAP Library and View XS JavaScript Application Trace Files - SAP HANA Developer Guide - SAP Library
    Best regards,
    Wenjun

  • Showing Trace from Output Window on Stage

    I am currently developing a flash application that would allow a user to control a movieclip on the stage using 2 keyboard inputs (like turning 2 knobs in order to align something).  I have it set up that on the 2 keyboard inputs, the movieclip moves.  What I am looking at doing is using trace statements that I use to track the position of the movieclip, which is just a simple black dot, and having the values of the trace statement show up on screen in 2 dynamic text fields, after being rounded to the nearest whole integer.
    The dot is in the movieclip entitled mCoordPlane.
    My script is below:
    stop();
    mAligned.visible=false;
    mNotAligned.visible=false;
    var letterK:Boolean=false;
    var letterJ:Boolean=false;
    var letterD:Boolean=false;
    var letterF:Boolean=false;
    stage.addEventListener(KeyboardEvent.KEY_UP, nokeyHit);
    stage.addEventListener(KeyboardEvent.KEY_DOWN, keyHit);
    stage.addEventListener(Event.ENTER_FRAME, moveAlignment);
    function keyHit(event:KeyboardEvent):void {
        switch (event.keyCode) {
            case event.keyCode=75 :
                letterK=true;
                break;
            case event.keyCode=74 :
                letterJ=true;
                break;
            case event.keyCode=68 :
                letterD=true;
                break;
            case event.keyCode=70 :
                letterF=true;
                break;
    function nokeyHit(event:KeyboardEvent):void {
        switch (event.keyCode) {
            case event.keyCode=75 :
                letterK=false;
                break;
            case event.keyCode=74 :
                letterJ=false;
                break;
            case event.keyCode=68 :
                letterD=false;
                break;
            case event.keyCode=70 :
                letterF=false;
                break;
    function moveAlignment(event:Event):void {
        var speed:Number=.5;
        if (letterJ) {
            mRight.rotation-=speed;
            mCoordPlane.mAlignment.x-=.1;
            mCoordPlane.mAlignment.y+=.1;
            trace(mCoordPlane.mAlignment.x);
            trace(mCoordPlane.mAlignment.y);
        if (letterK) {
            mRight.rotation+=speed;
            mCoordPlane.mAlignment.x+=.1;
            mCoordPlane.mAlignment.y-=.1;
            trace(mCoordPlane.mAlignment.x);
            trace(mCoordPlane.mAlignment.y);
        if (letterD) {
            mLeft.rotation-=speed;
            mCoordPlane.mAlignment.x+=.1;
            mCoordPlane.mAlignment.y+=.1;
            trace(mCoordPlane.mAlignment.x);
            trace(mCoordPlane.mAlignment.y);
        if (letterF) {
            mLeft.rotation+=speed;
            mCoordPlane.mAlignment.x-=.1;
            mCoordPlane.mAlignment.y-=.1;
            trace(mCoordPlane.mAlignment.x);
            trace(mCoordPlane.mAlignment.y);

    I don't see any attempt to assign text to any textfields in your code.  What code are you using that is not working? Where would you be trying to assign to these textfields in your code?  You need to create two textfields and give them instance names.  Then, in your code, you assign the x and y values to those textfeilds...
    tFieldX.text = String(mCoordPlane.mAlignment.x);
    tFieldY.text = String(mCoordPlane.mAlignment.y);
    I also don't see any code relative to checking the position of the mCoordPlane.mAlignment to show a message.  After that object changes position you should have a conditional to test if its x,y properties are 0,0, and then assign to a textfield for that message or make a moviewclip appear that has that message, or whatever your intention is for displaying a message.
    if(mCoordPlane.mAlignment.x == 0 && mCoordPlane.mAlignment.y == 0){
         messageField.text = "aligned";
    You may end up having issues with accuracy regarding geting a zero value since you are operating with decimal value changes... meaning you may not get exactly 0,0 values.
    Also, in the code you showed there is unnecessary repetition of these lines...
            trace(mCoordPlane.mAlignment.x);
            trace(mCoordPlane.mAlignment.y);
    If each conditional includes it, then you only need to have it once at the end after the conditionals

  • Image is not showed in Apps Output

    Hi,
    In Apps output image is not showed, but in report builder output images are showed.
    I imported image from my local system. Is there any path in Apps server to keep images?
    Thanks in advance.
    Regards,
    Kalyan

    Hi,
    Are you working ona Report?. If so please check the concurrent program definition, it should be PDF or Postscript.
    Thanks,
    Robert

  • Playing movie on tv; playing but not showing up; what output, DVD?

    1st time trying to play movie on tv; playing but not showing up; do I need to change output?  Only DVD & DVR shown. Thx

    You need to provide more information. How are you connecting your iPad to the TV. Are you using an Apple TV 2, a component AV cable, a composite AV cable or the digital AV cable?

  • CAS console not showing up in Workbench

    I installed Endeca commerce 3.1.2 components - mdex, platform services, tools and frameworks and cas on my windows machine. I did select CAS Console Workbench extension option during CAS installation. I then deployed Discover app using CAS and the app seems to be working just fine. But the CAS console is not showing up in workbench. It (CAS) works fine from command prompt. I tried uninstalling and reinstalling all the components but still the same result. Any idea what I could be missing or doing wrong? Thanks in advance!

    If you have also installed the current iTunes version, download the current install and re-install it over the existing - no need to remove iTunes first.

  • Console window shows previous program output

    I am new in VS 2010 express c#. I have been trying few program. But recently after trying one mathematical console application code. My output window shows same result for every program.
    I have changed code and saved by writing other code. I have deleted and tried new code as well. 
    Everytime i run program my console window shows same output for my previous mathematical program.
    any help would be really appreciate
    thanks in advance
     

    I am new in VS 2010 express c#. I have been trying few program. But recently after trying one mathematical console application code. My output window shows same result for every program.
    I have changed code and saved by writing other code. I have deleted and tried new code as well. 
    Everytime i run program my console window shows same output for my previous mathematical program.
    any help would be really appreciate
    thanks in advance
    Hello,
    To confirm whether this issue is related to Visual Studio or your project, I would recommend you follow these tips below.
    Clear all code and just place one line to output, then clean and rebuild your project, next debug it to see the result.
    1. If it prints the same result, then I would recommend you check whether the project is set as startup project, you could right click on that project and then select "Set as StartUp project", and then debug it to test.
    2. If it prints the right result for that line, maybe you could narrow down it to see whether your code always print the same result. If possible, you could share the code or even the project with us by removing all sensitive data.
    Regards,
    Carl
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Bpel console not showing domain name

    Hi
    i have installed a new jdev 10.1.3.1 and also have 10.1.2. first version is working fine examples but bpel console is not showing domain name in 10.1.2.
    pls anyone can tell me what may be the problem.Is it bcoz of two version in same machine.?? Its urgent help out............

    this is understandable - at per default we use oracle lite - which only allows ONE installation on a windows system ..
    to run both in paralell you have to install a db and create the 2 schemas (10.1.2.0.2 and 10.1.3.1) - I posted a blog note on this ..
    http://clemensblog.blogspot.com/2006/04/oracle-bpel-xe-part-2.html
    hth clemens

  • Trace statement outputs html code

    I am trying to get a trace statement to just out put the
    contents of a dynamic text field.
    What I get is this...
    <TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT
    FACE="Arial" SIZE="12" COLOR="#000000" LETTERSPACING="0"
    KERNING="0">welcome to my
    problem</FONT></P></TEXTFORMAT>
    ABC
    <TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT
    FACE="Arial" SIZE="12" COLOR="#000000" LETTERSPACING="0"
    KERNING="0">welcome to my
    problem</FONT></P></TEXTFORMAT>.html
    any help would be great.
    Thanks
    Bill

    disable the html property of your textfied. and/or uncheck
    the auto-kern box.

  • GlassFish Tools - Eclipse console does not show server log output

    Hi,
    I just installed the latest Glassfish Tools (6.2.1.201308190137) on Eclipse Kepler and Glassfish Server 3.1.2.  But when I start the server and open the console ('view log file' button) there is no output displayed (also not during deployment). When I open the server.log file in a text editor I can clearly see the log output. Re-starting Eclipse, re-opening the console view didn't help. I have this bug both on Windows 8 and OSX 10.8.4.
    Is there something obvious that I am missing? In my previous pre-kepler Eclipse installation this works like a charm (using the same glassfish server). Also the path to the log file displayed on the top of the console view is correct.
    This might be related to the following thread:
    GlassFish > View Log File opens in editor instead of console
    Will have to use my old eclipse installation until this is resolved. Any help is appreciated.
    -- Mike

    Apparently, the GlassFish Tools for eclipse is expecting the log messages in 'ODLLogFormatter' format only, and will refuse to show any logs messages that don't adhere to this format.
    I've tried configuring my logback messages to match this format, and that works until an exception is thrown and a log message is entered somewhere using the 'UniformLogFormatter' format, which then causes the server.log parser to refuse to show any more messages.
    This is a bug, but I'm unsure where to report bugs now since the move to OEPE.  (Was https://java.net/jira/browse/GLASSFISHPLUGINS)

  • Line objects not showing in pdf output in xmlp 5.6.1

    Hello,
    Is there a bug or just a version issue when trying to produce pdf output using xmlp 5.6.1 Enterprise Edition from a template built in xmlp 5.6.2 stand alone? Different versions of pdf too. The xmlp 5.6.1 EE uses Adobe 7.0.7 and I use 7.0.0 for my dpf output. The issue is that the template built using 5.6.2 has line objects in the rtf file. When this template is registered in xmlp 5.6.1 EE and the report is generated the lines don't show up in the pdf.
    Any one?
    Ryan

    I opened a TAR and here is the answer. My template definition was wrong because I directly used my data template xml file to define my template using template builder.
    Here are all the steps to use XML data template under apps.
    To use data templates, do the following:
    1- Create the data template similar to the following structure
    2- Login to responsibility "XML PUBLISHER ADMINISTRATOR" -> Data Definition
    2.1 upload the data template (that is made in step1)
    2.2 Insert a new code that is not find the concurrent request short name.
    3- Login to system administrator -> concurrent -> program -> define (define a new concurrent request as following)
    3.1 use execute XDODTEXE (it takes the data definition in step 2 and shall execute the query to obtain XML output)
    3.2 Output format = XML
    3.3 request short name as that defined in step (2.2)
    4- Add the request to a request group
    5- The the concurrent request and get the created XML output
    6- Use the created XML Output in (step 5) to create your template layout using Template builder vers
    ion 5.5
    7- After creating the template go to responsibility "XML PUBLISHER ADMINISTRATOR" -> Templates
    7.1 define a new template
    7.2 use the same data definition that you created at (step 2)
    7.3 Use the same code as in step (2.2)
    After all the above steps you shall get the output as you wish. The main link between Data template and the concurrent request that execute the data template to generate the XML output is the request short name and the data template code.
    Hint:
    request short name = data template code.

  • Admin Server console not showing Managed Server is running

    I am using WLS 7.0.1.0 SP1 runing on Windows 2000. I have setup a node manager, Admin server and Managed Server as Windows Services. Admin Server has -delaySeconds as 2min. Manager Server(MS) has been made to depend on Admin Server start. When I boot my machine, all the three services come up properly. I can access my application which is running on MS properly. But for some reason the Admin Console doesn't show the MS as running. If I use the Admin Console now to start up MS all it does it "Reconnects to the admin server" since the MS is in started state. What is the reason for this

    It could be the ordering dependency and the rediscovery of the MS by the AS.
    An AS has a notion of where MS's live on disk and it could be an issue with
    AS bouncing in between MS's constant state of upness.
    Cheers
    mbg
    "Ajay Kulkarni" <[email protected]> wrote in message
    news:3ede0306$[email protected]..
    I am using WLS 7.0.1.0 SP1 runing on Windows 2000. I have setup a nodemanager, Admin server and Managed Server as Windows Services. Admin Server
    has -delaySeconds as 2min. Manager Server(MS) has been made to depend on
    Admin Server start. When I boot my machine, all the three services come up
    properly. I can access my application which is running on MS properly. But
    for some reason the Admin Console doesn't show the MS as running. If I use
    the Admin Console now to start up MS all it does it "Reconnects to the admin
    server" since the MS is in started state. What is the reason for this

  • BPEL Console not showing input fields for process

    I'm having a problem with our BPEL processes. When testing them in the BPEL Console the form for entering the input fields does not appear, even when switched to XML entry instead of HTML.
    The problem seems to occur in processes which take their input schemas from a different directory from the BPEL process. This was working fine in Oracle 10.1.2. We can successfully load the schema by entering its URL, and if the process is started without entering any data, the input message is correctly generated, just with all fields empty. So it seems like the schema is being found.
    When both the input and output schemas are specified inline in the project WSDL file, it works correctly. The problem occurs when referencing the schema in a different location. We have numerous projects which share common schemas, so specifying them all in-line is not a workable solution.
    Has anyone else encountered this problem, or found a solution to it?
    Thanks for your help.
    Howard

    I have similar process where I am able to see the instance incomplete process C, the issue is with the present process.
    actually process B and C are from production I have designed the new process A, which is calling B and B is calling C.
    I have also designed other process A1(new) which is calling B1(existing) and B1 is calling C1(existing), there I am able to see the instance of C1
    dont know why it is happening like this for process C
    please advice
    thanks
    yatan

  • SAP management console not showing AS java

    Hello all,
    I have made a NW04s installation system test (linux+oracle). I then installed as java add-in EP and BI (AS JAVA, EP CORE, EP, BI JAVA). It was NW04s SR2 with SPC13 and kernel not changed: 700 patch 111.
    In the SAP management console there were 3 entries: one for database, one for abap instance and one for java instance.
    In the abap instance node I was able to see an entry for "AS java"  which was whowing two process (SDM and another one...).
    I made a new test installation similar to the previous one and in the SAP management console I do not see any entry for "AS Java". Of course AS java is installed and running !
    How can I get SAP management console show "AS java" ????
    Thank you
    Jean

    Hi Jean,
    Start Services.msc from run prompt (if this is windows based installation)
    and look for <SID>services, where <SID> is your instance name..
    Please do the following and let me know if this of any success
    You get back your MMC , please do the following steps.
    1. Go to Run and type MMC.
    2.Go to file and select add/remove snap in ( alt+m).
    3.Click on add
    4.Select the SAP system from there.
    Save the MMC console which you have created now....This should work fine.
    Thanks
    Pankaj

  • Directory console not showing entries ???

    Hello,
    I just migrated around 15,000 entries into iPlanet Directory through the Import button. They went in no problem, and I could view them through the console. I then removed them using an ldif and import. I wnet back to view the entries and I noticed none would show up, although there were still 2 left. If I do an export to LDIF they show up, but I cannot see them in the console. I am running the version of iPlanet Directory that comes with Solaris 9. ANy help would be appreciated.
    Jim G

    i did the reindex and i still can see the subentries
    when I try and delete all the entries i get "object not found"
    but when I search I see all the entries
    help please
    DS 5.1 on Solaris 8

Maybe you are looking for

  • Backup problem with new 8900

    I am a fairly competent BB user and have just upgraded from a Pearl to the blessed 8900. I love it so far, but I'm having problems backing it up. I can start it ok and it gets about halfway done the backup and then when it gets to "Smart Card Options

  • TS1702 I had to change my password and now my iphone says it does not recognize it

    I had to change my password and now my iphone says it does not recognize it...

  • Where to edit sharepoint permisssions on lion server

    Could anybody tell me where the correct place to edit sharepoint permissions is on Lion Server? 1. by selecting the sharepoint from the File Sharing in the server.app 2. by selecting the server in the devices in the server.app, choosing storage and t

  • JES on Windows 2000

    Does JES support Windows2000? If not, is it planned to support Windows2000 in the next JES release?

  • E72 Deleted all messages and now backup wont resto...

    Hello there - I am in such a mood and want my problem resolved so much that I will pay anyone that helps Basically on E72, I had messages in inbox, my folders and sent section. Once I restarted phone and then phone froze. I felt the problem was due t