This discussion is archived
3 Replies Latest reply: Feb 13, 2013 3:51 AM by Steven Davelaar RSS

History columns in  custom security setting

Farshid Zarinara Newbie
Currently Being Moderated
Hi
JDeveloper 11.1.2.2.0
JHeadstart 11.1.2.1.28
Authentication type = Custom
Authorisation type = Custom
i changed the base class of application module in my model project to (oracle.jheadstart.model.adfbc.v2.JhsApplicationModuleImpl)
and i add , in applicationmoduleImpl.java this changes


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

super.prepareSession(session);
}


but when i run the ViewController and i want to login ..................

.
.
.
.

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: JBO-30003: Application pool sp11.model.apm.clubLocal fails to check out an application module due to 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)
     at 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)
     at 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)
     at 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)
     at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
     at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
     at 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)
     at 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)
     at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
     at 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: JBO-30003: Application pool sp11.model.apm.clubLocal fails to check out an application module due to 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)
     ... 54 more
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
it was worked in another project but in this one is not worked?
thanks

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points