JDev10g and DataBindings.cpx

Hello,
we have several problems with the cpx and the MyXyzPanelUIModel.xml files. In general we appreciate the xml on the client. But in the current state it seems almost unusable.
1. 10g creates "DataBindings.cpx" instead of "<prj_name>.cpx". This prevents us from seperating the client tier into several projects because "DataBindings.cpx" must be unique on the classpath. The Online-Help chapter "About the Client Project Configuration File" says that the cpx name is derived from the project name (like in 9.0.3).
2. JClient Form Wizard generates a code line
mgr.loadCpx("DataBindings.cpx", map);
in the main class. loadCpx parses the cpx and creates a database session for each data control node (application module). Is this really the wanted behavior for a JClient application? Create N sessions even if a special end user only works with one data form (because he has restricted access rights in the applaction).
3. Only the first data form in a JClient project can be executed. Trying to execute a second data form results in a JBO-25003 exception:
(oracle.jbo.NoObjException) JBO-25003:
Object MyXyzView of type View Object not found
Regards
M. Thal

3. Only the first data form in a JClient project can be executed. Trying to execute a second data form results in a JBO-25003 exception:
(oracle.jbo.NoObjException) JBO-25003: Object MyXyzView of type View Object not found
We just used the wizards to perform the following steps:
- create a new workspace
- create a BC4J-project containing some entities, views and at least 2 application modules
use different views as data model
- create an empty project for the client
- create a Swing/JClient for ADF Form
Step2: choose Form Layout "Table"
Step3: create a new Data Model Definition for the first application module
(DataBindings.cpx contains one DataControl node)
- compile and run --> OK
- create another Swing/JClient for ADF Form
Step2: choose Form Layout "Table"
Step3: create a new Data Model Definition for the second application module
(DataBindings.cpx now contains two DataControl nodes)
- compile and run --> JBO-25003 (view not found)
The first generated form still executes ok. The exception occurs in the jbInit method of the panel class:
tableMyXyzView.setModel((TableModel)panelBinding.bindUIControl("MyXyzView", tableMyXyzView));
Using Form Layout "Single columns (label left)" throws an exception, too. Not sure: either the same or JBO-25058 (attribute not found).
It seems that only views and attributes from the first application module can be accessed.
Now the following steps corrupt the cpx:
- create a third Swing/JClient for ADF Form
Step2: choose Form Layout "Single columns (label left)"
Step3: select the first Data Model Definition from the list
Step6: choose another package name, use the same form and panel class names as for the first data form
- compile and run --> OK
But running the first data form results in:
JBO-29000: Unexpected exception caught: java.lang.NullPointerException, msg=null
The cpx "Containee" node of the first data form (using a table) has been replaced by a reference to the new package (using text fields).
The containee id "PanelMyXyzViewUIModel" is not unique in the project scope. The test case requires references for myPackage.PanelMyXyzViewViewUIModel and myOtherPackage.PanelMyXyzViewViewUIModel.
Hope this helps.
Regard
M. Thal

Similar Messages

  • ADF BC : Ant and XSLT to modify bc4j.xcfg and DataBindings.cpx

    hi
    Before I deploy my ADF BC / ADF Swing application I would like to use Ant to make some changes to bc4j.xcfg and DataBindings.cpx
    (see also "Defining ADF Business Components Runtime Properties for ADF Swing Applications" in the JDeveloper documentation)
    I would like DataBindings.cpx to point to the correct configuration and bc4j.xcfg to only contain the configuration information that is required.
    I created some XSLT transformation stylesheets to help me with that, see this example application:
    http://verveja.footsteps.be/~verveja/files/oracle/AntXsltConnectionSwitchStuff-v0.02.zip
    question
    Does JDeveloper itself provide any features to automatically make changes to DataBindings.cpx (and bc4j.xcfg) before deployment?
    many thanks
    Jan Vervecken

    repost

  • 11gTP4: DataBindings.cpx pageDefinitionUsages page ids

    Hi JDev team
    I notice in JDev 11gTP4 that when creating data bound web pages, which automatically creates the associated DataBindings.cpx entries for the associated page def file, that the pageDefinitionUsages page ids now look like this:
      <pageDefinitionUsages>
        <page id="view_UserDetailsPageDef" path="view.pageDefs.UserDetailsPageDef"/>
        <page id="view_DummyClientsInputFormPageDef"
              path="view.pageDefs.DummyClientsInputFormPageDef"/>
        <page id="view_xTemplatePageDef"
              path="view.pageDefs.xTemplatePageDef"/>
      </pageDefinitionUsages>However in JDev 10.1.3 JDev it would have looked like this:
      <pageDefinitionUsages>
        <page id="UserDetailsPageDef" path="view.pageDefs.UserDetailsPageDef"/>
        <page id="DummyClientsInputFormPageDef"
              path="view.pageDefs.DummyClientsInputFormPageDef"/>
        <page id="xTemplatePageDef"
              path="view.pageDefs.xTemplatePageDef"/>
      </pageDefinitionUsages>In particular notice the changing id values, in 11g it now includes the prefix "view_".
    I'm wondering if this is deliberate as if we wish to access the bindingContainer in a backing bean via a call to bindingContext.findBindingContainer(String), based on our old assumptions of the BindingContainer name format we'll have trouble in getting this code to work. This becomes even more difficult because we don't necessarily know that the findBindingContainer method uses the ids from the DataBindings.cpx file.... as a first port of call I was looking at the Id in the actual PageDef file which doesn't include the prefix "view_" in 11gTP4. Confusing.
    As such to make is easier if you're going to introduce this change, can I suggest you make sure the PageDef Id matches the pageDefinitionUsages page id in the DataBindings.cpx file as default when JDev creates the underlying PageDef/DataBinding entries automatically for the user? This way they wont get mislead by a different PageDef id from the entry in the DataBindings file.
    In addition if you're going to use the prefix, can I also suggest you include a prefix for the complete package name structure, such as "view_pageDefs_"?
    Cheers,
    CM.

    Hi,
    I think we open up a can of worms if refactoring should change the IDs as well because it would mean that the whole application code needs to be parsed and - even worse - all applications that use bindings as part pf an ADF Library usage. I think the best option to handle this is to ensure that a predictable pattern is used when creating the page IDs.
    [Chris] This becomes even more difficult because we don't necessarily know that the findBindingContainer method uses the ids from the DataBindings.cpx file.... as a first port of call I was looking at the Id in the actual PageDef file which doesn't include the prefix "view_" in 11gTP4. Confusing.
    Not really, because findBindingContainer is a method exposed on the binding context and therefore must be within the databindings.cpx file. Of course this requires some basic understanding of ADF that you and I have but that maybe will cause the confusion among developers starting with the technology.
    I'll file a tracking bug pointing to this thread for the developers to make up their mind on whether it is possible to use the same IDs for pageDef files and databindings.cpx. There must be some reason for why this has been changed.
    Frank

  • Problem in Moving DataBindings.cpx and DataControls.dcx

    I tried to move the two files DataBindings.cpx and DataControls.dcx to another folder (ie. from default folder adfmsrc/taskform to adfmsrc/taskform/formA ), I changed the *"Package"* property in each file, and modified *<DataControlRegistry>* tags in adfm.xml to pointing to the new paths, and redployed the task form.
    But when I log in the worklist app, my task form showed me an error that it failed to find my DataControls.dcx from the original folder (ie adfmsrc/taskform ).
    Could anybody tell me what other changes are required? Thanks in advance.
    Ps: I am using version 11g, 11.1.1.2.0

    Problem sovled:
    Forgot to change the *<dataControlUsages>* tag in DataBindings.cpx :(
    Thanks for viewing :)

  • DataBindings.cpx and DataControls.dcx

    Regarding DataBindings.cpx:
    http://iasdocs.us.oracle.com/review/11g_planning/reviewlib/web.1111/b31974/bcdcpal.htm#insertedID4
    If I have a project where I've created a bounded taskflow with fragments and I have my own AM data control, then I deploy this project as an Adf lib and a consumer takes my lib, references my task flow as a region, would the consumer need to update their DataBindings.cpx to have a reference to my AM data control?
    If so, anything else?
    I was comparing my project with someone else's and noticed I didn't have a DataControls.dcx. Is this needed? Is there a way to regenerate this?
    Using the following:
    Studio Edition Version 11.1.1.0.0
    Build JDEVADF_MAIN.DROP5_GENERIC_080123.2233.4835
    What's happening is that the consumer is getting a NPE in findDataControl from the producer when the producer's taskflow is trying to reference the producer's AM data control:
    Caused by: java.lang.NullPointerException
    at oracle.adf.model.binding.DCBindingContainer.findDataControl(DCBindingContainer.java:1343)
    Options I've tried:
    1. Updated consumer's DataBindings.cpx to reference the producer's AM data control that was provided in producer's jar.
    This worked but doesn't sound right, seems like a workaround.
    2. Updated adfm.xml to reference producer's DataBindings.cpx
    Error that reference to the producer DataBindings.cpx was not found in the consumer's project output directory.

    Ron,
    reading the specs it says that databindigs.cpx files of a ADF library need to be located in the META-INF directory of the deployment. So in general, the expected behavior is that you don't have to configure this. As it seems that you are Oracle internal, I suggest that you create a testcase and file a bug for development to have a look.
    Frank

  • "XML File not found for the Container DataBindings.cpx" error after deploy

    Hello,
    I have a problem with my JSP-Javaproject. Local works all fine but when i deploy my project to a Oracle Aplication Server i allway get this XML-File-Not-found exception:
    oracle.jbo.NoXMLFileException: JBO-26001: XML File not found for the Container DataBindings.cpx
    In my EAR-File the DataBindings.cpx is at:
    \WEB-INF\classes\
    My JSP-File:
    <jbo:ApplicationModule id="AippackageModule" definition="DataBindings.DataModule" releasemode="Stateful" />
    My web.xml:
    <context-param>
    <param-name>CpxFileName</param-name>
    <param-value>DataBindings</param-value>
    </context-param>
    My DataBindings.cpx:
    <?xml version='1.0' encoding='windows-1252' ?>
    <Application xmlns="http://xmlns.oracle.com/adfm/application" id="DataBindings"
    Package="" ClientType="Generic">
    <pageMap>
    </pageMap>
    <pageDefinitionUsages>
    <page id="eonerrorPageDef"
    path="de.avacon.ahb.system.tools.pageDefs.eonerrorPageDef"/>
    </pageDefinitionUsages>
    <dataControlUsages>
    <BC4JDataControl Configuration="AppModuleLocal"
    Package="model.data"
    xmlns="http://xmlns.oracle.com/adfm/datacontrol"
    id="DataModule">
    <Parameters/>
    </BC4JDataControl>
    </dataControlUsages>
    </Application>
    What can i do?
    Thanks, steve

    Adding the dependency in the ViewController fixed this for me.
    I'm using two AppModules in the controller and the second one wasn't being picked up.
    I was able to fix this by:
    Go to the Project Properties, select Dependencies, edit the Dependent Projects and Archives, find the model that's failing and add a tick in the Build Output box.
    The model should now be picked up in the ViewController's DataBindings.cpx source file, though I did have to restart JDev for this to be picked up.
    HTH
    Phil

  • How to change default encoding in DataBindings.cpx

    Hello,
    How to change default encoding in DataBindings.cpx,
    on windows-1251 for instance?

    I've filed Bug# 3147045 for this. Our DataBinding.cpx file and UIModel XML files seem to be getting hardcoded to use the ISO-8859-1 encoding. Our ADF Business Components XML files correctly pickup the IDE encoding.

  • XML-Parser-Problem ? DataBindings.cpx

    Hello,
    Ok -I just will formulate my question somewhat different: It is possible that the XML-Parser has a Problem ? Please see the stuff below.
    I just got a warning:
    Project: D:\ORAJDev101320\jdev\mywork\LoginJSF\ViewController\ViewController.jpr
    D:\ORAJDev101320\jdev\mywork\LoginJSF\ViewController\src\login\DataBindings.cpx
    Warning(11,15): <Line 11, Column 15>: XML-24521: (Fehler) Element nicht abgeschlossen: 'Application'
    for the following xml file when compiling my sampe books (chapter9) code:
    <?xml version="1.0" encoding="UTF-8" ?>
    <Application xmlns="http://xmlns.oracle.com/adfm/application"
    version="10.1.3.40.66" id="DataBindings" SeparateXMLFiles="false"
    Package="login" ClientType="Generic">
    <pageMap>
    <page path="/home.jsp" usageId="homePageDef"/>
    </pageMap>
    <pageDefinitionUsages>
    <page id="homePageDef" path="login.pageDefs.homePageDef"/>
    </pageDefinitionUsages>
    </Application>
    After trying a little bit it turned out that the message disappears when
    the :
    Application xmlns="http://xmlns.oracle.com/adfm/application"
    is rewritten to
    Application xmlns="http://xmlns.oracle.com/adfm/Application"
    (Application with a upper first A)
    I have to point out that previously I did not by hand coding in this file.
    Is this a known issue.?
    And will/could these change do cause other/addition problems somewhere ?
    Andre
    Message was edited by:
    andreml
    null

    How about adding this tag <dataControlUsages/>? My JDev doesn't complain about your content.
    just my 2 cents
    --olaf                                                                                                                                                                                                                                               

  • Migration issues with DataBindings.cpx Jdev 10.1.2 to 10.1.3

    Hey Guys,
    I have had a look at the docco for migrating between JDeveloper 10.1.2 and 10.1.3 in relation to the databindings.cpx file with no luck. Anyway, with no changes other than the migration, the deployment will fail because it cant find the databindings file:
    oracle.jbo.NoDefException: JBO-25002: Definition DataBindings.cpx of type Application Definition not found
    Web xml with this error:
    <context-param>
    <param-name>CpxFileName</param-name>
    <param-value>DataBindings</param-value>
    </context-param>
    So, i copied the bindings file to the view package which is standard for new applications created in 10.1.3 but then get this error message:
    oracle.jbo.InvalidDefNameException: JBO-25004: Definition name view/DataBindings.cpx for type Application Definition is invalid
    Web xml with this error:
    <context-param>
    <param-name>CpxFileName</param-name>
    <param-value>view.DataBindings</param-value>
    </context-param>
    Any help would be appreciated because a simple migration solution is required in order for us to use the new version on existing apps.
    Cheers Dave

    Hi,
    OID, Contentdb, BPEL P.M. on contentdb AS
    Regards,
    Jigar

  • [JHS10.1.3] incomplete generation of DataBindings.cpx

    Hi,
    I want to have another project after creating application by JSF ADF-BC template(remove original ViewController project and add a new one). But still use same Model project.After I add a new web project and run JHS generation,I found that DataBindings.cpx cannot be generated sucessfully.Only
    <?xml version="1.0" encoding="UTF-8" ?>
    <Application xmlns="http://xmlns.oracle.com/adfm/application"
    version="10.1.3.36.73" id="DataBindings" SeparateXMLFiles="false"
    Package="project1" ClientType="Generic"></Application>
    are generated.
    Instead of using Application template, I try to create projects on my own.
    If I create a new web project and a new Business component project and run JHS generation,and then run one of these generated pages.I got
    500 Internal Server Error
    java.lang.NullPointerException     at javax.faces.webapp.FacesServlet.init(FacesServlet.java:144)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpApplication.loadServlet(HttpApplication.java:2231)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpApplication.findServlet(HttpApplication.java:4617)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpApplication.findServlet(HttpApplication.java:4541)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpApplication.getRequestDispatcher(HttpApplication.java:2821)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:740)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:451)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:218)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:119)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)     at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)     at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:230)     at oracle.oc4j.network.ServerSocketAcceptHandler.access$800(ServerSocketAcceptHandler.java:33)     at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:831)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:298)     at java.lang.Thread.run(Thread.java:595)
    Finally, I found a way to add my new project.
    I use JSF ADF-BC template and again remove original ViewController project.
    And then I add a empty project and add a new JSF JSP page within it.
    After creating business components and running JHS generation , it works !
    Any ideas about this ?
    Thanks
    Eron Yang.

    Well, seems like that .rar or .zip file cannot be accepted.
    This is an automatically generated Delivery Status Notification
    Delivery to the following recipient failed permanently:
    [email protected]
    Technical details of permanent failure:
    PERM_FAILURE: SMTP Error (state 12): 554 5.7.1 Oracle Corporation does not accept mail with .ZIP attachments.
    What kind of file type I can use ?
    Thanks.
    Eron Yang.

  • DataBindings.cpx ADF

    Hello!
    I have a problem with the file in the subject. JDeveloper 9.0.5.2.1618 seems to assume that for every project the file DataBindings.cpx is ALWAYS called DataBindings.cpx, unfortunately this drags some unwanted problems with it.
    Description of the problem:
    I am working on a pretty big project that consist of many "modules" I define a JDeveloper project for every "module".
    This because every module can be standalone or run in a main application which works with internal frames. It seems that when run in the internal frame if I start project1 it works, If I start project2 it does not work giving the "ViewObject not found or something like that" exception obviously each project uses different databindings. However if I rename DataBindings.cpx to Projectname.cpx for every project and explicitly tell the application to load projectname.cpx it works but if I have to add some databound components it Creates a NEW Databindings.cpx so I have to manually merge them.
    Workaround:
    Rename manually in the filesystem the file Databindings.cpx to whatever you like hoping that you do not need to change anything in the project later.
    In Jdeveloper 9.0.3 and 9.0.4 the DataBindings.cpx was called projectname.cpx and there was no problem.
    Am I doing something wrong or this is a bug?
    Regards,
    Mario UDina

    I have found out the problem!! Once you create a form that creates DataBindings.cpx, in the filesystem outside of JDeveloper rename the file using the name you gave the project. If the project is testProject then your cpx file will be called testProject.cpx only and only if the cpx file is called as the project name JDeveloper will not be creating DataBindings.cpx but it will add new entries in testProject.cpx file. Simple but powerful. No fancy ant stuff and one less thing to worry about. It would be nice if an ADF developer would confirm this.

  • Add DataControl to DataBindings.cpx without a wizard?

    Is it possible to add DataControl based on BC4J AppModule to DataBindings.cpx file without running one of the create new panel/frame wizards? For ex.: I created few BC4J AppModules but JDev didn't create DataControl elements in DataBindings.cpx and doesn't provide ability to edit it manually.

    I have the same question. How do I 'manually' insert app module as data control in cpx file?

  • Oracle.jbo.JboException: JBO-34010: The "adf/tabs/view/DataBindings.cpx" descriptor appears in the application classpath more than once:

    Hello
    We are using JDeveloper 11.1.1.6
    We have three 3 separate viewcontroller projects and one Master projects which i supposed to integrate all these projects into one.
    Issue:
    After putting all three together into the Master project, the app fails to deploy due to this error:
    oracle.jbo.JboException: JBO-34010: The "adf/tabs/view/DataBindings.cpx" descriptor appears in the application classpath more than once:
    We did some digging and found out that it is because of the fact that "DataBindings.cpx" in all three projects falls withing the default package. How do we rectify this issue. We cannot even Refector this file because that option is not available for this file. We have a demo soon, What can we do?
    Thanks...

    Hi,
    this error typically comes from name clashes. Apparently you created ADF libraries (or projects) that contain a DataBindings.cpx file. The DataBindings.cpx file seems to be located in the same folder structure and thus could not be merged but are found to be added twice. When you create new view controller projects then best practice is to ensure the root package name is unique to avoid such issues.
    Frank

  • Package attribute on Application tag in DataBindings.cpx file (10.1.3)

    Hello -
    Can someone tell me what exactly the Package attribute on the Application tag means? Is it the package the DataBindings.cpx file resides in? A base package for new page definitions? (Something else?)
    (I ask because I've been having difficulty migrating 10.1.2->10.1.3 and need to modify this file by hand...)
    For example (from the SRDemo BC version):
    <Application xmlns="http://xmlns.oracle.com/adfm/application"
                 version="10.1.3.35.65" id="DataBindings" SeparateXMLFiles="false"
                 Package="oracle.srdemo.view" ClientType="Generic">Thanks!
    -- Scott

    Hi,
    short information to my own post: When shutting down the BPEL process manager and starting it a second time, I get only the first error reported below (the BPELSvcDeploymentManager one). Everything else runs smoothly...
    What happened? Is everything ok now?
    Thanks,
    Hans.
    P.S.: If nobody else but me encounters these problems maybe it's not time worth to search for the detailed reasons...

  • 10g - IDE - DataBindings.cpx

    i have created a JClientPanel using the wizard.
    after deleting the generated Panelxxx.java and PanelxxxUIModel.xml by using 'file - erase from disk' or removing the files from project, the UIModel remains in DataBindings.cpx
    robert

    Ron,
    reading the specs it says that databindigs.cpx files of a ADF library need to be located in the META-INF directory of the deployment. So in general, the expected behavior is that you don't have to configure this. As it seems that you are Oracle internal, I suggest that you create a testcase and file a bug for development to have a look.
    Frank

Maybe you are looking for

  • Time Capsule Disk Doesn't Appear in Finder or Disk Utility

    I have a 500G Time Capsule (single band, I think) that I want to partition (just into disk images, not volumes) so that I can maintain separate-sized locations for my family's music library, photos, and Time Machine backups for the non-media files on

  • Why can't I lookup phone numbers using my iPod Touch?

    When I google "Pizza Hut" on my iPod Touch (using Safari), it finds the nearest Pizza Hut to my house, but instead of displaying Pizza Hut's phone number, it display an icon that says "Call".  When I press on that icon, nothing happens.  Can I get my

  • Wrong Posting is happening while doing the godds receipt by mvt type 161.

    Hi User has made PO of Rs 100.Then he has done Goods Receipt of 200 by 161 Mvt Type. Fin. Goods on hand = 100 GR/IR cl. account = 200 COGS -Costprice diff = 100 agian he has done reversal of 1st Posting by mvt type 162 Fin. Goods on hand = 200 GR/IR

  • I am unable to open documents

    I recently got the new iPad and I have been unable to open documents.  I was previously able to on my old iPad.  Any suggestions?

  • Doubt with Appraisal Document

    Dear Experts. I am implementing Appraisal Document for ESS, but I need know if Appraisal Document that appear in the Portal ESS/MSS are the right but in the Backend. This for check if the information showed in the Portal ESS/MSS is the right.? Thanks