Problem with in-memory filtering: JBO-25016: View object is read only

Hello,
I have problem with implementation of Steve's Muench example #71 - Dropdown Lists in Table with Different Choices per Row.
Source for the list is a read only view object.
Invoking viewObject.findByViewCriteria throwing:
javax.faces.el.EvaluationException: oracle.jbo.ReadOnlyViewObjectException: JBO-25016: View object ... is read only.
What's wrong?
Rado
Error stack:
Caused by: oracle.jbo.ReadOnlyViewObjectException: JBO-25016: View object ... is read only.
     at oracle.jbo.server.ViewDefImpl.newInstance(ViewDefImpl.java:991)
     at oracle.jbo.server.ViewObjectImpl.createInstance(ViewObjectImpl.java:2784)
     at oracle.jbo.server.QueryCollection.createRowWithEntities(QueryCollection.java:1271)
     at oracle.jbo.server.ViewRowSetImpl.createRowWithEntities(ViewRowSetImpl.java:1869)
     at oracle.jbo.server.ViewRowSetImpl.makeRowCopy(ViewRowSetImpl.java:1546)
     at oracle.jbo.server.ViewRowSetImpl.insertRowAtInternal(ViewRowSetImpl.java:1667)
     at oracle.jbo.server.ViewRowSetImpl.findByViewCriteria(ViewRowSetImpl.java:4126)
     at oracle.jbo.server.ViewObjectImpl.findByViewCriteria(ViewObjectImpl.java:7033)
My code:
public RowIterator selectDetails(String code) {
ViewObject vo = getVO();
if (!vo.isExecuted()) {
vo.setQueryMode(ViewObject.QUERY_MODE_SCAN_DATABASE_TABLES);
vo.executeQuery();
vo.last();
vo.setQueryMode(ViewObject.QUERY_MODE_SCAN_VIEW_ROWS);
ViewCriteria vc = vo.createViewCriteria();
ViewCriteriaRow vcr = vc.createViewCriteriaRow();
vcr.setAttribute("Code", "='"+code+"'");
vc.add(vcr);
vc.setCriteriaMode(ViewCriteria.CRITERIA_MODE_CACHE);
return vo.findByViewCriteria(vc,-1,ViewObject.QUERY_MODE_SCAN_VIEW_ROWS);
}

check attribute settings of your VO...
the attribute for wich you set view criteria must be set to queryable and updatable - always

Similar Messages

  • How to determine a View Object Type (read only or Updatable) ADF B.C 10.1.3

    Hi all,
    in scott Schema by ADF B.C 10.1.3, I created an entity object like emp
    and created view object EmpView from emp and dept entities
    and Application Module
    and when draging EmpView and dropping it in jspx
    while running I got an error :
    JB0-25003 your EmpView View Object has no Type
    How to determine a View Object Type (read only or updatable) in B.C ?
    Thanks

    Hi,
    this should not require any manual confiuration. Can you select the ApplicationModule in the model, right click on it and run the ADf BC tester ? Check if he ViewObject runs if not added to JSF
    Frank

  • Problems with the testing of querys in view objects

    I am working whih view object and i like to do one query with parameters for it(all with the wizard).
    The help of wizard no help me, because i write the clause where similar to the clause of the help.
    the error is:
    ORA-00904
    Exception:java.jql.SQLException
    Thank you for the attention.

    Hi Lynn
    Excuse me, i don't well explain my problem.
    I do the query of view object with the wizard of JDeveloper 3.2. i push the 'expert mode' and 'use ? style parameters' selection, and i build the query:
    SELECT EntVariable.COD,
    EntVariable.NOMBRE,
    EntVariable.DESCRIPCION,
    EntVariable.RANGO_INFERIOR,
    EntVariable.RANGO_SUPERIOR,
    FROM VARIABLE EntVariable
    WHERE :1 = EntVariable.NOMBRE
    When i push the button of 'Test' the query appear the error:
    java.sql.SQLException: ORA-00904: nombre de columna no valido
    void oracle.jdbc.dbaccess.DBError.throwSqlException(java.lang.String, java.lang.String, int)
    void oracle.jdbc.ttc7.TTIoer.processError()
    void oracle.jdbc.ttc7.Oall7.receive()
    void oracle.jdbc.ttc7.TTC7Protocol.doOall7(byte, byte, int, byte[], oracle.jdbc.dbaccess.DBType[], oracle.jdbc.dbaccess.DBData[], int, oracle.jdbc.dbaccess.DBType[], oracle.jdbc.dbaccess.DBData[], int)
    oracle.jdbc.dbaccess.DBColumn[] oracle.jdbc.ttc7.TTC7Protocol.parseExecuteDescribe(oracle.jdbc.dbaccess.DBStatement, byte[], oracle.jdbc.dbaccess.DBDataSet)
    void oracle.jdbc.driver.OracleStatement.doExecuteQuery()
    void oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout()
    int oracle.jdbc.driver.OraclePreparedStatement.executeUpdate()
    java.sql.ResultSet oracle.jdbc.driver.OraclePreparedStatement.executeQuery()
    java.lang.Exception oracle.jbo.dt.ui.view.VOClausePanel.testSQL()
    java.lang.Exception oracle.jbo.dt.ui.view.VOClausePanel.testAction()
    void oracle.jbo.dt.ui.view.VOClausePanel.actionPerformed(java.awt.event.ActionEvent)
    void javax.swing.AbstractButton.fireActionPerformed(java.awt.event.ActionEvent)
    void javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(java.awt.event.ActionEvent)
    void javax.swing.DefaultButtonModel.fireActionPerformed(java.awt.event.ActionEvent)
    void javax.swing.DefaultButtonModel.setPressed(boolean)
    void javax.swing.plaf.basic.BasicButtonListener.mouseReleased(java.awt.event.MouseEvent)
    void java.awt.Component.processMouseEvent(java.awt.event.MouseEvent)
    void java.awt.Component.processEvent(java.awt.AWTEvent)
    void java.awt.Container.processEvent(java.awt.AWTEvent)
    void java.awt.Component.dispatchEventImpl(java.awt.AWTEvent)
    void java.awt.Container.dispatchEventImpl(java.awt.AWTEvent)
    void java.awt.Component.dispatchEvent(java.awt.AWTEvent)
    void java.awt.LightweightDispatcher.retargetMouseEvent(java.awt.Component, int, java.awt.event.MouseEvent)
    boolean java.awt.LightweightDispatcher.processMouseEvent(java.awt.event.MouseEvent)
    boolean java.awt.LightweightDispatcher.dispatchEvent(java.awt.AWTEvent)
    void java.awt.Container.dispatchEventImpl(java.awt.AWTEvent)
    void java.awt.Window.dispatchEventImpl(java.awt.AWTEvent)
    void java.awt.Component.dispatchEvent(java.awt.AWTEvent)
    void java.awt.EventQueue.dispatchEvent(java.awt.AWTEvent)
    boolean java.awt.EventDispatchThread.pumpOneEvent()
    void java.awt.EventDispatchThread.pumpEvents(java.awt.Conditional)
    void java.awt.EventDispatchThread.run()
    so i haven't code because the code not generate it,
    I know that i must to ask to the Oracle service tecnical because the view object i think that is well build it, but now i can't.
    sorry my english.
    If you think a good idea, it is will fantastic, because i need it this 'where' on this view object.
    Thank you for all.

  • View object is read-only on Static Table

    Greetings,
    i have create a static af:table in JDeveloper 11.1.2.4.0 JSF,
    with 3 temporally columns, so i can create rows and select data. When im done create as many rows and choose data from all 3
    select one choice columns, to save on entirely different table using methodAction.
    I make all 3 columns Always Updatable, but when im going to create a row, it throws me the read-only table error.
    Keep in mind this temporally static table have no primary key.
    What should i do to bypass this error?
    Thanks in advance for any help.

    VIew object u created using real only view object wizard?  May be that can be cause..

  • Problem with PermGen memory (Java) - Tomcat Server - Business Object XI

    We have installed Business Objects XI on a W2003 Standard with SP2 (x86), using Tomcat as web server and MySQL as DBMS. The server has 4 GB of RAM and dual-core processor. From the beginning we have been given the memory problems of the Java virtual machine. The exception that occurs is of type "java.lang.OutOfMemoryError: PermGen space failure". We modify environment variables (JAVA_OPTS) -XX: PermSize = 256m and-XX: MaxPermSize = 512m and install the monitor LambdaProbe to see the use made of memory. We note that at no time was the PermGen memory indicated by these variables, continuing in that has a default 64MB. For this reason we decided to change the Tomcat 5.5 BO included in the version 6.0.20 and also updated Java to version 1.6.0_18-b07, and make deployment by wdeploy.bat file that comes with BusinessObjects (changing config.tomcat55 and tomcat55.xml). The deployment was successful and everything works, but as with the previous version of Java / Tomcat, shortly PermGen memory fills and returns to "hang". In this latest version of Tomcat installed as a service, do not use environment variables, use an application, "Configure Tomcat", which is a tab to pass parameters to the JVM. After looking at many sites, I have seen to be putting "-D" to pass the parameter. Currently this is my configuration:
    -Dcatalina.home = C: \ Program Files \ Apache Software Foundation \ Tomcat 6.0-Dcatalina.base = C: \ Program Files \ Apache Software Foundation \ Tomcat 6.0-Djava.endorsed.dirs = C : \ Program Files \ Apache Software Foundation \ Tomcat 6.0 \ endorsed-Djava.io.tmpdir = C: \ Program Files \ Apache Software Foundation \ Tomcat 6.0 \ temp-Djava.util.logging.manager = org.apache.juli . ClassLoaderLogManager-Djava.util.logging.config.file = C: \ Program Files \ Apache Software Foundation \ Tomcat 6.0 \ conf \ logging.properties-Dcom.sun.management.jmxremote-D-Xms2g-D-Xmx2g-D -XX: + UseConcMarkSweepGC-D-XX:-D PermSize = 256m-XX: MaxPermSize = 512m-Daf.configdir = C: / Program Files / Business Objects / Dashboard and Analytics 12.0-D-verbose: gc-D-XX : + PrintGCTimeStamps-D-XX: + PrintGCDetails
    I tried changing the values of-XX: PermSize and XX: MaxPermSize, and modifying the various policies of the Garbage Collector (-XX: + UseConcMarkSweepGC,-XX: + UseParNewGC,-XX: + UseParallelGC, ...), but nothing. Any idea how to get change the value of the report? Or how to solve this problem?
    Thank you!

    Victor,
    Is the Product you are using BusinessObjects Enterprise XI (Release 1)?
    With XIR2 and XI31, Tomcat 5.0 and Tomcat 5.5 are included with the software, and when installed with the BOE installer, you will get an application installed to the startmenu named "Tomcat Configuration".
    Using this "Tomcat Configuration" utility, there are several configuration options available.  On the JAVA tab, you will see the JAVA_OPTS that are set (These are prefixed with "-D") and also your initial and max memory sizes are listed at the bottom (Max 1024 by default in XI31).
    Here is the default setting for permsize in XI31 Tomcat:
    -XX:MaxPermSize=256M
    From your post, your issue might be the spaces in between your values (there should be no spaces, each "-" parameter on its own line).
    I would suggest starting Tomcat and reviewing your stdout.log file to review what options were set.
    Hope that helps
    -Brian

  • A problem with PoE devices in the Topology view (LMS 3.1)

    Hello,
    the customer has a problem with PoE devices in the Topology View. :-( He doesn't see the 2960 PoE devices with the PoE filter enabled in the topology view:-( He uses LMS 3.1 on Windows.
    In the NetPro discussion I found that the list of PoE devices is in the following file:
    POECapableDeviceTypes.properties
    but I cann't to find thid file in the campus directory. In the campus folder are following folders: bin, etc, lib and www.
    Thank you
    Roman

    The file is in NMSROOT/campus/www/classpath/com/cisco/nm/ani/clients/campus/main/filters/POECapableDeviceTypes.properties.

  • I'm having problems with my memory load

    I'm having problems with my memory load, because I have a few photos on my iPhone 5 (32GB) and has been detected that I am using 10GB of photos, and I only have 1,000 photos. Could someone help me?

    Hi Fehmi76,
    The article linked below details how to go about seeing what apps on your iPhone are using what amounts of space.
    See how much storage you've used on your iPhone, iPad, and iPod touch
    https://support.apple.com/en-us/HT201656
    Regards,
    Allen

  • Problems with device memory withs new apps and upgrades!

    Dear all,
    I'm having problems with my memory device. I have installed thes apps:
    - Blackberr battery watch
    - Bejewled
    - Google Maps
    - Level
    - Ispeech translator
    - Octopuzzle
    - Shazam Encore
    - Simcity Deluxe
    - The Light flashlight
    - Unit converter premium
    - Vlingo
    - Weather eye
    - Whatsapp Messenger
    And it says my 128 Mb device memory is full. How can i clean up this issue so I can continue upgrading and make my device a little more organized.
    Thanks!

    Hey marcoaramini,
    Welcome to the forums. 
    This article should help you with freeing up some memory on your BlackBerry smartphone.
    How to Maximize Battery Life and Free Memory on the BlackBerry smartphone
    -SR
    Come follow your BlackBerry Technical Team on twitter! @BlackBerryHelp
    Be sure to click Kudos! for those who have helped you.Click Solution? for posts that have solved your issue(s)!

  • ?I am getting an error when installing on my dell inspiron with latest updates for drivers.  Error 1406.  I have the problem with Scan Snap software and a full version of reader.

    ?I am getting an error when installing on my dell inspiron with latest updates for drivers.  Error 1406.  I have the problem with Scan Snap software and a full version of reader.

    Error 1402 | Error 1406 | Acrobat, Reader

  • HT1976 i have problem with my iphone, it;s never lock and not read sim card, before reinstaling 6.01, thnx juliany

    i have problem with my iphone, it;s never lock and not read sim card, before reinstaling 6.01, thnx juliany

    If you are both on the T-mobile network, the sim card should work.  If you did a Erase All Content and Settings, then she should be at the point of activation as a new device...talk to T-mobile and be sure the sim she is using is a valid sim card.

  • I have connect a seagate HDD formated on NTFS to my macbook pro with Mac OS 10.7 but my HDD is read only any idea how can i change it to read & write ?

    i have connect a seagate HDD formated on NTFS to my macbook pro with Mac OS 10.7 but my HDD is read only
    any idea how can i change it to read & write ?

    i tried the trial version of tuxera and it gives me the possibility to read & write , Thanx fschweig.
    @ Samberl : what is the benifts of keeping my drives on mac format and this SW mediafour i install on my PC to let it write the mac formated HDD ?
    is it free ?
    all the best
    Adiab

  • Problem with "Call Transaction" which calls a view cluster

    Hi Colleagues ,
    I have a rare issue with the call transaction , here is the use case for it :
    1> I call a transaction(calls a screen X) in a report ,
    2> I have a button in the screen , which calls another transaction(calls a screen X2) .
    3> On the screen X2 i have another button which calls transaction (calls the view cluster ).
    problem :
    i'm not able to see the navigation pane in the view cluster on the left. its missing .
    but when the view cluster is called direclty , i'm able to see the navigation pane in the view cluster ..
    My initial doubt was , is this the problem with nesting of 'Call Transaction' calls ????
    please answer the thread , i have to fix this ASAP.
    regards,
    Dilip

    problem solved.

  • Problem with multiple client numbers from a view

    Hi Gurus,
    I have a problem with a view
    Creates a view with a UNION ALL stmt
    =====================================
    Create view vw_benifits
    as
    SELECT
         Client_num, -- can have multiple values like 200,201,250
         PERNR,     
         OBJPS,     
         ENDDA,     
         BEGDA,
         AEDTM,     
         UNAME,
         COB_MNTH_AMT
    FROM
         STG_SAP_PA9211_TB
    UNION ALL
    SELECT
         null, -- no client number for legacy data
         PERNR,     
         OBJPS,     
         ENDDA,     
         BEGDA,
         AEDTM,     
         UNAME,
    COB_MNTH_AMT
    from
         LEG_STG_SAP_PA9211_TB;
    ==============================
    The second table contains legacy data (LEG_STG_SAP_PA9211_TB). The first table now contains multiple client data (ie the client_num can be 201,202,250 like that.
    Now if the users qery the view they will only get that clients data.
    eg selet * from vw_benifits where client_num=250 results only client 250 data. But I want to add the legacy data also with that.
    I don't want to propose
    selet * from vw_benifits where client_num in (250,NULL) since the users will be confused.
    Is there any other way to do this . my requirement is like
    If they query
    select * from vw_benifits where client_num=250, the data should include all the records satisfying client=250 + the records from the legacy data. The view need to be created like that.
    Appreciate your help
    Deepak

    Hi Thanks for the suggestion.
    But I am not sure this may work for me. Here my users may not be able to use that since they don't know Oracle.
    I want to hide that details from them
    They may just issue a statement like this
    select * from vw_benifits where client_num =250
    Or
    select * from vw_benifits where client_num =400 . But both times I need to show them the data from the legacy table.
    Deepak

  • DW CS3 problem with PNG-8 images in Design View?

    DW CS3 (build 3481) on XP seems to have problems with PNG-8 images, specifically trying to display them in design view.
    I had a very simple image that was able to be exported by Fireworks CS4 as PNG-8 using 4 colors (no transparency) for a tiny file size under 250 bytes.
    DW could not display it at all, or even recognize it, reporting it was 0 x 0 in size. I published the page anyway, and it looked fine in the browser.
    I upped the number of colors to 32, and DW could then display it in design view in the page I was working on.
    I'm still having problems with other PNG-8 images. The attached file "temp.jpg" is a screenshot showing part of the design view in DW.
    The smaller image on the left of the banner is "58_certificate_of_discharge.png" (attached), and the larger image below is used as the background of the DIV containing the form,"compassbk.png" (also attached).
    These images all look fine in the browser, but terrible in DW.
    I'm stumped as to why.
    Thanks in advance.

    According to a different discussion, the images that are stuck as "Queued" are showing a bug in the virus scanning on the forums.
    Now trying the recommended 'camera icon' method...
    Looks like it worked.
    Now compare what it looks like in DW CS3 in the design view:
    It's a 16 color PNG-8 made in Fireworks CS4 with no transparency, size is 113 x 58, ending up at 1.71K.
    If this is a repeatable problem in CS3, is there any hope of it being resolved, or am I stuck with upgrading to CS4 as my only option (assuming it's fixed in CS4)?
    Thanks.

  • Problem with middleware adapter filters

    Hi,
    I need some help with R3AC1 filter configuration. I have my CRM 4.0 working fine with a previous initial download executed for CUSTOMER_MAIN business object (between others).
    The problem is that now I have to download the related contact persons in ranges and I don't know how configure the filters to avoid deltas and the contact persons initial download at the same time.
    I think in requests (R3AR2) but I have the same problem with filters.
    Actually I have a filter in CUSTOMER_MAIN (and CUSTOMER_REL) object:
    KNA1 LAND1 EQ ES Inclusive
    If I want to download the contact persons related to customers 8000 to 9000, what's the filter configuration and in which object have I to do? It's very important that deltas continue downloading from my back-end because the system is productive.
    I need urgent help. Could anyone help me please?
    Best Regards
    Javier

    Have a look at transaction SMW3FDCUST, the activation is done there when checking the 'active' checkbox. For the download everything of BUPA_MAIN and BUPA_REL should be deassigned (as it usually is after an installation).
    The transaction is also found in customizing under CRM->CRM Middleware->Mobile scenarios->Mapping (or similar) with the approproate help text there.
    @Paul:What error do you get? Since sBDocs are not validated it should be only a technical error. Are you sure it is msa related (which then should be an error in the BDoc CAPGEN_OBJ_WRITE or CONGEN_OBJ_WRITE) or an error in the CDB adaptor framework (BDoc BUPA_MAIN or BUPA_REL). If the latter, it helps to regenerate all BDocs and related services in the generation workbench GNRWB for these BDocs.
    Regards, Kai

Maybe you are looking for