Skip to main content

Posts

Showing posts from March, 2013

ADF: Scroll down to item on your page

I wanted to scroll down to a component in my page and first tried anchor which just did not work on mu input driven screen. So I tried the af:scrollComponentIntoViewBehavior on my command link and it just worked. <af:commandLink id="c_cert" text="certify" >   <af:scrollComponentIntoViewBehavior componentId="sbc4" focus="true" subTargetId="content"/> </af:commandLink> ... long content <af:selectBooleanCheckbox value="false" clientComponent="true" id="sbc4"/> Note: don't do this with anchors on a non read only content page it just get messy

ADF: Logger timestamp included

I am doing some performance testing and needed to look at the times produced by the ADF Diagnostic logging items. Analyze log was not good enough because it is too slow to find the grouped info I needed. So step one) I loaded my Configure Oracle Diagnostic logging (action menu in the log window) and went straight to the source tab At the top of the logging .xml file there is an entry <log_handler name='console-handler' class='oracle.core.ojdl.logging.ConsoleHandler' level='ALL'   formatter='oracle.core.ojdl.weblogic.ConsoleFormatter' /> it need to be to see the logs in all there glory with timestamps etc <log_handler name='console-handler' class='oracle.core.ojdl.logging.ConsoleHandler' level='ALL'/>

Oracle Diagnotics logging turning it off : Logging.xml

I mistakenly put oracle Root logger to finest which of course crashed everything. So I restarted JDev then restarted Weblogic horror the setting was still set. Great so now I could not work. Solution (thanks google and this oracle doc  ): located the logging.xml file in your integrated weblogic server: C:\Users\[your user]\AppData\Roaming\JDeveloper\system11.1.1.6.38.62.29\DefaultDomain\config\fmwconfig\servers\DefaultServer Edit it and remove the offending log leve setting. (mine was <logger name='oracle'/ level='FINEST'> ==> <logger name='oracle'/>) All fixed and working again...

Webcenter PS5 migration - Iterative Development setting

Noticed that this setting was different when comparing a newly created ps5 portal project and our current project, might save some time for someone: In Portal.jws file near the end. Old        <hash n="oracle.webcenter.dt.config.WebCenterSettings">       <value n="iterativeDevelopment" v="false"/>      </hash> New       <hash n="oracle.webcenter.dt.config.WebCenterSettings">       <value n="iterativeDevelopment" v="true"/>    </hash> Or for those with less of an affinity for source :

Webcenter Menu: invalidate cache

We where getting an exception when executing some code that worked on PS3 on PS5. (We are reconstructing our menu based on user roles and we can masquerade as another user on click of a button) The stack trace of the error included: <SiteStructureResource><getChildren> javax.naming.NamingException [Root exception is java.lang.NullPointerException] at oracle.adfinternal.rc.jndi.CatalogContextWrapper.listBindings(CatalogContextWrapper.java:654) at oracle.adfinternal.rc.jndi.CatalogContextWrapper.listBindings(CatalogContextWrapper.java:616) Caused by: java.lang.NullPointerException at oracle.adfinternal.rc.jndi.FolderContext.loadCache(FolderContext.java:338) at oracle.adf.rc.spi.jndi.InMemoryContext.checkCacheLoaded(InMemoryContext.java:1401) at oracle.adfinternal.rc.jndi.FolderContext.loadCache(FolderContext.java:383) java.lang.reflect.InvocationTargetException at sun.reflect.GeneratedMethodAccessor916.invoke(Unknown Source)   public v...

Oracle XE problems

Had a few issues when trying to connect to oracle xe installed by another user Getting sqlplus to work set ORACLE_HOME=C:\oraclexe\app\oracle\product\11.2.0\server set ORACLE_SID=XE set PATH=C:\oraclexe\app\oracle\product\11.2.0\server\bin;%PATH% Connecting as sysdba to change password (ORA-01031: insufficient privileges)  Type Edit local users in your start menu search bar (Select the first one in the Control panel group)  Click Groups  Select ORA_DBA  Add your user here  sqlplus / as sysdba from the command prompt with all above variables set   alter user SYS identified by "newpassword";

OJdeploy: Faster ant build tuning

If you want a quicker ojdeploy experience and you are not on 11.1.2.... and using OJServer the following may help you (along with ojdeply Memory Settings should give you the best you are going to get without splitting the build up and running in parallel): The more you consolidate your deploys under a single ojdeploy the faster the build: eg: the first one should be slower     <ora:ojdeploy xmlns:ora="oraclelib:OJDeployAntTask"                   executable="${ojdeploy.path}" failonerror="true"                   ora:statuslog="${basedir}/${oracle.jdeveloper.deploy.dir}/${project.model.deploy.name}-ojdeploy-statuslog.xml"                   ora:buildscript="${basedir}/${oracle.jdeveloper.deploy.dir}/ojdeploy-buil...