[BSP][AJAX] Session issue

Hi,
I have a developed a small AJAX processing in my BSP application but I am facing 2 issues that I think are related - undoutedly - to session management
1) I try to do the following
          var popupErr = window.open("",
                                     "Error",
                                     "height=500,width=600,toolbar=no,scrollbars=auto,menubar=no");
          popupErr.focus();
          popupErr.document.write(req.responseText);
It used to work quite well but I have made some modifications and now <b>I get and "Access refused" from JavaScript</b> and the page that should be opened is <b>titled "about:blank" and stays empty</b>
2) When the <b>processing by AJAX generates a Dump</b> (yeah, that sometimes happens... in fact, I raise exception that are not caught), it has the bad habit to <b>close the session</b> even though I specified
req.open("GET", "<%= runtime->get_url_new_session( page_name = 'service.xml' ) %>", true);
req.send();
This is a big inconvenience to me !!
Thanks in advance for any advice on these 2 problems.
Best regards,
Guillaume

Hi,
I realized that what I was looking for does not make much sense... I have to modify the content of an instance attribute of my application class: this seems impossible to me using a new session. Thus, the same session has to be used.
Consequently, I give up on raising exceptions that will finally end in dumps (ending the session) and will handle this differently.
Anyway, the question of handling unforeseen dump still remains asked, as the first problem :
1) I try to do the following
          var popupErr = window.open("",
                                     "Error",
                                     "height=500,width=600,toolbar=no,scrollbars=auto,menubar=no");
          popupErr.focus();
          popupErr.document.write(req.responseText);
It used to work quite well but I have made some modifications and now <b>I get and "Access refused" from JavaScript</b> and the page that should be opened is titled "about:blank" and stays empty
Best regards,
Guillaume
Message was edited by: Guillaume Garcia

Similar Messages

  • Session issue in shared folder

    How many connection limit in windows 7 enterprise shared folder
    i'm getting Session issue with shared folder

    By default there is 20 connections limited to a folder. If that is decreased against the number of users, the issue occurs.
    Balaji Kundalam

  • Sessions issues and slowness of application

    Problem Description: We are experiencing some session issues in our application built using ADF. After one of our recent deployment we are seeing some issues which are causing session values spilling across sessions. For example if a user A is logged in and searching with a value 123 in a certain form in the application, at the same time if another user logs in and opens up the same form he would see 123 value retained in the form. There are other similar issue which are being encountered like concurrent users being logged out randomly, the login name of one user showing up in another users screen, etc. This has recently been encountered and had not been seen until SIT. We are now into UAT and this hence impacts the business hugely as there is a team of end users who the business had made available to see the demos and test furher but with the above explained, the testing is on a stand stilll. We hence see an urgent response on this and request that this be dealt with on utmost priority. in addition to this we have been seeing poor performance especially while accessing the application from IE, mozilla and iPad/Safari browsers. We have also observed that some of the custom images being used in the application UI (residing in a specific folder) are not being cached while others in ARF folder are being cached. Images which are not being cached have been identified as a cause of additional delay in loading of pages.
    We are using Jdeveloper 11.1.1.5 .Adf technologies used are ADF faces, we have also used View objects(ADF Business Components) to fetch the data.

    This all sounds like you have a problem with application module pooling.
    Have you tested your app with am pooling turned off?
    Check [url http://tompeez.wordpress.com/2011/07/08/jdev-always-test-your-app-with-applicationmodule-pooling-turned-off/]JDev: Always Test Your App with ApplicationModule Pooling turned off for more input.
    Once you've sorted out his problem we can talk about the performance. There are a couple of posts and blogs around about this.
    Timo

  • BSP Session issue in Web Documents

    Hi,
    In SAP Web Documents Page (BSP Application cvaw_document_display), one PDF link appears.
    I click on the link and a PDF file opens in a separate browser window.
    But when I click on that link again, I get Session Time out error.
    However If I refresh the first screen (where the PDF link appears) and click on the PDF link again, it works.
    Please help in resolving this issue.

    Hi Swastik,
    Why you are trying to reopen the file again??
    if you want to reopen it , close the pdf file window and try again.
    Please let me know if you have any queries.
    Regards
    Bhaskar Arani

  • STS: Portal HTTPS to BSP HTTP transfer issue

    Hi Experts,
    We have the following issue.
    We use portal with SSL, and we put SSL on out BW backend system. We also use STS, and we created a BSP iView in the portal to use STS inside portal.
    The problem occurs when a link to the iView is clicked. What happens is that when the iView is being loaded, all the session cookies are getting blocked for some reason, so that clicking on any link in STS results in timeout error.
    My observation is that STS only uses SSL for the login page. So when a request comes through the portal that uses SSL it goes to a BSP iView without an SSL (you get the warning that you are about to display non-secure items).
    A workaround solution is to goo to IE properties, security/privacy and click the "Allow all session cookies" checkbox. This a bad solution because it involves telling users to configure their browser. I am wondering if anybody had the same or similar issue, and if there is any other resolution then just explicitly allowing cookies in the browser.
    We have another environment setup in QA that does NOT use SSL for either portal or a backend BW, and this problem with cookies does not happen there. I am guessing it has something to do with a switch from HTTPS to an HTTP request when it comes through the portal.
    Please let me know if you know how to resolve this.
    Thank you,
    AG

    Hi Marc,
    Thank you very much. The note helped us ensure that all the STS pages are using HTTPS protocol. There is still one issue remaining though.
    When STS generates its start URL, for some reason it starts with HTTP, not HTTPS. It is evident when you go to BPS_TC tcode and try to execute option "Test call with display of URL". The URL that gets displayed is for example:
    http://test.somedomain.com:8000/sap/bc/bsp/sap/tunguska/start_sts2.htm?teilplan=ZBUDGET&version=002&sap-client=200&sap-language=E
    When pasting this link in the browser, STS automatically redirects you to the https protocol, which is fine if you are using STS BSP application stand alone.
    This represents a problem however, if the application is integrated into portal BSP iView. If portal is running under HTTPS, then clicking on the STS iView causes a warning message to be displayed saying that you are about to be redirected to the page that is not secure because for some reason the very first page STS generates uses http protocol disregarding the fact that HTTPS has been setup for STS. This warning message creates a false assumption that the pages are not secured, while in fact right after the warning message is displayed a redirect to https occurs making sure STS pages are protected.
    My question is there some sort of global setting where you can control the generation of STS start URL? I made changes for every page making sure Transfer Options set to HTTPS, and also made sure Logon page is using HTTPS in the SICF transaction for tunguska and tunguska_detail services.
    At this point we are stuck and do not know what to do to eliminate that warning and how to control the generation of start URL in STS. Any help would  be greatly appreciated.
    Thank you,
    Andrei

  • Sap-syscmd=nocookie and Statefull BSP's - Session timeout

    I have a tricky problem - and I'am hoping for your helpfull input... please..
    I have developed a Statefull BSP application - and this application should be called from a SAP CRM application - and it should be possible to call and execute this aplication in a new session everytime it's called from CRM (a new controller/model instance per call).
    In the CRM application I can define the JavaScript which should be exectued in order to start the external application - and I have used the script window.open('bsp-url) to start my BSP application.
    In my first attempt I ran into the problem that all new windows was started in the same new session - with the consequence that all new windows tried to use the same controller and model instance - leading to inconsistent data...
    Then I read an SDN article about the parameter sap-syscmd=nocookie. With this url parameter it should be possible to force the BSP to be executed in a new session - and it works.... or... a new session is generated and the BSP generates the correct output after the initial call  (and according to SM04 I have a new session). I was quite happy until I pressed a button in my BSP page triggering an HTMLB-event - which lead to the following error: "400 Session timed out - please login again". So it looks like the 1. part is okay with the new session - but the response generated and sent to the browser cannot frind it's way bay to the right session in SAP... what did I do wrong???

    I have already tried with sap-sessioncmd=open - and the first time the call is made from CRM a new sesion is created and the BSP is intialized. But if I go back to the CRM application again (without closing the BSP window) and hits the button again - then a new window is created but no new session meaning that the underlying BSP is referenced in both windows - and producing wrong results (they both refer to the same instance of the BSP). When I use sap-syscmd=nocookie - I get a new window and a new session everytime I hit the button in CRM, but for some reason the page-output generated cannot find it's way back to this session afterwards...

  • Hyperion Smart Cut Session Issue streaming multiple reports at a time using

    This is a lengthly post with details, Please review with Patience:
    We are trying to integrate Workspace based web Analysis reports within our intranet portal, thru portlets (made from individual workspace smartcut link), so that users can customize their page as needed, Once they login thru intranet, Cookie is set and passed to succeeding smart cut links via secured http headers. This part is fine, but mainly running into issue with streaming several multiple web-analysis reports at a time,+ we are using Iframe to display and stream multiple individual reports on to one page, but unfortunately all Iframes are sharing one session rather than creating individual session, mostly because of limitation of current web analysis system architecture and IE browser behavior with sessions .
    Which Hyperion reporting tool does allow to stream multiple reports  at a time? ideally we want to create Iframe of each workspace report so that users can customize and pick portlets as needed. To stream multiple reports at a time.
    Problem Description: Hypeiron Web Analsysis, Smart cut reports incorrectly rendering images and intermixing dash boards on POV changes upon multiple reports being diplayed at one time thru Iframe's, issue seem to mostly relate to Hyperion using single session rather to multiple session when displaying several web reports at a time.
    Steps Needed To Reproduce:
    User logs into workspace.
    user click on expolore and able to view the report without any issues.
    When right on any of the report and select properties.
    Select the SmartCut url and paste it in the Internet explorer.
    The webanalysis report opens without any issues.
    Similarly user copies the smartcut url for a different report and paste the link on a different tab or new window of same browser.
    The report on the first tab gets over written of the report of the second tab of the browser.
    The issue happens when two different reports and opened on a browser with multiple tabs. The reports get over written.
    Oracle development answer:
    In the described scenario opening new browser window does not spawn a separate independent browser session. A new browser window is supplied with URL pointing to the same domain, so all browser cookies including the "ORA_WA_SID" (WA session cookie) are shared between the windows. But multiple application instances cannot run in the same browser session simultaneously because of session sharing. This is not actually a defect, but rather a limitation of current system architecture and browser behavior. And there is no way to fix it programmatically on the product side.

    Hi MeHyper,
    Your current arrangement puts most of the session handling and persistence on the client. This forces you to accept whatever the client decides to persist and propogate between browser elements (in this case iframes).
    My approach would be to:
    Consider coding your portlets to manage the sessions. Manage using a somewhat stateless strategy so that each request to the server requires a login and connect, retrieve, and disconnect. Each Iframe should access a different portlet url (or provide a different query) based on its content.
    This way, in theory, you can invalidate the sessions and related cookies and update the various report elements independently.
    Is smartview out of the question here?
    Regards,
    Robb Salzmann

  • Display Session issue in Essbase

    Hi,
    we currently upgraded to V11.1.2.2 from 9.3. In system 9 to see a list of sessions we used EAS and did a Edit Session on the server to get a list and it worked fine, but in System 11 the behavior of Edit sessions is different. Whenever we did Edit sessions it took the Essbase in a funky state which doesnt recover even when we kill all the ESSSVR sessions in the backend., ultimately we have to restart Essbase to bring it back up. We thought it could be an EAS issue and instead used MAXL command to list the sessions, "display sessions on application Sample;" and it was the same behavior as it has happened while displaying sessions from EAS which tells me its the Essbase function thats doing the harm.
    Does anyone had seen this behavior with Version 11 or V11.1.2.2 specifically? FYI we are hosting Essbase on 64 Bit AIX. Is there tuning options that could resolve this issue? Any feedback is appreciated.
    Thanks!
    @MJ

    Turned out be an issue in EAS server on linux which oracle addressed with a patch.

  • Bdc sessions Issues

    I have a users who is trying to process a BDC session in sm35 and they are getting you are unable to schedule session XXXX.
    I checked sm35 and they have access to it
    And object S_BDC_MONI has values of ABTC, ANAL, AND AONL.
    Nothing happens of course they are offsight so an su53 I am unable to do now............any suggestions.
    THANKS!!!!

    Maritza,
    There are many reasons why ST01 is not showing results.  Try practicing with it in one of your test systems or see if anyone in your area has used it before who may provide assistance.
    Try one other thing after the user runs the transaction.  You run SU53.  Then hit F5 and put in the user ID of the user with the issue.  See what object shows up.
    Cheers,
    Ben

  • Ajax cfc issue -- indeterminent error msg

    I have one ajax cfc app that works fine.  This app uses the file name from the browse button on the file input object that is passed to my proxy.cfc, which in turn, queries the attachments table in my db to see if this file has already been uploaded for this project.  If the file is not there, then I upload it to the server.  If it is there, I pop-up an error message to the user giving him/her the date/time it was uploaded and by whom.  These values are returned by testing code in the cfc.   It works great.
    I am now working on another app that will populate a lower-order select box in a hierarchy of select boxes based upon the new value in the current select box that has just been selected.  It seems doable, but there is an immediate error that I cannot seem to get past an error thrown by the IE error handler as an unhandled error.  This error is a “throw msg” error within the core Adobe code, which I’ve pasted in below:
    I have modeled the new app after the one that I have working.  In a effort to figure out this cause of this problem, I have even housed it in the original proxy.cfc to eliminate any question about having it in the correct location on the server. 
    At the current point, I am only trying to return an input value from the app, getAreasRmt.  Here are the calling and called code.  The line in the calling code that generates the error is the one where I call the cfc function: “alert (‘Rtnd BuGrpID: ‘ + areaProxy.getAreasRmt(….)));”
    Calling JS:
    getAreasRmt:
         This code will eventually pass back a structure containing all of the areas whose Business Group ID is sBuGrpID. 
         I am running CF8 on a W2003 x64 server with IIS 6.0.
         Thanks in advance for any help/suggestioins.
    Len

    Folks,
    This is my first attempt to bind a CFC to a <cfselect> so I may be missing something very basic that everyone elses knows.
    I've made some progress on this issue, but I'm not sure I'm actually moving forward.   After Googling, reviewing CF8 books and searching this site, I have converted this over to binding my CFC to a <cfselect>, which then calls the procedure within the cfc.  I've also started using cfdebug and FireBug from time to time to try to gain some insight into what is happening.
    But I think that I'm just at a different form of the original error message.  Here is the error from the Ajax Debug Log window:
    window:global: Exception thrown and not caught (http://192.168.1.100/CFIDE/scripts/ajax/package/cfajax.js, line 798) [Note: 798 could be the loction of the original error.  Or not]
    info:http: CFC invocation response:{"COLUMNS":["LOCATIONNAME","LOCATIONID"],"DATA":[["CDPG BOARDS",1],["CDPG Boxed Processor",12],["DIJIC",13],["EPSD BOARDS",2],["EPSD SYSTEM",3],["KM-RDV",4],["LAD",5],["MCPD",6],["MWG",7],["New BOARDS",9],["NEW_BIZ-RDV",11],["NPG",10],["OPD",8],["TestBus",14],["Testing ",15]]}
    info:http: HTTP GET /PHREDsevenInternal/Templates/hierchy.cfc?method=getLocs&returnFormat=json&argumentCollec tion=%7B%7D&_cf_nodebug=true&_cf_nocache=true&_cf_clientid=999030C7709D5E20E12A17ED431EFB2 A&_cf_rc=0
    info:http: Invoking CFC: /PHREDsevenInternal/Templates/hierchy.cfc , function: getLocs , arguments: {}
    info:LogReader: LogReader initialized
    info:global: Logger initialized.
    It is returning the query from the CFC finally. I'm assuming that if there would not have been an error, then the query would have been loaded into the <cfselect> that called it.
    Here is the latest version of both sides of the cfc binding:
    Call side:
    <cfselect bind="CFC:hierchy.getLocs()" bindonload="true" value="LocationID" display="LocationName" name="Location" />
    Here is the CFC code:
    <cfcomponent output="false">
    <!--- Test to see if the passed-in name is in the db already --->
    <cffunction name="getLocs" access="remote" returntype="query">
      <cftry>
        <cfquery name="getLocQry" datasource="PHREDsevenInternalSQL">
         SELECT LocationName,LocationID
         FROM Locations
         ORDER BY LocationName
        </cfquery>
        <cfcatch type="Any">
         <cfdump var="#getLocQry#">
        </cfcatch>
      </cftry>
      <cfreturn getLocQry>
    </cffunction>
    </cfcomponent>
    Question about location of the CFC.  I prefer to keep all my CFC's in a CFC directory so that they can be reuseable.  I tried both relative and full location methods but neither worked.  If it didn't find the CFC, then it would throw an error telling me that it didn't find it, but I could not get the query to run and return the info you see above until I moved it into the directory where the calling cfm lives.  Is there some mystical/magically method for letting CF know where it is if it isn't in the invoking directory?  I know that if I were invoking a CFC that I would have to use the full path dotted method.   I actually did that here but it didn't get me a result back.  It just told me that I needed to return a 2D arrary or serialized query, which told me that I wasn't actually running the query even though CF could not find it.  Or I think that is what it meant.
    I'm at a total loss as how to proceed.  I've spent 4 days on this now and need to get this issue resolved.
    Thanks again for any suggestions/help on this matter.
    Len

  • Ajax Testing issue with e-Tester

    I'm new to using Empirix and we are using it to work with a new site that uses Ajax. I have recorded the script fine but there is an issue with the Link that needs to be clicked on that it will either always change or the index will change. I've tried to use a wild card after the number in the link that always stays the same but when I run the tests it always shows "Used secondary attribute 'index' ". Is there a way to get this to stop showing every time or get it to always use this attribute?
    Thanks,

    Hi,
    <br>There are two different issues here:
    <ol style="margin-top:0px;">
    <li> The link that will be clicked will always change or the index will change.
    <li> e-Tester is always using the secondary attribute "index"
    </ol>
    Let me issue #2 first since its easier to explain.
    <h2 style="color:navy"> e-Tester is always using the secondary attribute "index"</h2>
    <h2 style="color:navy">* For scripts that are not created yet:</h2>
    In order to change the order that e-Tester records the use of attributes you can go to:
    <br> <font style='color:navy'>e-Tester &raquo; Options &raquo; Current Script</font>
    <br> Then on the left side of the Current Script Options window go to:
    <br> <font style='color:navy'>Recording &raquo; Object Identification</font>
    <br>The following image presents how the screen looks like:
    <br><img src="http://qazone.empirix.com/servlet/JiveServlet/download/25-518-1621-527/upanddown.jpg">
    <br>
    Notice the bottons with arrows that are on the right side of the window. Use those to determine which attribute should be used first when recording the script.
    <h2 style="color:navy">* For existing scripts:</h2>
    Go to the page where resides the action of clicking the script, expand the page, <font style='color:navy'>right click on the Address Node</font> and select properties(a new window will appear), double click on the action that is making the click to the link (a new window called Event Properties will appear). In this new window click on the Attributes tab. The following image presents how the Event Properties window looks like:
    <br><img src="http://qazone.empirix.com/servlet/JiveServlet/download/25-518-1621-528/upanddownattributestab.jpg">
    <br>Notice the bottons with arrows that are on the right side of the window. Use those to determine which attribute should be used first when playing back the script.
    <br><br>I will create another post in order to answer the other issue. I need to organize my ideas.
    <br><br>Regards,
    <br>Zuriel

  • BSP - Portal Session Handling

    Hi all,
    is it possible to pass session information from one BSP to another in NW04? I am asking this because of the following problem:
    - calling a BSP IView opens a session and a new mode in the R3 backend system for the user requesting this BSP IView
    - navigation towards a new BSP IView with the same user again opens a new mode in the R3 backend
    - this behaviour can be seen for each additional BSP IView that is being called
    Is it possible to configure the portal so that it receives the session/mode information for the first BSP IView call and that it passes it on for every subsequent BSP call? If yes, how can it be configured (does it have something to do with the "Authentication Schema" property of an IView?)?
    Any input on this would be greatly appreciated!
    Best regards,
    Helga

    I am not sure whether the session can be shared between different ivews .
    If your concern is about too many backend sessions, portal's DSM Terminator would kill the previous session when moving from one iview to another iview.
    Regards
    Raja

  • Portal Application Sessions Issue

    Hi,
    We are getting the following exception when we are trying to open the task item from UWl . Initially it works fine but after a 15-20 times, we are facing this issue.
    403 error u201CMaximum number of application sessions for this user session has been exceededu201D
    Can anyone let me know where can we set the sessions / how to delete it.
    What is the best way to fix this issue.
    - By configuring opening of the UWL task item within the same screen . We dont want to do this and want to open it in new browser only.
    Thanks,
    Uma
    Edited by: Uma Anbazhagan on Feb 23, 2010 4:40 PM

    Could you please tell me which netweaver version is this system?
    However try the following:
    Please go to: http://<your host name>:<port>/nwa
    Select the application module "webdynpro/resources/sap.com/tcwddispwda", select Web Dynpro Properties tab and select default from the corresponding table.
    In the Full Details section, navigate to the property "sap.max.session.limit" and change the value that you would like to configure and save it.
    Best regards,
    Edited by: Marcos Fernandes on May 27, 2011 11:44 PM

  • Please help me urgently, Ajax Jsp issue (Escape Character issue)

    Hi all,
    in my application
    i am making an ajax call with a paramter
    like
    http://www.abc.com/Login.jsp?query=%25
    and iam encoding that parameter with encodecomponent() function of javascript
    but
    in my servlet iam getting the parameter as
    query=%
    how to solve this
    if i am not clear
    i will try to explain clearly again
    so it is failing to decode it again
    how to solve this issue
    iam using firebug debugger
    in that it is showing th url as specified above
    but in params tab it sho

    Can you use URLDecoder.decode(String) on the parameter
    [http://java.sun.com/j2se/1.4.2/docs/api/java/net/URLDecoder.html]

  • Stateful BSP Application - Session is lost for the first page ...

    Hello experts,
    so after changing via redirect to an https site (from http : see Change SSL_ACTIVE) my stateful BSP session is lost for the "first moment".
    When I trigger one event (it doesn't matter which -> hitting a link, pushing a button), on the next page my "stateful context" is back again.
    So I guess that when going through the next reqest/response cycle the BSP context is read from temporary client site cookies (sap-contextid and sap-appcontext)?
    So I want to have my BSP context directly after the redirect. Does anybody know how to check for the cookies and assign to the appropriate session or how to trigger the automatic reading of the cookies which happens after the first request/response cycle?
    Thanks in advance.
    Regards,
    Volker

    Hi Chandra,
    It is very much possible. I have handled similar requirement.
    Just check whether you are passing right attributeInfo.
    If your context attribute is directly under Root context.
    Do like this:
    AttributeInfo attribute     = wdContext.getNodeInfo().getAttribute(IPrivate<Testview>.IContextElement.<ATTRIBUTENAME>);
    wdThis.wdGetAPI().requestFocus(wdContext.currentContextElement(), attribute);
    If your context attribute is under a node(i.e. other than Root say NODE)
    AttributeInfo attribute     = wdContext.node<NODE>().getNodeInfo().getAttribute(IPrivate<Testview>.I<NODE>Element.<ATTRIBUTENAME>);
    wdThis.wdGetAPI().requestFocus(wdContext.current<NODE>Element(), attribute);
    *In this case(if you are using different NODE) you have to make sure that you have created NODE element already and lead selection is set for this created element before setting this focus* 
    Hope this solves your problem
    regards,
    Siva

Maybe you are looking for