Cannot re-authenticate in the same session.

I get this error when I call the Java server code sample that was included in the AFCS download.  I am calling the getAuthToken function on the AccountManager object.  This error only occurs when I open another tab in my browser and try to get another token.  We have wrapped the Java sample in a LiveCycle process and the channel is setup as follows:
var ro:RemoteObject = new RemoteObject( "myDestination" );
var cs:ChannelSet = new ChannelSet();
cs.addChannel(new AMFChannel("remoting-amf", "http:myServer:8080/remoting/messagebroker/amf"));
ro.setCredentials( "Administrator", "password" );
If I remove the setCredentials when I do not already have the browser open the I get a different error.  If I remove the setCredentials when I try to open another tab I do NOT get the error mentioned above.
So what is it about the setCredentials that is making this work only the first time and not when I try to open another tab in my browser?
Thanks in advance for any help.
-chris   

Looks like this is a fairly common problem when using Flex remoting and LiveCycle. I found one explanation here:http://michael.omnicypher.com/2009/01/authentication-with-flex-remoting-in.html but you can look for more.
I am not familiar with remoting used this way so I can't really help with that.
Regarding SSO, I would say yes and no. The purpose of external authentication is to leverage your authentication system and user database and give you a way to manage what privileges / permission your users will have once they enter a room.
So, in that sense yes, external authentication is a mechanism to do single-sign-on between your main web application and an LCCS room.

Similar Messages

  • Getting two differents UrlConnection.inputStream() over the same Session

    I need to access two diferents webservices by GET method but to access the second one the session created by the first must be alive. Till now, I got something like the following code but this code doesn�t let session keep alive. I would like to advise that I cannot use web tools like servlets to manage this =/
    DocumentBuilderFactory dbf;  
       DocumentBuilder docBuilder;  
       public ClasseXML(){  
          dbf = DocumentBuilderFactory.newInstance();  
          try {  
             docBuilder = dbf.newDocumentBuilder();  
          } catch (ParserConfigurationException e) {  
             alerta("Parsing error: "+e.getMessage());  
       public void request1(String params) {  
          try{     
             String url = myHost+"/"+params;  
             Document doc = docBuilder.parse( new URL(url).openStream() );  
       public void request2(String params) {  
          try{  
             String url = myHost+"/"+params;  
             System.out.println( url );  
             Document doc = docBuilder.parse( new URL(url).openStream() );  
    ...  

    So you are connecting to Server X, and you want to send two web service requests to that server? And you want the server to process both requests in the same session?
    If that's what you mean, then you have to do whatever the server wants you to do to maintain the session. Often servers send a cookie to the client and require it to be sent back to maintain a session, but that's not the only way. Your first step is to find out how the server is maintaining the session. If there's no published information about that, and you have nobody to ask, then you would have to reverse engineer the requests and responses in a normal session.
    Then you would have to write your code to send the same requests and handle the responses accordingly.

  • How can I get the same session with jdbc?

    HI
    After I create or use a JDBC connection,
    i do a query.
    How can I get the same session next time?
    thanks a lot!

    Hi qin,
    Unless I have misunderstood your question, a 'connection' and a 'session' are the same thing. When you obtain a database connection, you have created a database session. Once you close that connection, the session dies -- it no longer exists. You cannot obtain the same 'session' when you get another database 'connection' (after you closed the first one).
    Hope this answers your question.
    Good Luck,
    Avi.

  • How to track the same session using both jsp and servlets

    Hello, guys:
    "how to use jsp and servlet to track the same session",
    it seems to me my logoff.jsp never realize the session I established in my servlets.
    Here is how I set my session in my servlets:
    "     HttpSession session = req.getSession(true);
    session.setAttribute("userid",suserid);"
    Here is how I invalidate my session in my logoff.jsp
    " <%@ page language= "java" %>
    <%@ page import="javax.servlet.http.HttpSession" %>
    <%@ page session="false"%>
    Our Session id is : <%= session.getId() %>
    <% session.removeAttribute("userid");
    session.invalidate();
    %>
    Our Session id is : <%= session.getId() %>"
    but when I try to logoff using the logoff.jsp
    I always get following error message.
    "/home/jiao/jsp_webserver/tomcat/work/Standalone/localhost/syllabus/htmls/logoff_jsp.java:50: cannot resolve symbol
    symbol : variable session
    location: class org.apache.jsp.logoff_jsp
    out.print( session.getId() );"
    T.I.A.
    [Edited by: jiveadmin on Jun 18, 2003 10:32 AM]
    [Edited by: jiveadmin on Jun 18, 2003 10:33 AM]

    So,
    <%@ page session="false"%>
    That means the jsp never instantiates the build in session object.
    <%@ page session="true"%>
    means jsp will instantiates a session object if there are no existing ones
    how about I just delete the line,
    does that mean the jsp will find the existing session object for me?
    So I can do something like
    Our Session id is : <%= session.getId() %>
    <% session.removeAttribute("userid");
    session.invalidate();
    %>
    directly.
    T.I.A.

  • Can a report use the same session as a calling form?

    Hi,
    I am using Oracle Forms and Reports 6i. I am wanting to call a report from a form and open it in the same session. The form will insert information into a number of global temporary tables that the report will use to display the query information.
    Is this possible? If so what is it I need to do to acheive this? At the moment I am using the run_product which calls the report with a parameter list. This opens the report fine but in a different session.
    Regards,
    Scott.

    Scott,
    no they don't share the same session. You can use parameter lists and pass them in a call to run_report_object (or run_product if this is the built-in you are using) to the Reports module. When creating the parameter list, you can get the data from either global variables or filed sin Forms. All you need to do is to make sure the equivalent parameter names are created as user parameters in Reports.
    Frank

  • How to share the same session between JNLP Application and browser session

    How to share the same session between JNLP Application and browser session using BasicService.showDocument(url) method? It appears whenever i launch any URL from within a JNLP application using BasicService.showDocument(url) , it creates new instance of browser and session even after i used cooke handlers to restore JSESSIONID and Ltpa token etc.
    public static int showDocument(String urlToOpen)
    BasicService obj = (BasicService) ServiceManager.lookup("javax.jnlp.BasicService");
    obj.showDocument(urlToOpen);
    }

    Try using Reflection

  • Error : Old and new exceptions cannot be used at the same time.

    HI ALL,
    i build a new exception class with message class and i want to replace the
    old exception that i had in the method ,what i did is delete the exception from the method
    signature and add the exception class .
    the problem is that when i try to activate the method i get error :
    Old and new exceptions cannot be used at the same time.
    CALL FUNCTION 'CALCULATE_HASH_FOR_CHAR'
          EXPORTING
            alg            = 'MD5'
            data           = iv_iss
          IMPORTING
            hash           = lv_issu
          EXCEPTIONS
            unknown_alg    = 1
            param_error    = 2
            internal_error = 3
            OTHERS         = 4.
        IF sy-subrc <> 0.
          RAISE EXCEPTION TYPE cx_user_mng EXPORTING
          textid = cx_user_mng=>wrong_isrs.
        ENDIF.
    I want to use the new exception class ,
    how can i avoid this error ?
    Best Regards
    Edited by: Joy Stpr on Jul 22, 2009 2:56 PM
    Edited by: Joy Stpr on Jul 22, 2009 3:16 PM

    Hi Joy,
    Check this link.
    [Old and New Exceptions Cannot be used at same time|Urgent problem, give me a hand;
    Old and new exceptions cannot be used the same time, what does this mean???
    Regards,
    Lakshman.

  • How to validate multiple lines which is exist in the form builder at the same session

    Hi All,
    we are working on oracle Forms personalization to trigger the message at the point of saving multiple lines rather than requiring each line to be save individually. Currently the oracle form is allowing to user to enter two distinct lines that have same resource and basis type in BOM.
    Currently the Oracle form is allowing to enter the duplicate combination and not giving any error message even we enter the same combination of data.
    As per the customer requirement, they don’t want to validate the data while creating the records but when they try to save the form, in that case it should validate all the records at a time then need to display the appropriate message.
    Customer don’t want to customize the Oracle standard form. Here we have only option to use form personalization or through custom.pll.
    Any idea on how to validate multiple lines which is exist in the form builder at the same session as before inserting the record itself need to perform the validations for all the records.
    Thanks for your help in this regard.
    Regards,
    Thirupathi

    you can write a post script which will do the necessary tasks.
    I mean, once you are done with inserting records into these tables, exeute another procedure which will insert these "extra" records, based on some logic.
    you may not be able use DB trigger as it may generate mutating error or if you don't write it carefully, it will go into recursive loops as you are refering to same tables.
    HTH

  • LOV does not show newly added data in the same session

    Hi guys,
    I work with JDeveloper 11g Release 2. We use Oracle ADF to develop our web app.
    In a page we have a LOV (say the page name is "a"). The related data for that LOV is inserted to the db in another page ( say the page name is "b").
    When new data is added in the page "b" and goes directly to the page "a" the LOV does not show newly added data. But if the user log out and log in again
    LOV shows newly added data correctly.
    Is there a way to show the newly added data in the same session without logging out? Please help.
    Regards !
    Sameera.

    Add the following method in your ViewRowImpl base class:
    public void refreshLOVAccessorQueries() {
        List lovs = getViewDef().getListBindingDefs();
         if (lovs != null) {
             for (Object obj : lovs) {
                getListBindingRSI((ListBindingDef)obj).getRowSet().executeQuery();
                 ListBindingDef lbd = (ListBindingDef)obj;
    Export that method to the Row Client interface, add him to the pageDef, and invoke in the executables section of the pageDef:
        <executables>
    <invokeAction Binds="refreshLOVAccessorQueries" id="callRefreshLOVs"
    RefreshCondition="#{!requestContext.postback and empty bindings.exceptionList}"/>
       </executables>

  • OracleXE 10g cannot be installed in the same location as Client.

    hello!
    i would like to install XE DB (of course in silent mode) from a java application, but i always get this error in c:\WINDOWS\OracleDatabaseXEServerInstall.log file:
    "Oracle Database 10g Express Edition cannot be installed in the same location as Oracle Database 10g Express Edition Client."
    in java i call it like this:
    String cmd = "f:\\db\\OracleXEUniv.exe /s /f1\"f:\\db\\OracleXE-install.iss\" /f2\"c:\\OracleXE-install.log\"";
    int ret = Runtime.getRuntime().exec( cmd ).waitFor();
    i do not even need db client, but as far as i know it cannot be unset in parameter file (OracleXE-instal.iss).
    otherwise if i start install it in silent mode in console then it is executed without failure...
    so i need to unset client installation or just to avoid this failure...
    any idea?
    anybody can help me out?
    pilán

    Any adjustments to the installer file? Maybe a previous run has already completed (or didn't complete) and items need cleanup before it can install sucessfully?
    XE doesn't support mulitiple installations on the same host nor more than one instance running in the install directory, perhaps changing the szDir=C:\oraclexe\ to a different drive and/or directory might help. But if an oracle installation is already on the box, maybe it would have to be the last oracle install ... :(

  • Two bapi calls in the same session using PI

    Hi,
    I have a file to RFC scenario wherein I need to call a BAPI (L_TO_CANCEL) and then again, I need to call another bapi called
    "BAPI_TRANSACTION_COMMIT" in the same session. My question is, if I use RFC adapter, do I have to call the commit bapi again?
    If yes, is there anyway I can do that ?
    I believe that will be the case only if I use a proxy. Is that correct ?
    The requirement is to call these two BAPIs and finally include a success or error message in the response.
    Thanks.

    Inside the BPM you do not have a specific exception message. You can do an exception handling based on the exception, but the excpetion itself is not a real message.
    If you want a real message, you could create an ABAP proxy, which has a message like this:
    root
      - part1
           - rfc response
       - part2
            - error text
    then you can split this inside BPM and send a the response or the error.
    Of course there are other possible solutions.

  • When using Adobe Photoshop CS5, print settings default within the same session.

    Windows 7 Pro 64 bit.  As mentioned after adjusting some settings and printing, the settings reset the next time we go to print the same file within the same session. (never closing the file)

    Hi Chris,
    I will definitely give that a try. I had a tech set up my computer after i purchased it less than a week ago but it is a possibility that he missed it. I will try and run an update this weekend and see if that increases the speed when OpenGL is enabled. I will get back to you on the issue in the next few days.
    Thanks for your insight and helpful suggestion.
    Much appreciated.
    -Darren

  • I am having trouble moving files from iPhoto to a thumb drive.  Sometimes I can move 20 photos next time I can only move 2 photos or 0---this is during the same session.  I also have trouble downloading photos to the internet.  Can someone please help?

    I am having trouble moving files from iphoto to a thumb drive.  During the same session sometime I can move 10 photos at a time, the next time I can only move one photo and sometime no photos will move.  I also have trouble downloading photos to the internet.  I was using a MacBook Pro and had no problems like this.  I then upgraded to the MacBook Pro with Retina Vision and this is the computer I am having problems with.  Can anyone please give me a suggestion in how to fix this problem. THANK YOU.

    iPhoto problems should be posted in their forums.
    I also have trouble downloading photos to the internet.
    Needs clarification.  You upload from your computer to the internet & download from a website/internet to your computer.  So which are you trying to do?  Either way, sounds like a browser issue.  You need to post in the forum of whichever browser you are using.

  • Why do different users get the same session ID assigned???

    I have a database with users (username, password....). When a user logs on (through JSP and servlet), the user attributes get stored in a session.
    However, when I test my application (currently on my own pc), and I log on using a username in 1 window and then log on with another username in another window, I see these users get assigned identical session-ids! Is this because I'm testing this on my own pc environment?? Of course because they get the same session-ids, my application doesn't work right because if one user removes an attribute, the other user loses it as well. ????
    Thx in advance for expert advise!

    Try using IE for one user and FireFox for the other. The browsers wouldn't share cookies.

  • How can I use the same session for different components acroos application ?

    I am trying to include the components(chat, filesharing, whitboard) in different parts of my application. User should be able to access any of the component. We would like to have a single "ConnectSessionContainer" so that we don't see same user creating a seperate session for each component.
    Is there a better way of dealing with this other than declaring the "ConnectSessionContainer" in the main application ? Is there a way to check if we have a "ConnectSessionContainer" session already established ? Please help . Thanks.

    Thanks for the response. Let me explain what I am trying to do..
    I am trying to create components at different places(screens) of the flex application (not in the same .mxml file).
    Each time I create a component, I am using a "AdobeHSAuthenticator" and "ConnectSessionContainer" which is resulting a new participant in the room.
    For example
    screen1.mxml -
    <mx:Panel>
    <rtc:AdobeHSAuthenticator id="auth" authenticationSuccess="onAuthSuccess(event);" authenticationFailure="onAuthFailure(event);" />
    <rtc:ConnectSessionContainer id="mySession" >
            <rtc:Roster id="myRoster" width="100%" height="100%" />
            <rtc:Chat id="mychat" width="100%" height="100%" />
    </rtc:ConnectSessionContainer>
    </mx:Panel>
    screen2.mxml (in the same application) -
    <mx:Panel>
    <rtc:AdobeHSAuthenticator id="auth" authenticationSuccess="onAuthSuccess(event);" authenticationFailure="onAuthFailure(event);" />
    <rtc:ConnectSessionContainer id="mySession" >
            <rtc:SharedWhiteBoard id="wb" width="100%" height="100%" />
    </rtc:ConnectSessionContainer>
    </mx:Panel>
    Here, I open a screen1 and authenticate as UserA and when I try to open screen2 flex is considering me as another user though I am in the same application.
    1) How can I use different components which are in different flex files as a same User ?
    2) Should I place my <rtc:AdobeHSAuthenticator> and <rtc:ConnectSessionContainer> in the main application which calls the screen.mxml?
    3) What is the best way to do it ?
    Thanks for your time !

Maybe you are looking for

  • Shelf life monitoring - user exits

    Hi Experts, We are trying to implement shelf-life monitoring for certain material types. Before i place my question, i'll try to explain the scenario as clearly as i can. For one plant and a fixed number of storage locations we're supposed to display

  • Design confusion

    hi, I've been writing this program for a while now and its starting to get a bit confusing. In one class I have three functions - one for retrieving an integer, one for retrieving a string and another for retrieving a coordinate from a file but I don

  • Get result

    Hi, I have a below code, and table contains the rows which is for particular date. From the table I have to select, last column of previous days value. i.e, if current date is 31July2009, I have to select 30July2009 and print the value 9 <!DOCTYPE HT

  • Unable to add or delate city in today view for time or weather

    I am unable to add or delete a new location or city in the today view for either the weather or world time.  I have clicked on the "i" and it then prompts me to click on the "+" circle for world time, however, when I attempt to click on the "+" I get

  • Address Book Hanging When Choosing Custom Image

    Address Book app in Tiger (10.4.6) hangs whenever any attempts to change the default image of the contact is done. The console displays the following message (multiple lines with same message): CDeviceList::CDeviceList: Found 0 devices. It seems that