ADF with BC4J and swing

I created a sample with a pure swing client and using ADF UI designer, I drag-dropped a view object as a Table in the Swing UI. Note I am not using JClient, i am using Swing.
When I run the application, I get:
java.lang.NullPointerException
at oracle.jbo.uicli.jui.JUPanelBinding.bindUIControl(JUPanelBinding.java:808)
at com.churchill.temp.view.Frame1.jbInit(Frame1.java:37)
at com.churchill.temp.view.Frame1.<init>(Frame1.java:22)
at com.churchill.temp.view.Application1.<init>(Application1.java:13)
at com.churchill.temp.view.Application1.main(Application1.java:50)

Hi,
I installed JDeveloper 11.1.1.3.0 and cracked the nut. The LOV driven ComboBoxes in JTables will remain empty after migrating to the new version, but it seems to be merely a bug in the migration. What you need to do in order to get the ComboBoxes working is the following:
I found out that in your PageDefs you need to add two attributes to the <combobox> definitions:
ControlClass="javax.swing.JComboBox" Editable="false"
This makes the ComboBoxes look like in previous releases. If you skip the "Editable" attribute, the user can type in values, which does not really work in LOVs but in static lists.
Unfortunately I experienced another bug in the 11.1.1.3.0 release concerning LOVs: When defining the LOV in the ViewDef, JDeveloper wouldn't let you specify any additional columns to be displayed in the LOV ("Display Attributes"). -> The workaround is much easier than I first thought: Just resize the dialog a little bigger and the selection fields that I first missed appear!
In the moment it looks to me like I could continue development with JDeveloper 11.1.1.3.0.
Mathias
Edited by: user7585671 on 05.05.2010 06:26

Similar Messages

  • [URGENT] Performance problem with BC4J and partioned data

    Hi all,
    I have a big performance probelm with BC4J and partitioned data. As as partitioned table shouldn't have a primary key like a sequence (or something else) my partitioned table doesn't have any primary key.
    When I debug my BC4J application I can see a message showing me "ignoring row with no primary key" from EntityCache. It takes a long time to retrieve my data even if I use the partition keys. A quick & dirty forms application was multiple times faster!
    Is this a bug in BC4J, or is BC4J not suitable for partitioned data? Can anyone give me a hint what to do, do make the BC4J application fast even with partitioned data? In a non-partitioned environment the application works quite well. So it seams that it must be an "error" somewhere in this part.
    Thanks,
    Axel

    Here's a SQL statement that creates the table.
    CREATE TABLE SEARCH
    (SEAR_PARTKEY_DAY              NUMBER(4)        NOT NULL
    ,SEAR_PARTKEY_EMP            VARCHAR2(2)      NOT NULL
    ,SEAR_ID                     NUMBER(20)       NOT NULL
    ,SEAR_ENTRY_DATE             TIMESTAMP        NOT NULL
    ,SEAR_LAST_MODIFIED            TIMESTAMP             NOT NULL
    ,SEAR_STATUS                 VARCHAR2(100)    DEFAULT '0'
    ,SEAR_ITC_DATE               TIMESTAMP        NOT NULL
    ,SEAR_MESSAGE_CLASS          VARCHAR2(15)     NOT NULL
    ,SEAR_CHIPHERING_TYPE        VARCHAR2(256)   
    ,SEAR_GMAT                   VARCHAR2(1)      DEFAULT 'U'
    ,SEAR_NATIONALITY            VARCHAR2(3)      DEFAULT 'XXX'
    ,SEAR_MESSAGE_ID             VARCHAR2(32)     NOT NULL
    ,SEAR_COMMENT                VARCHAR2(256)    NOT NULL
    ,SEAR_NUMBER_OF              NUMBER(3)        NOT NULL
    ,SEAR_INTERCEPTION_SYSTEM    VARCHAR2(40)    
    ,SEAR_COMM_PRIOD_H           NUMBER(5)        DEFAULT -1
    ,SEAR_PRIOD_R                  NUMBER(5)        DEFAULT -1
    ,SEAR_INMARSAT_CES           VARCHAR2(40)    
    ,SEAR_BEAM                   VARCHAR2(10)    
    ,SEAR_DIALED_NUMBER          VARCHAR2(70)    
    ,SEAR_TRANSMIT_NUMBER        VARCHAR2(70)    
    ,SEAR_CALLED_NUMBER          VARCHAR2(40)    
    ,SEAR_CALLER_NUMBER          VARCHAR2(40)    
    ,SEAR_MATERIAL_TYPE          VARCHAR2(3)      NOT NULL
    ,SEAR_SOURCE                 VARCHAR2(10)    
    ,SEAR_MAPPING                VARCHAR2(100)    DEFAULT '__REST'
    ,SEAR_DETAIL_MAPPING         VARCHAR2(100)
    ,SEAR_PRIORITY               NUMBER(3)        DEFAULT 255
    ,SEAR_LANGUAGE               VARCHAR2(5)      DEFAULT 'XXX'
    ,SEAR_TRANSMISSION_TYPE      VARCHAR2(40)    
    ,SEAR_INMARSAT_STD           VARCHAR2(1)     
    ,SEAR_FILE_NAME              VARCHAR2(100)    NOT NULL
    PARTITION BY RANGE (SEAR_PARTKEY_DAY, SEAR_PARTKEY_EMP)
      PARTITION SEARCH_MAX VALUES LESS THAN (MAXVALUE, MAXVALUE) MIRA4_SEARCH_EVEN
    );of course SEAR_ID is filled by a sequence but the field is not the primary key as it would decrease the performance of partitioned data.
    We moved to native JDBC with our application and the performance is like we never expected to be!

  • Demo applications with BC4J and JClient

    Are there any demo applications with BC4J and JClient, which go beyond the one frame samples, tutorials and how to's?
    This would deliver a better insight to develop a complete application.
    Bye
    Holger

    Thanks,
    the Virtual Shopping Mall sample is quite not I have searched for, because it is primarily an Web application and I am searching for an JClient application without Application Server, but it is a beginning.
    Bye
    Holger

  • How do I integrate adf with peoplesoft and deploy it on psft ?

    I am planning to use adf faces for customization on peoplesoft. How do I do that using the present adf version? Is there documentaion or demo for usage of adf with psft?
    Thanks,
    Pradeep

    The online files cannot be opened in iWeb — only iWeb's Domain file can be opened in iWeb. See this Apple doc on How to back up MobileMe data. It says:
    Any websites you have published with iWeb should still be available within iWeb. iWeb stores everything in a Domain file, normally located in the ~/Library/Application Support/iWeb folder (although it can be moved). If you no longer have this file, you can view your currently published pages and manually recreate them within iWeb, but there is no way to import published pages back into iWeb. You can manually back up the Domain file, or use Backup to back it up.
    Paragraph 2.3 of this FAQ page gives some tips on how to use published files, graphics, photos, etc., to help rebuild the site from scratch:
    http://iwebfaq.org/site/iWebBackupretrieve.html

  • Edit multiple records with BC4J and Struts-JSP

    Hi everybody,
    I'm building BC4J components using entities and views and JSP business components. How can I edit and update multiple records at a time with Struts-Jsp ? Have someone already an example (with JSP and ActionForm code) ?
    thank you

    Hi,
    Nobody have an example ? Is it so difficult ?
    Thanks

  • How to create new OC4J instance in AS 10.1.3 with BC4J- and ADF-Libraries

    Hi
    I have done all the steps mentioned in this thread:
    How to create new OC4J instance in AS 10.1.3
    However, the new created OC4J instance obviously misses some libraries. If I deploy my Application to this OC4J I get an internal error: Class not found: oracle.jbo.JboException.
    The same Application runs well in the "home" Instance.
    What is the trick, to create a new OC4J instance, which more or less behaves the same way as the "home" instances (and especially has all the same libraries)?
    Thanks for your help
    Frank Brandstetter

    I encountered this last month. I definitely agree that it is a glaring omission to not have "Create Like" functionality when instantiating new containers. Here's my notes on the manual steps required after using createinstance to create the fresh container. Not too bad. I've been deploying ADF applications to the new container with no problems after this.
    ==============
    The default (home) OC4J container is pre-configured for ADF 10.1.3 applications; however, when $ORACLE_HOME/bin/createinstance is used to create additional containers, these containers are not configured automatically to host ADF 10.1.3 applications.
    I followed these manual steps:
    1. $ORACLE_HOME/j2ee/home/config/server.xml defines three shared libraries that "install" the needed JARs for Oracle ADF applications in your application server instance (container). Note that "install" does not necessarily mean available to applications (see Step 2). Copy the three shared library element definitions to the <application-server> element of your new container (in server.xml).
    <shared-library name="oracle.expression-evaluator" version="10.1.3" library-compatible="true">
         <code-source path="/usr2/oracle/as10130/jlib/commons-el.jar"/>
         <code-source path="/usr2/oracle/as10130/jlib/oracle-el.jar"/>
         <code-source path="/usr2/oracle/as10130/jlib/jsp-el-api.jar"/>
    </shared-library>
    <shared-library name="adf.oracle.domain" version="10.1.3" library-compatible="true">
         <code-source path="/usr2/oracle/as10130/BC4J/lib"/>
         <code-source path="/usr2/oracle/as10130/jlib/commons-cli-1.0.jar"/>
         <code-source path="/usr2/oracle/as10130/mds/lib/concurrent.jar"/>
         <code-source path="/usr2/oracle/as10130/mds/lib/mdsrt.jar"/>
         <code-source path="/usr2/oracle/as10130/jlib/share.jar"/>
         <code-source path="/usr2/oracle/as10130/jlib/regexp.jar"/>
         <code-source path="/usr2/oracle/as10130/jlib/xmlef.jar"/>
         <code-source path="/usr2/oracle/as10130/BC4J/jlib/adfmtl.jar"/>
         <code-source path="/usr2/oracle/as10130/BC4J/jlib/adfui.jar"/>
         <code-source path="/usr2/oracle/as10130/BC4J/jlib/adf-connections.jar"/>
         <code-source path="/usr2/oracle/as10130/BC4J/jlib/dc-adapters.jar"/>
         <code-source path="/usr2/oracle/as10130/ord/jlib/ordim.jar"/>
         <code-source path="/usr2/oracle/as10130/ord/jlib/ordhttp.jar"/>
         <code-source path="/usr2/oracle/as10130/jlib/ojmisc.jar"/>
         <code-source path="/usr2/oracle/as10130/jlib/jdev-cm.jar"/>
         <code-source path="/usr2/oracle/as10130/lib/xsqlserializers.jar"/>
         <import-shared-library name="oracle.xml"/>
         <import-shared-library name="oracle.jdbc"/>
         <import-shared-library name="oracle.cache"/>
         <import-shared-library name="oracle.dms"/>
         <import-shared-library name="oracle.sqlj"/>
         <import-shared-library name="oracle.toplink"/>
         <import-shared-library name="oracle.ws.core"/>
         <import-shared-library name="oracle.ws.client"/>
         <import-shared-library name="oracle.xml.security"/>
         <import-shared-library name="oracle.ws.security"/>
         <import-shared-library name="oracle.ws.reliability"/>
         <import-shared-library name="oracle.jwsdl"/>
         <import-shared-library name="oracle.http.client"/>
         <import-shared-library name="oracle.expression-evaluator"/>
    </shared-library>
    <shared-library name="adf.generic.domain" version="10.1.3" library-compatible="true">
         <code-source path="/usr2/oracle/as10130/BC4J/jlib/bc4jdomgnrc.jar"/>
         <code-source path="/usr2/oracle/as10130/BC4J/lib"/>
         <code-source path="/usr2/oracle/as10130/jlib/commons-cli-1.0.jar"/>
         <code-source path="/usr2/oracle/as10130/mds/lib/concurrent.jar"/>
         <code-source path="/usr2/oracle/as10130/mds/lib/mdsrt.jar"/>
         <code-source path="/usr2/oracle/as10130/jlib/share.jar"/>
         <code-source path="/usr2/oracle/as10130/jlib/regexp.jar"/>
         <code-source path="/usr2/oracle/as10130/jlib/xmlef.jar"/>
         <code-source path="/usr2/oracle/as10130/BC4J/jlib/adfmtl.jar"/>
         <code-source path="/usr2/oracle/as10130/BC4J/jlib/adfui.jar"/>
         <code-source path="/usr2/oracle/as10130/BC4J/jlib/adf-connections.jar"/>
         <code-source path="/usr2/oracle/as10130/BC4J/jlib/dc-adapters.jar"/>
         <code-source path="/usr2/oracle/as10130/ord/jlib/ordim.jar"/>
         <code-source path="/usr2/oracle/as10130/ord/jlib/ordhttp.jar"/>
         <code-source path="/usr2/oracle/as10130/jlib/ojmisc.jar"/>
         <code-source path="/usr2/oracle/as10130/jlib/jdev-cm.jar"/>
         <code-source path="/usr2/oracle/as10130/lib/xsqlserializers.jar"/>
         <import-shared-library name="oracle.xml"/>
         <import-shared-library name="oracle.jdbc"/>
         <import-shared-library name="oracle.cache"/>
         <import-shared-library name="oracle.dms"/>
         <import-shared-library name="oracle.sqlj"/>
         <import-shared-library name="oracle.toplink"/>
         <import-shared-library name="oracle.ws.core"/>
         <import-shared-library name="oracle.ws.client"/>
         <import-shared-library name="oracle.xml.security"/>
         <import-shared-library name="oracle.ws.security"/>
         <import-shared-library name="oracle.ws.reliability"/>
         <import-shared-library name="oracle.jwsdl"/>
         <import-shared-library name="oracle.http.client"/>
         <import-shared-library name="oracle.expression-evaluator"/>
    </shared-library>
    2. To make the necessary ADF and JSF support libraries available to your deployed ADF application, the default application (that your ADF application and the majority of applications should inherit from) should explicitly import the shared library in the <orion-application> element of $ORACLE_HOME/j2ee/<your container>/config/application.xml.
    <imported-shared-libraries>
         <import-shared-library name="adf.oracle.domain"/>
    </imported-shared-libraries>
    Note: the adf.oracle.domain shared library imports several other shared libraries including oracle.expression-evaluator.

  • Need help with  HTML and Swing Components

    Dear All,
    I am using HTML text for Jbutton and Jlabel and MenuItem.
    But when i am trying to disable any of these, its foreground color is not being grayed out.
    For that, I have overrided the setEnable() method as mentioned below:
    import java.awt.*;
    import java.awt.event.MouseEvent;
    import java.awt.event.MouseListener;
    import java.awt.event.WindowAdapter;
    import java.awt.event.WindowEvent;
    import javax.swing.*;
    import javax.swing.plaf.FontUIResource;
    * HtmlLabelEx.java
    public class HtmlLabelEx extends javax.swing.JDialog implements MouseListener{
         * Creates new form HtmlLabelEx
        public HtmlLabelEx(java.awt.Frame parent, boolean modal) {
            super(parent, modal);
            UIManager.put("swing.boldMetal", Boolean.FALSE);
            initComponents();
            setLayout(null);
            this.addWindowListener(new WindowAdapter()
                public void windowClosing(WindowEvent event)
                    System.exit(0);
            JLabel jLabel1 = new JLabel()
                public void setEnabled(boolean b)
                  super.setEnabled(b);
                  setForeground(b ? (Color) UIManager.get("Label.foreground") : (Color) UIManager.get("Label.disabledForeground"));
            JButton jButton1 = new JButton()
                public void setEnabled(boolean b)
                  super.setEnabled(b);
                  setForeground(b ? (Color) UIManager.get("Label.foreground") : (Color) UIManager.get("Label.disabledForeground"));
            add(jButton1);
            String str = "<html><body><b>Label</b></body></html>";
            System.out.println("str = "+str);
        jLabel1.setText(str);
        add(jLabel1);
        jLabel1.setBounds(10,10,100,20);
        jLabel1.setEnabled(false);
        jButton1.setText("<html><body><b>Button</b></body></html>");
        jButton1.setEnabled(true);
        jButton1.setBounds(10,50,100,20);
        System.out.println("getText = "+jLabel1.getText());
        setSize(400,400);
        addMouseListener(this);
        /** This method is called from within the constructor to
         * initialize the form.
         * WARNING: Do NOT modify this code. The content of this method is
         * always regenerated by the Form Editor.
        // <editor-fold defaultstate="collapsed" desc=" Generated Code ">                         
        private void initComponents() {
            getContentPane().setLayout(null);
            setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
            pack();
        }// </editor-fold>                       
         * @param args the command line arguments
        public static void main(String args[]) {
            java.awt.EventQueue.invokeLater(new Runnable() {
                public void run() {
                    new HtmlLabelEx(new javax.swing.JFrame(), true).setVisible(true);
        // Variables declaration - do not modify                    
        // End of variables declaration                  
        public void mouseClicked(MouseEvent e)
            if(e.getButton() == e.BUTTON3)
                JMenuItem mit = new JMenuItem("<html><body><b>Menu Item</b></body></html>");
                JPopupMenu pop = new JPopupMenu();
                pop.add(mit);
                mit.setEnabled(false);
                pop.show(this,e.getX(),e.getY());
        public void mousePressed(MouseEvent e) {
        public void mouseReleased(MouseEvent e) {
        public void mouseEntered(MouseEvent e) {
        public void mouseExited(MouseEvent e) {
    But, I think it is difficult to write like this for each component.
    I am looking for an optimized solution so that the change will be only in one place.
    so that, It wont leads to change so many pages or so many places.
    And i have the following assumptions to do this. please let me know the possibility.
    1.Implementing custom UI class, extending the JButton/JMenuItem (As the BasicButton/MenuItemUI class does not have setEnabled() method to override) and putting this in UIManager.put("ButtonUI/MenuItemUI","CustomClass).
    2.If there is any possibility to achieve this, by just overriting any key in the UIManager
    3.By setting any client property globally.
    My requirement is to do this only at one place for entire the application.So, that we need not change all the buttoins, sya some 30 buttions are there in a dialog, then we need to override each button class.
    Please suggest me the possibilties..
    Thank you

    Hi camickr ,
    I know that to set the font we have to use component.setfont().
    But, as per my requirement,i am not setting any font to any component in my application.
    i am just passing HTML text along with FONT tags to all the components in my Application.SO, in this case we will get bold letters and that problem fixed when we set swing.boldMetal = false in UI Manager.
    But actual problem irrespective of font settings is when ever we use HTML rendered text, when the button or menuitem is disabled,then that one will not be changed to gray color. i.e., it still looks like normal controls, even it is disabled.(It is also reported as bug)
    But, as per my knowledge we can fix by overrding setEnabled or paint() methods for each and every component.
    But, if we do like that, for an application that has 200 buttons or MenuItems, it is difficult to follow that approach.
    So, We should find a way to achieve that only in one place like using UIManager or other one as i mentioned in previous posts if possible.
    I hope you understood what my problem is exactly.
    Thank You
    Edited by: sindhumourya on Mar 4, 2010 7:26 AM

  • Mouse Right-Click menu with JTextField and swing

    Hello,
    I created a small app for providing an organized gui to insert data and log it to a text file. I just recently converted it to swing to improve the functionality of it and try to get away from some of the bugs I found in using regular java.awt.
    So far so good, all of my complaints with regular awt are gone using swing, but I have one problem I see as a real pain.
    With a TextField in java.awt you can right click and get the standard mouse-menu. The mouse menu is nice for cut/copy/paste type operations and I do not want to lose this functionality.
    But with swing and JTextField I am not getting the menu. I right click in there and get nothing. My UIManager is loading the OS one (windows) and I cannot find a way to recover this feature.
    Does anyone know how I can get this working?
    Thanks,
    Lucas

    Well as I posted here to try and see if there was a way to recover what the OS already provides I have struggled through creating a popup menu.
    I have the cut, copy, paste and selectall complete but I am struggling with the undo option.

  • How to implement concurrent nested Dialogs with BC4J and JClient

    Hello,
    we are evaluating BC4J/JClient. In our application we have a navigation tree
    in a Java client from which we can call nested dialogs to set attributes,
    call business logic etc.
    Is it possible to open more than one sub-dialog from our starting navigation tree
    at the same time? Each sub-dialog should have its own transaction context.
    To our knowledge we need a new application module for each sub-dialog in order
    to start a new transaction. But how is the navigation tree updated if data
    from the sub-dialogs is commited? The dialogs and the navigation tree don't share
    the same model, do they? The navigation tree might have to show lots of data
    retrieved over a slow connection, so simply updating the entire model is not a solution.
    This could work if an intelligent caching fetches only the changed data.
    So: What is the best way to implement sub-dialogs with their own transaction plus an
    update mechanism?
    Thanks for any help!

    Hello,
    we are evaluating BC4J/JClient. In our application we have a navigation tree
    in a Java client from which we can call nested dialogs to set attributes,
    call business logic etc.
    Is it possible to open more than one sub-dialog from our starting navigation tree
    at the same time? Each sub-dialog should have its own transaction context.
    To our knowledge we need a new application module for each sub-dialog in order
    to start a new transaction. But how is the navigation tree updated if data
    from the sub-dialogs is commited? The dialogs and the navigation tree don't share
    the same model, do they? The navigation tree might have to show lots of data
    retrieved over a slow connection, so simply updating the entire model is not a solution.
    This could work if an intelligent caching fetches only the changed data.
    So: What is the best way to implement sub-dialogs with their own transaction plus an
    update mechanism?To create a UI like this, see the sample on OTN at
    http://otn.oracle.com/sample_code/products/jdev/jclient/jclient_binding_demo.html
    YOu'd have to tweak this sample so that each sub-window comes up with it's own AM (as you've right suggested).
    Regarding commit, yes, if you do not want to query the whole model on the navigator, you may use Transaction.commitAndSync() method to commit changes instead of simply performing a commit() call.
    See javadoc on this method for details on how it works.
    Thanks for any help!

  • Connecting locally with BC4J and JDBC DataSource

    I have a BC4J project/module which I'm using as the data access layer for a web application, and that is deployed in 'local' mode on the OC4J server. In the config for the BC4J Module, I'm using the 'JDBC DataSource' connection type. When I deploy to OC4J, the appropriate entries are made in data-sources.xml and things run fine.
    W/in JDev, however, I'd like to be able to use the BC4J Tester and/or some local java classes (ie, run with a main method, outside the context of OC4J) to do some testing as I develop, including accessing the DB via my BC4J module, with the JDBC DataSource connection type. Currently, in order to run outside of the context of OC4J, I need to modify my config to use a connection type of 'JDBC URL' in order to successfully connect via the tester or via a main method driven class. (But then must be sure to change it back to 'JDBC DataSource' prior to redeploying.) If don't do this, and instead try to use the DataSource connection type, I get the errors "oracle.jbo.JboException: JBO-27200: JNDI failure. Unable to lookup Data Source at context jdbc/ADD_OWNER_DEV2DS" and "javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial" (among others)
    It seems pretty clear that I need to somehow/somewhere specify the context factory or such when running in JDev vs under OC4J, or somehow point the IDE to the local OC4J instance as the source of the info, etc?
    When trying to connect from the development environment, I have a local OC4J instance up and running, and I have what I think is an appropriate entry in data-sources.xml (I've tried this in 4 locations - j2ee\home\config, multi\system\oc4j-config, system9.0.3.1035\oc4j-config and as a new Data Sources Descriptor in the project.)
    Is there a way to set things up such that I can use the 'JDBC DataSource' connection type regardless of whether I'm running inside or outside of OC4J?
    Thanks,
    Jim

    Jim,
    You need some jndi implementation to bind(define) the datasource that can be looked up at runtime. Unfortunately, currently the only jndi implementation available in which you can bind datasources comes from oc4j. So you have to run in oc4j for using the datasource as your connection type.
    Dhiraj

  • Problem with BC4J and PostrgreSQL 7.2

    I successful configure connection to PostgreSQL DB.
    Then I create simple table on DB and create BC4J appmodule.
    In appmodule properties I change jbo.sql92.JdbcDriverClass = org.postgresql.Driver
    I run test appmodule in BC4J browser. I see my row in table but when I try to put something in table
    JBO-27123: SQL error during call statement preparation. Statement: INSERT INTO CITIES(name,last) VALUES (?,?)
    Callable Statements are not supported at this time.
    Same thing is happening on delete or update ???
    When I put some data into table from connection/sqlworksheet in Jdeveloper everething is ok.
    I use JDeveloper 9.0.2.829

    REPOST

  • ADF: Problem with List and ListOfValues bindings

    In my page I have panelSplitter.
    In first facet I have panelCollection with ADF tree. For the tree definition I have Iterator binding, which contains the elements with no parent and one accessor, which define a recursive master-detail hierarchy. For the tree node I have specified TragetIterator property, that look up second iterator binding, which containes all tree elements (parents and their children).
    In second facet I have panelForm with input fields, based on second iterator binding. So when the user clicks on any node in the tree, it can see and edit in input fields the data for this node.
    In panelCollection I have placed two buttons to create a new node and to delete current node.
    By creation of new node I do the following:
    1) From currently selected node I get the value of one attribute named Code, which is alternate unique key;
    2) From second iterator binding I get the ViewObject, create a new Row and for the "parent" attribute I set the value derived from step 1.
    3) I rerender through PPR tree component and PanelForm with input fields.
    As result I have a new empty node in the tree and empty input fields in second facet, which must be populated and submitted (commited).
    My problem happens after I populate all fields in panelForm, when I commit changes (press Button with Commit action binding) and rerender page content. The exception, which is trown is listed below.
    I want to make the follwing additional remarks:
    1) My primary key in ViewObject is ROWID. I need this attribute to uniquely identify created new rows.
    2) The problem happens only when in panelForm I have field based on Model driven List or ListOfValues binding (<af:selectOneChoice> or <af:inputListOfValues>).
    When I create a new row the ADF BC assign to it one "dummy" ROWID (for example 317499) and after Commit this ROWID is replaced wtih actual ROWID from database. But I don't understand, why after commit of changes on the page the method findByKey of oracle.jbo.server.ViewObjectImpl is called with initial "dummy" ROWID (317499)?
    When there is no field based on List or ListOfValues binding, then there are no calls of findByKey method and there is no such problem.
    And that is the exception:
    2009-7-29 18:04:54 oracle.adf.controller.faces.lifecycle.FacesPageLifecycle addMessage
    WARNING: ADFc: ORA-01410: невалиден ROWID
    oracle.jbo.SQLStmtException: JBO-27122: SQL error during statement preparation. Statement: SELECT OU.CODE, OU.NAME, OU.ABBREVIATION, OU.ORGUNIT_TYPE, OU.PARENT_UNIT, OU.IS_VALID, OU.ROWID FROM ORG_UNITS OU WHERE (OU.ROWID = :1)
         at oracle.jbo.server.BaseSQLBuilderImpl.processException(BaseSQLBuilderImpl.java:3837)
         at oracle.jbo.server.OracleSQLBuilderImpl.processException(OracleSQLBuilderImpl.java:4621)
         at oracle.jbo.server.QueryCollection.buildResultSet(QueryCollection.java:1150)
         at oracle.jbo.server.QueryCollection.executeQuery(QueryCollection.java:762)
         at oracle.jbo.server.ViewObjectImpl.executeQueryForCollection(ViewObjectImpl.java:5681)
         at nsi.isbs.dmc.common.IsbsViewObjectImpl.executeQueryForCollection(IsbsViewObjectImpl.java:56)
         at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:1005)
         at oracle.jbo.server.ViewRowSetImpl.executeQueryForMasters(ViewRowSetImpl.java:1162)
         at oracle.jbo.server.ViewRowSetImpl.executeQueryForMode(ViewRowSetImpl.java:1082)
         at oracle.jbo.server.ViewRowSetImpl.executeQuery(ViewRowSetImpl.java:1076)
         at oracle.jbo.server.ViewObjectImpl.retrieveByKey(ViewObjectImpl.java:13994)
         at oracle.jbo.server.ViewObjectImpl.retrieveByKey(ViewObjectImpl.java:13758)
         at oracle.jbo.server.ViewObjectImpl.retrieveByKey(ViewObjectImpl.java:13752)
         at oracle.jbo.server.ViewRowSetImpl.findByKey(ViewRowSetImpl.java:4891)
         at oracle.jbo.server.ViewRowSetImpl.findByKey(ViewRowSetImpl.java:4679)
         at oracle.jbo.server.ViewRowSetImpl.findByKey(ViewRowSetImpl.java:4673)
         at oracle.jbo.server.ViewObjectImpl.findByKey(ViewObjectImpl.java:9456)
         at oracle.jbo.server.ApplicationModuleImpl.getListBindingName(ApplicationModuleImpl.java:8421)
         at oracle.adf.model.bc4j.DCJboDataControl.getListBindingName(DCJboDataControl.java:2244)
         at oracle.jbo.uicli.binding.JUCtrlListBinding.initDefFromServerBinding(JUCtrlListBinding.java:2366)
         at oracle.jbo.uicli.binding.JUCtrlListBinding.getAttributeDefs(JUCtrlListBinding.java:2327)
         at oracle.jbo.uicli.binding.JUCtrlValueBinding.getAttributeDef(JUCtrlValueBinding.java:497)
         at oracle.jbo.uicli.binding.JUCtrlValueBinding.getAttributeDef(JUCtrlValueBinding.java:487)
         at oracle.jbo.uicli.binding.JUCtrlValueBinding.isInternalAttributeUpdateable(JUCtrlValueBinding.java:3262)
         at oracle.jbo.uicli.binding.JUCtrlValueBinding.isAttributeUpdateable(JUCtrlValueBinding.java:1617)
         at oracle.jbo.uicli.binding.JUCtrlValueBinding.isAttributeUpdateable(JUCtrlValueBinding.java:1695)
         at oracle.jbo.uicli.binding.JUCtrlValueBinding.isUpdateable(JUCtrlValueBinding.java:2512)
         at oracle.jbo.uicli.binding.JUCtrlListBinding.isUpdateable(JUCtrlListBinding.java:3357)
         at oracle.adfinternal.view.faces.model.AdfELResolver._isReadOnly(AdfELResolver.java:85)
         at oracle.adfinternal.view.faces.model.AdfELResolver.isReadOnly(AdfELResolver.java:101)
         at javax.el.CompositeELResolver.isReadOnly(CompositeELResolver.java:353)
         at com.sun.faces.el.FacesCompositeELResolver.isReadOnly(FacesCompositeELResolver.java:113)
         at com.sun.el.parser.AstValue.isReadOnly(AstValue.java:128)
         at com.sun.el.ValueExpressionImpl.isReadOnly(ValueExpressionImpl.java:230)
         at oracle.adfinternal.view.faces.renderkit.rich.EditableValueRenderer.getReadOnly(EditableValueRenderer.java:400)
         at oracle.adfinternal.view.faces.renderkit.rich.EditableValueRenderer.wasSubmitted(EditableValueRenderer.java:341)
         at oracle.adfinternal.view.faces.renderkit.rich.EditableValueRenderer.decodeInternal(EditableValueRenderer.java:113)
         at oracle.adfinternal.view.faces.renderkit.rich.SimpleInputListOfValuesRendererBase.decodeInternal(SimpleInputListOfValuesRendererBase.java:88)
         at oracle.adfinternal.view.faces.renderkit.rich.LabeledInputRenderer.decodeInternal(LabeledInputRenderer.java:55)
         at oracle.adf.view.rich.render.RichRenderer.decode(RichRenderer.java:236)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.__rendererDecode(UIXComponentBase.java:1089)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.decode(UIXComponentBase.java:714)
         at oracle.adf.view.rich.component.UIXInputPopup.processDecodes(UIXInputPopup.java:134)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildrenImpl(UIXComponentBase.java:970)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:956)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.processDecodes(UIXComponentBase.java:812)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildrenImpl(UIXComponentBase.java:970)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:956)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.processDecodes(UIXComponentBase.java:812)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildrenImpl(UIXComponentBase.java:970)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:956)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.processDecodes(UIXComponentBase.java:812)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildrenImpl(UIXComponentBase.java:970)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:956)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.processDecodes(UIXComponentBase.java:812)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildrenImpl(UIXComponentBase.java:970)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:956)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.processDecodes(UIXComponentBase.java:812)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl$ApplyRequestValuesCallback.invokeContextCallback(LifecycleImpl.java:1113)
         at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:722)
         at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:731)
         at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:731)
         at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:731)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.invokeOnComponent(ContextSwitchingComponent.java:153)
         at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:731)
         at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:731)
         at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:731)
         at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:731)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.invokeOnComponent(ContextSwitchingComponent.java:153)
         at oracle.adf.view.rich.component.fragment.UIXPageTemplate.invokeOnComponent(UIXPageTemplate.java:208)
         at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:731)
         at javax.faces.component.UIComponentBase.invokeOnComponent(UIComponentBase.java:664)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:303)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:175)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:181)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:85)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:279)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._invokeDoFilter(TrinidadFilterImpl.java:239)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:196)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:139)
         at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at oracle.security.jps.wls.JpsWlsFilter$1.run(JpsWlsFilter.java:85)
         at java.security.AccessController.doPrivileged(Native Method)
         at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:257)
         at oracle.security.jps.wls.JpsWlsSubjectResolver.runJaasMode(JpsWlsSubjectResolver.java:250)
         at oracle.security.jps.wls.JpsWlsFilter.doFilter(JpsWlsFilter.java:100)
         at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:65)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3496)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(Unknown Source)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2180)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2086)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Caused by: java.sql.SQLException: ORA-01410: невалиден ROWID
         at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:70)
         at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:116)
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:177)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:455)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:413)
         at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:1034)
         at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:194)
         at oracle.jdbc.driver.T4CPreparedStatement.executeForRows(T4CPreparedStatement.java:947)
         at oracle.jdbc.driver.T4CPreparedStatement.executeMaybeDescribe(T4CPreparedStatement.java:891)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1186)
         at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3381)
         at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:3425)
         at oracle.jdbc.driver.OraclePreparedStatementWrapper.executeQuery(OraclePreparedStatementWrapper.java:1490)
         at oracle.jbo.server.QueryCollection.buildResultSet(QueryCollection.java:1040)
         ... 104 more
    ## Detail 0 ##

    I have resolved my problem. I have changed the type of list binding to be Dynamic List (not Model Driven List).

  • CreateRow increases memory and cpu. Tomcat+ADF Faces+BC4J in JDev 10.1.3.0

    CreateRow increases memory and cpu. Tomcat+ADF Faces+BC4J in JDev 10.1.3.0.4
    My old problem is this Ineffectiveness/Inconsistency BC4J createrow in tomcat, CPU = 100%,Mem=2.2G
    I have tested my Adf Faces application with jmx in server and, in my machine, jconsole and mc4j.
    When cpu=100% and memory increases, jconsole constantly returned similar trace:
    In all trace, I see that common is:
    oracle.jbo.server.QueryCollection.populateRow(QueryCollection.java:2203)
    oracle.jbo.server.QueryCollection.fetch(QueryCollection.java:2088)
    Therefore, I believe that function populateRow make infinity loop (or fuction fech make infinity loop, called populateRow), but I don’t know populteRow or fetch code.
    tomcat Version: 5.5.16
    Jdeveloper Version: 10.1.3.0.4
    Adf Business component Version: 10.1.3.36.73
    Java version: 1.5.0_05
    Please, any oracle ACE could help me?
    When cpu=100% and memory increases, jconsole constantly returned any of these trace:
    First trace
    java.net.SocketOutputStream.socketWrite0(Native Method)
    java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
    java.net.SocketOutputStream.write(SocketOutputStream.java:136)
    oracle.net.ns.DataPacket.send(Unknown Source)
    oracle.net.ns.NetOutputStream.flush(Unknown Source)
    oracle.net.ns.NetInputStream.getNextPacket(Unknown Source)
    oracle.net.ns.NetInputStream.read(Unknown Source)
    oracle.net.ns.NetInputStream.read(Unknown Source)
    oracle.net.ns.NetInputStream.read(Unknown Source)
    oracle.jdbc.driver.T4CMAREngine.unmarshalUB1(T4CMAREngine.java:979)
    oracle.jdbc.driver.T4CMAREngine.unmarshalSB1(T4CMAREngine.java:951)
    oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:448)
    oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:185)
    oracle.jdbc.driver.T4CPreparedStatement.fetch(T4CPreparedStatement.java:692)
    oracle.jdbc.driver.OracleResultSetImpl.close_or_fetch_from_next(OracleResultSetImpl.java:258)
    oracle.jdbc.driver.OracleResultSetImpl.next(OracleResultSetImpl.java:193)
    oracle.jbo.server.QueryCollection.hasNextInResultSet(QueryCollection.java:3014)
    oracle.jbo.server.ViewObjectImpl.hasNextForCollection(ViewObjectImpl.java:3650)
    oracle.jbo.server.QueryCollection.hasNext(QueryCollection.java:2992)
    oracle.jbo.server.QueryCollection.populateRow(QueryCollection.java:2207)
    oracle.jbo.server.QueryCollection.fetch(QueryCollection.java:2088)
    oracle.jbo.server.QueryCollection.get(QueryCollection.java:1468)
    oracle.jbo.server.ViewRowSetImpl.getRow(ViewRowSetImpl.java:3650)
    oracle.jbo.server.ViewRowSetImpl.getRow(ViewRowSetImpl.java:2612)
    oracle.jbo.server.ViewObjectImpl.activateCurrentRow(ViewObjectImpl.java:12360)
    oracle.jbo.server.ViewRowSetIteratorImpl.activateIteratorState(ViewRowSetIteratorImpl.java:3768)
    oracle.jbo.server.ViewRowSetImpl.activateIteratorState(ViewRowSetImpl.java:4960)
    oracle.jbo.server.ViewRowSetImpl.doCreateAndInitRow(ViewRowSetImpl.java:1901)
    oracle.jbo.server.ViewRowSetImpl.createRow(ViewRowSetImpl.java:1891)
    oracle.jbo.server.ViewObjectImpl.createRow(ViewObjectImpl.java:6555)
    com.samesi.segestion.view.backing.app.Clientes.devoluciones_action(Clientes.java:1845)
    sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    java.lang.reflect.Method.invoke(Method.java:585)
    com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:146)
    com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:92)
    oracle.adf.view.faces.component.UIXCommand.broadcast(UIXCommand.java:211)
    oracle.adf.view.faces.component.UIXCollection.broadcast(UIXCollection.java:94)
    oracle.adf.view.faces.component.UIXTable.broadcast(UIXTable.java:205)
    javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:267)
    javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:381)
    com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:95)
    com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:245)
    com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:110)
    javax.faces.webapp.FacesServlet._service_79(FacesServlet.java:197)
    javax.faces.webapp.FacesServlet.service(FacesServlet.java)
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._invokeDoFilter(AdfFacesFilterImpl.java:367)
    oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._doFilterImpl(AdfFacesFilterImpl.java:336)
    oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFilterImpl.java:196)
    oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:87)
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:332)
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
    org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
    org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524)
    org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
    org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
    org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
    org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
    org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
    org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
    org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
    org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
    org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
    java.lang.Thread.run(Thread.java:595)
    Second trace
    java.net.SocketInputStream.socketRead0(Native Method)
    java.net.SocketInputStream.read(SocketInputStream.java:129)
    oracle.net.ns.Packet.receive(Unknown Source)
    oracle.net.ns.DataPacket.receive(Unknown Source)
    oracle.net.ns.NetInputStream.getNextPacket(Unknown Source)
    oracle.net.ns.NetInputStream.read(Unknown Source)
    oracle.net.ns.NetInputStream.read(Unknown Source)
    oracle.net.ns.NetInputStream.read(Unknown Source)
    oracle.jdbc.driver.T4CMAREngine.unmarshalUB1(T4CMAREngine.java:979)
    oracle.jdbc.driver.T4CMAREngine.unmarshalSB1(T4CMAREngine.java:951)
    oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:448)
    oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:185)
    oracle.jdbc.driver.T4CPreparedStatement.fetch(T4CPreparedStatement.java:692)
    oracle.jdbc.driver.OracleResultSetImpl.close_or_fetch_from_next(OracleResultSetImpl.java:258)
    oracle.jdbc.driver.OracleResultSetImpl.next(OracleResultSetImpl.java:193)
    oracle.jbo.server.QueryCollection.hasNextInResultSet(QueryCollection.java:3014)
    oracle.jbo.server.ViewObjectImpl.hasNextForCollection(ViewObjectImpl.java:3650)
    oracle.jbo.server.QueryCollection.hasNext(QueryCollection.java:2992)
    oracle.jbo.server.QueryCollection.populateRow(QueryCollection.java:2207)
    oracle.jbo.server.QueryCollection.fetch(QueryCollection.java:2088)
    oracle.jbo.server.QueryCollection.get(QueryCollection.java:1468)
    oracle.jbo.server.ViewRowSetImpl.getRow(ViewRowSetImpl.java:3650)
    oracle.jbo.server.ViewRowSetImpl.getRow(ViewRowSetImpl.java:2612)
    oracle.jbo.server.ViewObjectImpl.activateCurrentRow(ViewObjectImpl.java:12360)
    oracle.jbo.server.ViewRowSetIteratorImpl.activateIteratorState(ViewRowSetIteratorImpl.java:3768)
    oracle.jbo.server.ViewRowSetImpl.activateIteratorState(ViewRowSetImpl.java:4960)
    oracle.jbo.server.ViewRowSetImpl.doCreateAndInitRow(ViewRowSetImpl.java:1901)
    oracle.jbo.server.ViewRowSetImpl.createRow(ViewRowSetImpl.java:1891)
    oracle.jbo.server.ViewObjectImpl.createRow(ViewObjectImpl.java:6555)
    com.samesi.segestion.view.backing.app.Clientes.devoluciones_action(Clientes.java:1845)
    sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    java.lang.reflect.Method.invoke(Method.java:585)
    com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:146)
    com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:92)
    oracle.adf.view.faces.component.UIXCommand.broadcast(UIXCommand.java:211)
    oracle.adf.view.faces.component.UIXCollection.broadcast(UIXCollection.java:94)
    oracle.adf.view.faces.component.UIXTable.broadcast(UIXTable.java:205)
    javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:267)
    javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:381)
    com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:95)
    com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:245)
    com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:110)
    javax.faces.webapp.FacesServlet._service_79(FacesServlet.java:197)
    javax.faces.webapp.FacesServlet.service(FacesServlet.java)
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._invokeDoFilter(AdfFacesFilterImpl.java:367)
    oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._doFilterImpl(AdfFacesFilterImpl.java:336)
    oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFilterImpl.java:196)
    oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:87)
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:332)
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
    org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
    org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524)
    org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
    org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
    org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
    org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
    org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
    org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
    org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
    org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
    org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
    java.lang.Thread.run(Thread.java:595)
    Third trace
    java.lang.System.arraycopy(Native Method)
    com.sun.java.util.collections.ArrayList.toArray(ArrayList.java:287)
    oracle.jbo.server.ViewDefImpl.getEntityReferences(ViewDefImpl.java:547)
    oracle.jbo.server.ViewRowStorage.entityCacheAdd(ViewRowStorage.java:1730)
    oracle.jbo.server.ViewRowImpl.entityCacheAdd(ViewRowImpl.java:2151)
    oracle.jbo.server.ViewDefImpl.createInstanceFromResultSet(ViewDefImpl.java:1070)
    oracle.jbo.server.ViewObjectImpl.createRowFromResultSet(ViewObjectImpl.java:2943)
    oracle.jbo.server.ViewObjectImpl.createInstanceFromResultSet(ViewObjectImpl.java:2841)
    oracle.jbo.server.QueryCollection.populateRow(QueryCollection.java:2203)
    oracle.jbo.server.QueryCollection.fetch(QueryCollection.java:2088)
    oracle.jbo.server.QueryCollection.get(QueryCollection.java:1468)
    oracle.jbo.server.ViewRowSetImpl.getRow(ViewRowSetImpl.java:3650)
    oracle.jbo.server.ViewRowSetImpl.getRow(ViewRowSetImpl.java:2594)
    oracle.jbo.server.ViewObjectImpl.activateCurrentRow(ViewObjectImpl.java:12360)
    oracle.jbo.server.ViewRowSetIteratorImpl.activateIteratorState(ViewRowSetIteratorImpl.java:3768)
    oracle.jbo.server.ViewRowSetImpl.activateIteratorState(ViewRowSetImpl.java:4960)
    oracle.jbo.server.ViewRowSetImpl.doCreateAndInitRow(ViewRowSetImpl.java:1901)
    oracle.jbo.server.ViewRowSetImpl.createRow(ViewRowSetImpl.java:1891)
    oracle.jbo.server.ViewObjectImpl.createRow(ViewObjectImpl.java:6555)
    com.samesi.segestion.view.backing.app.Clientes.devoluciones_action(Clientes.java:1845)
    sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    java.lang.reflect.Method.invoke(Method.java:585)
    com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:146)
    com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:92)
    oracle.adf.view.faces.component.UIXCommand.broadcast(UIXCommand.java:211)
    oracle.adf.view.faces.component.UIXCollection.broadcast(UIXCollection.java:94)
    oracle.adf.view.faces.component.UIXTable.broadcast(UIXTable.java:205)
    javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:267)
    javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:381)
    com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:95)
    com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:245)
    com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:110)
    javax.faces.webapp.FacesServlet._service_79(FacesServlet.java:197)
    javax.faces.webapp.FacesServlet.service(FacesServlet.java)
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._invokeDoFilter(AdfFacesFilterImpl.java:367)
    oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._doFilterImpl(AdfFacesFilterImpl.java:336)
    oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFilterImpl.java:196)
    oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:87)
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:332)
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
    org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
    org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524)
    org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
    org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
    org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
    org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
    org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
    org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
    org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
    org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
    org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
    java.lang.Thread.run(Thread.java:595)
    Fourth (and end) trace
    oracle.sql.NUMBER.toBigDecimal(NUMBER.java:715)
    oracle.sql.NUMBER.bigDecimalValue(NUMBER.java:2080)
    oracle.jbo.domain.Number.bigDecimalValue(Number.java:551)
    oracle.jbo.domain.Number.hashCode(Number.java:431)
    oracle.jbo.Key.hashCode(Key.java:384)
    oracle.jbo.common.WeakHashtableImpl.get(WeakHashtableImpl.java:195)
    oracle.jbo.common.WeakHashtable.get(WeakHashtable.java:98)
    oracle.jbo.server.EntityCache.add(EntityCache.java:327)
    oracle.jbo.server.ViewRowStorage.entityCacheAdd(ViewRowStorage.java:1762)
    oracle.jbo.server.ViewRowImpl.entityCacheAdd(ViewRowImpl.java:2151)
    oracle.jbo.server.ViewDefImpl.createInstanceFromResultSet(ViewDefImpl.java:1070)
    oracle.jbo.server.ViewObjectImpl.createRowFromResultSet(ViewObjectImpl.java:2943)
    oracle.jbo.server.ViewObjectImpl.createInstanceFromResultSet(ViewObjectImpl.java:2841)
    oracle.jbo.server.QueryCollection.populateRow(QueryCollection.java:2203)
    oracle.jbo.server.QueryCollection.fetch(QueryCollection.java:2088)
    oracle.jbo.server.QueryCollection.get(QueryCollection.java:1468)
    oracle.jbo.server.ViewRowSetImpl.getRow(ViewRowSetImpl.java:3650)
    oracle.jbo.server.ViewRowSetImpl.getRow(ViewRowSetImpl.java:2594)
    oracle.jbo.server.ViewObjectImpl.activateCurrentRow(ViewObjectImpl.java:12360)
    oracle.jbo.server.ViewRowSetIteratorImpl.activateIteratorState(ViewRowSetIteratorImpl.java:3768)
    oracle.jbo.server.ViewRowSetImpl.activateIteratorState(ViewRowSetImpl.java:4960)
    oracle.jbo.server.ViewRowSetImpl.doCreateAndInitRow(ViewRowSetImpl.java:1901)
    oracle.jbo.server.ViewRowSetImpl.createRow(ViewRowSetImpl.java:1891)
    oracle.jbo.server.ViewObjectImpl.createRow(ViewObjectImpl.java:6555)
    com.samesi.segestion.view.backing.app.Clientes.devoluciones_action(Clientes.java:1845)
    sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    java.lang.reflect.Method.invoke(Method.java:585)
    com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:146)
    com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:92)
    oracle.adf.view.faces.component.UIXCommand.broadcast(UIXCommand.java:211)
    oracle.adf.view.faces.component.UIXCollection.broadcast(UIXCollection.java:94)
    oracle.adf.view.faces.component.UIXTable.broadcast(UIXTable.java:205)
    javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:267)
    javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:381)
    com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:95)
    com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:245)
    com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:110)
    javax.faces.webapp.FacesServlet._service_79(FacesServlet.java:197)
    javax.faces.webapp.FacesServlet.service(FacesServlet.java)
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._invokeDoFilter(AdfFacesFilterImpl.java:367)
    oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._doFilterImpl(AdfFacesFilterImpl.java:336)
    oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFilterImpl.java:196)
    oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:87)
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:332)
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
    org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
    org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524)
    org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
    org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
    org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
    org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
    org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
    org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
    org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
    org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
    org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
    java.lang.Thread.run(Thread.java:595)Tranks,

    I continued researching. When my server gain cpu and memory in Catalina.out, I can to see this output:
    Feb 28, 2008 10:25:53 AM oracle.adf.view.faces.webcache.component.UICache encodeBegin
    INFO: fragment is Facturacion.jspx:_id3
    Feb 28, 2008 10:25:53 AM oracle.adf.view.faces.webcache.component.UICache getFragmentFromCache
    INFO: fragment (Facturacion.jspx:_id3) fetch: cache miss
    Feb 28, 2008 10:25:53 AM oracle.adf.view.faces.webcache.component.UICache insertFragmentInCache
    INFO: fragment (Facturacion.jspx:_id3) insert: cached for 864000 secs
    Feb 28, 2008 10:25:53 AM oracle.adf.view.faces.webcache.component.UICache encodeBegin
    INFO: fragment is Facturacion.jspx:_id4
    Feb 28, 2008 10:25:53 AM oracle.adf.view.faces.webcache.component.UICache getFragmentFromCache
    INFO: fragment (Facturacion.jspx:_id4) fetch: cache missIn this example, I belive that user is resuming the Facturacion.jspx page. In my code I have this line:
    It’s corresponding to menu.
    I have looking this documentation:
    http://download.oracle.com/docs/html/B25947_01/web_cache002.htm
    In this documentation, first access, the cache miss, but the following times the cache could hit. . When my server gain cpu and memory I look that the following times the cache always miss in all pages. Subsequently tomcat no reply and the malicious thread, execute Armageddon trace. This behavior of the cache is strange, right?
    I’m sure that I’m making anything that fetch in queryCollection make big loop.
    I have redefining getRangeSize and CurrentRow of my CustomViewObject (all viewOjects about my applications extends CustomViewObject and CustomViewObject extends viewObject) and I looked correct rangesize (not -1). I got system.out.println(getFetchedRowCount()) in createRow and obtain 13 or 15. I belive that It’s correct.
    Another example of problematic trace is (in this case is in preparemodel):
    com.sun.java.util.collections.ArrayList.indexOf(ArrayList.java:201)
    com.sun.java.util.collections.ArrayList.contains(ArrayList.java:183)
    oracle.jbo.server.ViewRowCache.addWithCheck(ViewRowCache.java:351)
    oracle.jbo.server.ViewRowCache.add(ViewRowCache.java:409)
    oracle.jbo.server.QueryCollection.addRowToColl(QueryCollection.java:2069)
    oracle.jbo.server.QueryCollection.fetch(QueryCollection.java:2111)
    oracle.jbo.server.QueryCollection.get(QueryCollection.java:1468)
    oracle.jbo.server.ViewRowSetImpl.getRow(ViewRowSetImpl.java:3650)
    oracle.jbo.server.ViewRowSetImpl.getRow(ViewRowSetImpl.java:2612)
    oracle.jbo.server.ViewObjectImpl.activateCurrentRow(ViewObjectImpl.java:12360)
    oracle.jbo.server.ViewRowSetIteratorImpl.activateIteratorState(ViewRowSetIteratorImpl.java:3768)
    oracle.jbo.server.ViewRowSetIteratorImpl.getRangeSize(ViewRowSetIteratorImpl.java:627)
    oracle.jbo.server.ViewRowSetImpl.getRangeSize(ViewRowSetImpl.java:2251)
    oracle.jbo.server.ViewObjectImpl.getRangeSize(ViewObjectImpl.java:6065)
    oracle.adf.model.binding.DCIteratorBinding.initSourceRSI(DCIteratorBinding.java:1549)
    oracle.adf.model.binding.DCIteratorBinding.callInitSourceRSI(DCIteratorBinding.java:1420)
    oracle.adf.model.binding.DCIteratorBinding.getRowSetIterator(DCIteratorBinding.java:1403)
    oracle.adf.model.binding.DCIteratorBinding.setRangeSize(DCIteratorBinding.java:2641)
    oracle.adf.model.binding.DCBindingContainer.internalRefreshControl(DCBindingContainer.java:2484)
    oracle.adf.model.binding.DCBindingContainer.refresh(DCBindingContainer.java:2257)
    oracle.adf.controller.v2.lifecycle.PageLifecycleImpl.prepareModel(PageLifecycleImpl.java:104)
    com.samesi.segestion.view.frameworkExt.SegestionPageLifecycle.prepareModel(SegestionPageLifecycle.java:354)
    oracle.adf.controller.v2.lifecycle.Lifecycle$8.execute(Lifecycle.java:210)
    oracle.adf.controller.v2.lifecycle.Lifecycle.executePhase(Lifecycle.java:116)
    oracle.adf.controller.faces.lifecycle.ADFPhaseListener.mav$executePhase(ADFPhaseListener.java)
    oracle.adf.controller.faces.lifecycle.ADFPhaseListener$4.after(ADFPhaseListener.java:331)
    oracle.adf.controller.faces.lifecycle.ADFPhaseListener.afterPhase(ADFPhaseListener.java:97)
    com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:254)
    com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:110)
    javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._invokeDoFilter(AdfFacesFilterImpl.java:367)
    oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._doFilterImpl(AdfFacesFilterImpl.java:336)
    oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFilterImpl.java:196)
    oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:87)
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:332)
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
    org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
    org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524)
    org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
    org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
    org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
    org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
    org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
    org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
    org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
    org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
    org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
    java.lang.Thread.run(Thread.java:595)Thanks,

  • Adf-Struts/JSP/BC4J- and setting date fields from jsp

    Hi,
    I'm working with the new ADF Frameworks (JDev 9.0.5.1) and ran into some questions regarding exception handling using BC4J, Struts and JSPs.
    I have a DATE column in database and an entity and VO with a datefield with type oracle.jbo.domain.Date.
    My JSP shows a textfield and the user should enter a valid date. Everything fine, until date is of wrong format or contains illegal characters...
    Problem:
    ADF tries to do a setAttribute on the datefield in VO row which expects a parameter with type oracle.jbo.domain.Date. When the user entered e.g. "NiceWeather" as date, I get an IIlegalArgumentException while converting to the correct Date format. This exception isn't thrown by bc4j as AttrValException and therefore my JSP renders a global error instead of a message directly behind the date field.
    I tried to validate the datefield in my DataForm and in my Action in the validateModelUpdates() method, but with no fitting solution.
    Any ideas how to validate a datefield with adf/struts/jsp/bc4j?
    Thanks for your help!
    Torsten.

    Torsen - In the first instance I'd recommed that you try and handle it declaritively using the Struts Validator Framework . See http://otn.oracle.com/products/jdev/howtos/10g/StrutsValidator/struts_validator_howto.html
    There is a section in there on how to use the validator with ADF databound pages and you can check the format the user enters via generated JavaScript.
    Also check out the matching sample project:
    http://otn.oracle.com/sample_code/products/jdev/10g/ADFandStrutsValidator.zip - this has a data field check on it as well

  • Utilizing JSF with BC4J or ADF

    I see a lot of stuff on JSF being published now on OTN. I am just wondering...all of the examples show interaction of the managed bean with the database through a DBUtils class. What would you (Oracle java developers) suggest how to integrate JSF, specifically a UIData component, with ADF. With BC4J, we would get an app module...and then a view object and use the view object to populate several arrays (each array representing a column). These arrays would be the "data model" for the UIData component. ADF (or BC4J) would maintain my data persistence and put-away...and JSF just displays the data. Any ideas here or best practices Oracle would recommend?

    I've been able to get JSF working with the ADF bindings to some extent as described above, but am having trouble getting the BC4J range set to respond. i.e. clicking the next set/previous set buttons shows the same set of records. The buttons I'm trying to use are the same ones JDev creates with the JSTL tags - created by dragging from the data component palette.
    <input type="submit" name="<c:out value='${bindings.Previous_Set.path}' />" value="Previous Set" <c:out value="${bindings.Previous_Set.enabledString}"/>/>
    <input type="submit" name="<c:out value='${bindings.Next_Set.path}' />" value="Next Set" <c:out value="${bindings.Next_Set.enabledString}"/>/>
    <h:data_table var="Row" value="#{bindings.CrCarshopStatusView1.rangeSet}" rows="5">
    <h:column>
    <f:facet name="header">
    <h:output_text value="CS"/>
    </f:facet>
    <h:output_text value="#{Row.currencyString}"/>
    </h:column>
    <h:column>
    <f:facet name="header">
    <h:output_text value="#{bindings.CrCarshopStatusView1.labels.TrackingId}"/>
    </f:facet>
    <h:output_text value="#{Row.TrackingId}"/>
    </h:column>
    <h:column>
    <f:facet name="header">
    <h:output_text value="#{bindings.CrCarshopStatusView1.labels.Carinit}"/>
    </f:facet>
    <h:input_text value="#{Row.Carinit}"/>
    </h:column>
    <h:column>
    <f:facet name="header">
    <h:output_text value="#{bindings.CrCarshopStatusView1.labels.Carnum}"/>
    </f:facet>
    <h:input_text value="#{Row.Carnum}" size="6">
    <f:validate_length minimum="6" />
    </h:input_text>
    </h:column>
    </h:data_table>
    I had thought that the JSF tags would just plug into the bindings and advance along with them, but that isn't happening. Can someone provide an example syntax for working with the bindings through JSF tags?
    Any help out there would be appreciated. Thanks much.

Maybe you are looking for

  • Help with Smart Playlists

    What I'm trying to do is create a smart playlist that lists all my songs according to when the song was added to my iTunes library, this way I can get easy, quick access to songs I recently added to my iTunes library in reverse chronological order (n

  • How to fill out and submit a web form using LabVIEW

    Almighty Forum, This question will require knowledge not only of LabVIEW, but also of HTML, JavaScripting, and possibly more.  I don't know about you, but I have an on-line account for pretty much everything: Bank, Credit Card, Savings, ETrade, 401K,

  • ERROR = CONNECT failed with sql error '12518'

    Hi All, OS Win 2003 - 32 Bit, Database - Oracle 10.2.0.2 , I am facing this from yesterday, suddenly SAP was done and when i am checking the logs it is not able to connect to the database. I have checked the services for oracle - service was down, i

  • Playing a sequence received from a transmitter

    Hello, I have this bit of code here which obtains an unconnected sequencer and sets a sequence to be transmitted from it: //try statement File myMidiFile = new File("C:\\fileone.mid");             Sequencer sequencer = MidiSystem.getSequencer(false);

  • MMPV Posting Periods

    Hi All I have closed the periods in advance by mistake like for 9th month closed till 11th month. how do i revert back to the 9th month. i have followed the sap note 487381 but the problem after that is in Trans MMPI when i try to execute it says som