ADF application life cycle

Hi,
Can any one tell me how the life cycle of an application is taken care in ADF application?
I have an ADF application. Once I logout of the application, and click internet browser 'Back' button to come to a page which needs the DB interaction, I need my application to go to 'Logout' page again and remain in there until I again login, because actually I am out of my application. But at present I do get the following error.
javax.faces.el.EvaluationException: Error setting property 'form1' in bean of type..java.lang.NullPointerException
I have the following code when I logout of the application.
FacesContext ctx = FacesContext.getCurrentInstance();
ExternalContext ectx = ctx.getExternalContext();
HttpServletResponse response = (HttpServletResponse)ectx.getResponse();
HttpSession session = (HttpSession)ectx.getSession(false);
session.invalidate();
response.sendRedirect("CRLIF001.jsp");
ctx.responseComplete();
return null;
Is there any code that I need to write to fix this? Could any one please help me?
Thanks,
Venki

Hi,
actually it does what you tell it to do: It deletes the session and as such the form is not available. You may be able to use a servlet filter that checks the session ID and the user authentication. If you detect that the session has changed or the user isn't authenticated, you redirect him to the page you want
Frank

Similar Messages

  • Error while executing transport in HANA's application life-cycle management

    Hi everyone,
    we're currently developing our HANA-based software and would like to use HANA's application life-cycle management: transporting our product from one system to another. Everything seems to be set up correctly: two different systems, correct privileges, a product comprising delivery units comprising packages as well as a transport route between the systems. However, the transport always fails with the following error (example for a transport of a single DU):
    [imdbhdb][HDB][2014.05.07 15:10.01.404][TransportService][0] Transport (delta) has been started for route ID: 1020 (Deliver Unit Transport)
    [hanaserver][HDB][2014.05.07 15:10.08.323][Other][0] Get end export timestamp for DU name: PERSISTENCE
    [hanaserver][HDB][2014.05.07 15:10.08.501][Other][12] Unable to retrieve end export timestamp: ReferenceError: assignment to undeclared variable errText
    [imdbhdb][HDB][2014.05.07 15:10.12.402][TransportService][0] There will be 1 delivery units which will be transported.
    [imdbhdb][HDB][2014.05.07 15:10.12.895][TransportService][12] Failed for DU: PERSISTENCE Vendor: LO Error: HTTP request failed. Status: 500. Error: Unable to retrieve end export time stamp.
    [imdbhdb][HDB][2014.05.07 15:10.12.917][TransportService][12] TransportServiceError: Error occurred while performing the transport.
    Does anyone know how to resolve this?
    Thanks so much in advance,
    Lukas

    Hi everyone,
    I am sorry I bothered you with this error. It was caused by me since I forgot to export a top-level file. This file must have defined a variable errText which other DUs depended on and could therefore not be activated.
    Now, the transport works perfectly well and I'm really happy with it.
    All the best
    Lukas

  • CMC: Security: Life Cycle Manager (LCM) missing under "Appication" Security

    Hello there,
    I am trying to set up security for the Life Cycle Manager (LCM). LCM has been installed on the BO 3.1 DEV_System with version SP2, FP4, by another company.
    I am using the procedure described in the (my opinion very well written) article:
    http://wiki.sdn.sap.com/wiki/display/BOBJ/FromDEVtoQAtoPRODusingLifeCycleManager
    The problem is, in the CMC security, under "Application" ("Anwendung") security, I cant see the "life cycle manager",
    Hence, e.g. I cant grant access to "Application"->"Life Cycle Manager"->"Create Job". I am using an Admin user with full rights.
    The life cycle manager does show up however under "Content" ("Inhalt") security, but I guess this concerns other security settings bc granting access to all of "Content"->"Life Cycle Manager" and "Content"->"Life Cycle Manager Job" still didnt allow end-user to create jobs.
    Did anybody stumble accross the same or has an explanation or solution?
    I think this is either a installation or configuration issue (are there any additional settings after intallation needed in other places in order to display security "Application"->"Life Cycle Manager" security in CMC and be able to grant end-users the appropriate rights) ?
    Thanks a lot for your help!

    Hi there,
    thanks... meanwhile, I found a SAP note that describes exactly the problem:
    1443784
    Advice is to even delete the whole workfolders for all webapps (.../localhost/catalina/...) and deployfolder and after that, start tomcat again.
    This also seemed to deploy all the webapps again, also, date from the deployed files indicates they really got redeployed.
    But: Still the same behaviour, no LCM in CMC-Security under "Applications" .
    Since everything got deployed again guess already the files that are deployed are not containing the right information!
    Maybe, during installation, they didnt get updated somehow.
    So, guess only solution will be to completely uninstalling LCM, reinistall it and cross finger that this time, the files will get updated.
    I already tried uninstalling FP 2.4, reinstalled it, no improvement (although it says it is updating CMCApp and CMCAppAction during installation - maybe the necessary updates are already done during isntallation of SP0/SP1/SP2).
    When trying to uninstall SP2 after FP 2.4 is uninstalled, get an error "missing .dll" - it is a mess, but I will keep on fighting
    If anybody has a clue how to specifically change specific files under CMCApp and CMCActionApp directly (dont know if that is possible though...) so that LCM App is displayed correctly in CMC Security->Application , would also be an acceptable workaround .

  • Application full Life cycle

    Can sombody pls. tell me the steps involved in full life cycle of an application or where I can read up this information.
    null

    Hi,
    You can take help from following links. These are very useful links related ti planning :-
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/00915d56-1e31-2a10-6785-e8b5c4114de3?QuickLink=index&overridelayout=true--- Over all steps for IP. It includes everything required for the implementation of IP.
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/c0ac03a4-e46e-2910-f69d-ec5fbb050cbf?QuickLink=index&overridelayout=true--- Steps to create Planning Function.
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/c0ac03a4-e46e-2910-f69d-ec5fbb050cbf?QuickLink=index&overridelayout=true --- For FOX Formula
    Navesh

  • How to run long background jobs in ADF applications

    Hi,
    I'm looking for some guidance on how to run an asynchronous job within an ADF application with proper progress notification in the current page.
    Let's assume we have some long running task (e.g. generating notification emails from a bunch of rows in my view object and send them) with the corresponding classes implemented in the DataModel as part of the business logic (e.g. a class that sends a mail to a given recipient).
    Let's assume all the relevant methods can be exposed in the appmodule's client interface so they can be invoked from the ViewController if needed.
    In my jspx page I have implemented the standard af:poll+af:progressIndicator mechanism to give feedback about the running task, backed by a custom BoundedRangeModel
    with methods getValue() and getMaximum(). This works.
    However, all the examples I've found on the net are very very simplistic and only deal with simple counters or countdowns.
    But how to actually implement the whole mechanism in a real life scenario? How do I run the job itself and make it give feedback to my BoundedRangeModel class
    (which in turn is used by the progressIndicator on the page)?
    Is there a recommended way to do this within ADF apps? I've tried to search something about asynchronous method execution in ADF but there seems to be nothing out there.
    Do I need to use standard Java techniques such as a separate Thread running a Runnable worker? Should I use an observer/observable pattern to notify BoundedRangeModel
    and update its internal variables (current value and maximum)? Would this work across a Datacontrol interface?
    Is anything of this allowed within the ADF framework or I'm just gonna break the whole framework model because do-it-yourself concurrent programming isn't allowed in a multithreaded pooled environment?
    Some explanation about the current recommended best practices and/or some practical examples or articles about that would be great.
    (BTW: I'm using version 11.1.1.2.0 and yes, I've checked the contextual events thing too, but that's just an inter-page communication mechanism so it has has nothing to do with what I need to do.)

    Hi
    I have implement a "Runner" class to generate a pdf to every customer of a mailmerge file, which was uploaded. Its simply easy to do something like this. Just add a button, bound the button with a methode out of you applicationModule and start your implementing Thread in this methode.
    public class Runner implements Runnable {
        private String docFileName;
        private String csvFileName;
        private byte[] csvData;
        private byte[] docData;
        private FtpClient client;
        private String category;
        public Runner(String category, String docFileName, byte[] docData,
                      String csvFileName, byte[] csvData, FtpClient client) {
            this.category = category;
            this.docFileName = docFileName;
            this.docData = docData;
            this.csvFileName = csvFileName;
            this.csvData = csvData;
            this.client = client;
        public void run() {
    }In your applicationModule, you can start your Runner like this:
            Runner runner =
                new Runner(category, docFileName, docData, csvFileName, csvData, client);
            new Thread(runner).start();And to the problem with your progressBar. I would create a managedBean with a HashMap<String, HashMap<String, String>>. Every thread you start, add a HashMap<String, String> to this hashmap with the id of the username/session/whatever (must be bound to the user, which starts the thread). This added HashMap<String, String> should be used by your thread to put some status-information into. Now you can try to bind this info to your progressBar.
    I dont know if this will work, it is just an idea ;-)
    Regards
    Majo

  • Where in the MIDlet life-cycle should I create multiple forms with LWUIT ?

    Hi all,
    I must create two LWUIT forms in my application. Where should I create the two forms ? I created the first form in the startApp life-cycle method , and when I tried to create also the second form in the startApp method then there is a NullPointerException raised when running the application !
    So where , or how , should I create the second form ?
    Thank you very much indeed
    Edited by: andrianiaina on May 20, 2011 1:59 AM

    I think the problem here is that Arlhoolie wants all of the different TEBs to behave as if they were part of a single interaction that submits only ONE result to the quiz.  Using multiple TEBs in Captivate means that you have multiple scored objects and therefore multiple results being submitted to the quiz.
    If you want a single Success or Failure result submitted to the quiz based on the results from multiple interactive objects then there really is no simple way to do it.  But you could try using the Infosemantics Interactive Master widget to combine all the TEBs as slave objects that report to the Master Widget, which then reports a single score to the quiz based on the results from the slave objects.
    You can learn more about the Master widget here:
    http://www.infosemantics.com.au/adobe-captivate-widgets/interactive-master
    http://www.infosemantics.com.au/interactivemaster/help
    You can download a free trial version of the widget here:
    http://www.infosemantics.com.au/adobe-captivate-widgets/download-free-trial-widgets
    One caveat you should be aware of is that this widget is not HTML5 compatible.

  • Regarding SLCM (Student Life Cycle Management)

    Hi
    does any one working on Student Life Cycle Management(SLCM)
    can any one pls let me know what are the function modules present in the predefined business package and how to know what are the predefined functonalites given by sap.
    when i test the predefined Iviews i get an error for some of iview as student object id not found.
    can any one pls let me know about this
    Bye

    Ok Fine
    I have some points to share thise issue with u
    first thing is , iam using wrong application for the requirement.
    and even i use wrong apps some thing result should be show, as i said the error i got
    we raised an sap Oss for this, they provided the solution as stating that we are using the apps which are specific to the advisor but not for the students specially.
    So if u want to use those apps for student purpose we need to get that student object and pass in our application.
    for this purpose we need an abaper help who is well versed in the coding part.
    just modify the code of required application where u fetch the object id (BY Coding) in ithe intialization method,
    then the appication works fine
    this is the solution i got and all my apps are working fine now.
    Thanxs
    sandeep

  • Content Life Cycle Management - Portal or NW Client.

    Hello GRC PC Experts,
    Kindly let us know whether Content Life Cycle Management is compatible on  Portal as front end.
    Or whether CLM is only compatible with NW Client.
    Please let us know.
    Thanks and regards
    Babu

    Hi,
    You need to integrate the system with portal
    system administration - system configuration and then add system.
    If you have sso then it is better.
    Then create new iview using templetes and then use SAP bsp iview templete and then select the system and then give the application name and start page of your BSP application.
    Thanks and Regards,
    gopal

  • Designing issue in Adobe Life Cycle in interactive form

    Hi,
      My design in Adobe Life Cycle is like,I have to show one image in left corner of the page and giving header and footer
    by using Static Text from Library.I have created the designing and running this application ,it is running fine.But my requirement is i have  to show 50 pages and each page should have same header and footer.How can i do it ?
    And how i will break the pages in to 50 pages.
    Thanks & Regards
    Muna

    Open the PDF file
    Click Ctrl+D (which opens up properties diaglo box)
    Switch to Security Tab
    Change security method to No Security
    If it asks for password - provide the password
    Click Save
    Try to re-open the PDF to ensure that it does not ask you to enter password
    now open the PDF file using LC Designer
    HTH
    --Santosh
    http://about.me/nskumar

  • Using page life cycle (OnPageLoadBackingBeanB)class to update page controls

    I used the onPageLoadbackingBeanbase class that exists in SRDemo to handle the page life cycle for my project ADF faces pages but found that the controls is null in all phases of the page
    How can i use the page life cycle for dealing with the page controls like
    filling selectOneChoice in the isPostback once not in every action or refresh
    thanks

    I sent this post 1 week ago and no response
    please help
    Message was edited by:
    user560167

  • How to invoke adobe life cycle webservice using c++ (how to pass blob structure as argument)

    We already wrote sample code (.NET C#) to access livecycle webservice(this convert the input file into pdf file) using below link from adobe
    http://livedocs.adobe.com/livecycle/8.2/programLC/programmer/help/wwhelp/wwhimpl/common/ht ml/wwhelp.htm?context=sdkHelp&file=000088.html
    We want to write c++ client to invoke adobe life cycle webservice. I have sample code to invoke the given webservice using plain c++ but I am stuck up with 'how to pass BLOB structure as argument to CreatePDF() method' and
    plus 'how to get ouput as mapItem[]' . Is the code to convert to pdf works fine with .NET and java only? Not with c++ or VB?

    In this case the LiveCycle services are exposed as web services that can be consumed by any application language that can interact with web services. While the sample published are for c# and Java there is no reason that other web service aware languages (C++, Perl, etc) wouldn't work.
    I'm not a Microsoft C++ expert, but as far as I understand all you need to do is create a web reference and then have your C++ classes interact via the generated proxy classes. The syntax will be different, but the concept is the same

  • Managed beans life cycle

    Hi,
    I thought I had a good grasp on <managed-bean> concept, but I wanted to understand better their life cycle since JSF framework takes care of it. JSF documentation doesn't seem to be very explicit on when exactly managed beans get created, when they get initialized, and when they are put into appropriate scope.
    I have an application that consits of large number of form (JSPs), close to 8 thousand JSPs. Depending on the usage scneario, it can use anywhere from 100 to 1000 of them at a time. I pretty much have one backing bean per one JSP page (form). Obviously, all 8 thousand backing beans would be declared in the faces-config.xml. I would like to make sure that only a few hundred of them are instantiated for each usage scenario as I only go through that many pages.
    Any help would be greatly appreciated.
    Thanks in advance,
    Vadim.

    Managed beans are created lazily - only when explicitly requested - and then immediately placed in scope. They will not be re-created until that scope goes away or their reference in that scope is explicitly nulled out.
    -- Adam Winer (EG member)

  • Servlet life cycle/Singleton pattern/synchronized

    I have some questions about the life cycle of a servlet and the use of synchronozed.
    We have a main controller class that is extended from HTTPServlet and accepts all HTTP requests. It in turn instantiates another class to do the work. That class eventually returns control to the main controller and the request is forwarded. It is a typical MVC.
    1. Once the helper class is instantiated how long will it live? We never destroy the class. I can debug the class using JBuilder and see variables set from the previous access.
    2. While the class is in memory, if two or more requests are requiring the use of it, is a copy of the class created and used by each request. These particular classes are not instantiated as 'private static' instances.
    3. If no copy is made, will the requests wait for the other to finish its processing before it gains control of the class. If no, I am assuming that proper use of synchronized will eliminate any issues.
    4. Anyone have advice on where and when to synchronize or do you know of any good articles on this topic.
    Thanks in advance for any advice you can give.

    Hello,
    Many of your question depends on where you declare the helper class, so here it goes:
    1) The helper class will stay in memory as long as it's scope lasts. Ie: If you declare it as an instance member of the servlet it will stay alive until the servlet is unloaded by the application engine.
    2) In short, local and parameter members, yes. Instance members no.
    3) Most servlet configurations servers multiple requests on the same servlet. So if your helper class is an instance member it can be accessed be multipe threads at the same time. You can also declare that your servlet is not thread safe and the application engine will create multiple copies of it instead.
    4) Er... Have a look around. I'm sure there are several examples and tutotrials on this site alone.
    Yours
    - Lars J. Nilsson

  • Role of DBA in DW life cycle

    Hi friends,
    Wouldu pls tell me what are the basic jobs to be done by a dba in a complete dataware life cycle?
    Thanks in advance,
    Pragati.

    I would refer to the various books by Ralph Kimball for more information on this as he covers all the various roles within a data warehouse project. The Oracle Database 2 Day DBA 10g Release 2 (10.2) provides a comprehensive overview of DBA type tasks, most of which apply to any type of application (OLTP or data warehousing).
    In addition DBAs might also be asked to manage design repositories such as those required by Oracle Warehouse Builder and other ETL tools and ensure these are configured and backed up correctly.
    Much will depend on the size of the data warehouse team, the size of the project and the required roles and responsibilities. In some customers where I have worked there have been different DBAs covering development, testing, QA, prooduction environments. At other customers I have seen DBAs cover just about everything including writing deployment scripts. So there is no standard approach in my opinion.
    Hope this helps,
    Keith
    Product Management
    Oracle Warehouse Builder

  • Life cycle method logic

    Hi. I want to ask a few questions about the life cycle methods of Windows Phone App:
    the OnNavigatedTo and OnNavigatedFrom, when is that methods called and what method is called when app goes to background, the screen locks(screen saver) and when app resumes? Thank you.

    Hi,OnNavigatedTo
    this method call after the initialization section.I recommend you load your data asynchronously. OnNavigatedTo is
    one place where you can start the loading.
    OnNavigatedFrom:- This
    method call when application leave the page.OnNavigatedFrom is one place where release application page resources/clean
    memory/clean Back stack entry etc.eg-If application running and you press back button/start button then this method call.
    Don't
    forget to mark the right answer and vote up if helps you.

Maybe you are looking for

  • SRM 7.0 PO Condition are not copied in ECC po

    Hi Experts!!! i am facing the problem SRM 7.0 PO Condition are not copied in ECC po, Net price is Coming instead of Gross price. & is there any BADI why which i can Fecth the Condition Data From SRM Quotation to ECC. pls help me it is go-live critica

  • Seriously! I can't rotate photos 90 degrees with a two finger gesture?

    I received a mms from my momz and the picture is sideways. I went to rotate the photo with the two finger gesture just like on my mac in iphoto and it didn't work. Why would they leave this out? Seriously I can't do this on the Iphone 4S!? If you kno

  • Code chage

    Hi,    Below is a code from the SAP ERP Central Component 5.0 version. I need to get it working for R/3 release 4.6C. Can anyone help me with this? DATA area TYPE REF TO zselarea. area = zselarea=>attach_for_read( ). DATA t_ranges TYPE ace_field_rang

  • Price in Reservation

    Hi all, There's a price field in the reservation table (RESB). This field is just filled when I enter Goods Issue with reference to reservation? When i enter goods issue with reference to reservation with 1 quantity the price is come from moving aver

  • On eBay, in my saved searches, there are only a few items for sale but on Google Chrome, there are hundreds listed, windows xp.

    I have "searches you follow" on eBay, there used to be hundreds of items listed on one of the searches, now there are only about twenty listed. When I open eBay in Google Chrome, the same search shows hundreds of items like it should. I have tried lo