Javascript in jsff

hi i'm using Jdev 11.1.1.4
i have a jsff page where i want to use javascript.
in javascript we normally refer the component using document.getelemntby id...
but it is not working on jsff
coz there is no document is our jsff
can amy 1 tell me how 2 refer the component using javascript in jsff???

Hi,
actually using the DOM API is not recommended in ADF Faces as there is an integrated client framework that does a much better job than the DOM API. See this whitepaper for how to work with this client architecture
http://www.oracle.com/technetwork/developer-tools/jdev/1-2011-javascript-302460.pdf
If you are a JavaServer Faces developer, you will see that the client architecture is a mirror of what the server side component structure is
The value of the component is
AdfPage.PAGE.findComponent("it2").getValue();
However, if it is a page fragment contained in a naming container (e.g. af:region) then the ID is
AdfPage.PAGE.findComponent("afregionId:it2").getValue();
Frank

Similar Messages

  • Javascript in .jsff page

    Hi Gurus,
    Iam facing few problems in adding javascript to my .jsff page.
    i had tried with <trh:script></trh:script> but its showing not declared and dont know which lib that i need to add.
    Please let me know how to add javascript in .jsff page so when ever iam selecting a value from <af:selectOneChoice> i need to trigger the javascript function.
    Regards
    Suresh kumar

    hi ,
    Its not working.
    My use case is on selecting the value from <af:selectOneChoice> , i need to make few fields as read-only.
    i have tried by giving
    <af:selectOneChoice value="#{bindings.AprftypeId1.inputValue}"
    label="#{bindings.AprftypeId1.label}"
    required="#{bindings.AprftypeId1.hints.mandatory}"
    shortDesc="#{bindings.AprftypeId1.hints.tooltip}"
    id="soc3" clientComponent="true" >
    <f:selectItems value="#{bindings.AprftypeId1.items}"
    id="si3"/>
    <af:clientListener method="clientListenerFunction()" type="valueChange"></af:clientListener>
    </af:selectOneChoice>
    and used <af:resource> for javascript function but nothing is working.
    Is that my case cant be done in javascript.i need to use bindmethod to do ?

  • Jsff javscript debug jdev 11.1.1.4.0

    Hi ,
    i have added lot of javscript logic inside jsff onload.
    i would like to debug this javascript on firefox.javscript which put in jsff onload is not appearing if i click view source on jspx page in browser.
    is there anyway to include the jsff javscript in html view source at least while development.
    i have configured the
    <context-param>
    <param-name>org.apache.myfaces.trinidad.DEBUG_JAVASCRIPT;/param-name>
    <param-value>true</param-value>
    </context-param>
    even after setting this javascript in jsff is not appearing in html view source.
    appreciate your help

    are you using firebug..
    guess you can do that using the firebug console.. and with the script tab.. when you enable firebug in firefox.
    http://getfirebug.com/

  • How to call a javascript method after table load on JSFF Fragment load?

    Hello,
    The usecase is to invoke a javascript method after table is done loading (fetching data) when user lands to a JSFF fragment. With JSPX pages I can achieve that by using PagePhaseListener. I have tried with RegionController as follows, and the problem i face is that I cannot prevent multiple calls to the Javascript call when user presses a tab or button in a screen, or changes drop-down value with autosubmit on.
    import javax.faces.context.FacesContext;
    import oracle.adf.model.RegionBinding;
    import oracle.adf.model.RegionContext;
    import oracle.adf.model.RegionController;
    import org.apache.myfaces.trinidad.render.ExtendedRenderKitService;
    import org.apache.myfaces.trinidad.util.Service;
    public class MyListener implements RegionController{
    public MyListener() {
    super();
    @Override
    public boolean refreshRegion(RegionContext regionContext) {
    int refreshFlag = regionContext.getRefreshFlag();
    System.out.println("Render flag is: "+refreshFlag);
    if (refreshFlag == RegionBinding.PREPARE_MODEL)
    initializeMethod();
    regionContext.getRegionBinding().refresh(refreshFlag);
    return false;
    public boolean validateRegion(RegionContext regionContext) {
    regionContext.getRegionBinding().validate();
    return false;
    public boolean isRegionViewable(RegionContext regionContext) {
    return regionContext.getRegionBinding().isViewable();
    public void initializeMethod() {
    FacesContext f = FacesContext.getCurrentInstance();
    ExtendedRenderKitService service = Service.getRenderKitService(f, ExtendedRenderKitService.class);
    service.addScript(f, "myJSFunction();");
    @Override
    public String getName() {
    return null;
    I need the javascript to be called only once after the table is done loading when user lands to a fragment (jsff).
    Any ideas appreciated?
    JDeveloper version is 11.1.1.5.0
    Thank you.
    Valon
    Edited by: Valon on Apr 11, 2013 3:10 PM

    One of the requirements is to compare every row with the next row and highlight the changes. There are other requirements as well where JavaScript solution is used.
    The question remains the same. Is it doable or not without changing the solution from JavaScript solution to server-side solution ? Can we call a JavaScript only once when the user lands to a jsff fragment ?
    Hope that is clear.
    Thanks.
    Valon

  • Calling a javascript on load of jsff page

    I have a jsff page which is loaded as a taskflow from region.
    i tried to call an alert function on load of jsff page as follows:
    <af:clientListener type="load" method="jsMethod"/>
         <af:resource type="javascript">
         function jsMethod() {
            alert("Hi Page loaded");
    </af:resource>
    If it works fine i intent to call backing bean method from javascript later.
    the alert is not being called in this case.
    what's wrong with this method?

    Duplicate of https://community.oracle.com/thread/2617922
    Please don't ask your question multiple times!
    Timo

  • JavaScript Error on JSFF reload

    Hi,
    I have a fragment containing table. For capturing the double click event on table row, I have added client & server listener
    <af:clientListener method="goDoubleClick" type="dblClick"/>
    <af:serverListener type="doubleClickOnRow" method="#{backingBeanScope.Txn1000.doubleClickOnRow}" />
    Following JavaScript function is added to JSFF.
    <f:verbatim>
    <![CDATA[
    <script type="text/javascript">goDoubleClick = function(event) { 
    var source = event.getSource();
    AdfCustomEvent.queue( source, "doubleClickOnRow"
    , {}, true); } </script>
    ]]>
    </f:verbatim>
    When Fragment is loaded for the 1st time, everything works fine.
    Next time when fragment is getting reloaded getting following script error.
    Error: 'goDoubleClick' is undefined.
    Help for resolving the error appreciated.

    It looks like when the fragment reloads, clientlistener method got triggered but it doesn't find that (goDoubleClick) function.

  • Javascript never invoked in jsff

    hi,
    the use case is in jsff, in table's row column when user presses ENTER key i need to call some methods afterwards (jdev 11.1.2.3)
    for some reason i can't see javascript code invoked.
    i use af:clientListener, af:serverListener pair.
    actually , the example is depicted by Timo Hahn in his blog
    i try to reapply it in page fragment, which doesn't contain document tag ...
    below is what i tried to do and it never helped me...
    please advise how to call js in page fragment
    i considered Frank's blog as well, but it doesn't work in my case...
    https://blogs.oracle.com/jdevotnharvest/entry/gotcha_when_using_javascript_in
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
    xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
    xmlns:trh="http://myfaces.apache.org/trinidad/html"
    xmlns:f="http://java.sun.com/jsf/core">
    <af:panelGroupLayout id="pgl4">
    <af:panelFormLayout id="pfl1">
    <trh:script id="s2">
         function handleEnterEvent(evt) {
         var _keyCode = evt.getKeyCode();
         //if (_keyCode == AdfKeyStroke.ENTER_KEY ){  
         var comp = evt.getSource();
         AdfCustomEvent.queue(comp, "EnterEvent", {}, false);
         evt.cancel();
    function handleTableDoubleClick(evt){
    var table = evt.getSource();
    AdfCustomEvent.queue(table, "TableDoubleClickEvent",{}, true);
    evt.cancel();
    </trh:script>
    <af:resource type="javascript">
         function handleEnterEvent(evt) {
         var _keyCode = evt.getKeyCode();
         //check for Enter Key
         if (_keyCode == AdfKeyStroke.ENTER_KEY ){  
         var comp = evt.getSource();
         AdfCustomEvent.queue(comp, "EnterEvent", {fvalue:comp.getSubmittedValue()}, false);
         evt.cancel();
    </af:resource>
    </af:panelFormLayout>
    <af:panelBox
    <af:table value="#{bindings.DcaRegisterView1.collectionModel}" var="row" width="1200"
    <af:column sortProperty="#{bindings.DcaRegisterView1.hints.EffectiveUntil.name}" filterable="true"
    <af:inputDate value="#{row.bindings.EffectiveUntil.inputValue}"
    required="#{bindings.DcaRegisterView1.hints.EffectiveUntil.mandatory}"
    columns="#{bindings.DcaRegisterView1.hints.EffectiveUntil.displayWidth}"
    shortDesc="#{bindings.DcaRegisterView1.hints.EffectiveUntil.tooltip}" id="id3">
    <f:validator binding="#{row.bindings.EffectiveUntil.validator}"/>
    <af:convertDateTime pattern="#{bindings.DcaRegisterView1.hints.EffectiveUntil.format}"/>
         <af:clientListener method="handleEnterEvent" type="keyPress"/>
         <af:serverListener type="EnterEvent" method="#{registerBean.handleEnterEvent}"/>
    </af:inputDate>
    </af:column>
    ... page fragment code itself
    </af:panelBox

    The following is working for me:
    The js on the page:
    <af:resource  type="javascript">
            function doSomething(event) {
                alert('Doing something');
    </af:resource>Calling the js from an inputText component inside a table:
    <af:inputText value="#{row.bindings.FirstName.inputValue}"
                            label="#{bindings.EmployeesVOVI.hints.FirstName.label}"
                            required="#{bindings.EmployeesVOVI.hints.FirstName.mandatory}"
                            columns="#{bindings.EmployeesVOVI.hints.FirstName.displayWidth}"
                            maximumLength="#{bindings.EmployeesVOVI.hints.FirstName.precision}"
                            shortDesc="#{bindings.EmployeesVOVI.hints.FirstName.tooltip}" id="it1">
                <f:validator binding="#{row.bindings.FirstName.validator}"/>
                <af:clientListener type="keyPress" method="doSomething"/>
              </af:inputText>Have you checked any js error with - for example - firebug?
    Regards,
    Koen Verhulst

  • Wrapping af:resource type="javascript" to use in jsff

    hi,
    can anybody remind how to wrap an <af:resource type="javascript"> in order to let the js run in jsff?

    doesn't work , neither ...
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
    xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
    xmlns:trh="http://myfaces.apache.org/trinidad/html"
    xmlns:f="http://java.sun.com/jsf/core">
    <trh:script id="s2">
         function handleEnterEvent(evt) {
         var _keyCode = evt.getKeyCode();
         if (_keyCode == AdfKeyStroke.ENTER_KEY ){  
         var comp = evt.getSource();
         AdfCustomEvent.queue(comp, "EnterEvent", {}, false);
         evt.cancel();
    </trh:script>
    <af:panelGroupLayout id="pgl4">
    ...a column in table...
    <af:column sortProperty="#{bindings.DcaRegisterView1.hints.EffectiveUntil.name}" filterable="true"
    width="105" sortable="true"
    headerText="#{bindings.DcaRegisterView1.hints.EffectiveUntil.label}" id="c4">
    <f:facet name="filter">
    <af:inputDate value="#{vs.filterCriteria.EffectiveUntil}" id="id2" autoSubmit="true">
    <af:convertDateTime pattern="#{bindings.DcaRegisterView1.hints.EffectiveUntil.format}"/>
    <af:clientListener method="handleEnterEvent" type="keyPress"/>
    <af:serverListener type="EnterEvent" method="#{registerBean.handleEnterEvent}"/>
    </af:inputDate>
    </f:facet>
    <af:panelGroupLayout>

  • Client Listner is not working in jsff

    Hi All Experts,
    I have one requirement , for that i need to generate runtime table (getting coloumns and rows count at runtime). It is working and for that i am using arrayList to implement.
    I need to capture the changed values of textboxes which are that table , so i am using ClientListner And ServerListner
    my code is
    jsff code is
    <af:inputText value="#{party.value}" accessKey="#{tid.index}" id="id12" clientComponent="true" >
    <af:clientAttribute value="#{partyCount.index}" name="partyindex"/>
    <af:clientAttribute value="#{tid.index}" name="billcodeindex"/>
    <af:clientListener method="testFunc" type="valueChange"/>
    <af:serverListener type="testBBFunc" method="#{pageFlowScope.CaseMgmtBean.testBBFunc}"/>
    </af:inputText>
    and javascript code is
    function testFunc(event) {
    pindex= event.getSource().getProperty("partyindex");
    billindex=event.getSource().getProperty("billcodeindex");
    AdfCustomEvent.queue(event.getSource(),"testBBFunc",{newval:event.getNewValue(),billcodeindex:(billindex-1),partyindex:pindex},false);
    but i dont know why it is not calling the listners ,
    Please help
    Edited by: $achin on Feb 12, 2013 7:25 AM

    my code is
    <af:forEach var="count" varStatus="partyCount" items="#{pageFlowScope.CaseMgmtBean.partyCountList}">
    <af:table id="Parttable" rows="1" width="100%" contentDelivery="immediate" autoHeightRows="0"
    horizontalGridVisible="false" verticalGridVisible="false"
    inlineStyle="height:29px;">
    <af:forEach var="party" varStatus="tid" items="#{pageFlowScope.CaseMgmtBean.partyArrayList}">
    <af:column sortProperty="" headerText="" id="c42">
    <f:facet name="header">
    <af:inputText value="#{party.value}" accessKey="#{tid.index}" id="id12" clientComponent="true" autoSubmit="true">
    <af:clientAttribute value="#{partyCount.index}" name="partyindex" />
    <af:clientAttribute value="#{tid.index}" name="billcodeindex"/>
    <af:clientListener method="testFunc" type="valueChange" />
    <af:serverListener type="testBBFunc" method="#{pageFlowScope.CaseMgmtBean.testBBFunc}"/>
    </af:inputText>
    </f:facet>
    </af:column>
    </af:forEach>
    </af:table>
    </af:forEach>
    this is not working ,
    I have done POC with BackingBean as a scope and working fine in it.
    is the problem is with scope

  • Lauching JNLP through Javascript gives viewRoot null exception

    Hi All,
    I have a requirement where I am creating jnlp file dynamically at runtime and launch it with Java web start.
    I used the java script to do this.
    here is the sample code:here is the jsff page code:
    <ui:composition xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
                    xmlns:f="http://java.sun.com/jsf/core" xmlns:c="http://java.sun.com/jsp/jstl/core"
                    xmlns:cht="/oracle/hsgbu/trc/cohortcommon/ui/component">              
          <script type="text/javascript;version=1.8" xmlns="http://www.w3.org/1999/xhtml">
              function callappRequest(port, dataUrl, genomeID, mergeFlag, locusString, trackName) {
              alert('first');
                 alert('2nd'+port +dataUrl);            
              appRequest(port, dataUrl, genomeID, mergeFlag, locusString, trackName,jnlpLocation);
              alert('3rd');
        </script> 
       <af:resource type="javascript" source="/javascript/westart.js"/>
    <af:outputText value="File to launch IGV" id="ot4"/>
                            <af:spacer width="10" height="10" id="s24"/>
                        <af:commandButton text="View the file In IGV browser" id="cb3"
                                          action="#{pageFlowScope.managedBeanBean.openIGVBrwoser}"/>
                    </af:panelGroupLayout>
    </ui:composition>
    java code to call the javaScript for launching the jnlp file:
    public String openIGVBrwoser() {
    try {
    File dataUrl = new File("D://user//test//test1.vcf");
    FacesContext fctx = FacesContext.getCurrentInstance();
    ExtendedRenderKitService erks = null;
    erks =org.apache.myfaces.trinidad.util.Service.getRenderKitService(fctx, ExtendedRenderKitService.class);
                      FacesContext fctx = FacesContext.getCurrentInstance();
                      ExtendedRenderKitService erks = null;
                      erks =
                      org.apache.myfaces.trinidad.util.Service.getRenderKitService(fctx, ExtendedRenderKitService.class);
                      String  genomeID = "";
                      String mergeFlag = "";
                      String locusString = "";
                      String trackName = "";
                      String port = "60151";
                      URL dataUrl = vcfFile.toURL();
                      System.out.println("------dataUrl------"+dataUrl.getPath());
                      //System.out.println("----fileurl---------"+jnlpLocation);
                      erks.addScript(fctx,"callappRequest("+port+",'" + dataUrl.getPath() + "','"+genomeID+"','"+mergeFlag+"','"+locusString+"','"+trackName+"');");
                      System.out.println("------- end ------------"+vcfFile);
            } catch (IOException ioe) {
                      // TODO: Add catch code
                      ioe.printStackTrace();
    when I run the page by inserting it in jspx . on pageloading I am getting the following error
    StyleContextImpl> <isDisableStyleCompression> Your environment is configured as production and Apache Trinidad is running with uncompressed CSS. See the "org.apache.myfaces.trinidad.DISABLE_CONTENT_COMPRESSION" parameter in /WEB-INF/web.xml
    <SkinImpl> <_isDisableContentCompressionParameterTrue> Your environment is configured as production and Apache Trinidad is running with uncompressed CSS. See the "org.apache.myfaces.trinidad.DISABLE_CONTENT_COMPRESSION" parameter in /WEB-INF/web.xml
    <StateManagerImpl> <restoreView> Could not find saved view state for token sm6fdj1z7
    <RichExceptionHandler> <_logUnhandledException> ADF_FACES-60098:Faces lifecycle receives unhandled exceptions in phase RESTORE_VIEW 1
    java.lang.NullPointerException
        at oracle.adfinternal.view.faces.context.RichPhaseListener.handleStartAndStopActiveData(RichPhaseListener.java:478)
        at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:487)
        at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:202)
        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.hsgbu.trc.shell.ui.filters.TRCAuthenticationFilter.doFilter(TRCAuthenticationFilter.java:46)
        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
        at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:180)
        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)
    <RichExceptionHandler> <_reportFailureForMissingViewRoot> ADF_FACES-30179:For more information, please see the server's error log for an entry beginning with: The UIViewRoot is null. Fatal exception during PhaseId: RESTORE_VIEW 1.
    java.lang.NullPointerException
        at oracle.adfinternal.view.faces.context.RichPhaseListener.handleStartAndStopActiveData(RichPhaseListener.java:478)
        at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:487)
        at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:202)
        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.hsgbu.trc.shell.ui.filters.TRCAuthenticationFilter.doFilter(TRCAuthenticationFilter.java:46)
        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
        at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:180)
        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)
    <XmlHttpServletResponse> <_logException>
    javax.servlet.ServletException: ADF_FACES-60101:HTTP Error Status Code: 500."
        at oracle.adfinternal.view.faces.config.rich.XmlHttpServletResponse._logException(XmlHttpServletResponse.java:140)
        at oracle.adfinternal.view.faces.config.rich.XmlHttpServletResponse.sendError(XmlHttpServletResponse.java:106)
        at com.sun.faces.context.ExternalContextImpl.responseSendError(ExternalContextImpl.java:835)
        at javax.faces.context.ExternalContextWrapper.responseSendError(ExternalContextWrapper.java:789)
        at javax.faces.context.ExternalContextWrapper.responseSendError(ExternalContextWrapper.java:789)
        at javax.faces.context.ExternalContextWrapper.responseSendError(ExternalContextWrapper.java:789)
        at javax.faces.context.ExternalContextWrapper.responseSendError(ExternalContextWrapper.java:789)
        at javax.faces.context.ExternalContextWrapper.responseSendError(ExternalContextWrapper.java:789)
        at oracle.adfinternal.view.faces.context.RichExceptionHandler._reportFailureForMissingViewRoot(RichExceptionHandler.java:305)
        at oracle.adfinternal.view.faces.context.RichExceptionHandler._handleMissingViewRoot(RichExceptionHandler.java:287)
        at oracle.adfinternal.view.faces.context.RichExceptionHandler._invokeRichExceptionHandling(RichExceptionHandler.java:243)
        at oracle.adfinternal.view.faces.context.RichExceptionHandler._handleUnexpectedException(RichExceptionHandler.java:178)
        at oracle.adfinternal.view.faces.context.RichExceptionHandler._handleException(RichExceptionHandler.java:128)
        at oracle.adfinternal.view.faces.context.RichExceptionHandler._handleNextEvent(RichExceptionHandler.java:113)
        at oracle.adfinternal.view.faces.context.RichExceptionHandler.handle(RichExceptionHandler.java:98)
        at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:210)
        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.hsgbu.trc.shell.ui.filters.TRCAuthenticationFilter.doFilter(TRCAuthenticationFilter.java:46)
        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
        at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:180)
        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)
    <StateManagerImpl> <restoreView> Could not find saved view state for token sm6fdj1z7
    <RichExceptionHandler> <_logUnhandledException> ADF_FACES-60098:Faces lifecycle receives unhandled exceptions in phase RESTORE_VIEW 1
    java.lang.NullPointerException
        at oracle.adfinternal.view.faces.context.RichPhaseListener.handleStartAndStopActiveData(RichPhaseListener.java:478)
        at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:487)
        at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:202)
        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.hsgbu.trc.shell.ui.filters.TRCAuthenticationFilter.doFilter(TRCAuthenticationFilter.java:46)
        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
        at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:180)
        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)
    <RichExceptionHandler> <_reportFailureForMissingViewRoot> ADF_FACES-30179:For more information, please see the server's error log for an entry beginning with: The UIViewRoot is null. Fatal exception during PhaseId: RESTORE_VIEW 1.
    java.lang.NullPointerException
        at oracle.adfinternal.view.faces.context.RichPhaseListener.handleStartAndStopActiveData(RichPhaseListener.java:478)
        at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:487)
        at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:202)
        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.hsgbu.trc.shell.ui.filters.TRCAuthenticationFilter.doFilter(TRCAuthenticationFilter.java:46)
        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
        at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:180)
        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)
    <XmlHttpServletResponse> <_logException>
    javax.servlet.ServletException: ADF_FACES-60101:HTTP Error Status Code: 500."
        at oracle.adfinternal.view.faces.config.rich.XmlHttpServletResponse._logException(XmlHttpServletResponse.java:140)
        at oracle.adfinternal.view.faces.config.rich.XmlHttpServletResponse.sendError(XmlHttpServletResponse.java:106)
        at com.sun.faces.context.ExternalContextImpl.responseSendError(ExternalContextImpl.java:835)
        at javax.faces.context.ExternalContextWrapper.responseSendError(ExternalContextWrapper.java:789)
        at javax.faces.context.ExternalContextWrapper.responseSendError(ExternalContextWrapper.java:789)
        at javax.faces.context.ExternalContextWrapper.responseSendError(ExternalContextWrapper.java:789)
        at javax.faces.context.ExternalContextWrapper.responseSendError(ExternalContextWrapper.java:789)
        at javax.faces.context.ExternalContextWrapper.responseSendError(ExternalContextWrapper.java:789)
        at oracle.adfinternal.view.faces.context.RichExceptionHandler._reportFailureForMissingViewRoot(RichExceptionHandler.java:305)
        at oracle.adfinternal.view.faces.context.RichExceptionHandler._handleMissingViewRoot(RichExceptionHandler.java:287)
        at oracle.adfinternal.view.faces.context.RichExceptionHandler._invokeRichExceptionHandling(RichExceptionHandler.java:243)
        at oracle.adfinternal.view.faces.context.RichExceptionHandler._handleUnexpectedException(RichExceptionHandler.java:178)
        at oracle.adfinternal.view.faces.context.RichExceptionHandler._handleException(RichExceptionHandler.java:128)
        at oracle.adfinternal.view.faces.context.RichExceptionHandler._handleNextEvent(RichExceptionHandler.java:113)
        at oracle.adfinternal.view.faces.context.RichExceptionHandler.handle(RichExceptionHandler.java:98)
        at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:210)
        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.hsgbu.trc.shell.ui.filters.TRCAuthenticationFilter.doFilter(TRCAuthenticationFilter.java:46)
        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
        at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:180)
        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)
    <Jan 9, 2014 11:08:41 PM IST> <Critical> <Health> <BEA-310003> <Free memory in the server is 4,851,040 bytes. There is danger of OutOfMemoryError>
    <MetadataServiceImpl$Bootstrap> <add> ADFc: /META-INF/adfc-config.xml:
    <MetadataServiceImpl$Bootstrap> <add> ADFc: Duplicate managed bean definition for 'loginPageBean' detected.
    <StyleContextImpl> <isDisableStyleCompression> Your environment is configured as production and Apache Trinidad is running with uncompressed CSS. See the "org.apache.myfaces.trinidad.DISABLE_CONTENT_COMPRESSION" parameter in /WEB-INF/web.xml
    <SkinImpl> <_isDisableContentCompressionParameterTrue> Your environment is configured as production and Apache Trinidad is running with uncompressed CSS. See the "org.apache.myfaces.trinidad.DISABLE_CONTENT_COMPRESSION" parameter in /WEB-INF/web.xml
    <StyleContextImpl> <isDisableStyleCompression> Your environment is configured as production and Apache Trinidad is running with uncompressed CSS. See the "org.apache.myfaces.trinidad.DISABLE_CONTENT_COMPRESSION" parameter in /WEB-INF/web.xml
    <SkinImpl> <_isDisableContentCompressionParameterTrue> Your environment is configured as production and Apache Trinidad is running with uncompressed CSS. See the "org.apache.myfaces.trinidad.DISABLE_CONTENT_COMPRESSION" parameter in /WEB-INF/web.xml
    and here is the JavaScript:
    * Javascript library to communication with java webstart application
    // globals
    var SCRIPT_ELEMENT_ID = "igv";
    var timeoutVar; // used to set/unset timeout handlers
    var sessionURL; // the session (or data) url
    var genome; // the genome parameter
    var locus;  // the locus parameter
    var name;   // the name parameter
    var merge;
    * Function to determine webstart version - taken from sun site
    function webstartVersionCheck(versionString) {
        // Mozilla may not recognize new plugins without this refresh
        navigator.plugins.refresh(true);
        // First, determine if Web Start is available
        if (navigator.mimeTypes['application/x-java-jnlp-file']) {
            // Next, check for appropriate version family
            for (var i = 0; i < navigator.mimeTypes.length; ++i) {
                var pluginType = navigator.mimeTypes[i].type;
                if (pluginType == "application/x-java-applet;version=" + versionString) {
                    return true;
        return true;
    * Handler function to launch IGV via java web start.  This handler is scheduled in the appRequest() function, and
    * is canceled by the callBack() function called in the response to the "localhost" request.  If callBack() is not
    * invoked we conclude IGV is not running and launch it via Java WebStart.
    function timeoutHandler() {
        // construct webstart url
        var hostname = window.location.hostname;
        var port = window.location.port;
        if (port) {
            hostname += (":" + port);
       //  note: context_path is set in stylesAndScripts.jsp
         var webstart_url = "http://www.broadinstitute.org/igv/projects/current/igv.php";
        if (sessionURL) {
            webstart_url += "?sessionURL=" + sessionURL;
            if (genome) {
                webstart_url += "&genome=" + genome;
            if (locus) {
                webstart_url += "&locus=" + locus;
            if (name) {
                webstart_url += "&name=" + name;
            if (merge) {
                webstart_url += "&merge=" + merge;
         // window.open(webstart_url,"needdownload");
        // determine if webstart is available - code taken from sun site
        var userAgent = navigator.userAgent.toLowerCase();
        // user is running windows
        if (userAgent.indexOf("msie") != -1 && userAgent.indexOf("win") != -1) {
            document.write("<OBJECT " +
                "codeBase=http://java.sun.com/update/1.5.0/jinstall-1_5_0_05-windows-i586.cab " +
                "classid=clsid:5852F5ED-8BF4-11D4-A245-0080C6F74284 height=0 width=0>");
            document.write("<PARAM name=app VALUE=" + webstart_url + ">");
            document.write("<PARAM NAME=back VALUE=true>");
            // alternate html for browsers which cannot instantiate the object
            document.write("<A href=\"http://java.sun.com/j2se/1.5.0/download.html\">Download Java WebStart</A>");
            document.write("</OBJECT>");
         //user is not running windows
        else if (webstartVersionCheck("1.6")) {
            window.location = webstart_url;
        // user does not have jre installed or lacks appropriate version - direct them to sun download site
        else {
            window.open("http://jdl.sun.com/webapps/getjava/BrowserRedirect?locale=en&host=java.com",
                "needdownload");
    * This function is called by IGV in the response to the GET request to load the data.  It cancels the JNLP load.
    function callBack() {
        clearTimeout(timeoutVar);
    * Called to disable a link to the webstart.
    function disableLink(linkID) {
        var link = document.getElementById(linkID);
        if (link) {
            link.onclick = function() {
                return false;
            link.style.cursor = "default";
            link.style.color = "#000000";
    * This function is called from a link or button to load data into IGV.  First,  an attempt is made to load the
    * supplied data into a running IGV.  If this is not successful, as detected by a failure to cancel the timeoutHandler,
    * IGV is launched by JNLP.
    * The first 2 arguments are required.  Remaining arguments are optional but must appear in the prescribed order.
    * @param port -- the IGV port, typically 60151
    * @param dataUrl -- an http or ftp url to the data.
    * @param genomeID -- the genomeID,  e.g. hg18
    * @param mergeFlag -- flag to indicate if data should be merged with current IGV session, or should start a new session
    * @param locusString -- an IGV locus string, e.g. chr1:100,000-200,000  or EGFR.  See IGV doc for full details
    * @param trackName -- name for the track resulting from dataURL.  This only works for "single-track" formats, e.g. wig.
    function appRequest(port, dataUrl, genomeID, mergeFlag, locusString, trackName) {
        // be good and remove the previous cytoscape script element
        // although, based on debugging, i'm not sure this really does anything
        var oldScript = document.getElementById(SCRIPT_ELEMENT_ID);
        if (oldScript) {
            oldScript.parentNode.removeChild(oldScript);
        alert('in app request...'+port+dataUrl);
       var localURL = "http://127.0.0.1:" + port + "/load?callback=callBack();";
        sessionURL = dataUrl;
        genome = genomeID;
        locus = locusString;
        merge = mergeFlag;
        name = trackName;
        if(dataUrl != null) {
            localURL += "&file=" + dataUrl;
        if (genomeID != null) {
            localURL += "&genome=" + genomeID;
        if (locusString != null) {
            localURL += "&locus=" + locusString;
        if (mergeFlag != null) {
            localURL += "&merge=" + mergeFlag;
        if (trackName != null) {
            localURL += "&name=" + trackName;
         alert('local url'+localURL);
        // create new script
        var newScript = document.createElement("script");
        newScript.id = SCRIPT_ELEMENT_ID;
        newScript.setAttribute("type", "text/javascript");
        newScript.setAttribute("src", localURL);
        // add new script to document (head section)
        var head = document.getElementsByTagName("head")[0];
        head.appendChild(newScript);
         //disable link
        // we do this because some browsers
         //will not fetch data if the url has been fetched in the past
        disableLink("1");
        // set timeout - handler for when IGV is not running
        timeoutVar = setTimeout("timeoutHandler()");
    I am not getting why its getting veiwRoot null. even though the script still didn't get call.
    Please let me know where I'm making mistake.
    your suggestions are welcome.
    Thanks
    Ashwini

    Hi,
    the problem typically is when a navigation references a view that does not exist in JSF. I suggest to start from the JSPX page and then add more and more content to it until the error shows. This helps you to narrow the problem. I did not read the whole JavaScript you posted, but you should make sure it performs a proper redirect replacing the whole JSPX page and that the redirect does not include /faces/ in the path
    Frank

  • Using facelets and javascript in dynamic regions

    Hello
    I'm using JDeveloper 11g 11.1.1.4.0.
    In the JDeveloper's documentation I found that there is the best parctice to use facelets.
    Now, I have next problem.
    I use dynamic region iside xhtml (facelets) page. Inside that dynamic region there is a view (jsff).
    The problem is that I can't use any custom JavaScript in that jsff.
    I tried next thing:
                <trh:script id="trhs1">
                    <af:resource type="javascript">
                      testm = function (event) {
                      alert('qqq');
                    </af:resource>
               </trh:script>
    <af:clientListener method="testm" type="dblClick"/>If that task-flow is placed inside jspx (not facelets) page, then all works.
    If that task-flow is placed inside xhtm (facelets) page, I have an error from browser that javascript's 'testm' method is not defined.
    I checked source code of the result html-page, and my javascript code really doesn't exists there.
    I can fix it by moving javascript code from the taskflow's jsff to surrounding xhtml page or using jspx page, but, maybe, there is another solution?
    Anatolii
    Edited by: Anatolii. on 11/4/2011 0:32

    Thank for replay, Shay
    I found that in Web User Interface Developer's Guide for Oracle ADF, 2 Getting Started with ADF Faces, Section 2.4, "Creating a View Page":
    Best Practice: Use Facelets to take advantage of the following:
    The Facelets layer was created specifically for JSF, which results in reduced overhead and improved performance during tag compilation and execution.
    Facelets is considered the primary view definition technology in JSF 2.0.
    Some future performance enhancements will only be available with Facelets
    Now I have facelets page with dynamic region, it works.
    I've decided to use facelets because of the forthcoming JDeveloper with JSF 2.0 and for performance improvements described above.
    Do you think it's better to use jspx?
    I have not found any limitations for facelets in Web User Interface Developer's Guide for Oracle ADF and Fusion Developer's Guide for Oracle ADF
    Anatolii

  • Java script in jsff page is not working when deployed as adf lib jar

    hi,
    We have a ViewController Project with a several jsff pages that has javascript references to a .js fiile in the same project.
    When run in the same app, the javascript functions are invoked correctly.
    but, when deployed as an ADF-library and consumed in a diff application, not several components' javascript is invoked.
    Input Text Components javascript is almost always invoked. But, javascript on radio buttons or table are not invoked.
    Jdev: 11.1.1.6
    Thanks,
    Harsha.

    How to include javascript resources in  Facelet tag library

  • Javascript in page segment(urgent)?

    Hi,
    I want to customize out-of-box Profile pages on WC Spaces. I added a selection box on a page segment(jsff), and I want to do 2 things.
    1.     When a user picks an item from the selection box, it should call the parseAddress() javascript function. But, I got js errors from IE but no errors from FF. ‘parseAddress’ is undefined. URL…./MyProfileMainView.jspx
    2.     Inside the js function, how can it write to <af:inputText> items?
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core" xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
    <jsp:directive.page contentType="text/html;charset=UTF-8"/>
    <af:panelFormLayout labelWidth="150" id="olipfl1">
    <af:panelLabelAndMessage label="#{uib_o_w_pc_p_ProfileMessages.LABEL_BUSINESS_FAX}" labelStyle="font-weight:bold;" id="oliplam1">
    <af:inputText value="#{bindings.businessFax.inputValue}" simple="true" columns="40" maximumLength="50" disabled="#{!AdminConfig.ootbFields['fax'].allowEdit}" shortDesc="#{requestContext.formatter[uib_o_w_pc_p_ProfileMessages.ENTER_FIELD][uib_o_w_pc_p_ProfileMessages.LABEL_BUSINESS_FAX]}" id="oliit1"/>
    </af:panelLabelAndMessage>
    <f:facet name="metaContainer">
    <af:resource type="javascript" source=”function parseAddress(event) {            alert("new value: " + event.getNewValue());           } "/>
    </f:facet>
    <af:panelLabelAndMessage xmlns:af="http://xmlns.oracle.com/adf/faces/rich" label="*Location" id="splam1" labelStyle="font-weight:bold;">
    <af:selectOneChoice xmlns:af="http://xmlns.oracle.com/adf/faces/rich" id="ssoc1" simple="true" valuePassThru="true">
    <af:clientListener xmlns:af="http://xmlns.oracle.com/adf/faces/rich" method="*parseAddress*" type="valueChange"/>
    <f:selectItems xmlns:f="http://java.sun.com/jsf/core" value="#{employeeBean.locationsList}" id="ssi1"/>
    </af:selectOneChoice>
    </af:panelLabelAndMessage>
    <af:panelLabelAndMessage label="#{uib_o_w_pc_p_ProfileMessages.LABEL_BUSINESS_STREET}" labelStyle="font-weight:bold;" id="oliplam4">
    <af:inputText value="#{bindings.businessStreet.inputValue}" simple="true" columns="40" maximumLength="50" disabled="#{!AdminConfig.ootbFields['street'].allowEdit}" shortDesc="#{requestContext.formatter[uib_o_w_pc_p_ProfileMessages.ENTER_FIELD][uib_o_w_pc_p_ProfileMessages.LABEL_BUSINESS_STREET]}" id="oliit4"/>
    </af:panelLabelAndMessage>
    </af:panelFormLayout>
    </jsp:root>
    I’m trying to follow this discussions - https://forums.oracle.com/forums/thread.jspa?threadID=978631, but I am kind of confused. I’m using jDeveloper 11.1.1.5
    Thank you.
    Edited by: 891549 on Feb 27, 2012 12:11 PM

    Hi,
    not sure why it flags an error on IE - this is what I can't say from remote. However, this code here
    <f:facet name="metaContainer">
    <af:resource type="javascript" source=”function *parseAddress*(event) { alert("new value: " + event.getNewValue()); } "/>
    </f:facet>
    {code}
    should be
    {code}
    <af:resource type="javascript">
          function parseAddress(event) { alert("new value: " + event.getNewValue()); }
    </af:resource>
    {code}
    To access the input text field (as it is not in a different naming container) you
    1. set the input text clientComponent property to "true"
    2. call event.getSource().findComponent("oliit4");
    Frank                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • How to trigger a popup in another .jsff?

    I have multiple regions on a page. there are multiple task flows and multiple .jsff
    Is it posible to trigger a popup from one of jsff on one taskflow, the popup is defined in another jsff in another task flow in another region?
    If so, how can I get the popupId for the af:showPopupBehavior?
    Thanks

    Hi,
    this kind of inter-region communication requires the use of contextual events in which the producer region sends a notification to the receiving region, which then uses a method to launch the popup. You don't use the showPopupBehavior for this but JavaScript from Java
    See: http://download.oracle.com/docs/cd/E15523_01/web.1111/b31974/web_adv.htm#CACJBFGI
    http://download.oracle.com/docs/cd/E15523_01/web.1111/b31973/af_event.htm#BABHIBGF
    Frank

  • Unable to execute javascript from backing bean

    Hello experts,  I want to execute  javascript function from backing bean method.   
    In my .jsff  page,  I have added  the javascript as :
    <jsp:root  ..... >
    <af:resource type="javascript" >
              function fileDownloadJS() {
                                alert(" tesing js from backing bean");
        </af:resource>
    </jsp:root>
    in my backing bean method  :
    public void callJSfuntion(ActionEvent actionEvent) {
            RenderKit rk = FacesContext.getCurrentInstance().getRenderKit();
            ExtendedRenderKitService erks = (ExtendedRenderKitService) Service.getService(rk, ExtendedRenderKitService.class);
            erks.addScript(context, "fileDownloadJS();");
    I have table in my .jsff page,   inside table column,  I have command link  and when I click the link,   I am invoking bean method  :
    <af:table  ....>
        <af:column sortProperty="title" sortable="true"  
                           headerText="File name" width="250px" id="Title"
                           clientComponent="true">
                  <af:commandLink   id="cl1"    actionListener="#{MyBean.callJSfuntion}" clientComponent="true">  
                    <af:outputText value="#{row.title}" id="ot1"/> 
                  </af:commandLink>
         </af:column>
    .</table>
    But when  I  run my taskflow and  click on  the link inside the table column,    JS function is not invoked.
    Absolutely  no clue what  is the issue.
    Appreciate if you can  help me out to resolve this issue.   Thank you.

    For debugging purpose can you try :
    <script type="javascript" >
              function fileDownloadJS() {
                                alert(" tesing js from backing bean");
    </script>
    put it on top of the page and let me know what happens.
    If it doesn't work try writing the function itself in your addScript(context, script); to see if it works.

Maybe you are looking for

  • Options for presenting photo's in Nakisa 3.0 Org chart

    We want to add employee photo's into the org chart in Nakisa but currently do not have photo's in SAP R/3. Is this a requirement before Nakisa will display these or can they be accessed by Nakisa if they are stored on a networked server for example w

  • Text variabel for Formula

    Hi, I have a requirement where i have created a formula and i wnat for each and every period beside the formaula i need a period number in the Filed Tile Eg: Sales 007.2009 Sales is formla created and i need 007.2009 to be displayed beside this// Any

  • Screen redraw bug when panning in Loupe view at high magnification

    I think I've found a bug in Lightroom. Using the Loupe view at higher than 1:1 magnification and panning whilst zoomed seems to cause screen redraw artifacts. It is most noticable at high zoom (say 11:1) when panning diagonally. The edges being revea

  • Will giving up bundling and minification in lieu of serving js and css from Azure blob be beneficial?

    Hi, We have an MVC web site deployed as a service on Microsoft Azure. For boosting performance some of my colleagues suggested that we scrap the bundling and minification and instead serve .js and .css files from an Azure blob instead. Please note th

  • Updation of 'Z' field in database table VBAP & AUFK

    Hi, In my report I wanted to update/modify value in a "Z" field in VBAP and a "Z" field in AUFK table. Could anyone please suggest me how to update/modify this field value using a BAPI or FM? Or any other method atleast.. Thanks in Advance, Rohan.