EBS SDK for ADF - info Session is null

Hello

I'm trying to create a simple class in an ADF Application to get the content of the EBS (USER_ID, FUNCTION_ID, etc.), but my session is always returned as Null. If I use the true option during the creation of the session (getAppsSession (true)) I get the default user.

What I am doing wrong? Missing something?

WebLogic Server Version: 10.3.5.0

JDeveloper Version: 11.1.1.7.0

EBS: R12 1.3

Here is my code:

public void beforePhase(PhaseEvent phaseEvent) throws Exception{  
  
        //System.out.println(new AppsDataSource() instanceof Referenceable);  
        //testConnection(dbcFile);    


        FacesContext fctx = FacesContext.getCurrentInstance();  
        HttpServletRequest request = (HttpServletRequest)fctx.getExternalContext().getRequest();  
        HttpServletResponse response = (HttpServletResponse)fctx.getExternalContext().getResponse();  
        
        FacesMessage message = new FacesMessage("request : " + request);  
        fctx.addMessage(null, message);  
        
        message = new FacesMessage("response : " + response);  
        fctx.addMessage(null, message);  
        
        try {  
            Connection EBSconn = ConnectionProvider.getConnection();  
            message = new FacesMessage("EBSconn : " + EBSconn);  
            fctx.addMessage(null, message);  
            
            EBiz instance = EBizUtil.getEBizInstance();  
            
            message = new FacesMessage("instance.getDbId() : " + instance.getDbId());  
            fctx.addMessage(null, message);  
            
            message = new FacesMessage("instance : " + instance);  
            fctx.addMessage(null, message);  
            
            AppsRequestWrapper wrappedRequest = new AppsRequestWrapper(request,  
                                                                       response,  
                                                                       EBSconn,  
                                                                       instance);  


            message = new FacesMessage("wrappedRequest : " + wrappedRequest);  
            fctx.addMessage(null, message);  
            
            Session session = wrappedRequest.getAppsSession();  
            //Session session = wrappedRequest.getAppsSession(true);  


            message = new FacesMessage("session : " + session);  
            fctx.addMessage(null, message);  
            
            Map columns = session.getInfo();  
            
            StringBuffer temp = new StringBuffer();  
            
            temp.append("<table>");  
            
            for (Object key : columns.keySet()) {  
                temp.append("<tr>");  
                temp.append("<td>");  
                temp.append(key);  
                temp.append("</td>");  
                temp.append("<td>");  
                temp.append(columns.get(key));  
                temp.append("</td>");  
                temp.append("</tr>");  
            }  
            
            temp.append("</table>");        
  
  
            setUserInfo(temp.toString());  
                
        } catch (Exception e) {  
            e.printStackTrace();  
        }  
    }

Thank you very much, Pier Paolo.

Fixed a problem. Basically, we had two server on two different protocol (HTTP and HTTPS) once we moved them both on the same, I could get what I needed.

Tags: Oracle Applications

Similar Questions

  • EBS SDK for ADF (Session Management) - get the required attributes of EBS

    Hi all

    I use Jdev 11.1.1.6.0.

    I am able to integrate the ADF with EBS with the EBS SDK for Java.

    (1) little is still unclear for me as the way to get the application_id, responsibility_id and a few other attributes of EBS.

    (2) if I open directly the application of ADF, the AppsServletAgent we get from the AppsRequestWrapper is null. For this reason, I'm not able to redirect the user to the Page of connection of EBS.

    Need help on the above two points.

    Thanks in advance,
    Anoop

    Anoop,

    I am glad that the snippet worked! The information you request is specified on the JavaDoc. Here is the summary:

    oracle.apps.fnd.ext.common.Session

    getInfo

    java.util.Map getInfo()
    Retrieves the column for this session ICX_SESSIONS session information. If the type of a particular column is not String in the SQL Resultset, then the value is first converted to string type (using the Object.ToString () method and then returned. If you need to access the raw typed values (without conversion), getRawInfo() should be used. Use-
    Wrapper AppsRequestWrapper = new AppsRequestWrapper (request, response, conn, ebiz);
    A session = wrapper.getAppsSession (true);
    Map columns = session.getInfo ();
    String respId = columns.get ("RESPONSIBILITY_ID");
    Returns the responsibility for the current user session context id

    Returns:
    an immutable map containing session stored information ICX_SESSIONS instance. The map keys must be higher in girdle.

    The JavaDoc is the patch when download you on MyOracle Support. I hope this helps.

    Juan Camilo

  • Session PK "null Reset".

    Hi all
    I have a form that has four elements that are able to save a search/filter data. Once the button search is selected according to the four values of selected point, record data are met. Can also select the Previous and Next buttons to scroll through the Records data populated search/filter.
    My problem is that the Session for the primary key is 'Reset to Null' when search is selected. So I'm not able to transmit values of element using a button that performs a redirection to another page in "Put on these items with these values" or by using the "URL target". The search button calls a function JavaScript, no 'submit '.
    But once I have add
    javascript:doSubmit('SEARCH')
    for the search button. The Session is the current value of the primary key. The form is rendered/subject but this makes my form lose features such as scrolling the records by using the buttons next and previous. The 4 elements of the research/Filterable also lost the focus to here 'view Null value'. Can someone help me to find another way to capture the value of my primary key? So I can pass values of Item to another page to create child table data based on the foreign key, thanks.

    Hello

    The process is what I've been suggests - in other words, we have only one button (which I renamed to SAVE2 to avoid a conflict with the existing button SAVE) which is displayed continuously. If the user clicks on this, the new process (which is configured to run before all other processes) will search for a value in the P2_PK_CLASS_ID element. If this element is null, we create a new record, then we change the value request to 'CREATE', otherwise we have to "SAVE". After this, all processes is displayed this new value for demand so act accordingly. The next immeidate process is the standard process of "process line..", so this will understand to CREATE or SAVE and run the right SQL.

    For the Info Session Add button question... This button has been using standard features of Apex redirection that specifies some 'set these values' / 'with these values"elements. It's fine IF the page was submitted and the values are in page numbers, that you have demonstrated. However, the items are updated using Ajax, so Apex does not know these when the redirect URL is under construction. To work around this problem, I created a new function of javascript (called doRedirect) in your header HTML box. He built the URL based on javascript understanding rather point values. The normal method redirect() is then called using this place. I created a new button (so that you can keep the existing one for comparison) which simply calls doRedirect(). This moment passes the values on page 9.

    Andy

  • Internal generator is used for construction - construction of error (null)

    Hi all

    First things first... It's the IDE, I use:

    QNX Momentics IDE for native BlackBerry SDK for Tablet OS

    Version: 2.0.0

    Build id: 201202171813

    I imported an assembly from another project file, I worked on (extension .s). I started having a linker error when I have a function in the referenced file. The project picked up the declaration of the function in the header file (.h), but not the definition in (.s) file.

    The first thing I found was an article on how the IDE requires le.s extension is case sensitive. I changed the extension of the file in uppercase. In addition, I also did the following to be recognized and treated as the assembly files lowercase extensions:

    Project-> properties-> C / C ++ general-> file-> new Types

    Model = *.s

    Type = Assembly Source file

    After noticing that there is no compilation error, but the linker could not yet find the function that I checked the file object (.o), and of course no file has been generated.

    I then tried to build just the assembly file (right click-> selected Build queue (s)).

    This is what I get in the Console:

    Reconstruction or the files selected

    Internal generator is used to build *.

    Build error

    (null)

    Addition of preprocessor #error throws any error. Adding indefinite #define tags around the code does triggers not any kind of syntax highlighting in the editor, as it does in c/cpp/h file.

    Here are my parameters of QCC assembler (project-> properties-> C/C++ build-> settings-> assembler CQS):

    Command:-qcc

    Options: - V4.4.2, gcc_ntoarmv7le_cpp-w1 - c-DUSING_GL11 = 1 - g

    In case anyone asks, I can't post the source for this (contract).

    Could someone suggest to get this working? Someone at - it had a similar problem and resolved it?

    See you soon,.

    G

    In fact, I think it's this bug:
    http://StackOverflow.com/questions/5209388/what-does-the-push-pin-icon-adornment-mean-in-Eclipse-CDT

    I noticed that the .cpp file has a "set" on the icon of the file. It looks like a key or a key. There seems to be a bug in Momentics/Eclipse, which causes the compiler to fall with an unspecified error (zero). I've renamed le.s file to. S and also renamed the .cpp file. I'm going to hazard a guess that by renaming the files was the cause.

    The solution for this:

    • Duplicate the file in another location and delete the file of the project (right click-> 'Delete').
    • Copy the file in the project directory where it used to be in the Finder (or Windows Explorer in Windows).
    • Refresh the project (right click-> "Refresh").
  • How to add in DVS ESX hosts with vsphere SDK for perl?

    Hello

    I am a newbie to vsphere SDK for perl. Just started using it for automation of one month back. , I was looking for options to automate the addition of ESXi servers and their physical cards in the distributed virtual switch. I got some details on how to add using powerCLI. However, my requirements are in the use of vsphere SDK for perl. Any help would be appreciated.

    Have we not like subroutines or plug editable in vsphere SDK for perl inorder to add host ESX in DVS. ?
    Thank you and best regards,
    Lebou

    You can certainly do it in Perl.  I don't have a working example, but perhaps that William will be when he catches this thread

    If I have time tomorrow, I'll try to put something together to help you get started, but you can also simply map the logic of LucD script.

    Basically Get - view is equivalent to Vim: get_view() and New-Object calls should be mapped to the type of object in Perl, for example, instead of VMware.Vim.DVSConfigSpec New-Object, we $spec = DVSConfigSpec-> (again).

  • File.upload ActionScript does not work on Air SDK for iOS devices

    I try to use the ActionScript File.upload to transfer a file on Air SDK for iOS environment, but the File.upload does not work properly. No event on the file upload handler is executed after File.upload is called, and no exception is caught. When I check the side network traffic server, I found no application http even didn't hit the server after execution of File.upload. The code is below.

    ------------------------------------------------------------------------------------------ -----------------------------------------------------------------------

    <? XML version = "1.0" encoding = "utf-8"? >

    " < = xmlns:fx s:View ' http://ns.Adobe.com/MXML/2009 "xmlns:s ="library://ns.adobe.com/flex/spark"title ="HomeView"> "

    < fx:Declarations >

    <! - Place non-visual elements (e.g., services, items of value) here - >

    < / fx:Declarations >

    < fx:Script >

    <! [CDATA]

    private var file:File;

    private var dir:File;

    This method is executed to create a file and download it when you press the download button.

    protected void OnUploadButtonPressed(event: MouseEvent): void {}

    trace ("upload button clicked");

    var urlReq:URLRequest = new URLRequest ("http://10.60.99.31/MyPath/fileUploadTest.do");

    urlReq.method = URLRequestMethod.POST;

    var str:String = "this is test";

    var imageBytes:ByteArray = new ByteArray();

    for (var i: int = 0; i < str.length; i ++) {}

    imageBytes.writeByte (str.charCodeAt (i));

    }

    trace ("size =" + imageBytes.length);

    try {}

    dir = File.applicationStorageDirectory

    I also tested in several different directories

    dir = File.createTempDirectory ();

    dir = File.documentsDirectory;

    var today: Date = new Date();

    var filename:String = 'IMG' + now.fullYear + now.month + now.day + now.hours + now.minutes + now.seconds + now.milliseconds + ".txt";

    file = dir.resolvePath (filename);

    var stream: FileStream = new FileStream();

    Stream.Open (file, FileMode.WRITE);

    stream.writeBytes (imageBytes);

    Stream.Close ();

    Review the content of the file to check if the file is written successfully.

    var readStream:FileStream = new FileStream();

    readStream.open (file, FileMode.READ);

    var: string result = readStream.readUTFBytes (readStream.bytesAvailable);

    trace ("rear read result =" + result); The result is shown here as planned.

    file.addEventListener (Event.COMPLETE, uploadComplete);

    file.addEventListener (IOErrorEvent.IO_ERROR, ioError);

    file.addEventListener (SecurityErrorEvent.SECURITY_ERROR, securityError);

    file.addEventListener (ErrorEvent.ERROR, someError);

    file.addEventListener (ProgressEvent.PROGRESS, onProgress);

    file.upload (urlReq); This line does not work. No handler is executed. No http request struck the coast server.

    trace ("after file upload test");

    } catch (error) {}

    trace (e);

    }

    }

    Complete Manager

    private function uploadComplete (event: Event): void

    {

    trace ("Upload successful.");

    }

    IOError handler

    private void ioError (error: IOErrorEvent): void

    {

    trace ("Upload failed:"+ error.text ");

    }

    Manager SecurityError

    private void securityError(error:SecurityErrorEvent):void {}

    trace ("security error:" + error.text);

    }

    Another Manager

    private void someError(error:ErrorEvent):void {}

    trace ("an error" + error.text);

    }

    Progress Manager

    private void onProgress(event:ProgressEvent):void {}

    trace ("progressHandler");

    }

    This method is executed to call the URLLoader.load when the delicate touch.

    protected void OnTrickyButtonPressed(event: MouseEvent): void {}

    var urlReq:URLRequest = new URLRequest ("http://200.60.99.31/"); This points to a server not - exist

    urlReq.method = URLRequestMethod.POST;

    urlReq.data = new ByteArray();

    var loader: URLLoader = new URLLoader();

    try {}

    Loader.Load (urlReq); This line is very important in iOS7. He decides if the latter file.upload may work.

    But in iOS8, file.upload does not work even if that line is executed.

    trace ("after urlloader load");

    } catch (error) {}

    trace (e);

    }

    }

    []] >

    < / fx:Script >

    < s:Button = "200" x = "200" width = "400" height = "200" label = "Upload" click = "OnUploadButtonPressed (event)" / > "

    < s:Button = "200" x = "500" width = "400" height = "200" label = "Tricky" click = "OnTrickyButtonPressed (event)" / > "

    < / s:View >

    ------------------------------------------------------------------------------------------ -----------------------------------------------------------------------


    When it is run on the simulator of the Air, it works very well as expectedand the file is successfully downloaded to the server. But when run on iOS devices (in my case, iPad), as I explained at the beginning, no event on the file upload handler is executed and not the http request has even hit the server. So I think that the problem may come from the client side.

    During my attempt to solve the problem, I found something complicated about this problem on iOS7. In other words, if you call the URLLoader.load method (although the URLLoader.load points to an address non-existed) before calling the File.upload method, the File.upload will work as expected on iOS7. Specifically, when the above OnTrickyButtonPressed method is run before the OnUploadButtonPressedmethod, File.upload will succeed on iOS7. But this only happens on iOS7. On iOS8, File.upload still refuses to work, regardless of knowing if the URLLoader.load is executed before.

    I think in my case, the problem is not the problem of sandbox or a session of Firefox problem described in the two links below, because not even a http request hit the side server. It seems that the Air SDK for iOS comes to fail send the http reason request any.

    http://StackOverflow.com/questions/5967382/Flex-4-FileReference-issues-with-Firefox

    http://StackOverflow.com/questions/351258/how-do-i-make-Flex-file-upload-work-on-Firefox-a nd-safari

    To make my problem clear, I list my environment below:

    • Development environment: Windows7 (64-bit) / Mac os 10.9.4 (tested on both OS platforms.)
    • IDE: Flash Builder 4.7
    • Air SDK: 3.8 / 16.0.0 (after that I have updated to the latest Air SDK 16.0.0, problem persists.)
    • Application server: Tomcat7 + spring

    Finally, I want to mention that download the file using URLLoader.load isn't an option in my case because I want to download large files in the future, which cannot be addressed with the URLLoader.load.

    I struggled with this for days. If I really appreciate it if anyone has an idea about this.

    Thanks in advance.

    Hi KA RYU.

    We have reproduced the issue successfully, our team would work on it.

    -Tushar

  • Accessibility: why is there no shortcut for Page Info in Windows?

    On Linux and Mac, there is a keyboard shortcut for Page Info:
    Linux: ctrl + I
    Mac: cmd + I
    but there is no shortcut for Windows relatives, we are forced to use a mouse. An extension should not be required for basic accessibility features.

    I agree that a keyboard command to open the Info Page on the Windows of Firefox versions should be standard, but unfortunately {Ctrl + I} always open the bookmarks bar, which cam also open with {Ctrl + B}.

    I have been using the extension of Page Info button to add this feature to Firefox since Firefox 1.0.
    https://addons.Mozilla.org/en-us/Firefox/addon/page-info-button/?src=SS

  • Where to get the SDK for the Toshiba Bluetooth stack?

    This subject was little addressed in another post, but never really answered. Does anyone know where to get the SDK for the Toshiba Bluetooth stack?

    Thank you

    Hello

    On the page Web of Toshiba, you will only get the latest version of the Toshiba Bluetooth stack. Unfortunately, I put t found any information on SDK.
    For more information please visit the Toshiba Bluetooth information site:
    http://APS.toshiba-tro.de/Bluetooth/

    Good luck

  • psxrun error when installing utilities and SDK for UNIX Applications

    Platform: Windows 2008 R2 (VM) 64-bit

    I've added the feature "Subsystem for UNIX - based Applications" and then in the installation process "utilities and SDK for UNIX - based Applications Setup Wizard." However, I'm getting Psxrun error with the message "Unable to connect to Subsystem for UNIX - based Applications."

    I checked the event log and noticed that the event ID is 2008, so I googled and found the following link:

    http://TechNet.Microsoft.com/en-us/library/dd348833 (v = ws.10) .aspx

    But the solution is application using the POSIX after installation, not during the installation. If someone had the same problem and knows the solution to this, please help.

    Hello

    Welcome to the Microsoft community.

    The question you posted would be better suited in the TechNet Forums. I suggest you to ask your question in the TechNet Forums for assistance.

    http://social.technet.Microsoft.com/forums/WindowsServer/en-us/home?category=WindowsServer

    I hope it helps. If you have any questions about Windows in the future, please let us know. We will be happy to help you.

    Thank you

    Kulu Sharma.

  • Windows Mail keeps asking for my username and password, and even if they are correct he still doesn't and comes repeatedly asks me for the info

    That makes me MAD! Windows Mail - checking the user name and password &!

    It makes me crazy.

    For the last few days my Windows Mail keeps asking for my username and password and even if they are correct it still doesn't and comes repeatedly asks me for the info again and again. I deleted the account mail twice now and re added it but it still does not work. I can send emails but not receive. I have McAfee but I aiinstalle only this yesterday so that isn't the problem. the error message is:-
    Account: 'mail.talktalk.net', server: 'mail.talktalk.net', Protocol: POP3, server response: '-ERR Authentication failed.', Port: 110, secure (SSL): no, Server error: 0x800CCC90, error number: 0x800CCC92

    Please help I need to retrieve my emails! Thanks, Sarah

    McAfee is a huge problem with Windows Mail.  See www.oehelp.com/OETips.aspx#3 if you want to use, wait until you get the job of Winmail.

    Check if you can connect webmail and that works very well and it's not a problem on the end of the server messaging or because of misspelled powers.  Then delete your account in WinMail, compact and repair the database (see www.oehelp.com/WMUtil/) and make sure that you have disabled the e-mail analysis then add your account to mail back again and see if it works.

    Steve

  • Start stuck on "Please wait for the Local Session Manager."

    I would say that this problem started a couple of days. Went to start my laptop (Toshiba) and he sat on the "Please wait" message forever.

    Had no problems to start in safe mode. Looked up various ways of addressing the problem.

    Was able to change the resume date and back a few weeks ago. Still no luck. Happened to read something on a printer Epson being perhaps the problem driver (it was installed a day before the date of restoration chosen). Uninstalled the drivers, computer still does not start.

    Tried restarting running. I do not have the CD it came with Vista, but it was an option when you hold F8 during startup (I think?) Couldn't find any problems.

    Ran check on memory. No problem either.

    Changed settings for a verbose startup and ran a Diagnostic startup - all good for this. Then tried selective startup load system services... This is when the error occurs. When starting, it hangs on "Please wait for the Local Session Manager" and does nothing more.

    I looked in the event viewer to see what came that time and a couple mistakes were:

    Event ID 6000: winlogon notification subscriber was unavailable to handle a notification event.

    Event ID 7026: the next (s) start or start failed to load system
    spldr
    Wanarpv6

    It would be very useful for me not having to run my computer in safe mode automatically all the time, although it is useful that I at least have that option. Any help is greatly appreciated.

    Hello

    1. by chance your computer is connected to a domain environment?

    2. as you mentioned in your article that you tried the selective startup, I want to confirm if you have disabled the services left 3rd after hide Microsoft services?

    If you did not disable these services make sure you disable and then check if it works.
    See the article below for more information.
    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7
    http://support.Microsoft.com/kb/929135
    Note: When the diagnosis is complete, don't forget to reset your computer to normal startup. Follow step 7 in the above article.

    I hope this helps.

    Thank you, and in what concerns:
    Shekhar S - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.
    If this post can help solve your problem, please click the 'Mark as answer' or 'Useful' at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • SDK for Priv?

    Are you there a sdk official out yet?

    No, PRIVATE has no API specific BlackBerry, so no BlackBerry SDK is required.  Just use the Android SDK for Google 5.1.1.

    We have published a PRIVATE skin for the Android emulator, which can be used to simulate the physical keyboard.

  • BlackBerry SDK for Windows 64-bit

    Good day everyone,

    Please any action kindly with a link to Blackberry SDK for Windows 64-bit. I tried a lot of things, but received no satisfactory answer. Please share with me the URL link.

    Thanks in advance.

    As far as I KNOW 64 but Java is not supported.  You will need to download the 32-bit version of Java.  If you really need the 64-bit for the treatment of the other then I think you can configure Eclipse to use a 32-bit version installed separately, but I suspect that will be easier remove the java 64-bit and 32-bit just run.

  • Where can I get the version 1.2 of the BBM SDK for Java?

    Can anyone share the version 1.2 of the BBM SDK for Java, please?

    I am looking for it because v1.3 is compatible with BB Messenger 6.1 or newer.

    I can't reach the SDK, it is too big. PM me an email address and I will send it.

    I use the SDK 1.2 for the same reason.

  • Cannot download SDK for Windows

    Cannot download the Air SDK for Windows. Download link. https://bdsc.webapps.BlackBerry.com/air/downloads/fetch/BlackBerryTabletSDK-Air-Installer-2.0.0-Win-201202031410.exe.redirects me to return to the download page. Is there any mirror?

    This problem has been fixed.  You may need to reload the download page so that the changes take effect in your browser.

Maybe you are looking for

  • Frequency of data record

    I'm a complete noobie and trying to record thermocouple data using Signal Express 2012.  I can get the data to save and export to a text file, but it's a recording to 1.1 seconds.  I would like to change to once per second, but do not see this option

  • Support universal adapter for M55 8808

    I have a Lenovo ThinkCentre M55 8808 desktop computer, and its hard drive died about two months ago. Fortunately, I had access to an old HP laptop that has had a few other parts that turned bad, but still had a good hard drive. The problem is that th

  • Why my computer does not sometimes, sometimes it's done (to connect)

    Hi all - when I turn on my computer it get in the log on screen most of the time, but other times, when he's there, the red light blinks just desktop case on. Apparently not "launch" correctly. I have connected a printer and speakers. When I move the

  • HP nx 6110

    What outlet is is 478? or Can what kind of procesor I use for hp nx 6110 Thank you

  • LaserJet P1505: HP LaserJet p1505 cannot connect to USB 3.0

    My client has an old LaserJet P1505.  When we try to connect to a USB 3.0 port... (which is the only type of USB port, the client has) a troubleshooting error appears stating that it must be inserted into a USB 2.0 port. Y at - it an upgrade of the d