Hana AWS - Serverside Javascript Debug timeout

Hi,
Following Thomas Jung's excellent series of tutorial videos I'm now taking a look at server-side Javascript debugging.  I'm on Hana One AWS SPS5 Rev 48.
As the debugger section within the xsengine.ini configuration was not present by default I have added this section with the enabled=true and listenport=47112 name value pairs.
I have set my serverside Javascript breakpoints and launched the service within the browser (as per Exercise 10 tutorial).  I have created my debug configuration with correct host (elastic IP) and port (47112, as per listenport in configuration).
However when I select "Debug" from the debug configuration, from the progress tab it indicates launching of the service but after a few seconds get the following "Problem Occurred" error:
"Unable to connect to SAP HANA XS Server", with details:
Unable to connect to SAP HANA XS Server
Connection timed out: connect
Is there any timeout parameter I can increase to allow the launch more time?  Do I need to restart the AWS instance to account for the new debugger section configuration with listenport?  Do I need to open this port elsewhere in addition?
Many thanks.

Hi Jon-Paul,
Please read this message carefully as we recommend settings for debugging which need to be handled carefully to avoid any security risk.
There are two aspects of it. You can enable debugging in the studio as shown below.
However, as soon as you are done with yur debugging, please disable it immediately. This is at HANA side configuration.
Now also you need to open EC2 firewall for this new port which is the second part. You can open the port on fly within EC2 management console. Find the security group you are using for your HANA One instance. If you have more than one EC2 instances and using a common security group, opening a port will apply to all instances which may not be your case.
Anyway, go to EC2 management console, find the security group from your instance. Then go to the left panel security group, add port number in the Inbound field. Then apply. Once you are done, please make sure you delete this port from your security group and apply the change. If you need any reference on how to manually open/close port in EC2 management console, please open Rev. 38 Quick Start Guide and review page 8,   step 10.c. This guide is available at SAP HANA One Platform on AWS
Regards,
Swapan

Similar Messages

  • How can I add a watch to a variable or expression during javascript debugging

    Since the new update to safari 6 I am looking for a way to add a watch to a variable or expression during javascript debugging. I don't want to go to the console line every time to type in the separate variables and expressions over and over again. Also hovering over a variable doesn't show the value.

    I couldn't find the answer either (I submitted an enhancement request to http://www.apple.com/feedback/safari.html in hopes that it will get added back in), but downloading a nightly build of webkit (http://nightly.webkit.org) will give you an alternative version of Safari that still uses the version 5 inspector, which to me is preferable anyway. 

  • How can HANA Server Side JavaScript use "Eval" function?

    Hi HANA Experts,
      I use EVAL function to create an object by classname in xsjs file, but it has an Error "Eval is evil". In Client javascript, we can use the Eval function. How can we use "EVAL" function in HANA server side javaScript?  Thanks a lot.

    That looks like the client side JSLint check to me.  Those can be customized or even turned off. If you truly want to use eval.
    >XSJS inherits most of the features of javascript but do not expect all of its features
    Actually that's not exactly accurate.  XSJS is standard ECMA JavaScript (Mozilla SpiderMonkey VM).  It does run in strict mode, however. This isn't a limitation of XSJS but a conscious decision to force the VM into the strict mode - which is really the recommendation for JavaScript anyway.  We also apply JSLint checks as above. Sometimes they are quite restrictive. However they can be customized or even completely turned off at the project level:
    To the point of Eval, there are some excellent articles online.
    http://javascriptweblog.wordpress.com/2010/04/19/how-evil-is-eval/
    coding style - When is JavaScript's eval() not evil? - Stack Overflow
    JSLint Error Explanations - eval is evil

  • Javascript - (Lorg/mozilla/javascript/debug/Debugger;Ljava/lang/Object;)V

    Hi All,
    I am facing some error with javascript technology in an ODI procedure.
    In Sunopsis(4.1.01.04) the same was working fine and when I am trying to do the same in ODI(10.1.3.5) its throwing the below error.
    java.lang.Exception: org.mozilla.javascript.Context.setDebugger(Lorg/mozilla/javascript/debug/Debugger;Ljava/lang/Object;)V
    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java)
    at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java)
    at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java)
    at com.sunopsis.dwg.cmd.DwgCommandSession.treatCommand(DwgCommandSession.java)
    at com.sunopsis.dwg.cmd.DwgCommandBase.execute(DwgCommandBase.java)
    at com.sunopsis.dwg.cmd.e.i(e.java)
    at com.sunopsis.dwg.cmd.g.y(g.java)
    at com.sunopsis.dwg.cmd.e.run(e.java)
    at java.lang.Thread.run(Unknown Source)
    In description I just put <@ @> and selected the technology as javascript.
    In ODI(10.1.3.5) its giving me the above error
    and in sunopsis that step went through without any errors.
    (If I am trying with any other technology, its going fine.)
    I guess, here its problem from java script technolgy
    (may be that technology is not reffering proper files(versions) or some thing like that)
    It will be much appreciated if any body can help me to fix this issue ....
    for more details on this :-
    Commnand onSource ODI
    Thanks in Advance,
    Rathish A M

    Hi Guru,
    How r u ?
    Below are steps :-
    In one of my procedure
    step 1:- I declared one java script variable.
    step 2:- assigning some values to that variable.
    step 3:- Passing that variable while calling a schell script using OScommand.
    Here my problem is comming from the javascript technology.
    The project is exported from sunopsis and imported into ODI.
    In sunopsis the same is working fine. But in ODI i am getting that exception.
    I will send the xml to your gmail account for more details.
    Thanks for the help
    Rathish A M

  • Can anybody get JavaScript debugging working?

    Hi,
    I'm trying to get JavaScript debugging working. I think I followed the instructions in section 17.3.3 of the developer's guide. Then I start the application in the simulator and visit http://localhost:9999/ in my Chrome browser. I do get a "debug homepage" listing two links but when I click on these I get an debug console without any content. See the two screenshots below:
    https://docs.google.com/open?id=0B0EvDYuyTjZzYzN1cVJfdkNjZlk
    https://docs.google.com/open?id=0B0EvDYuyTjZzRGVmX0JadWppakk
    Am I doing something wrong or is this feature not complete?

    Great. That did the trick. In the meanwhile I setup weinre myself and that worked great in all webkit browsers, including chrome.
    Now that I've seen the default ADF setup work with Safari, I'll guess I stick with this bundled ADF setup for convenience

  • HANA Server site JavaScript how to call functions in another .js file? thanks

    In HANA Studio, I have created a .js file and a server site javaScript .xsjs file. The .js file and .xsjs file are in the same path .I create function F1() in js file. Then I want to call function F1 in xsjs file. But it always through an error “f1 was used before it was defined”. Any suggestion? Thanks very much
    .js file:
    .xsjs file:

    Hi Jim,
    Now I have found the method how to use external library. If we want to outsource some of xsjs functions to an external library, XSEngine provides a special format for this, called “.xsjslib”. Then in xsjslib file, we define functions need to be outsourced.
    In .xsjs file, we can import a library using the following code:
    $.import("<Package_Library_was_deployed>","xsjslib File Name");
    The Package_Library_was_deployed please refer to:
    Access functions inside library by this path:
    $.Package_Library_was_deployed.xsjsFileName.FunctionName();

  • JavaScript error:Timeout

    Hello,
    I am calculating the value for the barcode (3 of 9) using JavaScript to generate a non-interactive PDF. On the Adobe Sever (ES LC 8.2), after running for 5 hours, I am experiencing script timeout error while calculating the barcode on the first page of every document that is getting processed. If I restart the Adobe server every thing is fine until the server hits the threashold of 5 hours.
    This only happens for the first page of every document, so if there are 10 pages then barcode gets calculated correctly from the second page. Very unusual behavior.
    Below is the exception,
    [5/25/10 20:30:25:976 EDT] 00000036 XMLFormServic W com.adobe.service.ProcessResource$ManagerImpl log ALC-XTG-102-001: [340010] Error: Timeout
    [5/25/10 20:30:25:987 EDT] 00000036 XMLFormServic W com.adobe.service.ProcessResource$ManagerImpl log ALC-XTG-102-001: [340010] Script failed (language is javascript; context is xfa[0].form[0].rcx[0].#pageSet[0].pageMain1[4].Code3of9BarCode1[0])
    Appreciate your help on this.
    Thanks,
    Laxman.

    Both are valid behaviors unfortunately.
    1) login portlet is showing up in specific portlet b/c inline navigation allows for you to create and load pages without affecting the overall portal.
    This happens when you use iframes (which behave in a similar fashion).
    - your only workaround is really to write some javascript function to "listen" to the portal login page getting loaded and then throwing the session into the parent browser (which is Portal). At least this is the only solution that I ever came up with when using Iframes.
    2) Don't know about out of memory error actually, but getting the "gatewy was not able to access requested content" is valid b/c the session died.
    - javascript errors require javascript solutions. Sorry I couldn't be more helpful than that.
    Maybe someone else will have better suggestions.
    The other suggestion is to use your app server to listen to the logout event and redirect appropriately to somewhere else, or have it do what you want it to do in situations as this.

  • CAL HANA AWS Deployment error

    When deploying SAP HANA, Developer Edition 1.0 SPS 9 from CAL to AWS an error is generated and the deployment fails.
    It looks like the Provisioned IOPS part of the CALS template may be incorrect for AWS.
    The error:
    Operation start failed on step Start VAInstance with message:Start failed for VM SAP HANA due to Amazon Web Services issue: Failed to start instance. The instance has been terminated. State Reason ID: Client.MaxIopsLimitExceeded:Client.MaxIops.
    If standard storage volumes are used instead of provisioned storage volumes the HANA deployment will succeed, but performance will be affected.
    Can the template be corrected to use provisioned storage volumes correctly?
    Thanks.

    Hello Joseph,
    According to Error Codes - Amazon Elastic Compute Cloud the MaxIopsLimitExceeded error has the following description:
    You've reached the limit on your IOPS usage for that region. If you need to increase your volume limit, complete the Amazon EC2 EBS Volume Limit Form
    Therefore I would recommend to look at your limit in the corresponding region and to increase it if required.
    Best regards,
    Stanimir

  • JavaScript debugging in FD7.0

    Hi,
    Im currently creating a few forms in FD 7.0. I need to use JavaScript to do a few calculations and validations. It appears however, that the JavaScript debugger is only available in Acrobat professional and not in the forms designer?
    Can anybody point me in the direction of sample code in Javascript/
    Thank You
    Petrus

    Hi,
    not sure how much javascript you know, but here are a couple tips:
    1. put a try/catch around your javascript to display error messages:
    try {
    some code
    } catch(e) {
    app.alert(e);
    2. fields on your form can be referenced directly:
    total_price.rawValue = item_total.rawValue + tax_total.rawValue;
    inaddition, forms can be directly referenced as
    xfa.form....
    3. form designer has a fairly intuitive context menu available when you reference fields.
    4. when two or more objects have the same name, you can use all.item.
    eg. Have two pages on the form, both with subForms called page.
    then,
    page.all.item(0).total_price.rawValue refers to the total_price field on page 1.
    5. to reference xml data fields:
    this.rawValue = xfa.record.sales.sales_items.all.item(i).books.value;
    hope that helps.

  • Debug javascript embedded in a dynamic page

    It is great that Jdev11g supports javascript debug. As demonstrated in "JavaScript Development in Oracle JDeveloper", the html page is a static page. Can Jdev11g debug javascript generated dynamically, for example, from JSP or XSLT?

    Your wish is my command. Support for debugging JavaScript embedded in a JSPX file will be included in the production release.
    --RiC                                                                                                                                                                                                                                                                           

  • Is it possible to use Firefox to debug javascript files when running a web application using visual studio 2010

    I am trying to debug a ASP.Net web application within visual studio 2010 using Firefox. I am able to set breakpoints in my C# code and they work but if I set a breakpoint in a javascript file then these do not work when using Firefox. Is there any way to do this?

    Of course you can. I use the VS2010 built-in Javascript debug tool a lot, not only for IE, but also for firefox.
    I encountered the "break point not working" issue several times, according to my experience, following is the solution to this problem, give them a shot:
    1. There maybe errors in your javascript code, have a close look at your code, try to find the errors or eliminate this possibility.
    2. Sometimes you have to refresh the page once after the page is loaded the first time. This solves the problem most of the time.

  • Debuging Javascript code in LC is not smooth. Is there a better way?

    I'm new to LC and I am finding the debugging process very cumbersome. I save my form, open it in Acrobat and enable debugging window  there. I know there is a way to the have debugging window in PDF preview but  that would not make much of difference. I actually prefer to have it in  Acrobat because when it crashes I wouldn't loose my LC.
    Is this the best way of debuging Javascript?
    It would be nice to have access to variable dump. I am creating temproary text fields and pop up  messages.

    I cant believe Adobe releases such a large project like LiveCycle with no "officially supported" debuger.
    from the horse's mouth:
    http://blogs.adobe.com/formfeed/2010/03/using_the_acrobat_javascript_d.html
    "...there are some serious limits:
    Using the debugger with XFA forms is not officially supported
    We cannot debug script objects
    Storing  break points doesn’t seem to work.  This makes it hard to debug an  initialization script (unless you force your form to do an xfa.form.remerge()) "
    "When will XFA have proper JavaScript debugging support?  This is a hard  question to answer.  But it gets asked a lot.  Believe me when I say  that  we’ve taken a run at this problem many times in the past.  But the  fact remains that there are some substantial technical barriers that  are holding us back. "
    Please correct me if I am wrong.

  • The form could not be certified, possibly because of your password timeout policy

    I am obtaining an error while attempting to distribute a form signed with a digital ID. I can't find any documentation or discussion threads to resolve the problem.
    Specifically, while attempting to distribute the signed form in Adobe Acrobat X, the progress bar gets halfway before presenting the following pop-up error window:
    The form could not be certified, possibly because of your password timeout policy. Please temporarily set the password timeout for this digital ID to "Never" or "Once per session" (in Advanced > Security Settings > Digital ID Files), and try distributing the form again.
    After cancelling distribution, the Javascript debug window pops up with the following error:
    General Error: Operation failed.
    Field.signatureSigr: 0:
    Operation not permitted
    I have distributed this form before using the same method without error. Sometime in the last week, this error appeared, suggesting to me that perhaps the password for the digital ID, created in the last few weeks for testing purposes, had expired.
    In any case, I went through the suggested fix of going into Security Settings, and then set the password timeout for the digital ID to "Never". No problem. I then attempted again to distribute the form, but continue to obtain the same error.
    This is a form created in Livecycle ES2. The client would like to implement trusted Javascript functions - specifically, automatically saving the PDF with a live "production" editable version, along with flattened "secure" versions that can't be altered, and I would like to export the data to XML to make it easier to import data to SQL Server.
    All well and good. I've done my homework on this stuff, and I was able to make it work. After a couple of weeks passed, it would no longer work. I don't remember changing any settings, because I was waiting for the client's IT department to drop the Javascript file containing the trusted functions in the Adobe Program Files folder on the server where this will work. In fact, I just walked through the same process of distributing a form on that server, and it worked. It just isn't working on my development machine.
    What's up with this? Anyone have a clue? I've run out of ideas, thinking that I might just uninstall and reinstall Acrobat X.
    I'd appreciate an assist.
    Thanks,
    Brian D

    I just moved this to the Acrobat Forms forum because (unfortunately) it went unanswered for two months previously in the Security & Electronic Signatures forum. The issue persists.

  • SAP HANA XSODATA service (Service exception: column store error.)

    Hi all,
    i have a problem with my calculation view using xsodata service on it. (There's an input parameter called P
    _SWERK)
    In my calculation view, the data origin are two analytic views (on which the input parameter P_SWERK should be filter data at beginning of the sql script code).
    First i read the analytic views with function CE_OLAP_VIEW and after i do a CE_PROJECTION function on them using the input parameter P_SWERK like a filter on field SWERK.
    But when i run my application on browser the following error occurs :
    <message xml:lang="en-US">Service exception: column store error.</message>
    The link is this :
    http://host:port/Project_DM/services/Test/TEST_ZIIG_PDM_CALC_VIEW_FINAL_service.xsodata/PianiDiManutenzioneParameters(P_SWERK='CO05')/Results
    The service definition is :
    service {
    "EricssonItalgas/TEST_ZIIG_PDM_VIEW_FINAL.calculationview" as "PianiDiManutenzione" keys generate local "ID"
    parameters via entity;
    The SAP HANA AWS revision is 60.
    Someone could you help me,please?
    Thanks in advance.
    Dario.

    Hi Dario,
    Does the calculation view work without xsodata service? From the URL, your XS project name should be Project_DM, but from the xsodata source, the project name is EricssonItalgas. I'm confused with this. Did you use rewrite_rules or?
    Best regards,
    Wenjun

  • UIX Javascript Error with Date Picker

    Hi all,
    I am using JDeveloper 10.1.2.1.0 with JHeadstart 10.1.2.2.32 to create UIX pages. I have a page with a filter by search field. If I select the date picker on this page in IE version 6 or 7, I get the following javascript error:
    Error: 'length' is null or not an object
    I have found this in the Common2_2_20.js, which is part of the jslibs
    function _accumulateNumber(
    a0,
    a1
    var a2=a0.currIndex;
    var a3=a2;
    var a4=a0.parseString;
    ***var a5=a4.length;***
    if(a5>a3+a1)
    a5=a3+a1;
    var a6=0;
    while(a3<a5)
    var a7=parseDigit(a4.charAt(a3));
    if(!isNaN(a7))
    a6*=10;
    a6+=a7;
    a3++;
    else
    break;
    if(a2!=a3)
    a0.currIndex=a3;
    return a6;
    else
    return(void 0);
    }With Firefox 1.5.0.4, I can get the date selector window to open, but when I select a date value, I get this javascript error:
    a0.select() is not a function
    I have found this in the Common2_2_20.js also. Here is the code where the error is occuring.
    function _dfsv(
    a0,
    a1
    if((a0==(void 0))||(a1==(void 0)))
    return;
    a1+=_getTimePortion(a0);
    var a2=new Date(a1);
    var a3=_getDateFieldFormat(a0);
    var a4=a0.value;
    var a1=a3.format(a2);
    if(a0.value!=a1)
    if(a0.onchange!=(void 0))
    if(_agent.isIE)
    a0.onpropertychange=function()
    var a5=window.event;
    if(a5.propertyName=='value')
    a0.onpropertychange=function(){};
    a0.onchange(a5);
    a0.value=a1;
    else
    a0.value=a1;
    var a5=new Object();
    a5.type='change';
    a5.target=a0;
    a0.onchange(a5);
    else
    a0.value=a1;
    ***a0.select();****
    a0.focus();
    }I am able to use the date picker on other pages and even different parts of this page. The date search field is of type dateField.and is part of a switcher. Does anyone have any ideas as to why this is occuring or how I can work around it? Thanks in advance. I really appreciate all of your help.
    Susan

    Thanks for the reply. As a matter of fact, in my case the error happens in a UIX page generated by JHeadstart. I did some JavaScript debugging using the FireBug Firefox entension and I found that it is some JHeadstart JavaScript that causes this problem.
    The JHeadstart JavaScript passes on an array of input elements to the AFD JavaScript function and the problem arises when the select() method is called on the array, rather than an input element in the array.
    I will try to solve my issue by modifying the JHeadstart JavaScript code. Please see the JHeadstart forum somewhere in the near future for my post(s) about this :-)
    Thanks, Wouter

Maybe you are looking for