Problem in ViewObject

Hi all,
I have these errors:
JBO-25058: Definition MEmail of type Attribute not found in m_p_r_VO1
JBO-25058: Definition CountRId1 of type Attribute not found in m_p_r_VO1
JBO-25058: Definition CountRId1 of type Attribute not found in m_p_r_VO1
I don't understand these errors? what is the meaning of these errors?
How can I solve them??
Thanks

Hi,
it means that you app tries to use
MEmail and CountRId1; both attributes are not known (typo ?)
Frank

Similar Messages

  • Query problem  in viewobject wizard

    I have problem to viewobject creation
    In the sql Query of viewobject wizard, I can not use build-in sql function like trunc, nvl to the attribute
    if I use function, there is no problem with query test(query is valid). However when I click ok or apply button
    it popup message like this:
    "the following attributes will be set as transients. Derived expression will be lost"
    Does this mean I can not use any build-in fuction in select list in view obect wizard?
    Another question is how can I nest sql in the select list?
    for instance:
    in my select list in Query(viewobject wizard)
    I have Query:
    select Customer.CUSTOMER_ID,
    Customer.BANK_NUMBER,
    Customer.TRANS_AMOUNT,
    from CUSTOMER Customer
    where Customer.CUSTOMER_ID =:0
    it works without problem
    But if add nested select query:
    select Customer.CUSTOMER_ID,
    Customer.BANK_NUMBER,
    (select sum(c.TRANS_AMOUNT)
    from CUSTOMER c
    where......
    ) as "Amount"
    Account.FILE_NAME,
    from CUSTOMER Customer, ACCOUNT Account
    where Customer.CUSTOMER_ID =:0
    It did not work.
    Can somebody tell me how to solve this problem?
    Or is there another way to achieve this?
    thanks

    sory i wrote the wrong one
    function CF_ITEMFormula return number is
    v_item number(30);
    begin
    IF :P_state  ALL then
            IF :P_STATE = 'SMALL' THEN
            SELECT aa.item
            INTO v_item
            FROM tableA aa,
                     tableb bb
            WHERE aa.code = bb.code
            AND aa.date = :P_date
            AND aa.name = :P_name
            AND bb.state LIKE '%et%''
            AND (case :P_DIV
                    when ('west') then aa.division = 1
                    when ('east') then aa.division = 2
                    when ('south') then aa.division = 3
                    when ('south & west) then aa.division in (1,3)
                    else aa.division in (1,2,3)
                    end);
            end if;
           IF :P_STATE = 'BIG' THEN
            SELECT aa.item
            INTO v_item
            FROM tableA aa,
                     tableb bb
            WHERE aa.code = bb.code
            AND aa.date = :P_date
            AND aa.name = :P_name
            AND bb.state LIKE '%wa%''
            AND (case :P_DIV
                    when ('west') then aa.division = 1
                    when ('east') then aa.division = 2
                    when ('south') then aa.division = 3
                    when ('south & west) then aa.division in (1,3)
                    else aa.division in (1,2,3)
                    end);
            end if;
    end if;
    EXCEPTION
    WHEN NO_DATA_FOUND THEN RETURN (0)
    end;

  • Problem using ViewObject with bc4j:table

    Hello !!
    This is the query of my ViewObject:
    select * from speiseplan order by jahr desc, kw desc;
    and everything works fine in the BC4J tester:
    jahr kw
    2003 52
    2003 7
    2003 3
    2002 51
    But in my uix page the rows are not correctly sorted:
    jahr kw
    2003 3
    2003 7
    2003 52
    2002 51
    What's going wrong here?
    Thanks for your help.
    Regards,
    Mareike

    Duplicate post.
    Original problem using ViewObject with <bc4j:table>

  • Insert current date/time problem in ViewObject

    Hi!
    I'm trying to setAttribute to a Date type field.
    I have a method:
    public String getCurrDateString() throws ParseException, java.sql.SQLException {
    SimpleDateFormat formatter = new SimpleDateFormat ("dd-MMM-yyyy hh:mm:ss aa");
    Date currentTime_1 = new Date();
    return formatter.format(currentTime_1);
    All the time i call this method such as:
    HistoryViewImpl histVO=getHistoryView();
    Row r=histVO.createRow();
    r.setAttribute("Entrydatetime",cp.getCurrDateString());
    I get oracle.jbo.domain.DataCreationException: JBO-25009: Cannot create an object of type:oracle.jbo.domain.Date with value:19-Jun-2002 10:14:33 AM
    the strange thing is, that Oracle recognizes this kind of format, because if I use different pattern such as "yyyy-MM-dd", which returns string "2002-06-19", r.setAttribute("Entrydatetime",cp.getCurrDateString()) method works fine and in Oracle table field we have inserted value 19-Jun-2002 12:00:00 PM. The problem is, that i don't need 12:00:00 PM as a time, i need current time.
    What am i doing wrong? Or does it mean that oracle.jbo.domain.Date doesn't know format "dd-MMM-yyyy hh:mm:ss aa"?

    Hi!
    I'm trying to setAttribute to a Date type field.
    I have a method:
    public String getCurrDateString() throws ParseException, java.sql.SQLException {
    SimpleDateFormat formatter = new SimpleDateFormat ("dd-MMM-yyyy hh:mm:ss aa");
    Date currentTime_1 = new Date();
    return formatter.format(currentTime_1);
    All the time i call this method such as:
    HistoryViewImpl histVO=getHistoryView();
    Row r=histVO.createRow();
    r.setAttribute("Entrydatetime",cp.getCurrDateString());Instead of passing in the "String" pass the date object as is. oracle.jbo.domain.Date should be able to convert java.sql.Date/Time/Timestamp and store the time bits as set.
    If you have to pass in string, then establish a Formatter on the attribute with appropriate date format and then use the AttributeHints interface from the relevant AttributeDef object on the row to parse the input String into a valid parsed object that you can set into the row.
    (See oracle.jbo.uicli.binding.JUCtrlValueBinding.setAttributeInRow() method for a complete usage - source in bc4j\src\bc4juisrc.zip)
    I get oracle.jbo.domain.DataCreationException: JBO-25009: Cannot create an object of type:oracle.jbo.domain.Date with value:19-Jun-2002 10:14:33 AM
    the strange thing is, that Oracle recognizes this kind of format, because if I use different pattern such as "yyyy-MM-dd", which returns string "2002-06-19", r.setAttribute("Entrydatetime",cp.getCurrDateString()) method works fine and in Oracle table field we have inserted value 19-Jun-2002 12:00:00 PM. The problem is, that i don't need 12:00:00 PM as a time, i need current time.
    What am i doing wrong? Or does it mean that oracle.jbo.domain.Date doesn't know format "dd-MMM-yyyy hh:mm:ss aa"?

  • Multiple ViewObjects with single variables

    Hi
    I am using jdev10g.
    Is it possible to search by single variable on 3 ViewObjects.
    I posted by issues as Problem with ViewObjects but I am not cleared.
    Please any one help me.
    Thanks

    Hi
    This is The Applicaton Moduleclass Where i have to add above code, And where vo method are generated. Please give some steps from scrach
    package sales;
    import oracle.jbo.server.ApplicationModuleImpl;
    import oracle.jbo.server.ViewLinkImpl;
    // ---    File generated by Oracle ADF Business Components Design Time.
    // ---    Custom code may be added to this class.
    // ---    Warning: Do not modify method signatures of generated methods.
    public class AppModuleImpl extends ApplicationModuleImpl {
        /**This is the default constructor (do not remove)
        public AppModuleImpl() {
        /**Sample main for debugging Business Components code using the tester.
        public static void main(String[] args) {
            launchTester("sales", /* package name */
          "AppModuleLocal" /* Configuration Name */);
        /**Container's getter for SalesForecastView1
        public SalesForecastViewImpl getSalesForecastView1() {
            return (SalesForecastViewImpl)findViewObject("SalesForecastView1");
        /**Container's getter for RevenueForecastView1
        public RevenueForecastViewImpl getRevenueForecastView1() {
            return (RevenueForecastViewImpl)findViewObject("RevenueForecastView1");
        /**Container's getter for ActualSales1
        public ActualSalesImpl getActualSales1() {
            return (ActualSalesImpl)findViewObject("ActualSales1");
        /**Container's getter for TargetSales1
        public TargetSalesImpl getTargetSales1() {
            return (TargetSalesImpl)findViewObject("TargetSales1");
        /**Container's getter for SalesComponents1
        public SalesComponentsImpl getSalesComponents1() {
            return (SalesComponentsImpl)findViewObject("SalesComponents1");
        /**Container's getter for Dept1
        public DeptImpl getDept1() {
            return (DeptImpl)findViewObject("Dept1");
        /**Container's getter for Emp1
        public EmpImpl getEmp1() {
            return (EmpImpl)findViewObject("Emp1");
    }Thanks
    NR

  • ViewObject is null ?

    I’m developing a jsp application with bc4j using jdev 10g. I have a problem with viewobjects in the application module suddenly becoming null. It doesn't happen every time and it seems to depend on the computer environment as well. It works fine in the development environment, but when I transfer the application to my clients environment I am getting the error. The error happens in dataAction class. I have tried to place the code in findForward method and prepareModel method but the result is the same. Debugging the application I found that mViewObjects and mViewLinks in the application module become null at some point. The action gets executed a couple times and it works fine and then it breaks down.
    I can't see what is causing the problem. Below is the code of the dataAction. 'bindContainer' and 'module' in the prepareModel method are not null, but 'view' becomes null. It is also interesting that the data on the page (from the same view) is displayed correctly.
    public class FindSredstvaViewPageAction extends DataAction
    String page;
    protected void findForward(DataActionContext actionContext) throws Exception
    //Postavi page attribute tako da se otvori stranica na kojoj je current row, SredstvaView
    actionContext.getHttpServletRequest().setAttribute(MyGlobals.PAGE, page);
    // TODO: Override this oracle.adf.controller.struts.actions.DataAction method
    super.findForward(actionContext);
    private String getPage(int index)
    int rows_per_page = MyGlobals.ROWS_PER_PAGE;
    int page = 0;
    while(true)
    if(index < 0) break;
    if(index == 0) // prvi red na strani
    page ++;
    break;
    index = index - rows_per_page;
    page ++;
    return String.valueOf(page);
    protected void prepareModel(DataActionContext actionContext) throws Exception
    DCBindingContainer bindContainer = actionContext.getBindingContainer();
    StalnaSredstvaModuleImpl module = ((StalnaSredstvaModuleImpl)actionContext.getBindingContainer().getApplicationModule());
    SredstvaViewImpl view = module.getSredstvaView();
    page = getPage(view.getCurrentRowIndex());
    // TODO: Override this oracle.adf.controller.struts.actions.DataAction method
    super.prepareModel(actionContext);

    Hi,
    Please use DCDataControl.getDataProvider() to acquire an AM reference. Because your logic is implemented before prepareModel DCBindingContainer may reference an uninitialized AM reference from a previous request (I filed bug 3829746 to resolve this issue).
    Also, it is not recommended that you downcast to an AM "Impl" class in client side code. This will prevent your code from being redeployed in different configurations (immediate vs. batch). Instead of downcasting to the "Impl" class you may export the VO getter to a remote AM interface using the AM wizard and then downcast to the AM interface or use findViewObject(String) on the base ApplicationModule interface.
    Hope this helps,
    JR

  • OC4J error when posting changes - Help needed

    When i call postChanges() and later Commit() to the ApplicationModule's transaction I succed.
    The next time i call postChanges() on the ApplicationModule's transaction the following exception is thrown on the OC4J server:
    oracle.jbo.DMLException: JBO-26080: Error while selecting entity for Styles
    at oracle.jbo.server.OracleSQLBuilderImpl.doEntitySelect(OracleSQLBuilderImpl.java:841)
    at oracle.jbo.server.EntityImpl.doSelect(EntityImpl.java:3839)
    at oracle.jbo.server.EntityImpl.lock(EntityImpl.java:2630)
    at dk.bestseller.bestinfoII.purchase.stylecard.StylesImpl.lock(StylesImpl.java:635)
    at oracle.jbo.server.EntityImpl.setAttributeValueInternal(EntityImpl.java:1848)
    at oracle.jbo.server.EntityImpl.setAttributeValue(EntityImpl.java:1790)
    at oracle.jbo.server.AttributeDefImpl.set(AttributeDefImpl.java:1570)
    at oracle.jbo.server.EntityImpl.setAttributeInternal(EntityImpl.java:754)
    at dk.bestseller.bestinfoII.purchase.stylecard.StylesImpl.setStyleName(StylesImpl.java:152)
    at dk.bestseller.bestinfoII.purchase.stylecard.StylesImpl.setAttrInvokeAccessor(StylesImpl.java:446)
    at oracle.jbo.server.EntityImpl.setAttribute(EntityImpl.java:680)
    at oracle.jbo.server.ViewRowStorage.setAttributeValue(ViewRowStorage.java:903)
    at oracle.jbo.server.ViewRowStorage.setAttributeInternal(ViewRowStorage.java:819)
    at oracle.jbo.server.ViewRowImpl.setAttributeInternal(ViewRowImpl.java:948)
    at oracle.jbo.server.ViewRowImpl.setAttrInvokeAccessor(ViewRowImpl.java:925)
    at oracle.jbo.server.ViewRowImpl.setAttribute(ViewRowImpl.java:717)
    at oracle.jbo.server.remote.RuntimeViewRowSetIteratorInfo.updateRow(RuntimeViewRowSetIteratorInfo.java:311)
    at oracle.jbo.server.remote.RuntimeViewRowSetIteratorInfo.readPiggyback(RuntimeViewRowSetIteratorInfo.java:193)
    at oracle.jbo.server.remote.AbstractRemoteApplicationModuleImpl.readPiggyback(AbstractRemoteApplicationModuleImpl.java:2419)
    at oracle.jbo.server.remote.AbstractRemoteApplicationModuleImpl.isTransactionDirty(AbstractRemoteApplicationModuleImpl.java:1788)
    at oracle.jbo.server.remote.ejb.EJBApplicationModuleImpl.riIsTransactionDirty(EJBApplicationModuleImpl.java:2454)
    at RemoteStylecardModule_StatefulSessionBeanWrapper6.riIsTransactionDirty(RemoteStylecardModule_StatefulSessionBeanWrapper6.java:12889)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.java:80)
    at com.evermind.util.ThreadPoolThread.run(ThreadPoolThread.java:64)
    ## Detail 0 ##
    java.sql.SQLException: ORA-01002: Fetch out of sequence
    Is there a solution to this problem?
    Client sample code:
    import javax.naming.*;
    import java.util.Hashtable;
    import oracle.jbo.*;
    //import oracle.job.client.*;
    ** Sample client code for connecting to an appmdoule deployed
    ** as an EJB session bean to Oracle9iAS server.
    public class SampleEJBClient
    public static void main(String[] args)
    ** Change the following String's to match your appmodule name and the
    ** name of the viewobject included in that appmodule.
    String amDefName = "dk.bestseller.bestinfoII.purchase.stylecard.StylecardModule";
    String voMemberName = "StylesView";
    ** Change the following to match the name of the J2EE application
    ** containing the deployed appmodule session bean.
    String applicationName = "BCStyleCardEJB";
    ** Change the following to point to the datasource name
    ** (defined in Oracle9iAS).
    ** to your database.
    String dataSourceName = "jdbc/BI2DS";
    ** Change the following to point to the hostname where the
    ** appmodule is deployed i.e. the host where Oracle9iAS application
    ** server is running.
    String applicationServerHost = "bsdk-bi2app2";
    ** Change the following username and password
    ** to be used for connecting to the Oracle9iAS server.
    String iasUserName = "****";
    String iasUserPasswd = "****";
    ApplicationModule am = null;
    try
    // Setup JNDI environment for looking up
    // the appmodule
    Hashtable env = new Hashtable();
    env.put(Context.INITIAL_CONTEXT_FACTORY,JboContext.JBO_CONTEXT_FACTORY);
    env.put(JboContext.DEPLOY_PLATFORM, JboContext.PLATFORM_EJB_IAS);
    env.put(JboContext.HOST_NAME, applicationServerHost);
    env.put(JboContext.SECURITY_PRINCIPAL, iasUserName);
    env.put(JboContext.SECURITY_CREDENTIALS, iasUserPasswd);
    env.put(JboContext.APPLICATION_PATH, applicationName);
    Context ctx = new InitialContext(env);
    // Lookup appmodule home
    ApplicationModuleHome amHome = (ApplicationModuleHome)ctx.lookup(amDefName);
    // Create an appmodule instance
    am = amHome.create();
    // Connect to the database using the datasource
    am.getTransaction().connectToDataSource(null, dataSourceName, false);
    // Find the viewobject included in the appmodule
    ViewObject vo = am.findViewObject(voMemberName);
    // Iterate over the viewobject to get the rows
    long l = System.currentTimeMillis();
    Row r = vo.first();
    r.setAttribute("StyleName", "My Change 1");
    am.getTransaction().postChanges();
    am.getTransaction().commit();
    r.setAttribute("StyleName", "My Change 2");
    //Here the exception is thrown when i call postChanges()
    am.getTransaction().postChanges();
    am.getTransaction().commit();
    System.out.println("vo.first(): "+(System.currentTimeMillis()-l));
    while (r != null)
    l = System.currentTimeMillis();
    // Iterate over the current row and get
    // all the attributes
    for (int i = 0; i < vo.getAttributeCount(); i++)
    String attrName = vo.getAttributeDef(i).getName();
    String attrVal = r.getAttribute(i).toString();
    System.out.println(attrName + " = " + attrVal);
    System.out.println("Row: "+(System.currentTimeMillis()-l));
    l = System.currentTimeMillis();
    r = vo.next();
    catch (NamingException ex)
    System.out.println("NamingException " + ex.getMessage());
    ex.printStackTrace();
    catch (ApplicationModuleCreateException ex)
    System.out.println("Unable to create application module: " + ex.getMessage());
    ex.printStackTrace();
    catch (JboException ex)
    System.out.println("JboException: " + ex.getMessage());
    ex.printStackTrace();
    catch (Exception ex)
    System.out.println("Exception: " + ex.getMessage());
    ex.printStackTrace();
    finally
    if (am != null)
    am.getTransaction().disconnect();
    am.remove();
    }

    I have inserted a rollback() just after the commit() that soules the problem.
    ViewObject vo = am.findViewObject(voMemberName);
    // Iterate over the viewobject to get the rows
    long l = System.currentTimeMillis();
    Row r = vo.first();
    r.setAttribute("StyleName", "My Change 1");
    am.getTransaction().postChanges();
    am.getTransaction().commit();
    //with out this line the server throws the exception (Is it a bug?)
    am.getTransaction().rollback();
    vo = am.findViewObject(voMemberName);
    r = vo.first();
    r.setAttribute("StyleName", "My Change 2");
    am.getTransaction().postChanges();
    am.getTransaction().commit();

  • ADF/BC4J fetches all rows, should fetch only if needed

    Hello,
    I'm using JDeveloper 10.1.2. Technologies are Struts, ADF and BC4J.
    I have a problem with viewObjects. I have created components from database tables. I'm fetching in appModuleImpl:
    ViewObjImpl impl = getObjectViewImpl();
    impl.setWhereClause("id=101");
    impl.executeQuery();Problem is that when page is loaded, it fetches ALL ROWS (80 000 rows)from table and then makes another query to fetch group above. I want only fetch rows that i decide to fetch. My application is in immediate mode. Couple of iterators has fetch range -1 and couple 10.
    I have debugged that the first ALL ROWS fetch is made somewhere out of my code.
    What i'm doing wrong? Any feature development hints are welcome also.
    Thank you advance!
    null

    hello
    First of all thank you for commenting on my timeout post
    I think i have a solution for you problem.
    If i understand you correctly, when the page is loaded, you only want the framework to only fetch one page worth of rows, look yahoo and google. Then when you select another page, you want the other records to be fetch.
    public void executeQuery() {
    setAccessMode(RowSet.RANGE_PAGING); //shall do the trick
    super.executeQuery();
    Djbo.debugoutput=console
    SELECT * FROM (SELECT /*+ FIRST_ROWS */ IQ.*, ROWNUM AS Z_R_N FROM (select * from emp) IQ WHERE ROWNUM < :0) WHERE Z_R_N > :1
    [253] Bind params for ViewObject: ViewObj1
    [254] setting rownum query between (0, 4)
    As shown above, the query is designed to only fetch 4 rows and this is managed by manipulating the ROWNUM.
    When you run it the page will only display RANGE_PAGE only execpt of the 80,000 and your first page will run very fast
    This will cause a database hit each time you select another page! If you ask the framework designer, i bet, they shall tell you we are avoiding database hits with this. My answer to them, who would go about navigation all pages anyway!
    Kindly comment if the code above solved your issue or not
    Ammar Sajdi
    Amman - Jordan

  • Performance problem creating rows on viewobject

    Hi,
    When a user pushes a button in my Oracle ADF 11.1.1.3.0 GUI,
    he triggers a method in my backing bean.
    This method is called insertNewForecastTable, that takes a (Tree)Map called forecastMap as input. (see below)
    ( The key of this map is a Timestamp,
    the value of this map is an object ForecastEntry.
    A ForecastEntry consists out of 10 ForecastParts, and each Forecastpart contains 4 long values. )
    private void insertNewForecastTable(Map forecastMap) {
    DCBindingContainer bc = (DCBindingContainer)getBindings();
    DCIteratorBinding ForecastIter = bc.findIteratorBinding("ForecastViewIterator");
    DCDataControl dc = ForecastIter.getDataControl();
    ApplicationModule am = (ApplicationModule)dc.getDataProvider();
    ViewObject forecastVO = am.findViewObject("ForecastView");
    Set keys = forecastMap.keySet();
    Iterator keyIter = keys.iterator();
    RowSetIterator it = ForecastIter.getRowSetIterator();
    while (keyIter.hasNext()) {
    Long timestamp = (Long)keyIter.next();
    Timestamp ts = new Timestamp(timestamp);
    Row r = it.createRow();
    r.setAttribute(0, ts);
    ForecastEntry forecastentry = (ForecastEntry)forecastMap.get(timestamp);
    int j = 1;
    for (int i=0;i<10;i++) {
    ForecastPart forecastPart = forecastentry.getForecastPart(i);
    r.setAttribute(j,forecastPart.getHistory());
    j++;
    r.setAttribute(j,forecastPart.getForecast());
    j++;
    r.setAttribute(j,forecastPart.getTrend());
    j++;
    r.setAttribute(j,forecastPart.getLimit());
    j++;
    forecastVO.insertRow(r);
    am.getTransaction().commit();
    Configuration.releaseRootApplicationModule(am,true);
    Problem is : for 3360 entries in this table or viewobject, it takes 10 minutes (!!!) to complete this code.
    Bottleneck is the for-loop and the forecastVO.insertRow(r);
    Both timings are rising from 15 msec in the beginning to 500 msec at the end.
    Anyone has some ideas how to improve my performance ?
    Am I doing something wrong trying to create and insert 3360 rows in this table ?
    Thanks.

    Ok,
    My binding is back ok, so the nullpointer is gone.
    But the speed of processing 1000+ inserts into a table is still very poor.
    This is my code at the moment :
      +private void insertNewForecastTable(Map forecastMap) {+
        +DCBindingContainer bc = (DCBindingContainer)getBindings();+
        +DCIteratorBinding ForecastIter = bc.findIteratorBinding("ForecastViewIterator");+
        +DCDataControl dc  = ForecastIter.getDataControl();+
        +ApplicationModule am = (ApplicationModule)dc.getDataProvider();+
        +ViewObject forecastVO = am.findViewObject("ForecastView");+ 
        +RowSetIterator it = ForecastIter.getRowSetIterator();+
        +Set keys = forecastMap.keySet();+        
        +Iterator keyIter = keys.iterator();+
        +List nameList = new ArrayList();+
        +nameList.add("Timestamp");+
        +for (int i=1 ; i<=10; i ++) {+
          +String H = "H"+i;+
          +String F = "F"+i;+
          +String T = "T"+i;+
          +String L = "L"+i;+
          +nameList.add(H);+
          +nameList.add(F);+
          +nameList.add(T);+
          +nameList.add(L);+
        +}+
        +long time_begin = System.currentTimeMillis();+
        +int counter = 0;+
        +// for each timestamp+
        +while (keyIter.hasNext()) {+
          +// Get the timestamp.+
           +Long timestamp = (Long)keyIter.next();+
           +// convert long to timestamp+
           +Timestamp ts = new Timestamp(timestamp);+
           +// create new row in table+
           +Row r = it.createRow();+
          +List valueList = new ArrayList();+
          +valueList.add(ts);+
          +ForecastEntry forecastentry = (ForecastEntry)forecastMap.get(timestamp);+
          +for (int i=0;i<10;i++) {+
              +ForecastPart forecastPart = forecastentry.getForecastPart(i);+
              +valueList.add(forecastPart.getHistory());+
              +valueList.add(forecastPart.getForecast());+
              +valueList.add(forecastPart.getTrend());+
              +valueList.add(forecastPart.getLimit());+
          +}+
          +r.setAttributeValues(nameList, valueList);+
          +forecastVO.insertRow(r);+
          +counter++;+
          +if (counter % 100 == 0) {+
            +am.getTransaction().commit();+
            +System.out.println("Committing rows " + (counter-100) + " to " + counter );+
          +}+
        +}+
        +long time_end = System.currentTimeMillis();+
        +// commit+
        +am.getTransaction().commit();+
       +// Configuration.releaseRootApplicationModule(am,true);+
        +System.out.println("Total time to insert all rows : " + (time_end-time_begin ));+
      +}+It takes up to 500 seconds to insert 3000 rows !
    I also changed the update batch value from 100 to 5, but no difference.
    I'm now also committing every 100 rows.
    And at the end, I get a nullpointer exception at RowDataManager.getRowIndex(RowDataManager.java:191)
    All help welcome.

  • Problem with lovs in viewobject instances

    Hi,
    Working with Jdev11.1.1.16 ,
    Referring to  forum : Problem with Two VO's from same EO with different where clause
    I was also facing the same issue with static where condition ,using this recommended approach the issue is solved .
    The recommended approach is working fine for fetching data .
    I have create one viewObject with two viewcriteria and created two instances of viewobject in datamodel . In datamodel i have added viewcriteria too.
    But in my case, i need to populate different lovs on same attributes on both the tables (instances of same view object).
    I have added two lovs to the attribute and switch condition based on other attribute.
    While fetching, the data is coming correct and lovs are also correct but while clicking on createinsert lovs are not cuming properly .

    Hi,
    I would suggest that you post relevant pieces of code here - so that it is easier to help you.
    Just a thought:
    Please note that the event handlers may be called again while you are processing another event (there are at least some cases when this is happeneing) - this might lead to "confusing" forms.
    Regards,
    Frank

  • Problem with ordimage attribute in detail viewobject (a bug maybe?)

    Hi
    JDeveloper: 11.1.1.4
    I have an ordimage attribute in a viewobject among other attributes but it doesnt show the image while it shows other attributes of the viewobject correctly. It throws java.lang.ArrayIndexOutOfBoundsException when executing the "row = rows[0];" instruction in oracle.ord.html.OrdPlayMediaServlet.renderContent() method. Apparently the main reason for this error is that the vo viewobject doesn't get populated correctly (it contains no rows at all) and so the "rows = vo.findByKey(mKey, 1); " doesn't return any rows.
    Isn't this a bug? Is there any workaround to this?
    P.S: When I use another instance of the same viewobject as a master viewobject works just fine. The error occours only when the viewobject is used as a detail viewobject.
    Anyway, here is the exception:
    ]] Root cause of ServletException.
    java.lang.ArrayIndexOutOfBoundsException: 0
         at oracle.ord.html.OrdPlayMediaServlet.renderContent(OrdPlayMediaServlet.java:411)
         at oracle.ord.html.OrdPlayMediaServlet.deliver(OrdPlayMediaServlet.java:264)
         at oracle.ord.html.OrdPlayMediaServlet.doGet(OrdPlayMediaServlet.java:205)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
         Truncated. see log file for complete stacktrace
    >
    <06/09/2011 IRDT 07:49:19 م> <Notice> <Diagnostics> <BEA-320068> <Watch 'UncheckedException' with severity 'Notice' on server 'DefaultServer' has triggered at 06/09/2011 IRDT 07:49:19 م. Notification details:
    WatchRuleType: Log
    WatchRule: (SEVERITY = 'Error') AND ((MSGID = 'WL-101020') OR (MSGID = 'WL-101017') OR (MSGID = 'WL-000802') OR (MSGID = 'BEA-101020') OR (MSGID = 'BEA-101017') OR (MSGID = 'BEA-000802'))
    WatchData: DATE = 06/09/2011 IRDT 07:49:19 م SERVER = DefaultServer MESSAGE = [ServletContext@22121593[app:PPCM module:PPCM-ViewControllerCM-context-root path:/PPCM-ViewControllerCM-context-root spec-version:2.5], request: weblogic.servlet.internal.ServletRequestImpl@c1d6b6[
    GET /PPCM-ViewControllerCM-context-root/ordDeliverMedia?appModID=AppModuleCMDataControl&viewObjectName=AppModuleCM.VpConscriptPictureView1&contentCol=ORD_PICTURE&rowKey=0001000000063332323934330000000C000001323F51EEFD&amConfig=jhs1.model.services.AppModuleCMLocal&cache=1277027229000 HTTP/1.1
    User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2) Gecko/20100115 Firefox/3.6
    Accept: image/png,image/*;q=0.8,*/*;q=0.5
    Accept-Language: en-us,en;q=0.5
    Accept-Encoding: gzip,deflate
    Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
    Keep-Alive: 115
    Connection: keep-alive
    Referer: http://127.0.0.1:7101/PPCM-ViewControllerCM-context-root/faces/UIShell?_adf.ctrl-state=hjjcdrfdk_4&_afrLoop=40582159673504
    Cookie: JSESSIONID=v23hTmyL7mZ9vmMZSndhG7g1sds8CDSy3rn3bL2XcGLgVTLG6s2V!752893283
    ]] Root cause of ServletException.
    java.lang.ArrayIndexOutOfBoundsException: 0
         at oracle.ord.html.OrdPlayMediaServlet.renderContent(OrdPlayMediaServlet.java:411)
         at oracle.ord.html.OrdPlayMediaServlet.deliver(OrdPlayMediaServlet.java:264)
         at oracle.ord.html.OrdPlayMediaServlet.doGet(OrdPlayMediaServlet.java:205)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:205)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:111)
         at java.security.AccessController.doPrivileged(Native Method)
         at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
         at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
         at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:94)
         at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:161)
         at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:136)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:176)
    SUBSYSTEM = HTTP USERID = <WLS Kernel> SEVERITY = Error THREAD = [ACTIVE] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)' MSGID = BEA-101017 MACHINE = PC-SD14-00007 TXID = CONTEXTID = ef583e64d845493d:6a9a6ea3:1323e534a92:-8000-00000000000005b2 TIMESTAMP = 1315322359312
    WatchAlarmType: AutomaticReset
    WatchAlarmResetPeriod: 30000
    >

    I have encountered the same problem.
    JDeveloper 11.1.1.3
    Did you come up with a work-around since September?

  • BC4J Problem using multiple EntityObjects in a single ViewObject

    Hi,
    I have found a bug while using multiple EntityObjects in a single ViewObject.
    Considere the following example:
    Table A:
    A_ID
    Table B:
    B_ID
    A_ID (FK) NULLABLE
    TABLE C:
    C_ID
    B_ID (FK) NULLABLE
    For each table there is a corresponding EntityObject : AEntity, BEntity and CEntity.
    Now building a ViewObject based on CEntity, BEntity and AEntity, where AEntity and BEntity are referenced via their corresponding associtaions, the following problem occurs:
    1. As long as both IDs are not NULL everything works fine, but when I set the B_ID attribute of CEntity to NULL I receive a NullPointerException with the detail "null".
    2. If the attribute A_ID of BEntity is NULL the values based on AEntity are not updated at all (they keep the value they had for the last row).
    Any information or feedback on this issue would be very welcome!
    Regards
    Frank

    Here's a sample code that works for a
    LineItem->OrdView->CustomerView case,
      public void setOrdId(Number value)
        //set the boolean if there's a current order.
        boolean hasOrd = (getEntity(1) != null);
        setAttributeInternal(ORDID, value);
        //after the OrdID is set, check if there's a valid Ord Entity in this row.
        if (hasOrd && getEntity(1) == null)
          //if not, then set the Customer Entity to null as well.
          super.setEntity(2, null);
          LinesViewImpl vo = (LinesViewImpl)getViewObject();
          //And force a RowUpdated event for "customer-entity-usage-attributes".
          vo.notifyRowUpdated(findRowSetForRow(null), new oracle.jbo.Row[] {this}, new int[]{6,7});
      } Note that in the above, you have to "override" notifyRowUpdated method in the ViewObjectImpl subclass, so that it's available to the LineViewRowImpl subclass. You can do this
    globally by creating a custom subclass of ViewObjectImpl that all the VOs in your application "extends".

  • Problem with different name of viewobject.xml between src and classes!?

    Hallo,
    last days we search the reason of an error when making available an project under linux.
    we've got http status 500 and javax.faces.el.PropertyNotFoundException: Error testing property 'inputValue' in bean of type null.
    we checked many things and after a long time we found the problem.
    the project was developed under windows. there was create a viewobject named OrganListe. this create in the src-path the file OrganListe.xml. in the classes-path we found a file named Organliste.xml!!! we don't know why, but it was so.
    under windows it was not a problem, but linux works case sensitive and so it was a problem. rebuild the base object don't change the name. we changed it on file-level, than the problem was cleared.
    which is the wright way to force the system to regenerate the files in the classes-path (including filename)?
    Any help is appreciated.

    Is there not tip for use?

  • Problems using writeXML on Range Paging ViewObject

    We have a ViewObject configured to work with Range Page feature (it has up to 150 thousand rows), it works very nicely, fast and fine.
    But the problem appears when we try to use the writeXML functionality on this Range Paging ViewObject, and exception is thrown, seems that writeXML calls any other rowset method than next().
    Any suggestion about how to solve this problem? (without disabling range paging feature on the ViewObject).
    Thanks in advanced.
    The thrown exception is:
    oracle.jbo.InvalidOperException: JBO-25011: El juego de filas <ViewObjectName> sólo permite desplazarse hacia delante.
         at oracle.jbo.server.ViewRowSetImpl.createViewRowSetIterator(ViewRowSetImpl.java:811)
         at oracle.jbo.server.ViewRowSetImpl.createRowSetIterator(ViewRowSetImpl.java:794)
         at oracle.jbo.server.RowSetImpl$1$RSIEnumeration.<init>(RowSetImpl.java:247)
         at oracle.jbo.server.RowSetImpl.getRowsEnumerator(RowSetImpl.java:259)
         at oracle.jbo.server.RowSetImpl.getXMLElementNode(RowSetImpl.java:147)
         at oracle.jbo.server.ViewObjectImpl.appendXMLElementNodes(ViewObjectImpl.java:9805)
         at oracle.jbo.server.ViewObjectImpl.writeXML(ViewObjectImpl.java:9707)

    Eliseu -
    Unfortunately with the forum software not escaping any XML content, I'm having a real hard time figuring out what kind of problem you are having with detail disclosure. I did post a response to your message in the UIX forum:
    Problems with details disclosure
    You might want to check out my response and post any follow-ups there...
    Andy

  • Problem insert XML from ViewObject to Clob

    i write method insertXML() and have problem write to CLOB.
    public void insertXML(){
    ViewObject vo=getZlecenieView1();
    Row r = vo.getCurrentRow();
    Object t= vo.writeXML(1,XMLInterface.XML_OPT_ALL_ROWS);
    String xml=t.toString();
    r.setAttribute("Xml",new ClobDomain(xml));
    getDBTransaction().commit();
    system.out.println(xml) oracle.xml.parser.v2.XMLElement@196c67a
    I'cant cast to String vo.wirteXML(1,XMLInteface.XML_OPT_ALL_ROWS);
    how write method???

    I would suggest printing out the contents of the input as you receive them in the JSP.
    PS, your architecture smells. What's with the ActiveX objects? What's with putting all you business logic in JSPs?

Maybe you are looking for

  • Error of serial no while doing stock movement 343

    Hello all gurus please help me out I am in junk state.my problame is I am doing the stock movement from blocked stock to unrestricted stock through Mb1B movement type 343 when i m doing this system asking serial no i m searching the serial no by givi

  • "for XML path "  Oracle equivalent of this SQL expression

    SELECT TheID, REPLACE( RTRIM( SELECT StudentID + ' ' FROM StudentinSchoolLocation TL WHERE (LocationID = Results.LocationID) FOR XML PATH ('') ) AS StudentIDs, What is the equivalent of 'For XML path' used above The goal is to get a concatenated list

  • Photos do not appear in projects Aperture 3.5.1

    When selecting a project on the sidebar, the photos that it contains do not appear in the main viewer area. If that particular project then appears under the automated "Recent" header, selecting it allows the photos to appear as normal.

  • Customize f:validateLength message

    Hi guys, I got this : <h:inputText value="#{messageBean.lastName}" id="lastName" required="true"> <f:validateLength maximum="30" minimum="2"/> </h:inputText> but the error mesasge come out very ugly like this: "{1}": Value is shorter than allowable m

  • PSE 4 Restore questions, please.

    I have a few questions on how the restore function works in PSE 4 (having never done it before): 1) I have a full backup on an external drive that dates to June '09.  Looking in the backup folder, all pictures have Bxxx.jpg names. Plus there are MyCa