Two Flex app on the same web page + BlazeDS

Hi,
On our welcome page, we have two small apps that display advertisement; they are both identical and use BlazeDS. When the welcome pas shows, I always have one of the app that receives this fault :
[RPC Fault faultString="Detected duplicate HTTP-based FlexSessions, generally due to the remote host disabling session cookies. Session cookies must be enabled to manage the client connection correctly." faultCode="Server.Processing.DuplicateSessionDetected" faultDetail="null"]
I feel the problem comes from the fact that two apps from the same page access the same service at the same time. Am I wrong?

Hi. I believe you are right. Using a HTTP sniffer such as Charles to look at the HTTP headers would tell us exactly what is happening but I think we can assume that you are in the ballpark.
If the server gets a request with no session cookie header, I think it will create a new session and then send a Set-Cookie header on the response with the new session id. It is likely that if both your apps are making their initial requests to the server at roughly the same time that neither of the requests has a session cookie header. In that case the server is probably creating two sessions, one for each request and that is likely causing problems.
While I haven't tested this particular scenario, I have been doing some testing around session cookie handling in BlazeDS recently. I would see if you can workaround this problem by already having a HTTP session established with the server before either of your apps runs. One way to do this would be by having a jsp page redirect to your welcome page. The call to the jsp page would cause a session to get created on the server. The server would return a Set-Cookie header with the new session id. The browser would then request the welcome page sending a session cookie header on the request. Your apps would load. Each app would make its initial request to the server only this time the requests would contain a session cookie header for the same valid HTTP session. . . and you would avoid getting duplicate session detected errors. . . at least that's I hope would happen.
If I have some free time I will try running through this scenario (having two small apps on the same page) and report back.
Hope that helps.
-Alex

Similar Messages

  • MacBook Air intermittently has issues connecting to websites when wireless shows connected to the internet. The pages show that I am offline, but I can ping Google DNS. Windows PC, iPhone and Android phone have no issue displaying the same web pages.

    MacBook Air intermittently has issues connecting to websites when wireless shows connected to the internet. The pages show that I am offline, but I can ping Google DNS. Windows PC, iPhone and Android phone have no issue displaying the same web pages.How do I solve this issue?

    Go step by step and test.
    1. Power off the router. Unplug it from the wall. Wait a while.
        Plug it back to the wall. Power the router on. Wait until all the lights are lit properly. It will take a while.
        Restart the computer.
        Start up in Safe Mode.
        http://support.apple.com/kb/PH14204
    2. Empty Caches
        Safari > Preference > Advanced
        Checkmark the box for "Show Develop menu in menu bar".
        Develop menu will appear in the Safari menu bar.
        Click Develop and select "Empty Caches" from the dropdown.
    3. Deselect Proxies if selected.
        System Preference > Network > Advanced  > Proxies Tab
        Under "Select Protocol", uncheck any box if selected.
        Click "OK" then  "Apply”.

  • Collecting data from advantech-usb4704 with two different apps at the same time

    I wonder if I can access to Advantech-4704 with two different applications at the same time?
    I use this block in my vis.
    I have enough ports, but inputs are needed in completely different applications. Do I have to close one of them or can they run simultaneously?
    Thankyou!

    Dear gtu,
    as nathand said, usually it is not supported to access the same physical resource simultaneously from multiple programs. In case of DAQmx for instance, you will get an error message which says that the resource is already reserved. I suppose the same would happen with your driver, however it might be worth a try.
    One workaround could be however if you revise your applications and merge the codes if it is possible so that no concurent resource allocation takes place.
    Best Regards,
    Adam Cseh
    Applications/Systems Engineer
    National Instruments

  • Cannot work with two Swing app. at the same time.

    Hi guys,
    I bring this problem here may somebody experienced that.
    I developed two client side applications(applets). Locate them on Apache/Tomcat. There is also a Index.html file with two links, so when user clicks on each link the associated application will downloaded on his/her PC and ready to work. (In index.html I used JavaScript function window.open(?) to load the applications)
    Now please see this scenario:
    1-I ran/loaded both application in two separate browsers(IE5.5). And tried to work with them(minimized one and work with another). Soon I faced unexpected frizzing/locking or very slow running on both applications.
    2-Then closed/killed one of them(killed IE). Then re-executed same application again. The application loaded with the last activated screen . Seems it never killed and it was still alive.
    3- The only way to successfully working is one by one. Means execute & work with one, then kill that, and then execute and work with another.
    To Debug:
    When both applications were running(each on it?s own IE), I opened the Task Manager and saw there was only one IEXPLORER.EXE was running, also there was only one Java VM (a little bird icon) on right-bottom of the screen.
    I believe this causes the problem. Seems they both running in the same session. Since I opened two applications in two IE I was expected to see two IEXPLORER.EXE with two JVM. Am I right? Do you think so?
    Note that the two app. have no Communication with each other.
    Any way, Now I am seeking to find the solution. My primary mind says probably I should not use window.open(..) in index.html to load the applications.
    Would appreciate any command on this.

    I am also facing the same problem !
    Since this may be a very late reply , if any body has a solution pls share!
    What I understand is that when we use javascript:window.open() it opens a new browser window
    but under same JVM. This is helpful if we need to have a 'Close window' button/link in the newly opened window and use javascript:window.close() there. Then browser will not show us the confirmation dialog box 'Webpage you are viewing is trying to close the window. Do you wish to Proceed?'
    But if we want a new JVM for each opened link and also donot want the popup dialog to be displayed when we close the browser from there..what do we do??

  • Hebrew and English on the same web page

    I am having a problem displaying Hebrew on my web page.
    I have figured out how to have the right-to-left display, but when I publish it, the font does not seem to work (I get all ?). I keep going around in circles as to why this is - a dreamweaver issue (character set, right now the page is set to iso-8859-1, but I have tried UTF-8 with the same result), or if this is a compter problem (I don't think this is the issue, as I am able to see the hebrew characters in Word, Dreamweaver (when I am typing), and all other programs.
    Any help would be appreciated for those who have dealt with this bilingual program.

    There is a Middle Eastern version of Adobe Dreamweaver CS4-ME, with full support
    of Hebrew, Arabic, Farsi and other languages,
    see http://www.fontworld.com/me/dreamweaverme.html

  • Two Identical forms on the same JSP page.???

    Hi want to have two identical submit forms on the same form but for some reason a get a javascript error when i add the second form to the JSP page... can you help me...

    I assume you meant "two identical submit buttons", instead of "two identical submit forms". Seeing your description of the problem, I believe you can reproduce it with a pure .html page, that is, a page containing not JSP code. So it is not a problem in JSP domain proper.
    I was going to direct you to the Technologies>>Internet>>Dynamic Services forum at
    http://forums.oracle.com/forums/thread.jsp?forum=95
    Then I found you have posted the same question as thread 298169 there.

  • Two people working on the same IWeb-page and still keep our own work saved.

    Hi! I work together with a girlfriend buliding webpages in IWeb. Is it possible for us to exchange work when both of us is edithing the same webpage - and both of us have other pages one our own that we rader not share/update/change/edit/overwrite/delete,...?

    Yes. Are you referring to pages in the same site or separate sites?
    For separate sites the shared site would need to be it in its own domain.site2 file. Then follow the directions in this MacWorld online article: Managing an iWeb site from multiple Macs
    The important caveat to this is that both of you cannot work on the site at the same time and plenty of time must pass between one of you finishing their work and the other starting up. It's just the nature of the beast. Otherwise you would have to pass the domain.sites2 file/package back and forth between your two Macs.
    If your two Macs are connected together on the same LAN you could place the domain file on an external HD attached to one of the Macs so both would have access to the same file. Again, both of you could not work on the site at the same time.
    The other sites would then be in a separate domain file.
    If you're referring to pages in the same site it can be done by having the jointly managed pages in one site and your pages in a separate site and her pages in a separate site.
    Then in the joint site add blank pages representing your pages and her pages. In each blank page put the following code in an HTML snippet:
    <script type="text/javascript">
    parent.window.location = "URL TO PAGE ON SITE YOU WANT TO REDIRECT TO"; </script>
    Thanks to Cyclosaurus for this code
    On each of your sites you would add blank pages representing the joint page and each other pages with the same redirect code.
    Now you can edit and change your pages at any time, publish as she can also with her pages. For the joint pages you will have to use one of the methods I described above for separate site.
    See this demo page for more about the Redirect method: Redirect.
    OT

  • Linking between two IFRAME tags on the same JSP page

    I have a JSP (lets call it �PAGE_A.jsp�) that contains a table� the <TD> tags hold IFRAME tags with an initial �src� referencing a �blank.jsp��

    <!-- Report View Table-->
    <table width="100%">
    <tr>
    <td>
    <iframe id='report_view' name="report_view" width='60%' height="500" frameborder="0" src='blank.jsp'>
    </td>
    <td align="left">
    <iframe id='drilldown_view' name="drilldown_view" width='40%' height="500" frameborder="0" src='blank.jsp'>
    </td>
    </tr>
    </table>

    At a point, the user initiates a call to a servlet, and the output (PAGE_B.jsp) is returned to the first IFRAME �report_view�.
    PAGE_B.jsp contains HTML anchor tags that call the servlet again, this time the return target is the second IFRAME �drilldown_view� :
    ( Some Text).
    Clicking the link produces the desired page to be generated and displayed in the correct IFRAME running IE 5.5, however, the same code under NETSCAPE 7.x causes the �linked� page to open in a new browser window.
    I have deduced that this effect may be due to the NETSCAPE browser �thinking� that the targeted IFRAME (�drilldown_view�) should be a �child� of the IFRAME that contains the link (�report_view�), instead of another IFRAME belonging to PAGE_A.jsp. Under this circumstance, NETSCAPE cannot find the �target�, and thus redirects to a new browser window.
    Q: Is there a way to specify the �parent� of the �iframe� in the anchor�s �target� attribute?

    target in a link shouldn't care, as long as the IFRAME is in the same window... It should be able to find it.
    Otherwise, you could explore using Javascript to get a reference to the object by specifying the path:
    var oIFrame = top.document.getElementById('drilldown_view');
    oIFrame.src = 'somepage.html';
    that could work.. I've used that type of thing before.

  • Linking 2 PDFs in the same web page

    I'm trying to find the coding to link 2 or more PDFs into one embeded Adobe Reader in a web page.  Click one and it loads in the embed reader below.  Click the other and it loads that one instead.  I'm sure it exists somewhere, but I haven't had any luck in finding it.  Any input?

    WM,
    The best you can do is place Text in your Sheets and/or their tables and other text containers, and then use the Find feature to locate and jump to them.
    It works quite well, in my opinion. Find will not search for Sheet and Table names, but if you use Cell A1 to contain the Sheet and/or Table name, Find will take you there in short order. If your Master Sheet has a cell displaying "Cow", you can select that cell, Command-C to copy, Command-F to raise the Filter panel, Command-V to place "Cow" in the search filed and use the arrow buttons to take you to each instance of Cow in the document, in turn.
    Jerry

  • Just got my MacBook Pro....having trouble opening up certain web pages...just keeps scrolling and scrolling, my 7 year old desk top that is on the same wireless network for internet opened up the same web page right away, so I think the Internet is OK

    just got my MacBook Pro and I'm having trouble opening up certain websites, it just keeps scrolling and scrolling and never opens up the page....this is not the case with all websites, however my 7 year old desk top - which is connected to the same wireless Internet connection opened up the same page right away, so I don't think it's the Internet, any suggestions?

    Use Software Update to update your os and anything else that needs to be updated.   Repair permissions and restart your computer when done.
    Not sure if your new Mac came with 10.7.2 pre-installed as you make no mention of your os system.

  • When I open new tabs, how do I set my tabs to open to the same web page every time?

    I have my home page set, but I don't see an option to set what site my tabs open with. I did have a website opening in my tabs, but it wasn't a change I made. According to one of the help articles, an extension may have changed what site kept appearing in new tabs. Now, my tabs are back to the eight tiles, but I'd like to set them to a specific website. How do I make this change to my tabs?

    You will have to open the <b>about:config</b> page and set the new tab page by changing the value of the browser.newtab.url pref via the right-click context menu as stated in the KB article.
    You can open the <b>about:config</b> page via the location/address bar.
    You can accept the warning and click "I'll be careful" to continue.
    *http://kb.mozillazine.org/about:config

  • IOS password autofill for more than 1 account on the same web page

    Can Safari in IOS 7 remember more than 1 login info for the same website?
    When I try to save 2 sets of user names and passwords for the same website it only autofills the last one set when I try to go back to the website.
    thanks
    Carlos

    Have a read here...
    https://discussions.apple.com/message/18409815?ac_cid=ha
    And See Here...
    How to use multiple iPods, iPads, or iPhones with one computer

  • Communication between two JApplets on the same web page

    Hi Freinds
    I have a JSP page containing two applets as follows :-
    <jsp:plugin type="applet" code="TreePageJavaClass.class" codebase="/MYOA" width="200" height="300" name="Applet1">
    </jsp:plugin>
    <jsp:plugin type="applet" code="TreePageJavaClass2.class" codebase="/MYOA" name="Applet2" width="200" height="300">
    </jsp:plugin>
    First applet extends JApplet class and has a tree constructed using swing.
    Second applet extends Applet class.
    Now I want to call a method in second applet on selecting a particular tree node on first applet. I can call method on second applet from first applet when both extends Applet class (not JApplet)
    So please tell me what's the problem here and how it can be solved.
    Thanks

    First Applet :-
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.tree.*;
    import java.applet.*;
    public class TreePageJavaClass extends JApplet {
    JTree tree;
    JTextField jtf;
    Container contentPane;
    public void init() {
    contentPane = getContentPane();
    contentPane.setLayout(new BorderLayout());
    DefaultMutableTreeNode top = new DefaultMutableTreeNode("MakeYourOwnAds");
    DefaultMutableTreeNode a = new DefaultMutableTreeNode("User1");
    top.add(a);
    DefaultMutableTreeNode a1 = new DefaultMutableTreeNode(getParameter("param1"));
    a.add(a1);
    DefaultMutableTreeNode a2 = new DefaultMutableTreeNode(getParameter("param2"));
    a.add(a2);
    DefaultMutableTreeNode a3 = new DefaultMutableTreeNode(getParameter("param3"));
    a.add(a3);
    DefaultMutableTreeNode a4 = new DefaultMutableTreeNode(getParameter("param4"));
    a.add(a4);
    tree = new JTree(top);
    int v = ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED;
    int h =ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED;
    JScrollPane jsp = new JScrollPane(tree, v, h);
    contentPane.add(jsp, BorderLayout.CENTER);
    jtf = new JTextField("", 20);
    contentPane.add(jtf, BorderLayout.SOUTH);
    // Anonymous inner class to handle mouse clicks
    tree.addMouseListener(new MouseAdapter() {
    public void mouseClicked(MouseEvent me) {doMouseClicked(me);
    void doMouseClicked(MouseEvent me)
    TreePath tp = tree.getPathForLocation(me.getX(), me.getY());
    TreePageJavaClass2 app = (TreePageJavaClass2)getAppletContext().getApplet("Applet2");
    if(tp != null)
         if (tp.toString().equals("[MakeYourOwnAds, User1, Ajay]"))
         jtf.setText(tp.toString());
              if (app == null)
              app.setData("null");
              else
                   app.setData("Ajay");
         else
              jtf.setText(tp.toString());
    else
    jtf.setText("");
    Second Applet :-
    import java.awt.*;
    import java.awt.event.*;
    import java.applet.*;
    public class TreePageJavaClass2 extends Applet
    private Label msg;
    public void init()
    setLayout(new BorderLayout());
    setBackground(Color.LIGHT_GRAY);
    msg = new Label("Applet2 is running...", Label.CENTER);
    add(BorderLayout.CENTER, msg);
    public void setData(String message)
    msg.setText("Selected Node is " + message);
    Hope you guys will help me.
    Thanks

  • Communication between JApplet and Applet on the same web page

    Hi Freinds
    I have a JSP page containing two applets as follows :-
    <jsp:plugin type="applet" code="TreePageJavaClass.class" codebase="/MYOA" width="200" height="300" name="Applet1">
    </jsp:plugin>
    <jsp:plugin type="applet" code="TreePageJavaClass2.class" codebase="/MYOA" name="Applet2" width="200" height="300">
    </jsp:plugin>
    First applet extends JApplet class and has a tree constructed using swing.
    Second applet extends Applet class.
    Now I want to call a method in second applet on selecting a particular tree node on first applet. I can call method on second applet from first applet when both extends Applet class (not JApplet)
    So please tell me what's the problem here and how it can be solved.
    Thanks

    There is a Middle Eastern version of Adobe Dreamweaver CS4-ME, with full support
    of Hebrew, Arabic, Farsi and other languages,
    see http://www.fontworld.com/me/dreamweaverme.html

  • I can't print from firefox. The paper feeds throught the printer but does not print. The same web pages will print when I use internet explorer. And the printer works fine with word, excell etc, just not with firefox.

    Whenever I try to print any page opened in firefox it will not print. The paper feeds through the computer, but does not pring.

    See this: <br />
    http://kb.mozillazine.org/Problems_printing_web_pages

Maybe you are looking for

  • 790FX-GD70 not Booting, FF code

    Hello, new to the forum... I signed up on here because I am having a rather difficult time with my MSI motherboard; I haven't been able to find any help elsewhere. I put together a machine using the MSI 790FX-GD70 socket AM3 board (not winki ed.) and

  • Yoga 2 Pro Windows 8.1 stuck in automatic repair loop

    So my Yoga 2 Pro is stuck in the (in)famous Windows 8 Automatic Repair Loop, and I'm not sue how to fix it now. I unfortunately neglected to create a Recovery USB stick, so what are my options without it? I've already tried booting the computer with

  • Animation is with "shocks"

    Im animating a map for school. But ive got a problem, when i export my movie(swf or mov or avi or...) my letters are 'shaking' I thought i had a solution by exporting all frames to jpegs and converting all jpegs to a movie with a video editor but eve

  • ORA-16038, ORA019504, ORA-00312

    Hi there, first of all, my apologies if the question I'm about to ask has been answered in other thread before. Kindly direct me to the thread it's similar. I'm currently using Oracle 9i installed on HP-UX. Before doing a reboot on the machine, there

  • Batching Photoshop actions.

    So I have a number of retouching ansd sharpening actions I use. With Bridge I just use the Automate>Batch commands to mass process in Photoshop. What is the best way to continue using these actions in conjunction with Lightroom? Currently when I expo