Exception of null pointer so that he was trying to get the view inside the AM object

Hi all

I use jdev 11.1.2.2
I try to create the session of the application
but the view object is thrown null pointer exception even if the view object is available within the impl class
    protected void prepareSession(Session session) {
        LOGGER.log(ADFLogger.TRACE, "Preparing the user session...");
        super.prepareSession(session);
      String emailId = ADFContext.getCurrent().getSecurityContext().getUserName();
        LOGGER.log(ADFLogger.TRACE, "Setting the user-context - app_user_lang on the database...");*/
        
           ViewObjectImpl UserAuthentionEVO =  this.getUserAuthenticationEVO();
          UserAuthentionEVO.setNamedWhereClauseParam("The_EmailId", emailId);//Throws null pointer exception
            UserAuthentionEVO.executeQuery();
            Row row= UserAuthentionEVO.first();
             if (row != null) {
            getSession().getUserData().put("USER_ID", row.getAttribute("UserId"));
           getSession().getUserData().put("ROLE_ID" , row.getAttribute("RoleId"));
             }
    public ViewObjectImpl getUserAuthenticationEVO() {
        return (ViewObjectImpl)findViewObject("UserAuthenticationEVO");
    }
this.getUserAuthenticationEVO () returns null

Why is what is throwing the error?
No idea why its pointing to null?

Thanks in advance,
Rakesh

Published by: Rakesh on July 4, 2012 07:22

Because of the hierarachy?

Your test case shows apparently so.

What I am doing wrong?

I wouldn't say that you're doing something wrong, just that ADF BC apparently does not support your use case. Use straight JDBC (even to call a stored procedure if you want to instead of using the SELECT statement) and problem solved.

John

Tags: Java

Similar Questions

  • ORA-02291 then that he was trying to install the version 4.0 workspace export

    Someone at - it problems when installing export workspace containing Apex 4.2 user groups?
    When I try to install a workspace dumped Apex 4.0, I get the following error of blocking:

    Execution of the statement was not successful. ORA-02291: integrity (APEX_040200.WWV_FLOW_FND_USER_GRPS_FK) violated constraint - found parent key

    Start
    () wwv_flow_fnd_user_api.create_user_group
    P_ID = > 117697823207460082,
    p_GROUP_NAME = > 'MASTER ',.
    p_SECURITY_GROUP_ID = > 101624224619521722,
    p_GROUP_DESC = > ");
    end;

    ORA-02291: integrity (APEX_040200.WWV_FLOW_FND_USER_GRPS_FK) violated constraint - found parent key

    I checked the docs and I couldn't find any reference to a known issue with the importation of a workspace that contains groups of users.

    Thank you
    Flavio

    ----
    http://oraclequirks.blogspot.com
    http://www.yocoya.com

    Hi Flavio,

    Another user of the forum has reported a similar problem earlier today. We did PSE * 14777994 * available on My Oracle Support. Go to patches and updates, and then enter the bug number 14777994. Once installed on your instance 4.2, you encounter is no longer the error reported.

    Thank you for reporting this problem and apologize for any inconvenience this may have caused.

    Kind regards
    Hilary

  • Error writing back then that he was trying to update the data

    It's my writeback.xml file*.

    <? XML version = "1.0" encoding = "utf-8"? >
    < WebMessageTables xmlns:sawm="com.siebel.analytics.web/message/v1" >
    < WebMessageTable = lang "" en - us "system ="WriteBack"table = 'Messages' >"
    < informed name = "UpdateBA" >
    < XML >
    < writeBack connectionPool = 'Pool of Oracle Data Warehouse connections' >
    < Insert > < / insert >
    < Update > update the VALUE XXAUD_W_BUD_QTA_F BUDGET_AMT=@{c19},attribute2='@{c15}'
    {where INTEGRATION_ID='@{c6}' < / update >
    < / writeback >
    < / XML >
    < / Informed >
    < informed name = "UpdateQA" >
    < XML >
    < writeBack connectionPool = 'Pool of Oracle Data Warehouse connections' >
    < Insert > < / insert >
    < Update > update the VALUE XXAUD_W_BUD_QTA_F QUOTA_AMT=@{c21},ATTRIBUTE3='@{c18}'
    {where INTEGRATION_ID='@{c6}' < / update >
    < / writeback >
    < / XML >
    < / Informed >
    < informed name = "UpdateFA" >
    < XML >
    < writeBack connectionPool = 'Pool of Oracle Data Warehouse connections' >
    < Insert > < / insert >
    < Update > update the VALUE XXAUD_W_FORECAST_F FORECAST_AMT=@{c19},attribute1='@{c22}'
    {where INTEGRATION_ID='@{c15}' < / update >
    < / writeback >
    < / XML >
    < / Informed >
    < name informed = "UpdatePO" >
    < XML >
    < writeBack connectionPool = 'Pool of Oracle Data Warehouse connections' >
    < Insert > < / insert >
    {< Updated > updated the VALUE XXAUD_W_SALESLOGIN_DTL ACTIVE_FLG='@{c2}' WHERE the RESOURCE_ID=@{c1} < / update >
    < / writeback >
    < / XML >
    < / Informed >

    < informed name = "UpdateRET" >
    < XML >
    < writeBack connectionPool = 'Pool of Oracle Data Warehouse connections' >
    < Insert > < / insert >
    < Updated > UPDATE XXAUD_W_RET_TARGET_F SET JUL_RET_TAR=@{c3},AUG_RET_TAR=@{c4},SEP_RET_TAR=@{c5},
    OCT_RET_TAR=@{C6},NOV_RET_TAR=@{C7},DEC_RET_TAR=@{C8},JAN_RET_TAR=@{C9},FEB_RET_TAR=@{C10},
    MAR_RET_TAR=@{C11},APR_RET_TAR=@{C12},MAY_RET_TAR=@{C13},JUN_RET_TAR=@{C14}
    {WHERE INTEGRATION_ID='@{c0}' < / update >
    < / writeback >
    < / XML >


    obtaining put up-to-date at any given time, but when I tried to update after a while I get the error message

    can you please tell me the reason for this?





    * An error occurred writing to the server. Please check that you have entered the proper values. If the problem persists, contact your system administrator.
    SAX parser returned an exception. Message: Name of entity expected to reference, entity publicId:, systemId entity:, line number: 1, number of column: 344 *.

    Error details
    Error codes: UH6MBRBC:E6MUPJPH
    Analyzed: < XML model writeBack = "UpdateQA" > < record action = "Refresh" > < value columnID 'c6' = > ICS_US ~ 1721 ~ 15041 ~ 1 ~ 2009 ~ 135 < / value > < value columnID = "c7" > 2009 < / value > < value columnID = "c13" > 2009 / 01 < / value > < value columnID = "17" > specialty < / value > < value columnID = "c15" > Carroll , Patrick < / value > < value columnID = "16" > SALES_PERSON < / value > < value columnID = 'c12' > 1st Auto & Casualty Insurance < / value > < value columnID = "c11" > ICS_US < / value > < value columnID = "c21" > 3334 < / value > < value columnID = 'c18' > as < / value > < / record > < record action "Refresh" = > < value columnID 'c6' = > ICS_CAN ~ 1438 ~ 15454 ~ 1 ~ 2009 ~ 135 < / value > < value columnID = "c7" > 2009 < / value > < value columnID = "c13" > 2009 / 01 < / value > < value columnID = "17" > specialty < / value > < value columnID = "c15" > Barrette, Denis (Denis) < / value > < columnID = 'c16' value > SALES_PERSON < / value > < value columnID = 'c12' > AXA Insurance < / value > < value columnID = "c11" > ICS_CAN < / value > < value columnID = "c21" > 147 < / value > < value columnID = 'c18 '. > fg < / value > < / record > < / writeback >

    Hi Varanasi,

    I also hit problem of special characters. New message for this here:
    Writeback OBIEE Sax parser error expected with ampersand gt/lt entity name

    Kind regards
    Gareth

  • Error on blackBerry Smartphones 31600 then that he was trying to stop the subscription

    Hello!

    When I try to stop the subscription app I get error 31600 and I can stop it.

    What should I do?

    Hi kotmorderca,

    Have you tried updating your subscription details before trying again?

    Thank you.

  • ORA-04031 then that he was trying to import the schema to XE

    Hello. I have Linux Amazon 'micro instance' EC2 (Yes, virtual machine) which has 613 MB of memory. I installed Oracle XE 11.2.0.2 and now try to import the schema of 11.2 oracle server standard edition:
    Impdp system/pwd dumpfile = mydump schema myschema =

    But I got the following error:
    ...
    Object type SCHEMA_EXPORT/TABLE/TABLE processing
    Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA
    UDI-04031: operation has generated ORACLE 4031 error
    ORA-04031: unable to allocate 32 bytes of memory ('pool', ' SELECT job_id FROM v$ datapum... ") (', 'SQLA","tmp") shared

    Is - this 613 MB of RAM enough for execution of XE? Here is the output of the memory:

    SQL > show sga

    Total System Global Area 250523648 bytes
    Bytes of size 2225472 fixed
    239078080 variable size bytes
    4194304 buffers of data bytes
    Redo buffers 5025792 bytes
    613 MB of RAM enough for execution of XE?

    The minimum recommended is 512 MB, so in theory it should be enough.

    Total System Global Area 250523648 bytes

    Which is less than 250 MB. With most of the facilities of Oracle, GR 11, 2, I'd rather have at least 512 MB for the SGA. But we must leave some room for the OS and PGA are an allowance separate memory for the instance as well. Are likely to shrink the PGA and give a little more room to SGA_TARGET or MEMORY_TARGET, depends on what has been tweeked, and which is still in the default settings.

    Take a look at the default value of the boot settings, in your alert log, find the last start, the lines between the "parameters of the system with default values:" and maybe a date stamp then, stick it in you, we could can help with suggestions to try.

  • Hi - I have an old Adobe Audition 1.5 and I used to be able to hear that I was recording. After the update of computer and reload Adobe Audition 1.5, can no longer hear the recording, but only on playback. Please notify.

    Hi - I have an old Adobe Audition 1.5 and I used to be able to hear that I was recording. After the update of computer and reload Adobe Audition 1.5, can no longer hear the recording, but only on playback. Please notify.

    Monitoring is done through your audio device, no hearing. When you updated your PC, playback of the audio device settings would have been reset. One of them includes the follow-up of the input jack, and that's what you need to restore. Since we do not know which audio device you use, it's all that we can tell you, except that if it is a device internal, you will need to open the volume control options and he change it. It depends on the good OS versions...

  • I received a notice that someone was trying to access my account, how can I make sure that they can do

    When you reset y Firefox I received a notice stating that someone was trying to connect to my account. I have to stop this and do not know how... Help please

    This could be a problem with cookies.

    Clear the cache and delete cookies only from Web sites that cause problems.

    "Clear the Cache":

    • Firefox > Preferences > advanced > network > content caching Web: 'clear now '.

    'Delete Cookies' sites causing problems:

    • Firefox > Preferences > privacy > "Use the custom settings for history" > Cookies: "show the Cookies".
  • I used chkdsk after trying to do a defrag and send a message that there was an error on the disc.

    original title: computer Dead after chkdsk

    I used chkdsk after trying to do a defrag and send a message that there was an error on the disc.  Asked me to use chkdsk after a statup as a volume is in use.  I did it but when I went through the suite, the computer was completely dead.  I think I gave the wrong settings of the chkdsk command.  How can I get my computer operational again?  I use Windows XP

    What do you mean by 'completely off '?  Is - literal?  All in all, nothing happens when you restart the computer?  No noise?  No fans? No beeps?  No video, no BIOS or POST information appear?

    John

  • Have error code 0 x 80070020 then that he was trying to run backup... tried with security off the coast and still the same error message... solution?

    Have error code 0 x 80070020 then that he was trying to run backup... tried with security off the coast and still the same error message... solution?

    Hello

    make backups on an external hard drive or DVD

    see if this information helps you

    How to make a backup of your data (all Vista versions)

    http://www.vista4beginners.com/how-to-backup-your-data

    How to restore your files

    http://www.vista4beginners.com/how-to-restore-files

    the 1st link below is how do the backup complete pc (Vista, full and professional company)

    http://www.bleepingcomputer.com/tutorials/tutorial145.html

    and that is how do to recover the backup complete pc

    http://www.bleepingcomputer.com/tutorials/tutorial144.html

    and here is the information of microsoft in restoring a system image backup

    http://Windows.Microsoft.com/en-us/Windows-Vista/restore-your-computer-from-a-system-image-backup

    If you have problems with the repost of process above in forum microsoft link that is specific to the backup below questions

    "This forum supports questions for the default backup utility in Windows Vista, Server 2008 and beyond."

    http://social.technet.Microsoft.com/forums/en-us/WindowsBackup/threads

  • Error 0x80071A91 then that he was trying to make a backup on Windows 7

    Original title: error 0x80071A91
    After completing the image of system and system repair discs tried to make a backup on a disk and wd external hard drive could not. following received support: transactions in the specified resource manager is not started or has been closed due to an error (0x80071A91).

    I want to make a return for 2 reasons 1 to install a 2nd internal hard drive and 2 from windows 7 has become a problem that it does not always load and then with out any rhyme or reason, it takes over after several attemps.can always start in safe mode.

    Windows 7 ultimate 32 bit on a Dell XPS 630i

    Ihesitate closed due 2 problems loading windows starts

    Hi MowGreen

    Finally got everything in order. Sorry for the late reply. Had to have everything reinstalled. After that windows 7 has been reinstalled was able to get the files I wanted from a backup I had on an external drive of the older operating system vista.

  • My sfc/scannow got stuck on checking 100% and then he said that he was unable to perform the requested operation. slow startup

    Hello

    I noticed a couple of days my laptop took a start-up and initialization time. its about 10 minutes. Once his work, it seems almost fine, sometimes a slow lttle with programs saying does not for a while and then they do it.

    I tried to run a sfc/scannow twice and each time he's stuck at 100% full audit. Thus, the first time I have waited a long time, looked at the Task Manager and saw that it was inactive closed it. the second time I waited a long time and he said: windows resource protection could not perform the requested operation.

    What should I do?

    I try to reinstall windows 8 all together and start over.

    Please help me!

    Hello

    You can try the following article instead:
    It generally a better method than the System File Checker.
    Hope this helps, good luck :)
  • CC so that he was trying to install updates is unable to connect to the server.  What should I do?

    CC so that he was trying to install updates is unable to connect to the server.  What should I do?   This is what it looks like.fail.PNG

    Check your hosts file.

    help for that and other adobe.com sure common connection problems read, http://helpx.adobe.com/x-productkb/policy-pricing/activation-network-issues.html

  • Photoshop elements 13 said that there was a problem with the download and recommend exit us and restart

    We bought a new laptop and 13 items today. We spent the day trying to get it set up. We tried to download the 13 items at least 6 times. Whenever it took about 45 minutes to download, but when we open the file and click on set up it says that there was a problem with the download and it recommends that stop, restart and download it again? How we work what goes wrong? We had to remove the files and start every time. I don't have another day to try to get this sort. Should not it is just a matter of downloading and then, should not come with a message to install and we just press Yes and it works.

    You can also download the trial version of the software directly (No Download Manager) through the page linked below and then use your current serial number to activate it.  You should get two files, an executable file and a compressed file.  Run the executable file and it will install the rest.

    Don't forget to follow the steps described in the Note: very important Instructions in the section on the pages of this site download and have cookies turned on in your browser, otherwise the download will not work correctly.

    Photoshop/Premiere Elements 13: http://prodesigntools.com/photoshop-elements-13-direct-download-links-premiere.html

  • Get an "unknown error" so he was trying to make the Vista SP1 and the error code 800F081F

    I am running Vista Ultimate.

    I installed the hotfix for Windows (KB947821). I always get the "Windows has encountered an unknown error" with the code 800F081F.

    I am also having .net Framework questions (why focusing on my updates in the first place, I started). I have "fixed" but was lifting a msg of error at startup:

    > Unhandled exception has occurred in your application. If you click on > continue, the application will ignore this error and attempt to continue. If > you click on exit, the application closes immediately.

    > There is a parsing of the query error. [The line number of tokens = 2, token line > offset = 27, token s = error]. (I have more error msg if necessary.)

    After you install the hotfix, this error disappeared, but I can't yet download the update of the SP1 for Vista. It is a sine qua non for SP2.

    Help, please! Anyone? 8

    * Title *.
    I get an "unknown error" so he was trying to do the update to Vista SP1, even after the installation of "fix" and always error code 800F081F

    KonfusedKathy,
    I suggest that you do the following:
    Start by putting your system in a clean boot State.
    Run the disk error checking
    Run System File Checker
    Run the System Update tool
    If there are not only found problems that couldn't be fixed by one of them and then try to reinstall SP1.

    Post back with the results.

    Mike - Engineer Support Microsoft Answers
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Someone was able to get the TOP of direct exec to show the other than 0% cpu %

    Someone was able to get the TOP of direct exec to show the other than 0% cpu %
    for all the processes... I've tried it on anf 3.2.6 now 4.0.3 and it still says 0%. Envoy in trouble months ago... Runnig im opensource hyperic on a system of ubnutu 6.06 linux
    Architecture: x86_64
    2.6.15 - 53-amd64-Server

    Mike,

    Here is the bug report that I mentioned when I said that it should be fixed in 4.1.  Now he says he's planned for 4.2.  I swear it says 4.1 when I modified looked at him.  :-(  If all goes well a fix will make it in 4.2. Maybe a 4.1.x if we are lucky. :-)

    http://JIRA.Hyperic.com/browse/HHQ-2678

    Brian

Maybe you are looking for

  • How to control PFI SMU 6556 card?

    Salvation or,. 1. I have a vector HWS include 50 output signals and 2 cards SMU 6556. How I build a Labview program to configure the ports of SMU cards with this vector? 2 could configure PXI SMU 6556 map as IO port? How could I do? Thank you and bes

  • Pavilion 17-g003nm: wireless network drivers for Pavilion 17-g003nm

    Hello There are no working drivers for the controller network and ethernet on the pages of HP support for the object model for windows 7(64bit) Posted there are drivers for realtek and this model has broadcom contoller model REF: N1J76EA Network Cont

  • Exchange 2010 upgrade to sp3 failed

    Hi all Please inform I am trying to install Exchange 2013, so am migrating from Exchange 2010 SP2 but a sine qua non is SP3. So when you try to install SP3, it fails at the level of the organization. Below errors

  • The cluster node IP address 3 MD 3220i

    I'll put up a new md3220i for our network at TAFE. We use 3 new dell servers with 4 cards of each title of guests. The hosts are labeled HV - 1, HT-2 and HT-3.I tried a few intellectual property regimes, but I can't wrap my head around it as I'm only

  • Installation of Service Pack 1 for x 64 system (KB976932)

    Hello Please can someone help me! I want to install an update for windows 7 "Service Pack 1 for x 64 system (KB976932). but I still have a problem with this update Thank you