Columns of history in the custom security settings

Hello
JDeveloper 11.1.2.2.0
JHeadstart 11.1.2.1.28
Authentication type = custom
Permission type = custom
I changed the base class of the module of the application in my template (oracle.jheadstart.model.adfbc.v2.JhsApplicationModuleImpl) project
and I add, applicationmoduleImpl.java this change


protected void prepareSession(Session session) {}
{
ApplicationModule am is getDBTransaction () .getRootApplicationModule ();.
JhsApplicationModule jhsAm = (JhsApplicationModule) am;
Object user = jhsAm.getUser ();
UserContext JhsUserContext = user (JhsUserContext);
session.getEnvironment () .put (PropertyMetadata.USER_PRINCIPAL.getName (), userContext.getDisplayName ());
}

super.prepareSession (session);
}


but when I run the ViewController and I want to connect...

.
.
.
.

Error 500 - Internal server error

javax.faces.el.EvaluationException: //C:/Users/user01/AppData/Roaming/JDeveloper/system11.1.2.2.39.61.83.1/o.j2ee/drs/sp11/ViewControllerWebApp.war/security/pages/Login.jsf @21,88 action = "#{LoginBean.authenticateUser}": oracle.jbo.common.ampool.ApplicationPoolException: Houston-30003: Application pool sp11.model.apm.clubLocal is unable to retrieve an application module because of the following exception: "
at org.apache.myfaces.trinidad.component.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:51)
at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)
at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:190)
to oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$ 1.run(ContextSwitchingComponent.java:130)
at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:461)
at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:134)
at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:112)
to oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$ 1.run(ContextSwitchingComponent.java:130)
at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:461)
at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:134)
at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:106)
at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:787)
at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1252)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._invokeApplication(LifecycleImpl.java:970)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:351)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:207)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:508)
to weblogic.servlet.internal.StubSecurityHelper$ ServletServiceAction.run (StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:173)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:125)
to org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$ FilterListChain.doFilter (TrinidadFilterImpl.java:468)
at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
to org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$ FilterListChain.doFilter (TrinidadFilterImpl.java:468)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:293)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:199)
at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.jheadstart.controller.jsf.AuthenticationFilter.doFilter(AuthenticationFilter.java:289)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
to oracle.security.jps.ee.http.JpsAbsFilter$ 1.run(JpsAbsFilter.java:119)
at java.security.AccessController.doPrivileged (Native Method)
at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)
at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:442)
at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)
at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)
at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:139)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.wrapRun (WebAppServletContext.java:3715)
to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.run (WebAppServletContext.java:3681)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
Caused by: oracle.jbo.common.ampool.ApplicationPoolException: Houston-30003: Application pool sp11.model.apm.clubLocal is unable to retrieve an application module because of the following exception:
at oracle.jbo.common.ampool.ApplicationPoolImpl.prepareApplicationModule(ApplicationPoolImpl.java:2556)
at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:2346)
at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(ApplicationPoolImpl.java:3245)
at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:571)
at oracle.jbo.http.HttpSessionCookieImpl.useApplicationModule(HttpSessionCookieImpl.java:234)
at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:504)
at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:499)
at oracle.adf.model.bc4j.DCJboDataControl.initializeApplicationModule(DCJboDataControl.java:517)
at oracle.adf.model.bc4j.DCJboDataControl.getApplicationModule(DCJboDataControl.java:867)
at oracle.adf.model.binding.DCDataControl.setErrorHandler(DCDataControl.java:487)
at oracle.jbo.uicli.binding.JUApplication.setErrorHandler(JUApplication.java:261)
at oracle.adf.model.BindingContext.put(BindingContext.java:1318)
at oracle.adf.model.binding.DCDataControlReference.getDataControl(DCDataControlReference.java:247)
at oracle.adf.model.BindingContext.instantiateDataControl(BindingContext.java:1020)
at oracle.adf.model.dcframe.DataControlFrameImpl.doFindDataControl(DataControlFrameImpl.java:1645)
at oracle.adf.model.dcframe.DataControlFrameImpl.internalFindDataControl(DataControlFrameImpl.java:1514)
at oracle.adf.model.dcframe.DataControlFrameImpl.findDataControl(DataControlFrameImpl.java:1474)
at oracle.adf.model.BindingContext.internalFindDataControl(BindingContext.java:1150)
at oracle.adf.model.BindingContext.get(BindingContext.java:1103)
at oracle.adf.model.binding.DCUtil.findSpelObject(DCUtil.java:329)
at oracle.adf.model.binding.DCBindingContainer.evaluateParameterWithElCheck(DCBindingContainer.java:1503)
at oracle.adf.model.binding.DCBindingContainer.findDataControl(DCBindingContainer.java:1603)
at oracle.jbo.uicli.binding.JUCtrlActionBinding.getDataControl(JUCtrlActionBinding.java:557)
at oracle.jheadstart.controller.jsf.bean.JhsModelServiceProvider.getDataControl(JhsModelServiceProvider.java:51)
at oracle.jheadstart.controller.jsf.bean.JhsModelServiceProvider.getJhsModelService(JhsModelServiceProvider.java:100)
at oracle.jheadstart.controller.jsf.bean.LoginBean.doCustomAuthentication(LoginBean.java:138)
at oracle.jheadstart.controller.jsf.bean.LoginBean.authenticateUser(LoginBean.java:124)
at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.sun.el.parser.AstValue.invoke (unknown Source)
at com.sun.el.MethodExpressionImpl.invoke (unknown Source)
at com.sun.faces.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:105)
at org.apache.myfaces.trinidad.component.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:46)
... more than 54
Caused by: java.lang.NullPointerException
at sp11.model.apm.clubImpl.prepareSession(clubImpl.java:35)
at oracle.jbo.server.ApplicationModuleImpl.prepareSession(ApplicationModuleImpl.java:6898)
at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolMessage(ApplicationPoolMessageHandler.java:174)
at oracle.jbo.server.ApplicationModuleImpl.doPoolMessage(ApplicationModuleImpl.java:9021)
at oracle.jbo.common.ampool.ApplicationPoolImpl.sendPoolMessage(ApplicationPoolImpl.java:4606)
at oracle.jbo.common.ampool.ApplicationPoolImpl.prepareApplicationModule(ApplicationPoolImpl.java:2536)
... 88 more

Please help me
What is the problem
He worked in another project, but in this one does not work?
Thank you

Run in debug mode and set a breakpoint in JhsModelServiceImpl.createUserContext, then you can see what is happening.
What could happen is that the first time in prepareSession that the context of the user is not yet defined, because it must first query the table of JHS security to check the connection.

So, when you call jhsAm.getUser () you need to check if that returns an object.

Steven Davelaar,
Jheadstart team.

Tags: Java

Similar Questions

  • How can I change the current security settings in low load xp sp3

    When I try to download the SP3 I get a message "the current security settings allow this file to download.

    What should I do to load this file?

    Hello

    1. what browser you are using to download SP3?

    2. which version of you ask Internet Explorer Help for download?

    By adjusting the privacy settings of Windows Internet Explorer, you can affect how websites to monitor your online activity. You can decide which cookies are stored, how and when sites can use your location information and block the pop - ups undesirable.

    I suggest that you enable file download in Internet Explorer.
     
    a. open Internet Explorer.
    b. click on Tools , then options.
    c. click on the Security tab.
    d. select it Internet Zone.
    e. click on the custom level button and then scroll down to download.
    f. be sure to enable the download of the file.
    g. click apply and Ok
    h. restart Internet Explorer and see if that helps.
     
    See the article:
     
    Change the settings for security and privacy in Internet Explorer

    http://Windows.Microsoft.com/en-us/Internet-Explorer/IE-security-privacy-settings#IE=IE-8

    Let us know the result.

  • What should be the port/security settings for Windows Mail with Vista - I think they changed?

    I had to reinstall Vista when my hard drive crashed, and Windows Mail does not work completely correctly. I think remember me an email from Microsoft told me to change the ports/security settings. Could someone tell me what they should be?

    A "error message indicating", what exactly? No error code or the relevant text?
     
    Make sure these settings match exactly.
     
     

    Leave messages on the server and it clutter?
     
     
  • When a client replies to an email, it is not shown in the history in the customer portal

    Hello

    in VSM9, when a customer answers by email, this response is attached in the call as private history, so it does not appear in the history of the customer portal. How it can be configured to show this response?

    Kind regards.

    The story being private comes FRO mthe default configuration in the admin.

    If it uses default provate then the mails are provate also.
    Maybe it's not a good indicated by the app - perhaps it should always be visible or we need other settings.

    To work around this problem, you can change the portal request to fill stories to include this type of email if they are not accessible to the general public for everyone (ACTION_TYPE and USER_RESTRICTED) with a SQL mod.

  • WHEN YOU USE THE CONSTRUCTOR OF MY SITE, I CAN'T COPY AND PASTE WROTE THE BROWSER SECURITY SETTINGS HOW TO NOT CHANGE THESE FOR ME TO COPY / PASTE?

    WHEN YOU USE THE CONSTRUCTOR OF MY SITE, I CAN'T COPY AND PASTE WROTE THE BROWSER SECURITY SETTINGS HOW TO NOT CHANGE THESE FOR ME TO COPY / PASTE?

    https://support.Mozilla.com/en-us/KB/granting+JavaScript+access+to+the+Clipboard

    This extension will help you implement the security policies for access to the Clipboard.

    Allow the extended Clipboard support:

    https://addons.Mozilla.org/en-us/Firefox/addon/852

  • The history in the Privacy tab settings are passed from Options in Firefox 18

    After the upgrade to Firefox 18 the history settings in the privacy of the Options Panel section are no longer visible/available as they were in earlier versions. How to manage these settings in Firefox 18?

    The reset Firefox feature can solve a lot of problems in restaurant Firefox to its factory default condition while saving your vital information.
    Note: This will make you lose all the Extensions, open Web sites and preferences.

    To reset Firefox, perform the following steps:

    1. Go to Firefox > help > troubleshooting information.
    2. Click on the button 'Reset Firefox'.
    3. Firefox will close and reset. After Firefox is finished, it will display a window with the imported information. Click Finish.
    4. Firefox opens with all the default settings applied.

    Information can be found in the article Firefox Refresh - reset the settings and Add-ons .

    This solve your problems? Please report to us!

  • Path to the custom keyboard settings

    Could someone point me in the direction of the trajectory of keyboard settings customized (in Solution Explorer) please.

    I can find the way to the options installed for these but not the path to my custom in CS5.5

    I have them actually on a usb key, but I need to know where to put them in CS6.

    Heck... I used to know!

    This can help.

    C:\Users\[username]\AppData\Roaming\Adobe\PremierePro\5.5

  • Pro 9 breast, how do I remove the default security settings?

    All,

    As a learning exercise, I recently a document password protected so that PRINTING has been disabled. However, whenever I visit a PDF, this security policy is applied by default requires me to go to the Security tab, under properties, then select "no security".

    How can I permanently deleted this policy so that it is no long applied to PDF files by default newly rendered?

    Thanks in advance!

    David

    Lunch from MS Word and change the settings for conversion of PDF from Adobe.

  • the file security settings do not allow export

    I JUST bought the basic adobe export and the FIRST document I try to convert does not work!  HelpAdobe conversion error.jpg

    It's pretty clear, right? The file is secure and so you can't export it to another format.

  • How to change the security settings for a particular Web site?

    I'm big fan of airplanes. There is a website: www.passur.com, which gives real-time traffic on some of the airports we. For example, the link: www4.passur.com/jfk gives all traffic inbound and outbound to and from JFK airport. This page requires Java. I installed it and everything was OK. But for some time - 2-3 months - whenever I try to open and watch the traffic there is message saying 'blocked application' and in the message from the Inbox is written - on the first line "name: has '; on the second line ' location: www4.passur.com'; " on the third (last) row is written "your security settings have blocked an application not approved to run." and on the bottom right there is a button 'OK '. The question is to know how to unlock it and display the Web page. Thanks in advance.

    There has been a change in the Java security settings, see:

    If you visit a Web site and then a possible solution is to add the URL to the list of Site of Java Exceptions, see:

  • Continue to change the security settings

    How can I get back my internet security settings and have them stay that way instead of having to return whenever I turn on my computer?

    Hello
     
    1. what security settings you talk?
     
    2. you set the default security settings?
     
     
    Ideally when all parameters are defined, it will not change.
     
     
    Reset the Internet Explorer settings would reset the default settings.
     
     
    WARNING: Reset Internet Explorer settings can reset security settings or privacy settings that you have added to the list of Trusted Sites. Reset the Internet Explorer settings can also reset parental control settings. We recommend that you note these sites before you use the reset Internet Explorer settings.
     
    To reset Internet Explorer settings, click the following link:
     
     
     
    Please let us know if the problem is solved or not.
     
  • How to change the security settings on a wireless network

    I would change the existing network security settings to WPA2, AES, or at least from TKIP AES.

    I am familiar with access via browser to the router and how to change the settings of the router.

    My question is how to make this as painless as possible for the network.  Step by step would be great

    First of all, I guess I have to change the settings of the router using the computer running Easy Link Advisor?

    Do I then have to disconnect/reconnect this computer?

    Do I have to unplug all the other computers and then sign in again with the update settings?

    The change of security settings affect my print server?  If so, I put up from scratch in ELA?

    For the record, I have a WRT 300N and the print server is a 54g.

    Anyone who reads this can also focus on recent news.  Maybe not a big deal, but a WPA/TKIP vulnerabilities has been identified.

    Thanks in advance to anyone who responds.

    If you change the router's wireless security settings, it will affect all devices that connect wireless to the router. To change the settings, simply set until you want on the web interface of the router. Save the settings. You need not link to that Advisor. Direct access to the web interface of the router is sufficient and preferable.

    All devices configured to connect to this network should ask if they connect more. It depends on type of what you had before. If you have not used WPA2 or WPA before having to ask for the password. If you used the WPA or WPA2 with the same password that they cannot even ask the password. How it works in detail with a specific wireless device depends on the device and the software you use. Some devices may require you to first remove the network wireless in the list of "preferred networks" and then reconnect.

    Check the manual of the print server how to configure for the new security settings. You should be able to reconfigure the print server through a web interface. First, it is probably best to change the settings on the print server and then make the change on the router. Otherwise, you may have a hard time, connection to the print server to make the change. In addition, depending on how old the print server is that it cannot even support WPA2 and AES.

  • BlackBerry App cannot set the security settings to install apps from Amazon

    I have a Blackberry Z10 with the OS 10.2.1. I'm trying to install an app on the app store from Amazon and it gives me this message.

    I say keep and it takes me to the screen:

    I think that this screen may be assuming that I use an Android phone because there is no 'unknown sources' box in the screen security settings need me to the next.

    But I can go in the app Manager and there is a comparable setting for my Blackberry.

    However, I already changed this setting to allow applications from other sources.

    So what can I do to solve this problem? How can I get the Amazon app store to work on my Blackberry Z10? I bought the phone because I was promised Amazon apps would work. Please help me.

    I fixed this problem myself. I had to track down the origin Amazon appstore app, which has been difficult because Amazon has updated the link so that people are redirected to download Underground when they think they're getting the Appstore. I have nothing against Amazon Underground, but apparently it works well with BB10.

  • Profile of custom security HR with assignment to the security level?

    Hi all

    I posted something similar in the HRMS forum, but after more thought, I think it's better done on this forum.

    Based on your experience you don't know if it's possible for a custom security profile HR use the assignment level security when it is used to report data through discoverer. Currently I am able to get my custom security profile to limit the data returned in Discoverer to a particular level, but if a person has more than 1 active, both are returned, when only 1 award is actually on my terms. I went from back to basics and you can see that this problem is still there even when I set the following simple condition in the custom security profile:

    ASSIGNMENT.assignment_id = '14444'

    With the above in place, 2 assignments for this person are always returned. I also tried checking the 'Restrict on individual assignments' option without a bit of luck. When HR above security profile is assigned a responsibility, which calls the form people & assignments, only the one active assignment is returned which is correct. Therefore, it must be something related to discoverer, my custom used views etc...

    Someone at - it ideas?

    Thank you

    Lance

    Update-> I think I have found the problem.

    The point of view PER_ASSIGNMENTS_F, making our discoverer HR report are based on, does not include security at the level of assignments (Note ID 419357.1). You can work around this problem either manually apply security (by using HR_SECURITY. SHOW_RECORD with the appropriate setting to indicate the level of transfer security to be used) or by using the view (exit Family Pack K) PER_ASSIGNMENTS_F2.

    The only differences between the 2 views are shown below:

    per_assignments_f

         WHERE DECODE (hr_security.view_all,
                      'Y', 'TRUE',
                      hr_security.show_record ('PER_ALL_ASSIGNMENTS_F',
                                               paa.assignment_id,
                                               paa.person_id,
                                               paa.assignment_type
                                              )
                     ) = 'TRUE' 
    

    PER_ASSIGNMENTS_F2

         WHERE DECODE (hr_security.view_all,
                      'Y', 'TRUE',
                      hr_security.show_record ('PER_ALL_ASSIGNMENTS_F',
                                               paa.assignment_id,
                                               paa.person_id,
                                               paa.assignment_type,
                                               'Y'
                                              )
                     ) = 'TRUE' 
    

    Hope this saves time and helps someone else.

    Thank you

    Lance

  • Why 20 adobe flash player automatically changes security settings

    When I choose the preference/security settings in Adobe Flash Player for Safari, it is always the same, less secure, but different parameters. Why and is at - it something I can do?

    Have you obtained later from adobe directly?

Maybe you are looking for