Programmatically created ViewDefImpl and application module releasing

Hello!
What will happen with a programmatically created ViewDefImpl instance after module releasing (for Stateful release mode, I mean if module will do passivation)? How I see it gone away.
As workaround I'm using a distinct module with Reserved relese mode, but it's no good.
Don't inspect closely, but I think the error during actiovation caused by this reason:
java.lang.NullPointerException
at oracle.jbo.server.Serializer.activateDynamicVO(Serializer.java:425)
at oracle.jbo.server.ApplicationModuleImpl.activateVOs(ApplicationModuleImpl.java:7145)
at oracle.jbo.server.ApplicationModuleImpl.doActivateState(ApplicationModuleImpl.java:6962)
at oracle.jbo.server.ApplicationModuleImpl.doActivateAMState(ApplicationModuleImpl.java:6927)
at oracle.jbo.server.Serializer.activate(Serializer.java:272)
at oracle.jbo.server.DBSerializer.activateRootAM(DBSerializer.java:330)
at oracle.jbo.server.ApplicationModuleImpl.activateState(ApplicationModuleImpl.java:5519)
at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolMessage(ApplicationPoolMessageHandler.java:171)
at oracle.jbo.server.ApplicationModuleImpl.doPoolMessage(ApplicationModuleImpl.java:7735)
Code fragment from module for wich activation failed:
>>>>>>>>>>>>>>>>>>>>>>>>>>>
viewDef = new ViewDefImpl(QUERY_RESULTS_VO_DEF_NAME);
for (...) {
ViewDefHelper.addUpdateableTransientViewAttr(viewDef,
attr.getFirstChild().getNodeValue(),
String.class);
viewDef.resolveDefObject();
viewDef.registerDefObject();
resultsVO = (SimpleXMLViewObjectImpl)createViewObject(QUERY_RESULTS_VO_NAME, viewDef);
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
Thanks in advance.
Ilya.

application module1 is for table1, table4 and table5 and Application module 2 is for different tables say table2,table3 now I got 1 requirement where I need to do insertion in table1 after insertion in table2,table3 from applicaiton module2

Similar Messages

  • Calling stored procedures from entity object and application module

    Hello
    I've put in place an EntiyImpl base class containg helper methods to call stored procedures.
    I now need to call stored procedures from the application module.
    Apart from creating an application module base class and duplicating the helper method code is there a way
    to share the helper methods for calling stored procedures between the entity impl and application module impl ?
    Regards
    Paul

    Does the helper code depend on features of a particular entity object instance, beyond its database transaction?
    If so, I'm not sure I see how it could be used from an application module class.
    If not, here's what you do:
    Step 1:
    Parametrize the database transaction--you might even want to. So instead of
    protected myHelperMethod(Object someParam) {
    DBTransaction trans = getDBTransaction();
    change this to
    protected myHelperMethod(DBTransaction trans, Object someParam) {
    Step 2: make the method public and static--once you parameterize the DBTransaction, you should be able to do this.
    public static myHelperMethod(DBTransaction trans, Object someParam) {
    Step 3: Remove the method from your EntityImpl base class into a utility class:
    public abstract class PlSqlUtils {
    private PlSqlUtils() {}
    public static myHelperMethod(DBTransaction trans, Object someParam) {
    When you want to call the method from an application module, entity object, or even view object class, call
    PlSqlUtils.myHelperMethod(getDBTransaction(), paramValue);
    Unlike Transaction.executeCommand(), this lets you provide functionality like setting procedure parameter values, retrieving OUT parameter values, etc.
    Hope this helps,
    Avrom

  • Programmatically create objects and formulas in Crystal Reports XI Developer edition?

    <p>Is it possible to programatically/dynamically create a text, line, formula field object, etc. in Crystal XI Developer edition?  I have been programming with the Crystal .Net reports component that came with VS 2005 for the past 6 months and know for a fact you can&#39;t programmatically create those objects although you can programmatically control their properties.  My intention is to create a dynamic report that can be reused extensively.  My current work-around for this was to create a generic report with about 40 formula field objects which draws data from 40 corresponding formula fields that I can programmatically set it&#39;s formula thus imitating a report field.  I want to update to the developer edition because I heard with this edition we can programmatically create and manipulate these objects but I found no reference or examples anywhere that proves we can do this?  Does anyone know for a fact or point me to the right place to look for documentation?  TIA</p>

    Hi,
    How can I programmatically refresh list of values status on CR server XI R2?
    Currently, after I modified the data source in the data connection, some of the LOVs in the report prompt window became empty when I tried to generate the report. I have to use Business View Manager to log onto the Crystal reports server XI R2, find and double click the list of values object to bring up the Edit LOV window, and then click on "Refresh Status" button to make the LOV available in the report prompt window.
    What SDK should I use to create a simple application (preferable a desktop application) to find all LOV objects on CR server XI R2 and to refresh their status? That is an application similar to the "Refresh Status" function in Business View Manager.
    I found Report Engine SDK has the Lov.Refresh function to refresh LOV. On the other hand, Report Engine SDK seems to be for BusinessObjects Enterprise, not for Crystal Reports Server. Can this or other function achieve what I want, i.e. to refresh list of values status on CR server XI R2? If yes, can I use it to develop a self-contained desktop application instead of a web application? I only need to run this application after I modify the data source in the data connection, so I prefer not need to deploy it as a web service.
    Thanks for your help.
    C.T.

  • Is it possible to export and import jsf page and application module?

    Hi,
    I want to export a application module and then import it to another application,so deos jsf pages.If I can do this ,then my team could do the diffent work at the same time.one group response for data model then commit as application module,one group for page create and edit and so on .Who has any good idea?
    Thanks advance
    lixinzhu
    2007/09/19

    hi,frank
    thank you.
    You know a page include a .jspx file,a page definition file and depend faces-config.xml,faces-config.oxd_faces and other I don't know information,so if i only put the first two file into cvs,but how can i get other information in the last two file?When I get the first two file and needed information in the other file,how can i merge these into new project and let jdeveloper "reconize it"?Applicaion is more complex,it not only depend its self java class,xml and many entity object and view object,how to handle the "export" and "import" process?Just like oracle form,only a fmb is enough,database object only need to "put into database","export" and "import" are very simple,so i need jdeveloper to supply these "import" and "export" function.I'm not familar with cvs,does it can know object dependency like application module?if it can,how to let jdev "reconize" imported in object?
    lixinzhu
    2007/09/19

  • Application Module Release Mode

    Hi sirs;
    I'm just starting a new struts based application and adf uix + bc4j;
    What i was wondering is;
    If we will have a improve of performance, releasing more times the application module in stateless mode; like the following;
    All data forms (form related to data) will have an <<exit>> button and all the others links should be disabled. this exit button should command the form's dataforward action to release the application module in stateless mode;
    This exit button also will redirect the user to the main menu page;
    So, when the user get in an "data form", all struts ,toy stories based actions, will have the complete life cycle and will release the application module in stateful mode.
    One event called onExit marks the release mode to stateless to it's life cycle.
    what are your opinion about this approach ?
    Thanks
    Marcos Ortega;

    Repost

  • TP4 Lov and application module procedure

    Hi!
    I have a little problem. I have a page with a LOV and a Task Flow.
    In the Task Flow i have a table, wich depending the value that users select in the LOV present some data. (Whith where clause and a bind variable).
    This works ok. But when I add to the task Flow a button that invoke a procedure implemented in the application module. The result, is that the LOV doesn´t work. i mean not appear the data to select.
    Any idea?
    Thanks
    Rowan

    Ok my english....
    First what a want to do:
    I´m doing a create,update,insert,remove page, using adf rc. But for doing those, I need to use PL/SQL procedures, not the create, remove.. procedures that jdev gives us in the data control. And as the table has a lot of records i ´ve put in the page a LOV to search the rows that the user want to modify.
    Now how i do that (in short):
    First i "programmed" the LOV. I´ve created a ViewObject for the lov and another view object for the table the second VO has a bind variable and a where clause.
    "Where tabla.cod = :LovParam"
    For passing the value from the LOV to the table i have defined a Task Flow View with input parametre, with a panel collection and inside the table VO. have defined an executeWithParams binding and invokeAction executable.
    I´ve drop the task flow to the .jspx.
    In the .jspx I´ve inserted a LOV component and create a variable executable a inside of this a variable. And then i´ve bind the LOV with the variable.
    Probably here is missing a step, but how i say up this is in short what i have done.
    Finally all this works fine.
    The second step is to add the command button that calls the PL/SQL, for doing this:
    I´ve programmed in the application_module_implementation a function which calls the PL/SQL, I´ve followed the steps that are explained in the adf guide, in chapter 25.5.2 Invoking Stored Procedure with Only IN Arguments.
    And then i´ve dropped the function from data control to statusbar facet of the Data Collection.
    The result is that when the button is on panel collection, the LOV does´t work. And if remove the button the LOV works. This haven´t any sense for me.
    I have made more test and, if instead of the panel collection I use a form layout the LOV works but the button gives me the next error "Not supported function".
    I know that this is another think. and now i´m trying to solve this one.
    I hope now you have material to work with. I think that it´s strange what happens with the collection panel. And about the function sure that i´m doing something wrong.
    Thanks, for you interest
    Rowan

  • Maven dependencies and application Module

    hi,
    I'm using jdev 11gR2. When i use project propertie-->maven-->dependencie-->"add from repository", and select a jar : errors from import in java files avec solved, but i can't see package from this jar in the Application Module (Data Model).
    How can i see it?
    thanks
    Clément

    no idea?

  • DataBindings and Application Module Bean

    Hallo everybody,
    I am working on JDev 10.1.3.4 and Oracle Application Server 10.1.3.4.
    I developed an 'application module' and I maked it as remotable using 'EJB Session Bean' option;
    then I deployed it on the AS.
    I know how to call remote application module by code in a JClient application ([thanks to a metalink note|https://metalink2.oracle.com/metalink/plsql/f?p=130:14:6076423513290714654::::p14_database_id,p14_docid,p14_show_header,p14_show_help,p14_black_frame,p14_font:NOT,309753.1,1,1,1,helvetica|thanks to a metailk note]):
    bq. JUApplication app = new JUApplication(TestClient.getAppModule()); \\ app.setClientApp(DCDataControl.JCLIENT); \\ +     app.getApplicationModule(+)
    I would like to use remote application module function by DataBindings and %PageDef.
    is it possible? how can I do this?
    best regards
    Edited by: user567554 on Dec 17, 2008 5:44 PM

    Hi Frank,
    thank you for reply.
    Could you make an example how to configure my datacontrol for a remote Application Module Connection?
    I'm able to connect to a remote AM deployed to Local Embedded OC4J, but I'm not able to connect to to a remote AM deployed in a remote AS
    I think need change DataControl Configuration Attribute with the appropiate AM Configuration. Probably my AM Configuration is wrong:
    &lt;AppModuleConfig name="AppModuleEmbeddedASTest2"&gt;
    &lt;DeployPlatform&gt;EjbIas&lt;/DeployPlatform&gt;
    &lt;java.naming.security.principal&gt;oc4jadmin&lt;/java.naming.security.principal&gt;
    &lt;java.naming.security.credentials&gt;*ASpwd*&lt;/java.naming.security.credentials&gt;
    &lt;jbo.internal.embedded&gt;true&lt;/jbo.internal.embedded&gt;
    &lt;JDBCDataSource&gt;jdbc/+myConnDS+&lt;/JDBCDataSource&gt;
    &lt;AppModuleJndiName&gt;AppModuleBean&lt;/AppModuleJndiName&gt;
    &lt;HostName&gt;*AS-IPAddr*&lt;/HostName&gt;
    &lt;ApplicationPath&gt;+ejbAM  (My Application Name)+ &lt;/ApplicationPath&gt;
    &lt;java.naming.security.authentication&gt;simple&lt;/java.naming.security.authentication&gt;
    &lt;ApplicationName&gt;model.AppModule&lt;/ApplicationName&gt;
    &lt;ConnectionPort&gt;*+23791 (found in $ORACLE_HOME/j2ee/myTests//config/rmi.xml)+* &lt;/ConnectionPort&gt;
    &lt;jbo.server.internal_connection&gt;jdbc/myConnCoreDS&lt;/jbo.server.internal_connection&gt;
    &lt;/AppModuleConfig&gt;

  • ScheduledExecutorService and Application Module

    I have an Long running job which is submitted from UI, so I used ScheduledExecutorService to execute the task by passing the reference of Application Module. Now the Thread makes some database commits new rows. I have RichPoll which will keep pooling for the progress.
    As Soon as the data is inserted I call transaction commit.
    Now What i noticed is the data committed in the Run method is not available in DB until the run method completes , Any idea what's going wrong
    public class MyClass implements Runnable {
    private MyAMImpl aM;
    public String doAction() {
    FacesContext fc = FacesContext.getCurrentInstance();
    Application app = fc.getApplication();
    ExpressionFactory elFactory = app.getExpressionFactory();
    ELContext elContext = fc.getELContext();
    ValueExpression valueExp =
    elFactory.createValueExpression(elContext, "#{data.MyAMDataControl.dataProvider}",
    Object.class);
    aM = (MyAMImpl )valueExp.getValue(elContext);
    ScheduledExecutorService ses = Executors.newScheduledThreadPool(1);
    setService(ses);
    ses.schedule(this, 3, TimeUnit.SECONDS);
    public void run() {
    try {
    String bug = this.bug;
    am.executeTask();
    } catch (Exception e) {
    e.toString();
    }

    Hi,
    how should we know if the work is done in the part that you don't share? Have you debugged it to ensure the commit happens ?
    Frank

  • Application Module Release Mode and Session Cookie

    BC4J 9.0.3.3
    I have a SessionCookie and I want to find out the RELEASE_MODE of the App Mod the cookie refers to. How do I get the RELEASE_MODE of an App Mod?
    TIA,
    Eric

    Repost

  • How to change table name after creating page and application

    Hi HTMLDB Team,
    i have created a application with page where the region use master detail form with table name emp.Now after developing the page and the application i want to change the table from emp to emp2 where emp2 is the table with same structure of existing emp and same field properties.How can i edit the table as emp2 ?
    Thanks in advance,
    Cheers,
    koushik

    Koushik,
    Depending on the amount of customizations that you did, it may be easier to use the wizard to re-create the master-detail form & report.
    If you still want to give it a go:
    Assuming that you created the 2-page Master Detail report & form:
    On the first page, you will have to chage the SQL to reflect the new table name. Once you do that, you'll have to re-create the link on the EMPID column.
    On the second page, you'll need to do some more work. You'll have to change both Page Rendering Processes: Fetch Row from EMP and Get Next or Previous Primary Key. You'll then need to change the Page Processing Process: Process Row of EMP. Also, ensure that you have a proper Foreign Key relationship between EMP2 and DEPT (or your detail table).
    Thanks,
    - Scott -

  • Cisco SAMI (Cisco Service and Application Module for IP) modules

    Hi,
    Could anyone confirm whether Cisco SAMI module on 7600 supports traditional ppp over vpdn wholesale broadband?
    Currently we have setup on Cisco 7200's and we want to upgrade the hardware to 7600 to scale better, MWAM module supports the VPDN configuration but its now end of sale and replacement product is SAMI whose literature is quite confusing.
    Thanks
    Hitesh

    Try this link for more information on cards
    http://www.cisco.com/en/US/products/hw/univgate/ps501/products_white_paper0900aecd801f92c1.shtml

  • Template and application module code sharing

    Experts,
    I have a template which has some BTF as dynamic regions. Each BTF is based on one App Module. My use case is
    Login page - AppModule
    Main page
    pageFragment1 - AppModule1
    pageFragment2 - AppModule2
    Successful login takes me to Main Page with Pagefragment1 as the default region. In page Fragment 1 , i am displaying total by exposing a method from AppModulue1 (cant store this in any scope variable as i need to have a ppr from the pageFragment to the main template page).
    I want this total to be appearing on the main page also.
    How can i do this ?
    thnks
    Jdev 11.1.2.1

    Hi,
    this is only possible if the bounded task flows share the DataControl scope in which case adding the AM to the main page also shows the value you see in the bounded task flow. Alternatively, you can pass a JavaBean object defined as a managed bean in the main page to the task flow (as an input parameter), then have the bounded task flow updating the bean reference and use EL in the main page to show the value (addressing the managed bean property)
    Frank

  • (IMP)application module and DB connection issue

    Hi,
    In my BC4J application, Application module is not releasing DB connection after the execution of the JSP page. It usually takes approx 3500-4000sec. to release it. On what parameters this time is dependent??
    I am using data-source to connect to DB. Application Module configurations parameters are set with default values.
    If i select "Disconnect Application Module Upon Release" from the configuration of Application module, it releases DBconnection at the end of http Request. Is it a proper solution to the issue ? any performance related issues with it?
    My JSP code's basic structure is
    try
    <jbo:ApplicationModule id="<AM ID>" definition="<Fully qualified AM classname>" releasemode="Stateless/stateFul" />
    // application code
    catch(Exception e)
    // Code to take necessary action if exception occurs
    finally
    <jbo:ReleasePageResources appid="<AM ID>" releasemode="Stateless/StateFul"/>
    Please guide me on this.
    Thanks in advance,
    Devang

    Hi john,
    Thanks for your reply... in other way can i restrict the number of connections created for the application module By selecting the Disconnect Application Module Upon Release in application module configuration.
    If i select that check box in Appmodule-->configurations->Edit->Pooling and Scalability means, while loading my screen number of connections are increased after completion of loading a screen immediatly connections also got reduced. if i select this check box whether it will give any other problems.
    Here am using the uishell dynamic tab after opening more number of tabs am getting connection pool error.not allways.. thats why am trying to restrict the no.of connections opening.
    please can you provide some info regarding this
    Reg,
    Brahma B

  • Issue in Application Module and Enterprise Integration for SAP applications

    Hi,
    When I enabled the Application Module and Enterprise Integration for SAP applications Version 2.60 Patch 2 I am getting error in defect entity and Application Module. Does any one face this issue? Please let me know the solution.
    QC details:  QC 11.0 with patch 7
    I followed the steps given in ALM addin page to install the adapters
    Attached Screen shots of the Error

    Hi
    If you are wanting to know how to configure ESSO to be used to logon to SAP applications then there is a guide in the helpfile of the admin console. Simply do a search for SAP.
    In short ESSO-LM comes with a SAP helper object which needs to be selected on install. To enable the ESSO SAP helper to interact with SAP, the SAP server and the SAPGUI client need to be configured. The details for this are in the helpfile. If you have multiple SAP systems launched from the SAPGUI then this is the best method because it means ESSO can distinguish between the different SAP systems through matching screens
    If you have only one SAP system and you do not want to configure the SAP server then you could use send keys and not use the SAP helper object at all.
    Hope this helps

Maybe you are looking for

  • Using loopback filesystems in a cluster

    Hi, We need to share a filesystem on one of our zones to another zone on the same server. Obviously we can't use NFS so i thought lofs might be an option. The problem is is that the directory they want sharing is on a clustered filesystem as is where

  • Mac Airplay Mavericks (NOT MIRRORING)

    I've looked throught the other threads and cant find the answer I'm looking for. Just prior to installing Mavericks the Airplay icon on the top right of my menu bar gave me the option to stream my sound to airplay devices WITHOUT MIRRORING. Now to do

  • Axis securing seemingly public web services

    Hi, Their may be an obvious answer to this question, but I've done some searching and come up blank so far. I am wondering if you can restrict which domains are allowed to access the web services on your axis web application (I am running axis on tom

  • How to catch the Ctrl-V (paste) event in TextEdit UI element

    Hello Experts,                     I want to track the Ctrl-V event in the TextEdit UI element . Is there any possibility to do this . Please help . Regards Vivek

  • Is the iPad 30pin cable different from the iPod/iPhone 30pin?

    I'm just trying to figure out if I need a special 30pin cable or if it's only the 10W wall unit that the iPad requires. Thanks!