Clustering using Oracle ADF - CHECK_STATE_SERIALIZATION=all

We are using Oracle ADF 11.1.1.6. We have started testing our Oracle ADF application for the cluster compatibility and used following document. We have coded all recommendations given in the document including enabling all applicable java classes to serialization and also setup adf_config.xml <adfc:adf-scope-ha-support>true</adfc:adf-scope-ha-support> and <adf:adf-scope-ha-support>true</adf:adf-scope-ha-support> exactly as per given in the document.
http://docs.oracle.com/cd/E12839_01/core.1111/e10106/adf.htm
Now, to check High Availability on a standalone web logic server for debugging purpose we configured Java Option "-Dorg.apache.myfaces.trinidad.CHECK_STATE_SERIALIZATION=all" as per the recommendation.
After setting this flag system started throwing bunch of errors similar to the error given below.
[2012-07-26T14:17:43.602-04:00] [OPERA_ADF1] [ERROR] [] [org.apache.myfaces.trinidadinternal.config.CheckSerializationConfigurator$MutatedBeanChecker] [tid: [ACTIVE].ExecuteThread: '17' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: edozer] [ecid: 64915ee7c1860d85:40a983d1:138bf4550b2:-7ffd-0000000000005fcb,0] [APP: OperaApplications_o90_smoke#V9.0.0] Failover error: Serialization of Session attribute:data has changed from oracle.adf.model.servlet.HttpBindingContext@365f8709 to oracle.adf.model.servlet.HttpBindingContext@36b6565b without the attribute being dirtied
The question is what are we missing here?
Please note that our application is still missing ControllerContext.getInstance().markScopeDirty(pageFlowScope); but when I tried to create a sample application and deliberately left the "markScopeDirty" using below code the above mentioned error was not reproduceable.
public class myBackingBean
     public void changeValueButton( ActionEvent ae )
     Map<String, Object> pageFlowScope = AdfFacesContext.getCurrentInstance().getPageFlowScope();
          pageFlowTestBean obj = ( pageFlowTestBean )pageFlowScope.get( "pageFlowTestBean" );
          System.out.println( "Old Value " + obj.getYVar() );
          obj.setYVar( "New Value" );
          /* ControllerContext.getInstance().markScopeDirty(pageFlowScope); */
Can anyone shade more light on it?
Also, I would like to know that can someone guide me what is the best practice to perform ControllerContext.getInstance().markScopeDirty(pageFlowScope);. Because developers can easily miss this statement and I didn't find any easyway to search the code that is missing this statement (I have already tried Jdeveloper's Audit feature and it works for very few cases).

We checked the ADF source (pasted below). It reads that markScopeDirty is getting skipped if ADF_SCOPE_HA_SUPPORT is not configured but when we debug our application the serialization fires after every pageScope/viewScope variable gets changed regardless of markScopeDirty() is being called or not. That signifies that markScopeDirty() call is not needed. Do we really need markScopeDirty() everywhere in our application or this is just a public helper method to manually trigger replication for some exceptional case? Can anyone from team Oracle explain this behavior?
@Override
public void markScopeDirty(Map<String, Object> scopeMap)
Boolean handleDirtyScopes =
(Boolean)ControllerConfig.getProperty(ControllerProperty.ADF_SCOPE_HA_SUPPORT); //checks for adf-scope-ha-support
if (handleDirtyScopes.booleanValue())
if (!(scopeMap instanceof SessionBasedScopeMap))
String msg = AdfcExceptionsArb.get(AdfcExceptionsArb.NOT_AN_ADF_SCOPE);
throw new IllegalArgumentException(msg);
((SessionBasedScopeMap)scopeMap).markDirty();
}

Similar Messages

  • Is it possible to use Autosuggestion using Oracle ADF Faces?

    Is it possible to use Autosuggestion using Oracle ADF Faces?
    Regards,
    Shaily

    Asanka,
    Please review the MBeans chapter in the OC4J Admin guide
    Hope this helps.
    Deepak

  • Getting error message while trying to Develop Applications using Oracle ADF

    I have just started learning Oracle ADF. I have installed Oracle ADF 11g (with Oracle 11g database) in my PC. I am an experienced Oracle Forms Developer. While trying to run the application after development in
    Oracle ADF I get the following error message :
    This Project has no default run target. Please choose the file you want to run. Default Run Target:
    and then it gives you a browse option to select default run target file.
    This message always come in any type of application I want to write in Oracle ADF. Can you please tell me what is the possible fix to this issue.
    Installation of Oracle ADF did not show any error message. Oracle Middleware and webserver 11g has been installed before the installation of Oracle ADF 11g.
    I will appreciate any feedback for this. Thank you.

    Let me add some missing information.
    Right clicking a page or java class and selecting run or debug is ONE way to start the application with the page selected or the class selected (if the class can be started).
    Sometimes it's more desirable to always start the application using the same way (e.g. start page in a unbounded task flow) regardless where you are currently working on. So you don't need to find the page in the application navigator.
    For this you can use the 'Run configurations'. These (as you can have more then one) can be used to tell the framework which page or class to start if you hit the run or debug toolbar button. You can edit or create run configurations by using the menu 'run->choose active configuration->manage run configuration' or you open the project properties of the viewcontroller project and select 'run/debug/profile'. Then you get the dialog to edit or create a run configuration.
    Select default (this won is created for you by the framework) and click 'edit'. Then you see the launch settings. If you are using adf task flows you can e.g. select the adfc-config.xml file as 'default run target'. This allows you to select the page to start in the 'ADF Task FLow' sub node. If you now uncheck the 'attempt to run active file...' the framework always start the page you selected from the unbounded task flow.
    Timo

  • Multilingual using oracle adf

    Hi everyone,
    i'm newbie in adf framework and as per my project requirement i need to use multilingual functionality in application.
    multilingual is basically a functionality i.e.(a dropdown showing various country languages and as per user selection the desired page language changes).i'm using adf 10.1.3.5.0 version.
    It would be quite helpful if someone can tell me its solution.
    Thanks in advance.
    Edited by: user11858462 on Sep 3, 2009 5:41 AM

    Hi, ok, one possible solution:
    create session scoped managed bean with this (in my example the class name is Session and managed bean name is backing_Session) :
    private String locale;
    //constructor
    public Session() {
         locale = "sk";
    public String getLocale() {
      return locale;
    public void setLocale(String locale) {
      this.locale = locale;
    //method to set locale based on ID of clicked component (commandLink or button)     
    public void setLanguage(ActionEvent event){
      String id = new String(event.getComponent().getId());
      String thislocale=id.substring(12);
      System.out.println("event id: "+id+", locale="+thislocale);
    //actually here thislocale equals to "sk" or "en" or "fr" ...... 
    setLocale(thislocale);
    }and on jsp page:
    <f:view locale="#{backing_Session.locale}">
                    <af:commandLink actionListener="#{backing_Session.setLanguage}"
                                    id="commandlink_sk">
                      <af:objectImage source="/images/skflag.gif"
                                      imageMapType="none"/>
                    </af:commandLink>
                    <af:objectSpacer width="10" height="10"/>
                    <af:commandLink actionListener="#{backing_Session.setLanguage}"
                                    id="commandlink_en">
                      <af:objectImage source="/images/enflag.gif"/>
                    </af:commandLink>and my faces-config.xml :
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE faces-config PUBLIC
      "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN"
      "http://java.sun.com/dtd/web-facesconfig_1_1.dtd">
    <faces-config xmlns="http://java.sun.com/JSF/Configuration">
      <lifecycle>
        <phase-listener>oracle.adf.controller.faces.lifecycle.ADFPhaseListener</phase-listener>
      </lifecycle>
      <application>
        <default-render-kit-id>oracle.adf.core</default-render-kit-id>
        <locale-config>
          <default-locale>sk</default-locale>
          <supported-locale>en</supported-locale>
        </locale-config>
      </application>
      <managed-bean>
        <managed-bean-name>backing_Session</managed-bean-name>
        <managed-bean-class>view.backing.Session</managed-bean-class>
        <managed-bean-scope>session</managed-bean-scope>
      </managed-bean>
    </faces-config>regards,
    Branislav

  • Using oracle adf mobile

    It also comes with PhoneGap. which allows you to use any feature your phone offers, like sensors and camera. It's probably the most complete solution for mobile development out there, simply because with Oracle ADF Mobile, you can write Native, Hybrid or Web applications for your smartphone and tablet.
    Do you want to take a quick look on what can be done with it? Check out this video!
    Now, to start with Oracle ADF Mobile, here are the first steps you will have to go through.
    1.     Download Oracle JDeveloper
    Go to this link and download the install file for your environment (Windows, Linux-32bit or Generic)
    2.     Install JDeveloper (of course)
    If you need help on this, look at the documentation (if you've downloaded 11gR2, click here)
    3.     Download Oracle ADF Mobile Bundle
    This is the download page for Oracle ADF Mobile. Accept the license as usual at the top, and follow with the Download button. It will take you to another page, where you will see a table containing a download link. Click on it and it will start downloading a ZIP file.
    4.     Start JDeveloper
    Start Oracle JDev. It may self update. Restart the IDE if you are asked to.
    5.     Go to Help > Check for updates
    6.     Click Next and make sure you are at the "Source" tab
    7.     Select "Install From Local File"
    8.     Select the Oracle ADF Mobile ZIP you downloaded on step 3
    9.     Finish the process
    Now you have JDeveloper with Oracle ADF Mobile sucessfully installed!

    Hey,
    this is not a blog!
    Frank

  • How to populate values from ParentWindow to ChildWindow using ORACLE ADF

    Hi,
    I have code something like,
    <af:commandButton text="Search" partialSubmit="true">
    <af:clientListener method="openpopup" type="action"/>
    <af:clientAttribute name="popupId" value="confirmationDialog"/>
    </af:commandButton>
    <af:inputText id="input1" contentStyle="width:200px" value="#{advanceSearch.input1}"/>
    on click on this button it will invoke javascript openpopup() function which interns opens the popup- window.
    I am not able to retrieve results from parent window to child windows.
    i.e., i want to retrieve the inputText entered value in popu-window.
    second prob,
    my total code present inside <af:panelSplitter> (parent window code)
    <af:panelStretchLayout>
    </af:panelStretchLayout>
    </af:panelSplitter>
    in child window, i kept 1 close button, when i tried to close this, it is not closing.
    i think problem may be code present in panels, becoz same thing working without panel.
    thanks in advance
    regards,
    sandeep

    use
    <af:setPropertyListener> to set the inputText value in the pageflowscope/or bean variable .. and use it in the child window
    http://download.oracle.com/docs/cd/E12839_01/apirefs.1111/e12419/tagdoc/af_setPropertyListener.html

  • Creating a Search Criteria Form Using Oracle ADF Find Mode (10.1.2)

    Hi Guys,
    Any useful sample links on how to create a custom search form? Basically I have to control parameters and I want to show that in the form..
    Thanks!

    I mean like I have Name and Department as Search Parameters (added as text box maybe) then Search button. after clicking search I want to display the result in same page in a form/table.Im using the UIX page and I added Data Page in the Struts Layout but dont know how to add the form and how to implement the parameter part..
    ..Thanks!

  • Oracle ADF mobile using elocation mapviewer can not get the tiles

    Hi,guys
    Recently,I'm using oracle adf mobile to develop a application.
    I set a amx page as a Local html page in order to display a elocation map,in this html page, 
    I use the jslib:http://elocation.oracle.com/mapviewer/jslib/v2/oraclemapsv2.js
    the mapviewer:http://elocation.oracle.com/mapviewer
    It can display the elocation map in pc browser,and also in Android default browser
    But WHen deploy it to MOTOROLA touch device,the elocation map can not display,but it can get the jslib.
    Can anybody help me?
    Thank you!

    Hi,
    To display maps, have a look at the HR sample application that comes with the ADF Mobile extension. You will see how you can use the map viewer without using JS for it. There is a map viewer component for AMX pages. The demo is in PublicSamples.zip located in <JDeveloper11124 Home>/jdeveloper/jdev/extensions/oracle.adf.mobile/Samples . Because the sample application is a bit larger than dept/emp, have a look at the tablet AMX pages.
    Frank

  • Problem in Oracle ADF with JDeveloper. JBO25001

    Hello All,
    I have to develop an application using oracle ADF and JDeveloper. To famalirize my self with the technology, I downloaded the Oracle ADF tutorial "Tutorial for Forms/4GL developers" from Oracle site.
    I am following this tutorial line by line, but still getting an error. I have created
    1) Entities
    2) Associations
    3) Views
    4) ViewLinks
    5) Application Module
    all by wizard.
    After I added my view and view link into the application module and tried to test it it gave me the following error.
    (oracle.jbo.common.ampool.ApplicationPoolException) JBO-30003: The application pool (.10E97657A25) failed to checkout an application module due to the following exception:
    ----- LEVEL 1: DETAIL 0 -----
    (oracle.jbo.JboException) JBO-29000: Unexpected exception caught: oracle.jbo.JboException, msg=JBO-29000: Unexpected exception caught: oracle.jbo.NameClashException, msg=JBO-25001: Name ServiceRequestsTable of object type Attribute already exists
    ----- LEVEL 2: DETAIL 0 -----
    (oracle.jbo.JboException) JBO-29000: Unexpected exception caught: oracle.jbo.NameClashException, msg=JBO-25001: Name ServiceRequestsTable of object type Attribute already exists
    ----- LEVEL 3: DETAIL 0 -----
    (oracle.jbo.NameClashException) JBO-25001: Name ServiceRequestsTable of object type Attribute already exists
    I changed the names of each object but still the problem persisted.
    If any body can help me on this I will really appreciate it. Thanx a ton in advance.
    I have downloaded and using the latest JDeveloper version 10.1.3.1.0.3984
    Please help me on this.
    Regards,
    Saket Maheshwary

    Saket,
    Did you ever get this situation resolved?
    I'm working thru the tutorial myself and get the same error except the object is Product.
    Do you have any clues?
    Thanks,
    Lonnie Spears

  • Oracle ADF: Cannot Commit Database Transaction

    Hi All
    I am trying to update oracle database using Oracle ADF from command line. The following is my code snippet
      final String amName1 = "taxreturn.AM_Taxreturn";
      final String connStr = "jdbc:oracle:thin:o9ias/[email protected]:1521:t1fdbo";
      Hashtable env = new Hashtable(2);
      env.put(Context.INITIAL_CONTEXT_FACTORY, JboContext.JBO_CONTEXT_FACTORY);
      env.put(JboContext.DEPLOY_PLATFORM, JboContext.PLATFORM_LOCAL);
      ApplicationModule appMod1 = null;
    try {
       javax.naming.Context ic = new InitialContext(env);
      ApplicationModuleHome home1 = (ApplicationModuleHome)ic.lookup(amName1);
      appMod1 = home1.create();
      appMod1.getTransaction().connect(connStr);
    } catch (Exception e) {
        e.printStackTrace();
      ViewObject t1xvVO = appMod1.createViewObject("t1xvVO", "taxreturn.T1XrefVView");
      t1xvVO.setWhereClause("T1X_T1FU_USERID='" + "testlin2" + "' and T1X_T1_TAXYEAR='" + "2012" + "' and T1X_DELETED is null and T1X_INVOICE_T1_150 is null");
      t1xvVO.executeQuery();
    Row rowT1xv = null;
    int count = 0;
    while (t1xvVO.hasNext()) {
    count++;
    rowT1xv = t1xvVO.next();
    System.out.println("Number of records: " + count);
    t1xvVO.executeQuery();
    if (t1xvVO.hasNext()) {
        rowT1xv = t1xvVO.last();
        System.out.println("First Name: " + rowT1xv.getAttribute("T1FirstName"));
        System.out.println("T1xInvoiceT1150: Before: " + rowT1xv.getAttribute("T1xInvoiceT1150"));
        rowT1xv.setAttribute("T1xInvoiceT1150", "250");
        //appMod1.getTransaction().postChanges();
        System.out.println("T1xInvoiceT1150: After: " + rowT1xv.getAttribute("T1xInvoiceT1150"));
    System.out.println("Is Dirty: " + t1xvVO.getApplicationModule().getTransaction().isDirty());
    try {
        appMod1.getTransaction().commit();
        System.out.println("Commit succeeded.");
    } catch (oracle.jbo.JboException e) {
        System.out.println("Commit failed. " + e);
    I can see there are total 3 records retrieved. Then I execute query for the view object again and change the last record. But after the commit statement, the database is not update. What's wrong here? Thanks in advance
    Leaf

    Refer 6.4.9 How to Create a New Row for a View Object Instance
    http://docs.oracle.com/cd/E37975_01/web.111240/e16182/bcqueryresults.htm#sm0094
    The procedure to create an ApplicationModule and find View object is different than in the code snippet. Use the procedure in the link.

  • How to implement custom Model Class in Oracle ADF?

    I am using Oracle ADF for one of my project and i am using Query component of ADF. For given tables the query component creates view objects and maps the relations. ADF uses its own custom model class for this component and it should understand the DB tables. But for my project i have no access to database. All i can do is pass a string or object/query to the existing (custom) Java class/object, and this model class formulates query and queries the database and returns the value to my Java class. I have to display these results using ADF to the front end. Is There a way to achieve this? Can i replace/override the existing Model class of ADF. If so how?
    Thanks in advance for your help.

    Hi, there:
    Best thing to do is to start with the default login.html page, and then modify it. The login screen is fairly complex and it's easy to just miss a JS function you need to call. To get to default page, you would need to do one deploy (to simulator or whatever), and then look for login.html page in the temporary Xcode or Android project generated from the deployment. It should be under the "deploy" directory in your JDev workspace.
    You can also see all the framework JS files and CSS files that way as well.
    We have had customers implementing custom login screen so we know it can work, but they all had to start with the default login screen and then modify it.
    Thanks,
    Joe Huang

  • Implementing Event listeners in Oracle ADF

    I have a selectonechoice UI component by which the user selects the user name and an UI table component which displays all the documents the user has access to. There are three tables involved 1) User 2) Access 3) Documents. USER table has a FK relation to ACCESS table. The ACCESS table has FK relation to DOCUMENTS table.
    I have written two SQL queries/view objects (userView) to get the user name and another join query (userAccessView) to get the document names that a particular user has access to.
    I want to link the two UI components such that when the selectonechoice UI component changes value, the table UI component should display document list has the user has access to.
    Is there any sample example of how to implement the functionality using Oracle ADF? Or any suggestion on how to do it.
    Regards
    Thomas

    You should be able to achieve this with PPR - for example see this demo of the navigation list:
    http://blogs.oracle.com/shay/2008/11/the_navigation_list_select_som.html

  • Oracle ADF breakline in JAVA

    I'm using oracle adf to display a table.
    The results in my 'notes' field have /n in the table to represent a new line. Oracle ADF does not separate the lines. I want to manually modify the string to display the break line.
    The string looks like: return new String(getAttributeInternal(NOTES).toString().replace("\n", "\n"));
    That however is not working, anyone know a working solution?

    Dayke wrote:
    return new String(getAttributeInternal(NOTES).toString().replace("\n", "<br/>"));
    I get a bunch of
    's in the string where a break should be.
    That would probably work if I could escape it some how.This really is an ADF question and shouldn't be asked in this forum.
    You won't be able to "escape" this, you'll have to see what you can do in ADF. It would appear that somewhere ADF is using something like JSTL out to properly escape any HTML it finds. So the bottom line is that you would have to use HTML, but you can't either. So you'll have to read the relevant documentation and see what you might be able to do. I would suggest that you probably don't actually really want to insert line breaks at all but just format the width of the containing element appropriately. Not using something like out makes your application open to cross-site scripting attacks.

  • Oracle ADF Security Login page

    hi.
    I am using oracle ADF 11.1.2.2.0 (oracle Jdevelopr 11g release 2) in my job environment. There are 3000 users working as client level in our company. They have separated user Id and roles. They can change their passwords. There are expiration period for passwords which is handle by in database level. when the employees are going to terminate or retirement , we can control their login status. that mean we change their Active status as a Inactive status. some times we recruit number of emplooyes for cover our business targets. Their User Id also in database table level.
    My main problem is how we can handle number of employees using Oracle ADF security configuration.
    second one is how user can change their passwords.
    Third is how number of employees going to terminate ,handle their Active/Inactive State.
    Fourth one is If we use this Oracle Security system ,project managers or project cordinator or Adminstrator level authenticator must need to deploy time to time war file, because of adding removing users in jazn-data.xml.
    hoping help from you.Thanking for all.

    So, you can define SQLAuthenticator/SQLReadOnlyAuthenticator on Weblogic which will retrieve users from your db table(instead of jazn-data file) to application server.
    Then, in your application you can enable ADF Security and this will generate login page.
    And, this is it :)
    If you need some custom processing before users login to your app, then you can create custom login page and do whatever you want in Java code:
    http://docs.oracle.com/cd/E16162_01/web.1112/e16182/adding_security.htm#BABDEICH
    >
    But 11g has Database connection in Application Resource. Using that connection I need to log to the system using user's User iD and Password
    >
    This connection is valid only in design time. When you deploy your application to application server, then you can include this connection in .ear file, or you can define Data Source on Weblogic(which is better approach).
    To programmatically retreive db connection, you can create utility method in your Application Module.
    Dario

  • Oracle ADF and Oracle Applications

    Hi All,
    Can we use Oracle ADF with current version of Oracle E-business suite (R11i 2 in my case)? Or we need to use only OAF and ADF can be used only for future release of Oracle ERP?
    It will be great if someone can list the benefits of OAF over ADF for Oracle EBS 11i 2. I want to convince the customer that ADF is not safe or not a good platform for the customizations in current release (R11i 2) and even for next immediate version (R12).
    Thanks in advance,
    CAH

    Hi,
    I don't think ADF can be used with Apps 11i,it can be user in R12(this is my understanding), if you want to run ADF pages from Apps then these pages should be located on External server and you can access this as an External Application.
    As far as customization is concrened, it can't be done using ADF only new Applications be developed in ADF and if you are planning to develop some custom application in Apps then ADf will be a good choice as migration to 11g will be easier(but it will not support Apps specific features like KFF, DFF, Attachments etc.)
    Please check Metalink Note 563047.1 on metalink for this and you can check some articles on this www.apps2fusion.com and Mukul's Blog.
    I hope you will get some clear picture on this.
    Regards,
    Reetesh Sharma

Maybe you are looking for

  • Data from a view in the margin

    Hi, I have a view which shows the data for the margin correctly. It is a group above report which results in several pages. On page 1 the footer should be in swedish (a reminder to a swedish customer) and on page 2 the footer should be in english (a

  • The i-pod cannot be synced. The disk could not be read from or written to.

    This is the message I get. PLS help me to resolve this!

  • Why doesn't iPhoto 08 back up photo book?

    When I go to Share>Burn to burn a folder that has an album, slideshow, and photo book, the photo book does not get backed up. In previous iPhoto 06 version, it was possible to burn the photo book. Any ideas? Thanks

  • "Item Containing Primary Key Column Value" does not display records

    Hello, We are developing a new page where an "Automated Row Fetch" process is needed. With other pages we experienced no issues. But with a new one, when defining the value for the field "Item Containing Primary Key Column Value", Apex displays no ro

  • JDeveloper 1012 Corrupt ADF Project

    I have just come across a strange problem in using Jdeveloper 1012 to create an ADF project. The project is very simple at present, containing a class to represent a person (surname and age fields with appropriate getter and setter methods), a class