BC Archive - problem with opening view object based on entity from archive

We have encountered a weird problem with a reusable BC library on different PCs.
Library was imported into a project following steps in section 25.7 of the ADF guide.
A view object was created using some of the entities from the library.
Model tested successfully with view object (using AppModule tester).
Page developed with no problems.
Application copied to a different PC.
BC JAR files set up in lib folder and removed/readded to application model project. When attempting to open view object, get the error below.
However, the View object still tests successfully using the AppModule tester.
The page using the View object still runs successfully.
I believe the problem is that when the archive was originally imported, it was imported from a different location. The Containees tag in the project .jpx file references that path name. But even when I edited the path name, I still could not open the view object. Do we have to remove and redo the import of the library each time the application is copied to a different machine?
Error when attempting to edit View Object:
oracle.jbo.dt.objects.JboException: The following object(s) referred to objects that could not be found:
com.guideworkstv.ibo.webstagemodel.AcctReqForReviewViewObj
com.guideworkstv.ibo.webstagemodel.AcctReqForReviewViewObj
Could not find the following referenced object(s):
com.guideworkstv.ibo.model.webstage.entities.IboAccountRequest
com.guideworkstv.ibo.model.webstage.entities.IboAccountRequest
     at oracle.jbo.dt.objects.JboException.throwException(JboException.java:81)
     at oracle.jbo.dt.objects.JboPackage.loadResolveReferencesXML(JboPackage.java:1397)
     at oracle.jbo.dt.objects.JboPackage.finishObjectsLoad(JboPackage.java:1042)
     at oracle.jbo.dt.objects.JboPackage.loadFromXMLFile(JboPackage.java:972)
     at oracle.jbo.dt.objects.JboPackage.loadFromXMLFile(JboPackage.java:951)
     at oracle.jbo.dt.objects.JboBaseObject.loadFromXMLFile(JboBaseObject.java:2615)
     at oracle.jbo.dt.objects.JboPackage.loadFromXMLFile(JboPackage.java:880)
     at oracle.jbo.dt.objects.JboPackage.checkForLoad(JboPackage.java:451)
     at oracle.jbo.dt.objects.JboPackage.findContainedObjectByName(JboPackage.java:440)
     at oracle.jbo.dt.objects.JboPackage.findObjectByName(JboPackage.java:1999)
     at oracle.jbo.dt.objects.JboApplication.findObjectByName(JboApplication.java:959)
     at oracle.jbo.dt.objects.JboUtil.fileURLToObject(JboUtil.java:510)
     at oracle.jbo.dt.jdevx.ui.JdxJboAddin$1.handleCopy(JdxJboAddin.java:997)
     at oracle.jdeveloper.compiler.CopyTranslator.handledByListeners(CopyTranslator.java:125)
     at oracle.jdeveloper.compiler.CopyTranslator.translate(CopyTranslator.java:263)
     at oracle.jdeveloper.compiler.UnifiedBuildSystem$CompileThread.buildGraph(UnifiedBuildSystem.java:300)
     at oracle.jdeveloper.compiler.UnifiedBuildSystem$CompileThread.buildProjectFiles(UnifiedBuildSystem.java:516)
     at oracle.jdeveloper.compiler.UnifiedBuildSystem$CompileThread.buildProject(UnifiedBuildSystem.java:609)
     at oracle.jdeveloper.compiler.UnifiedBuildSystem$CompileThread.buildAll(UnifiedBuildSystem.java:666)
     at oracle.jdeveloper.compiler.UnifiedBuildSystem$CompileThread.run(UnifiedBuildSystem.java:894)

We have resolved this problem by making sure that all machines have identical paths for both the working and the lib directories. It would be nice not to have to do this though.

Similar Messages

  • Problem with 2 View Objects based on One Entity -Probably a Bug in ADF BC

    Hi
    I am using JDeveloper 10.1.3(SU5) and adf faces and ADF BC and to explain my problem I use HR schema.
    First, I created 2 view objects based on countries table named as TestView1 and TestView2. I set TestView1 query where clause to region_id=1 and TestView2 query where clause to region_id!=1 in the view object editor and then I created 2 separated form on these 2 view objects by dragging and dropping from data control palette.
    Now when I insert a record in the form based on TestView1 with region_id set to 1 and commit the record and go to the next form I can see the record in the second form which is completely wrong since it is against the where clause statement of the second form.
    I am really confused and the situation is very wired and it seems to me something like bug in adf bc.Am I right.Is there any work around or solution for solving this problem.
    Any help would be highly appreciated.
    Best Regards,
    Navid

    Dear Frank,
    Thank you very much for your quick response.
    Reading your helpful comments now I have some questions:
    1- I have commited the record in the database so shouldn't the query of view objects be re-queried?
    2- We try to use ClearVOCaches (entity_name,false) in afterCommit of the base entity object but unfortunately it does not work correctly. after that,We got root app module and used findViewObject method to find all the view of that entity (we have found them by using name not automaticlly) and called executeQuery of all views. From my point of view it has 2 big disadvantages. First suppose that this entity is an important entity and 4 or 5 viow objects are based on it. Now, For inserting one record we should re-execute 4 or 5 view which I think makes some performance issues. Besides, If during the development one programmer add a new view object based on this entity and don't add the executeQuery in the afterCommit for this view, again we have the same problem. Isn't there at least a way that automatically refresh all related view objects however the performance issue still exists.
    3- You mentioned that this issue is handled in the developer guide. Could you kindly give me a refrence which developer guide you mean and which section I should read to overcome this problem.(I have ADF Developer's Guide for Forms/4GL Developer's Guide , however I search for clearVOCaches and surprisingly nothing was found!!!)
    4- Could you please give me some hints that from your point of view what is the best method to solve this problem with minimum performance effect.
    Any comment would be of some great help.
    Thanks in advance,
    Navid

  • Problem with database schema objects in the entity object wizard

    Hi All,
    When creating a new entity object, I am facing a problem with database schema objects in the entity object wizard, database schema objects (check boxes for tables,synonyms...) are disabled. Actually I am using a synonym but I am not able to select the synonym check box.
    Can any of you folks tell me how to enable the database schema objects (check boxes for tables,synonyms...).
    Thanks in Advance.
    Raja.M

    Make sure your using rite version of jdeveloper..
    Make sure your using apps schema and check whether your able perform DML operations in the schema vis sql developer.
    --Prasanna                                                                                                                                                                                                                                                                                                                                                                           

  • Problem with a View Object

    Hi,
    I am using ADF BC technology.
    I've got a curious for me problem...
    I get from a creation form a code that the user enter, a method in the app. module checks
    using the view object if the code exists or not...
    The code always Exist! Debugging I found out that the code that is found is the code that the user tries to enter...
    Am I missing something?
        public String add() {
            BindingContainer bindings = getBindings();
             if (bindings != null) {
                OperationBinding operationBinding = bindings.getOperationBinding("checkKbExam");
                 operationBinding.getParamsMap().put("code",inputText2.getValue());
                 Boolean  result = (Boolean) operationBinding.execute();
                System.out.println("balame gia code: "+ inputText2.getValue());
                System.out.println("pirame apo appmodule: "+result );
                if(result==false){
                    FacesContext context = FacesContext.getCurrentInstance();
                    operationBinding =
                            (OperationBinding)bindings.getOperationBinding("getMsg");
                    operationBinding.getParamsMap().put("msgId", "5");
                    String msg = (String)operationBinding.execute();
                    FacesMessage message1 =
                        new FacesMessage(msg);
                    context.addMessage(null, message1);
                    return"null";
                 OperationBinding operationBinding1 =bindings.getOperationBinding("Commit");
                 operationBinding1.execute();
        public boolean checkKbExam(String code) {
           checkKbExamImpl check  = getcheckKbExam1();
           check.setTheGivenCode(code);     
           check.executeQuery();
           Row[] row = check.getAllRowsInRange();
           getcheckKbExam1().setCurrentRow(row[0]);
           System.out.println(row[0].getAttribute("RefCodeSystem"));
           try{
               System.out.println(row[1].getAttribute("RefCodeSystem"));
            catch(Exception e){
            System.out.println("error "+ e);
           if (row.length>0) {
              System.out.print("mikos einai  " + row.length);
              return false;
             return true;
        }

    No solution yet guys ...and it's really annoying!
    When i put a "code" that does not exists in the table...the array length is 1.
    When it exists it's again 1 !!!!
    so what does it leave me?
    pls somebody help

  • Separate App Module, View Object based on Select not EO: Best practice?

    Hi,
    I have a list of base tables(parameters) that are used everywhere in my application for selection components (List, Combo, Radio).
    I'm considering creating a separate app module with a view object based on query for each table.
    I have created a BaseTableAM application module for managing those tables, Entity objects and View Objects in update mode.
    Those tables are rarely changed.
    Example of table:
    ItemType
    item_type_id = primary key
    name = description
    In the BasetableAM:
    ItemTypeEO entity object
    ItemTypeVO updateable view object based on related entity object.
    Now in my project I will create combo boxes for selection of the item_type_id.
    Separate application module:
    SelectionViewAM composed of View Objects based on Select statements and not on Entity Objects.
    Example of view object ItemTypeViewVO:
    SELECT ItemType.ITEM_TYPE_ID,
    ItemType.NAME
    FROM ITEM_TYPE ItemType
    All view objects in this application module will be read-only and for selection only.
    By basing all those View Objects on select statements not based on Entity Objects I suppose there will be no locking and "value changed" management => less overhead.
    Is this a good practice?
    Being read-only I could have based those View Object on Entity Object with flag updateable set to no, what would you recommend?
    By creating a separate Application Module for those selection view objects, I know that update will not be possible.
    Thank you for your advice.
    Frederic

    See this article for View Object tuning tips:
    http://www.oracle.com/technology/products/jdev/tips/muench/voperftips/index.html
    Are you planning to use this AM as a nested AM inside other application modules?
    If you don't the "selection AM" will have its own, separate database connection/transaction.
    If you do, it will share connection, transaction with its containing "root" AM.
    It may not be relevant to your application, but just realize (which is explained in the article I point to above) that view objects that are not related to entity objects do not "see" pending changes in the current transaction. That feature depends on the VO/EO cooperation. It's fine to build VO's without an EO -- in fact we've made it easier to do this in 10.1.2 in the Design Time wizards -- but you just want to make sure you realize what features it's giving up. If you don't need those EO-related features, then by all means create an Expert Mode VO that's not related to EO's.

  • Master-detail with dynamic view object

    How can you create a view link with a view object that is dynamic? I have created a master-detail relationship on a UIX page. I change the master view object at runtime using a view definition and SQL and then I bind the view object to an iterator on a UIX page. I need the new dynamic view object to maintain the link between the detail view object. Is this possible?
    The reason why I have to change the view object at runtime is because I am implementing a search module and the tables in the from clause can be modified at runtime so I need to have a dynamic view object.
    Thanks,
    Sanjay

    After playing around with ViewObjectImpl's setQuery() method some more I found out that this solution might not work for me due to the following reason: when the user tries to sort a column in the result table, the original contents of the view object get executed instead of the run time query.
    <p>
    I would like to go back to my original solution that included creating a view definition based on the runtime query and then creating a view object from that which I bind to the RowSetIterator. The missing piece to the master-detail functionality is with the detail Iterator being in sync with the master. I have tried the following but I get a ClassCastException <p>
    DCIteratorBinding detailBinding = ctx.getBindingContainer().findIteratorBinding("DetailIterator");
    detailBinding.getViewObject().<b>setMasterRowSetIterator</b>(masterBinding.getRowSetIterator());
    <p>
    here is the relevant stack trace:
    java.lang.ClassCastException
    at oracle.jbo.client.remote.ViewUsageImpl.getImplObject(ViewUsageImpl.java:1829)
    at oracle.jbo.client.remote.RowSetImpl.setMasterRowSetIterator(RowSetImpl.java:512)
    at oracle.jbo.client.remote.ViewUsageImpl.setMasterRowSetIterator(ViewUsageImpl.java:1147)
    at oracle.jbo.common.ws.WSViewObjectImpl.setMasterRowSetIterator(WSViewObjectImpl.java:1005)

  • Facing lot of problems with the DATA object  -- Urgent

    Hi,
    I am facing lot of problems with the data object in VC.
    1. I created the RFC initially and then imported the data object in to VC. Later i did some modifications to RFC Function module,and when i reload the data object, I am not able to see the new changes done to RFC in VC.
    2. Even if i delete the function module, after redeploying the IVIew, results are getting displayed.
    3. How stable is the VC?
      I restarted the sql server and portal connection to R3 is also made afresh.... still i am viewing such surprise results..
    please let me know what might be the problem.

    Hi Lior,
    Are u aware of this problem.
    If yes, please let me know...
    Thanks,
    Manjunatha.T.S

  • HT1338 I have a problem with opening downloaded files from the internet; zip types. Can you tell me an app to open these types of formats of files?

    I have a problem with opening downloaded files from the internet; zip types. Can you tell me an app to open these types of formats of files?

    It should unzip if you double-cick.
    What are you seeing happen when you do that?
    Select a .zip file in the Finder and Get Info (cmd-i). What is set for it to Open With. It should be Archive Utility.

  • Problem with a view in XK01 transaction

    Hi All,
    I am working on upload conversion for Vendor Master. While doing conversion, i am getting a problem with a Contact person view in XK01 transaction. In contact person view the telephone field column sometimes allowing to add data ,sometimes it's not allowing data which results an error in conversion program saying that the telephone field in not an input field. I don't know why the view is showing the telephone field like that.
    Can any one suggest the solution for this problem. I know this is configuration problem with a view but i posted in ABAP forums.
    Thanks

    Hi Ben,
    I assume that you are writing a BDC program to upload contact person information. If so, you are trying to populate a table control here. Please check to see if you are calculating the index to assign values to the correct rows.
    if you are calculating index in your program then i think it should be configuration problem as you said.
    Thanks,
    Ganesh.

  • How to add row in multiple view object based on common entity object.

    Hi ,
    I have
    Jdeveloper version - 10.1.3.3.0
    Oracle Database - 11g R2
    I have a situation where i have to show data from one table in three adf tables on jsf page depending on a flag value in a column in table. For this purpose i have done the following steps
    a) Created an entity object on the database table .
    b) Created three view objects on this entity object and edited the view object's SQL and included the where clause
                       WHERE  A.USER_PERSONAL_NO = :P_USER_PERSONAL_NO AND
                           A.AUTH_TYPE = 'LF'
                       The auth_type cloumn decided in which view object the data will be shown
    Now, when i query the data from database by executing the query of these view objects the data is shown correctly in all three view objects. Till here there seems every thing ok
    Now , i have to provide the logic to add records in the adf tables for this i have provided add button in action facet of all three tables which are binded to methods in managed bean,
    when i add a record in a adf table by add button the new row which is created is shown in all three tables . I cant understand why this is happening , please help me to solve this problem.
    How can i make it possible so that the record appears only in that adf table in which the record is added.
    The method for adding record is
                Row rw = currentAM.getWfRecommAuths().createRow();
                rw.setAttribute("UserPersonalNo",this.getQuery_personal_no().getValue());
                rw.setAttribute("AuthPersonalNo","");
                rw.setAttribute("AuthType","LX");
                currentAM.getWfRecommAuths().last();
                currentAM.getWfRecommAuths().insertRow(rw);
               Please help , thanks in advance.

    Hi,
    have a look at polymorphic view objects
    http://download.oracle.com/docs/cd/E21764_01/web.1111/b31974/bcadvvo.htm#CEGDCCCB
    Frank

  • Problem with HTML viewer

    Dear All ,
    I am facing a problem with HTML Viewer . My senario is as follows :
    1. I have created one HTML page . On that page there are 4 Images
    2. I imported that HTML page in SAP with the help of transaction SMW0
    3. I Called that HTML page in my ABAP program using the method "load_html_document" of class cl_gui_html_viewer
    4. This is happening perfectly ok on the machine on which all this developement was done.
    But the issue is when I execute my ABAP program on a different machine , those Images on that HTML page are not displaying.
    Can you please guide me how to remove that machine dependancy?
    Regards,
    Nikhil

    Hi Nikhil,
    Please check if the image is properly imported properly. Also check if there is any option which you might have forgotten while imported like dependeency.
    Regards
    Abhii...

  • Problem with opening of PDF in my webmail application

    I have a problem with opening a pdf file in my webmail application of my internet provider in apple safari since yesterday. When I wanted to open up a pdf file I got a pop up message to allow a connection between adobe and the webmail application which I did. Since then I can not open up a pdf file. If I go to another browser or if I use email from another internet provider I use too it works and I can open up. It seems to be a blockage of the specific combination of this webmail application and safari.
    What can I do ?

    Hi,
    I have same requirement.
    I need to cnvert smartform->pdf->send mail.
    The mail is send but the attachment is corrupted.
    Can you tell me what code you have written so its working in developement?

  • Problem with opening a indd file in CC 2014.

    When I'm trying to open a 5.5 .indd-file in CC 2014 on my Windows computer, I get this error message: 'Either the file does not exist or you do not have permission to open it or the file is used by another program'. However my collague has no problem with opening the document on his Mac computer. I guess it has something to do with a kind of setting in my CC 2014. Can anyone help me?

    Nothing to do with ID. It really means what it says - your file permissions are hosed and it being an ID file this could include things like fonts or placed images referenced within it.
    Mylenium

  • Problem with opening some of PDFs in Photoshop CS6.

    Hi, I have a problem with opening some of PDFs in Photoshop CS6. It is said: it isn't possible to carry out an order since the module of the file format cannot analyse this file

    Don’t know if Reader has this, too, but in Acrobat one can check under Document Properties.
    I can convert and place the file in Photoshop CS6.
    I would recommend trying the usual trouble-shooting routines and if nothing helps un-installing, running the Cleaner and re-installing Photoshop.  (After making sure all customized presets like Actions, Patterns, Brushes etc. have been saved to s secure location.)
    http://blogs.adobe.com/crawlspace/2012/07/photoshop-basic-troubleshooting-steps-to-fix-mos t-issues.html
    Use the CC Cleaner Tool to solve installation problems | CC, CS3-CS6

  • F-32 : Problem with Open Item selection

    Hi,
    We have a strange problem with open Item selection for customer clearing in t-code F-32
    In My QA system
    if I input spl GL indicator ="*" and uncheck Normal OI tick,
    the system selects all open items,
    (those with spl GL indicator and those without spl GL indicator)
    In My Dev system
    If I input spl GL indicator ="*" and uncheck Normal OI tick
    the system does not select any open items,
    Please let me know which setting controls this behaviour ?
    Regards
    Sachin

    Hello,
    Check your data in FBL5N for the option "Special GL Transactions". There could be that there is no data in the system with SPECIAL GL TRANSACTIONS.
    In F-32, there is no value like *
    You need to input right Special GL Indicator. "*" will not work here.
    I am sure in both the systems if you put "*" and UNTICK your normal transaction, you will NOT get any items to clear.
    Please DOUBLE CHECK whether you have unticked normal transaction.
    Regards,
    Ravi

Maybe you are looking for