History column
experts,
am using jdev 11.1.1.5.0
in an eo i had i had history column like created by, updated by ,created date, update date.
i use history check box for that fields and i use its revalent drop down.
but while inserting shows anynomus ... anymous. ok by default it coming.
instead of that (anynomus). i needed my username.
important note i had login screeen. that username should be stored in coressponfding db .. not anonymys
i hope u all understud.
Edited by: Erp on Sep 28, 2011 4:03 AM
Did you implement ADF security for your project? Just creating a login screen isn't enough.
If you haven't, you need to read [url http://download.oracle.com/docs/cd/E21764_01/web.1111/b31974/adding_security.htm#BGBGJEAH]this chapter of the docs.
John
Similar Messages
-
Not able to update history columns in Jdeveloper11.1.1.3.0
Hi ,
We have one ADF application that is migrated from 10g to 11g.And our application is deployed on the weblogic server.
We are Using JDeveloper 11.1.1.3.
we are facing some session time out issues in the application which is intermitent and whenever we leave the web page for some times, the session get timed out and page gets errored out.
We have checked the error trace and seems after comming back to the page say around 20-25 mins and tried to update any record in the table it throws the error.
Jan 4, 2012 4:24:36 AM com.sun.faces.application.ActionListenerImpl processAction
SEVERE: java.lang.RuntimeException: oracle.jbo.DMLException: JBO-26041: Failed to post data to database during "Insert": SQL Statement "BEGIN INSERT INTO PGM_USR_PERMISSIONS(PGM_USR_PERMISSION_ID,PROGRAM_ID,LST_UPD_TSTMP,LST_UPD_USR,USER_ID,PERMISSION_ID) VALUES (:1,:2,:3,:4,:5,:6) RETURNING PGM_USR_PERMISSION_ID INTO :7; END;".
javax.faces.el.EvaluationException: java.lang.RuntimeException: oracle.jbo.DMLException: JBO-26041: Failed to post data to database during "Insert": SQL Statement "BEGIN INSERT INTO PGM_USR_PERMISSIONS(PGM_USR_PERMISSION_ID,PROGRAM_ID,LST_UPD_TSTMP,LST_UPD_USR,USER_ID,PERMISSION_ID) VALUES (:1,:2,:3,:4,:5,:6) RETURNING PGM_USR_PERMISSION_ID INTO :7; END;".
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 javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:475)
at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:756)
at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:82)
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
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:27)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:191)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:247)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:157)
at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:94)
at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:138)
at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:70)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
at com.oracle.stbpo.filter.SecurityFilter.doFilter(SecurityFilter.java:88)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.doIt(WebAppServletContext.java:3684)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3650)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2268)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2174)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1446)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
Caused by: java.lang.RuntimeException: oracle.jbo.DMLException: JBO-26041: Failed to post data to database during "Insert": SQL Statement "BEGIN INSERT INTO PGM_USR_PERMISSIONS(PGM_USR_PERMISSION_ID,PROGRAM_ID,LST_UPD_TSTMP,LST_UPD_USR,USER_ID,PERMISSION_ID) VALUES (:1,:2,:3,:4,:5,:6) RETURNING PGM_USR_PERMISSION_ID INTO :7; END;".
at com.oracle.stbpo.datamodel.appmodule.SecurityAMImpl.saveProgramUsrPermissions(SecurityAMImpl.java:1187)
at com.oracle.stbpo.view.backing.security.PermissionListBackingBean.saveProgramPermissions(PermissionListBackingBean.java:182)
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(AstValue.java:157)
at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:283)
at org.apache.myfaces.trinidad.component.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:46)
... 38 more
Caused by: oracle.jbo.DMLException: JBO-26041: Failed to post data to database during "Insert": SQL Statement "BEGIN INSERT INTO PGM_USR_PERMISSIONS(PGM_USR_PERMISSION_ID,PROGRAM_ID,LST_UPD_TSTMP,LST_UPD_USR,USER_ID,PERMISSION_ID) VALUES (:1,:2,:3,:4,:5,:6) RETURNING PGM_USR_PERMISSION_ID INTO :7; END;".
at oracle.jbo.server.OracleSQLBuilderImpl.doEntityDML(OracleSQLBuilderImpl.java:582)
at oracle.jbo.server.EntityImpl.doDML(EntityImpl.java:7990)
at oracle.jbo.server.EntityImpl.postChanges(EntityImpl.java:6319)
at oracle.jbo.server.DBTransactionImpl.doPostTransactionListeners(DBTransactionImpl.java:3168)
at oracle.jbo.server.DBTransactionImpl.postChanges(DBTransactionImpl.java:2976)
at oracle.jbo.server.DBTransactionImpl.commitInternal(DBTransactionImpl.java:2014)
at oracle.jbo.server.DBTransactionImpl.commit(DBTransactionImpl.java:2273)
at com.oracle.stbpo.datamodel.appmodule.SecurityAMImpl.saveProgramUsrPermissions(SecurityAMImpl.java:1180)
at com.oracle.stbpo.view.backing.security.PermissionListBackingBean.saveProgramPermissions(PermissionListBackingBean.java:182)
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(AstValue.java:157)
at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:283)
at org.apache.myfaces.trinidad.component.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:46)
at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)
at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:190)
at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:475)
at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:756)
at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:82)
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
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:191)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:247)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:157)
at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:94)
at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:138)
at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:70)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at com.oracle.stbpo.filter.SecurityFilter.doFilter(SecurityFilter.java:88)
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)
... 9 more
Caused by: java.sql.SQLIntegrityConstraintViolationException: ORA-01400: cannot insert NULL into ("STBPO"."PGM_USR_PERMISSIONS"."LST_UPD_USR")
ORA-06512: at line 1
Some how LST_UPD_USR is comming as null.
We are Using JDeveloper 11.1.1.3.
We have set the session time out parameter in web.xml as well as for AM.
Attached is the problem statement doc.
Also the behaviour is only on the weblogic server and we don't face any issues in the local set up.
Kindly help us in solving this problem. Also let me know if any further details is required.
Thanks
Namit KakkarThanks John
My Web logic server version is WebLogic Server 10.3.3.0..
Java Version:
1.6.0_20
OS Name:
Linux
OS Version:
2.6.18-164.0.0.0.1.el5
JACC Enabled:
false
Also I have find some where that there is some issues with the Jdev11.1.1.3.0 updating the history columns.
Further, We have migrated the application from ADF10g to 11g (11.1.1.3.0)
and we are using trinidad tags .
Do we have any issues with the Trinidad libraries?
Please help me in fixing this issue.
Thanks
Namit.
Edited by: 899138 on Jan 5, 2012 1:54 AM -
Where did the History Column checkbox go?
I am using jdeveloper 11g release 11.1.2.2.0.
I was working through some of the storefront demo and the the instructions said.
Open the Entity Object, Click the Attributes Tab, Select the History Column check box.
I am unable to find a History Column check box on this version. where did it go?I think it is called Track Change History now - a drop down list.
You can also look for it in the property inspector window. -
History Columns - Modified by - EL expression - JHS 10.1.3.3
Hi,
We dont use custom authentication implementation available in Jheadstart. We use our own user defined authentication mechanism and we set the user id information in the cookie.
When we mark a column under "history columns - modified by", we would like to use the cookie value using an EL expression like ${cookie.ShopperCookie.value}, instead of JhsUser.JHS_USER_KEY ? Can this be possible? How do we do it?
Or do you want us to create a new JhsUser object with this userid info and set in session when we set the user information in the cookie? Is there any other place like EntityImpl that we can create this object(jhsUser) and set it in session?
Any pointers?
Thanks,
SivaHi Siva,
Apparently the current user can not be retrieved when using these adf history columns. Maybe it is relying on the JAZN JAAS provider instead of the your custom authentication method. You can try to override the mechanism of retrieving the current user information when using "ADF History attributes". Maybe some guys on the jdeveloper forum can give you some pointers on how to do that.
JDeveloper and ADF
Alternatively you can fill your history columns without using the ADF History functionality by extending the EntityImpl class and overriding some of it's methods. Have a look at pascal's blog for some pointers on how to do that. (google on "Pascal’s Blog » Filling audit columns automatically with ADF")
Regards,
Ruud Bijkerk
JHeadstart team -
History Column doesn't retrieve value (Jdeveloper 11g)
Hello,
The history columns are remaining null after I perform insertion on the table. My view objects are based on Entities Object.
I tested also by running the service AppModule in the business model, history columns are remaining null. What can cause this ? Any ideas would be greatly appreciated.
More details:
My entitie Messages has history columns, an example:
<Attribute
Name="DateInsr"
ColumnName="DATE_INSR"
Type="oracle.jbo.domain.Timestamp"
ColumnType="TIMESTAMP"
SQLType="TIMESTAMP"
TableName="MESSAGES"
IsUpdateable="while_insert"
HistoryColumn="DateHistory"
RetrievedOnUpdate="true"
RetrievedOnInsert="true">
<DesignTime>
<Attr Name="_DisplaySize" Value="11"/>
</DesignTime>
<Data>
<Property
Name="ID"
Value="3d73c263-011f-1000-8017-89cf60e9a194::::EntityObjectAttribute"/>
</Data>
</Attribute>
And my view object MessagesView has the corresponding source code look:
<ViewAttribute
Name="DateInsr"
PrecisionRule="true"
EntityAttrName="DateInsr"
EntityUsage="Messages"
AliasName="DATE_INSR"
IsUpdateable="false">
<Data>
<Property
Name="ID"
Value="3d73c35d-011f-1000-803b-89cf60e9a194::::ViewObjectAttribute"/>
</Data>
</ViewAttribute>
Thanks,
Valon3 things come to mind:
1) do you have database triggers on the column DATE_INSTR?
2) try turning off the EO attribute refresh after insert/update properties
3) try with a non-Timestamp column (just a date instead).
CM. -
History Columns Unable to Track Changes.
Hi,
I am creating a row from trigger, based on some action in jspx page.
The history columns are not able to track row stats as CREATED_BY, CREATED_ON & so on.
Since, new row creation is not invoked by application layer, history columns not get updated.
Is any way to track this or I manually goto current record & update the columns ?
My Env is Jdev 11.1.1.3 with ADF Faces RC & BC.
Regards.If the record is being created by a DB trigger, then ADF knows nothing about it; it's up to you to update the history columns in whatever way you deem appropriate.
-
Using History Columns without SecurityManager
Hi
There is a nice feature in BC4J which allows to manage history columns ("created by", "modified by") automatically. See Entity Wizard/Attribute/Checkbox "History column".
This mechanismn uses JAZN to retrive the Name of the User.
This is a nice feature as long as you use JAZN for security management. But is there a hook, which I can use, to provide the user name from a different source, like my own implementation of a (non standard) security manager? Something like a method which I can override to retrive the correct user name?
Any hints are welcome
Frank BrandstetterAs there is no setter for the UserPrincipalName, as it's propagates through JAAS, you have to use some kind of security which maps to the adf security.
Timo -
Regarding "Change Indicator + History Column + Refresh After Update"
Hi,
In our app, we are not using any separate column for change indicator and using LastUpdateDate as both Change Indicator and History Column(Modified On) as well.
The problem is that when 'Refresh After Update' option is not selected for this column, then RowInconsistentException is throw on commit for multi user scenario, and when 'Refresh After Update' option is selected for this column, then exception is not thrown but value is also not updated. Here is the summary of observations:
Settings for LastUpdateDate Column:
Only Setting History Column (Modified on)
Single User - Value Updated , no exception is thrown.
Multi User - throws (oracle.jbo.RowInconsistentException) JBO-25014: Another user has changed the row with primary key oracle.jbo.Key[3 ]. for second user.
History Column ( Modified on ) & Change Indicator property checked.
Single User - Value Updated , no exception
Multi User - throws (oracle.jbo.RowInconsistentException) JBO-25014: Another user has changed the row with primary key oracle.jbo.Key[3 ]. for second user.
History Column ( Modified on ) & Change Indicator property checked & Refresh After Update option enabled.
Single User - Value not updated, no exception thrown
Multi User - Value not updated, no exception thrown
What I want is that in multi user scenario, the value of LastUpdateColumn should be updated and no exception should also be thrown.
Is this a bug in ADF Techstack or am I missing something?
Thanks,
Lalit.First and Second scenario are as expected.
1) Only Setting History Column (Modified on)-> Last updated value will be updated when a user changes anything in that entity. But if another user tries to update the entity on top of a stale state then lost update detection is performed by ADF by comparing every attribute of entity against current values in database. So it will give error.
2) History Column ( Modified on ) & Change Indicator property checked.
Same thing will happen as in case of first scenario but this time detection of lost update will be more efficient as framework will check only that column for "lost update" detection for which change indicator is selected.
But for the third one where you have selected the history column LastUpdatedDate as a change indicator with "Refresh On Update" selected, the behaviour is strange. I do not know why the last updated date is not updated after a commit. It does not throw any error also which it actually should. It is not detecting lost updates in this scenario. Probably because the only change indicator LastUpdatedDate is not changed.
Regards,
Harmeet -
Excluding history column, version column, created by etc in populating attr
Hi ,
I wanted to populate the attributes of a View Object in UI. Is there a way that I can filter out the Created by , Created on , Version history etc ? Just wanted to check if are there any way exists rather than checking one by one .
Thanks & Regards,
priya.Rpriya.R
Your question isn't clear - what do you mean by "filtering out"?
Do you mean when you drag and drop the VO from the data control to your page, you don't want certain attributes displayed by default? Have a look at the UI hints for the attribute in either the EO or the VO - you can set an attribute to hide by default
John -
History columns in custom security setting
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?
thanksRun in debug mode and set a breakpoint in JhsModelServiceImpl.createUserContext, then you can see what is going on.
What might be happening is that the first time in prepareSession the user context is not yet set, because it needs to first query the JHS security table to check the login.
So, when calling jhsAm.getUser() you need to check whether that returns an object.
Steven Davelaar,
Jheadstart team. -
Can we use WHO columns in Business Logic implementation
Hi,
Can we use WHO columns for business logic implementation..?
From one table I need to pick up the latest record. I have a ActionDate column in the table which stores the date of the action.
But on the same day there can be multiple action records. ie Multiple records have same ActionDate.
Select * from action_table where action_date=(maximum action_date)
The above query will return more than 1 record.
Now can I use the Creation_Date which is a WHO column to identify the latest record..?
Will it introduce any issues if I use creation_date WHO column?
Usage of WHO column in application logic, Is it against the Standards ?
Thanks a lot.I guess you are talking about populating the value using the history column creation_dt from EO.
If so, you can use then. We are using them in all our applications to populate WHO columns of our table.
Infact as far as I know, even Oracle application uses them.
They generally populate the timestamp, so you may need to format them when doing date comparisons.
Hope that helps.
Amit -
Dear Guru's ,
How Do I update the payment history column in the FD32 .
It doenot Show Payment history in the column.
Where is the setting for the same.???
regards,
Amlan SarkarDear Friend ,
It is not getting updated in the system.
The error says"
No payment history was recorded up to now
Message no. F4009
Diagnosis
In the company code-dependent part of the master data, you specified
that the payment history is to be recorded.
Since this specification, however, no incoming payment has been posted
for this customer so that there has been no payment history to update.
regards,
Amlan Sarkar -
How configure the auditory columns for the user in Session?
I want to have my page of login to enter the application.
After validating to the login/password according to user table
create table usuario(
id number not null,
login varchar2(15) not null,
pasword varchar2(15) not null,
);..., set to user in HttpSession
I wish to configure in mys entities(bc4j) the audit columns (userCreation/userModification) similar to dateCreation and dateModification...For example for the following table
crate table Cliente(
id not null,
name varchar2(20),
userCreation varchar(15) not null,
userModification varchar(15),
dateCreation date not null,
dateModification date
...For the date columns I configure as history columns in the edition of the entity objects and works correctly...
thanksRigoberto
Take a look at this topic and see if it helps:
Re: User Authentication: prepareSession() vs. jbo.sessioncookie.JHS_USER
Kind regards,
Peter Ebell
JHeadstart Team -
When History field is selected as a column to be displayed in a WI query result, its contents are displayed with the HTML tags as if they where text, e.g. <p> contents </p>...
This occurs when query is run in web access contents in IE and when result is sent via email from within TFS (there's a button for this purpose).
However, in Visual Studio 2012 the same History Column contents are shown without the tags, as one would expect.
Furthermore, when one clicks on Open In Microsoft Office, for this query results in VS, and selects result in Excel, the History column in the Excel appears empty.
The only way we found to bypass this issue for now, it to mark all the query result lines in VS, and right click for "print selected list..." to a virtual PDF printer. This way the result looks reasonably ok when History field is included.
Kindly advise, Thank u very much.Hi Moital,
Thanks for your post.
As far as I know history content will display with the HTML tags if there’s multiple lines in content, and History content not support show in Excel, that’s by design in TFS Server.
As Clementino said, you can submit this scenario in connect site, Microsoft engineers will evaluate them seriously.
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
Enhancement request:: Add audit columns during forward engineering
How about adding a check box on forward engineering to add standard audit columns to all tables being engineered?
User Created
User Modified
Date Created
Date Modified
We can do it today using the table template transformation but that is a manual step you have to execute after forward engineering new entities. (works well but a bit annoying to do over and over again in an iterative design approach)
So you could basically just add the option to automatically use a template table and the current script. You might also deliver a default template table that the user can modify perhaps (then they can apply their own naming standards to the columns).
ThanksDear Kent,
Your request will be a nice to have, I had the same need and used the table template transformation approach.
How about allow to define Scripts in entity properties for logical model (as already exists in the table properties for relational model) that is applied when being engineering to relational. This allows to define different "templates" to apply according each entity (audit columns in transactional entities, versioning/history columns in content entities, etc. ).
I use similar approach in the relational to DDL step using the table scripts (before create, after create,etc.) .
Because we use an internal data dictionary framework, each table that is added need to be categorized before to be possible to create the object.
So, this feature allow me to add in each table properties a Script "Before Creation" where an anonymous PL/SQL block is used invoke the method with classification and set this script to "Include into DDL script".Making the use of "dynamic properties", we dynamically define certain properties of categorization that will be used in the creation of script.
So I think that the enhancement of scripts in entities + dynamic Properties (already existing) will be a interesting mix for DM empowerment.
Thanks
Maybe you are looking for
-
Cannot burn CD from itunes.
-
Camera Raw edits are permanent in layered file, therefore "destructive"
I use scanned 35mm TIFF files and DNG digital files, converted from Nikon NEF files. I edit in Photoshop CS3. I use adjustment layers in Photoshop to retain the ability to revise as needed (the "nondestructive" route). To date I have used Camera Raw
-
HT1424 Can you set up a wireless connection to a printer from a I pad
I like help about printing off a I pad
-
Imported SWFs background to "Transparent" in Presenter?
Is it possible to set an imported SWFs background to transparent within Presenter? I have Presenter 7, PowerPoint 2007, Flash CS4, working in Windows Vista. The only way I know to set SWF transparency is with the WMode parameter... so, in PowerPoint
-
Individual sitemaps for each website
Hello, We are building a website for one of our customers using Adobe Business Catalyst platform. We want to implement the sitemap function but we have some issues with the default available setup. Our customer website is a Multilanguage/multi domain