Getdbtransaction from applicationmodule

Hi
I'm trying to call pl/sql procedures from java. I know now how this is done, i have to use getDBTansaction method from the applicationModuleImpl object to get the connection object and so on... my problem now is how to get the applicationModuleImpl object having the applicationModule already? any help?
other way to help me is to tell how to get the DBTransaction object from Transaction object returned by the getTransaction method of the applicationmodule object.
thanks in advanced
Vitor

How did you solve this?
Karyn

Similar Messages

  • Error running web service enabled from ApplicationModule Service Interface

    Hi,
    I have created a web service from from ApplicationModule Service Interface and exposed a view instance update operation. When I run the service (right click on serviceimpl and run), I am getting the following error
    <BEA-101371> Error: There was a failure when processing annotations for application context. Please make sure that the annotations are valid. The error is message
    Description     There was a failure when processing annotations for application context. Please make sure that the annotations are valid. The error is message
    Cause     The descriptor has an invalid servlet-class, filter-class or listener-class
    Action     Fix the descriptors in application or the library.
    I have looked at web.xml, weblogic.xml, but couldn't figure out the issue.
    Our packaging structuring is some like this.
    Model -> Contains EO's, associations
    UIModel -> Contains AM, VO's Webservices
    UI -> Jsp, taskflows.
    But when I tried created a sample application with Model and View Controller. and a webservice in Model project, it runs OK.
    Please guide with on this issue.
    Appreciate your help in advance.
    Regards,
    Vara

    I am getting the same error. What was the solution that worked for you? Please help

  • How to get a HttpServletRequest instance from ApplicationModule ?

    All methods that I use as data actions are located in ApplModuleImpl.java. I need to get an IP address of an user using one of those methods. The problem is that I have to get an instance of HttpServletRequest (which have a getRemoteAddr() method) but I don't know how to do it from Application Module.
    Any ideas ?

    I approached a similar problem by extending the PageController and the ApplicationModule classes for the application (in the ViewController and Model projects respectively). Rather than tie the AppModule directly to the HTTP request object, I extended the PageController subclass to process the request object for specific information needed from it and communicate to the ApplicationModule as needed.
    In the extended PageController subclass, you'll have to import javax.servlet.http.HttpServletRequest and use
    HttpServletRequest request = (HttpServletRequest) context.getEnvironment().getRequest(); to get reference to the request object.
    I extended the ApplicationModule with setter methods to pass information into it from the specific PageController subclasses; the approach keeps the model layer more independent of the web-browser layer (it's not dependent on an HttpServletRequest object), and still allows the AppModule to be used with different UI technologies.
    We also needed to get the custom PageController methods invoked at the right points.
    Edited by: rpalazola on Sep 16, 2008 11:37 AM
    Edited by: rpalazola on Sep 16, 2008 11:44 AM

  • Testing ViewObject from ApplicationModule

    Hi all,
    I am trying to test the ViewObject from the ApplicationModule, but the ViewObject is null, what is the proper way to initialize it? Here is my code:
    public static void main(String[] args) {
    MyAppModuleImpl impl = new MyAppModuleImpl ();
    MyClazzViewObjectImpl vpl = new getMyClazzViewObjectImpl1();
    vpl.executeQuery(); //NULL POINTER OCCURS UPON REFERENCE TO vpl
    System.out.println(vpl.getAllRowsInRange().length);
    Can someone point me to the right direction? Thanks very much in advance.

    Thanks John for the quick response, I should of been a bit more detail in my original post. After doing a bit more digging around here is the solution I found:
    public static void main(String[] args) {
    try
    ApplicationModule am = Configuration.createRootApplicationModule("model.MyAppModule", "MyAppModuleLocal");
    System.out.println(am.getTransaction().isConnected()); //should print true.
    ViewObject vo =am.findViewObject("MyClazzView1"); //This string should correspond to the accessor definition inside your Application Module.
    vo.executeQuery();
    am.getTransaction().commit();
    Row[] rows = vo.getAllRowsInRange();
    System.out.println("Rows in range: " + rows.length); //Should print out a number if you defined your VO correctly.
    catch (Exception ex) {
    ex.printStackTrace();
    -W

  • Passing an Arraylist from ApplicationModule to Managed bean

    Hi,
    We are using the cg$errors package to stack database errors,warnings and informationals. In forms you can see them in messages and we want to see the same message in our ADF application.
    I created an pl/sql procedure that returns the messages. In my application module I have created an method that calls the pl/sql-procedure. So far so good.
          try {
             // 1. Create a JDBC PreparedStatement for
             st = getDBTransaction().createCallableStatement( "begin test_rlo.getFeedback(?,?,?);end;", 0 );
             // 2. Define out parameters
             st.registerOutParameter( 1, Types.VARCHAR );
             st.registerOutParameter( 2, Types.VARCHAR );
             st.registerOutParameter( 3, Types.VARCHAR );
             // 3. Execute the statement
             st.executeUpdate();
             // 4. Build return objectsss
             informationArray = stringToArray( st.getString( 1 ) );
             warningArray = stringToArray( st.getString( 2 ) );
             errorArray = stringToArray( st.getString( 3 ) );
             System.out.println("info : "+informationArray.size());
             System.out.println("warn : "+warningArray.size());
             System.out.println("error: "+errorArray.size());
          } catch ( SQLException e ) {
             throw new JboException( e );
          } finally {
             if ( st != null ) {
                try {
                   // 5. Close the statement
                   st.close();
                } catch ( SQLException e ) {
          }I have some trouble with the last step. Bringing the messages to my adf-page.
    I have created the method as an action in the PageDef.
        <methodAction id="getDBFeedback"
                      InstanceName="RelatieAppServiceDataControl.dataProvider"
                      DataControl="RelatieAppServiceDataControl"
                      MethodName="getDBFeedback" RequiresUpdateModel="true"
                      Action="999" IsViewObjectMethod="false">
          <NamedData NDName="informationArray"
                     NDValue="${DBFeedbackBean.informationArray}"
                     NDType="java.util.ArrayList"/>
          <NamedData NDName="warningArray" NDValue="${DBFeedbackBean.warningArray}"
                     NDType="java.util.ArrayList"/>
          <NamedData NDName="errorArray" NDValue="${DBFeedbackBean.errorArray}"
                     NDType="java.util.ArrayList"/>
        </methodAction>I created an managed-bean(DBFeedbackBean) on the request scope. In my managed-bean I defined three arraylists (warning,information and error) .
    In the constructor I execute the method action:
          DCBindingContainer bindings = getCurrentBindingContainer();
          OperationBinding operationBinding = ( OperationBinding )bindings.getOperationBinding( "getDBFeedback" );
          operationBinding.getParamsMap().put("informationArray", informationArray);
          operationBinding.getParamsMap().put("warningArray", warningArray);
          operationBinding.getParamsMap().put("errorArray", errorArray); 
          operationBinding.execute();Within the application module I can log several informationals,warnings and errors but the arrays stay empty.
    What am I missing here?
    Regards,
    Romano

    Hi,
    this is similar to what you are trying to do:
    AM Method
        public String[] syncBudgetAmounts(Double allocationId){
            getDBTransaction().commit();     
            String result = new String();
            String message = new String();
            try  {
                String sql = "call plus_budget.sync_budget_amounts(?,?,?,?)";
                CallableStatement stmt = getDBTransaction().createCallableStatement(sql, 0);
                stmt = getDBTransaction().createCallableStatement(sql, 0);
                stmt.setDouble(1, allocationId);
                stmt.setString(2, getUserName());
                stmt.registerOutParameter(3,Types.VARCHAR);
                stmt.registerOutParameter(4,Types.VARCHAR);
                stmt.execute();
                result = stmt.getString(3);
                message = stmt.getString(4);
                stmt.close();
                getBudgetAllocationsView1().executeQuery();
            } catch (Exception ex)  {
                result = "Error";
                message = ex.getMessage();
                ex.printStackTrace();
            return new String[]{result, message};
        }pageDef:
    <methodAction id="syncBudgetAmounts"
                      InstanceName="BudgetAdminServiceDataControl.dataProvider"
                      DataControl="BudgetAdminServiceDataControl"
                      MethodName="syncBudgetAmounts" RequiresUpdateModel="true"
                      Action="999" IsViewObjectMethod="false"
                      ReturnName="BudgetAdminServiceDataControl.methodResults.BudgetAdminServiceDataControl_dataProvider_syncBudgetAmounts_result">
            <NamedData NDName="allocationId" NDValue="#{row.AllocationId}" NDType="java.lang.Double"/>
        </methodAction>Page:
    <afh:rowLayout rendered="#{bindings.syncBudgetAmounts.result[0] != null}"
                                 width="90%">
                    <afh:cellFormat halign="right">
                      <af:objectImage source="/images/info_lh.gif"
                                      inlineStyle="vertical-align:middle; margin:1.0pt;"
                                      rendered="#{bindings.syncBudgetAmounts.result[0] == 'Success'}"/>
                      <af:objectIcon name="error"
                                     rendered="#{bindings.syncBudgetAmounts.result[0] == 'Error'}"/>
                      <af:objectSpacer width="5" height="10"/>
                      <af:outputText value="#{bindings.syncBudgetAmounts.result[0]} : #{bindings.syncBudgetAmounts.result[1]}"
                                     styleClass="x3s"
                                     inlineStyle="font-size:smaller;"/>
                    </afh:cellFormat>
                  </afh:rowLayout>Brenden

  • Utl_http package from our custom pl/sql package.

    We have a requirement to invoke a thrid party Url that uses HTTPS. For this we are using the call to utl_http package from our custom pl/sql package. When we invoke the custom package form Oracle Forms it works fine. But when we try to invoke the same from ApplicationModule Class in our custom OA Framework form we get the following error.
    ORA-29273: HTTP request failed
    ORA-06512: at "SYS.UTL_HTTP", line 1577
    ORA-28862: SSL connection failed

    Duplicate post.
    ApplicationModule class in a custom OA Framework
    ApplicationModule class in a custom OA Framework

  • Java.lang.ClassCastException problem with ApplicationModuleImpl

    Hi, to whom this may be familiar:
    This is from a oracle.adf.controller.struts.actions.DataAction class:
    public class SwitchDAAction extends DataAction
      protected void findForward(DataActionContext actionContext) throws Exception
        super.findForward(actionContext);
        ZBModuleImpl svc = (ZBModuleImpl) actionContext.getBindingContext().findDataControl("ZBModuleDataControl").getDataProvider();
        BillViewImpl oneUser = svc.getBillView1();
    ...ZBModuleImpl is an application module which extends oracle.lbo.server.ApplicationModuleImpl.
    As the last statement indicates, the purpose is to obtain an instance of a view object that is already in the application.
    There is no error at compilation. However, when the application runs, the embedded oc4j gives an error:
    WARNING: Unhandled Exception thrown: class java.lang.ClassCastExceptionand in the browser the first line in the "500 Internal Server Error", shown below, pin-points to the line of code that cast Object to ZBModuleImpl:
    at zb.view.SwitchDAAction.findForward(SwitchDAAction.java:18)I broke up the line into multiple lines to see where exactly the problem is:
    public class SwitchDAAction extends DataAction
      protected void findForward(DataActionContext actionContext) throws Exception
        super.findForward(actionContext);
        BindingContext bdCtx = actionContext.getBindingContext();
        DCDataControl dc = bdCtx.findDataControl("ZBModuleDataControl");
        Object dpd = dc.getDataProvider();
        ZBModuleImpl svc = (ZBModuleImpl) dpd;
        BillViewImpl oneUser = svc.getBillView1();
    ...The error messages always point to that line that does data type casting.
    What is the problem and what can be done to fix it? (I am using JDeveloper 10.1.2.0.0).
    Thanks for your help!
    Newman

    Hi, Valery and Anton:
    Sorry I did not mention the version of Jdev I am using in my last posting. It is 10.1.2. It is so precious someone around still know the older versions.
    Anton, since mine is an older version, I tried to set the custom properties. The name of my application is ZB and the name of the application module is ZBModuleImpl. The name of the view object I am trying to get an instance of is BillViewimpl.
    In the Application Module Editor for ZBModule, at the Custom Properties node, there are names for three properties in the drop-down list: DESCRIPTION, FILE_NAME, DATA_CONTROL_NAME. Not knowing what they are and what they are for, I tried to add two name/value pairs: DESCRIPTION/ZB and DATA_CONTROL_NAME/ZBModuleDataControl. And for the last method on the problem line of code I tried both getDataProvider() and getApplicationModule(), in the following combinations, and none of them work out:
                                                   getDataProvider()     getApplicationModule()
    DESCRIPTION/ZB (only)                                   X                       X
    DATA_CONTROL_NAME/ZBModuleDataControl (only)            X                       X
    (both)                                                  X                       XPlease correct me where I did wrong. I wonder what oracle.jbo.common.ws.WSApplicationModuleImpl is. I even tried
    BillViewImpl oneUser = (ZBModuleImpl) actionContext.getBindingContext().findDataControl("ZBModuleDataControl").getApplicationModule().findApplicationModule("ZBModuleImpl");
    and
    BillViewImpl oneUser = ((ZBModuleImpl) actionContext.getBindingContext().findDataControl("ZBModuleDataControl").getApplicationModule()getApplicationModule()).findViewObject("BillViewImpl");But the problem is always with the typecasting from ApplicationModule to ZBModuleImpl. Is there anything that WSApplicationModuleImpl can do to help out?
    Thanks a lot for your help!
    Newman

  • Row insertion problem

    Hi Team,
    I want to show a table in UI wherein headernames and data are dynamic. I have a requirement like i will have one resultset wherein one of the rows i will have table headers and in some other rows i have data for the columnheaders. So from ApplicationModule impl class i used one method and prepared resultset...then i had taken 2 lists one for adding headernames and data in another List. Next i had created one viewObject not based on any entities....in the same method in Appl Mod impl class i had written below code for inserting the data to VO
    ViewObject vo = this.getSampleViewObj1();
    Row last = vo.last ();
    NameValuePairs nvps = new NameValuePairs ();
         if (vo != null){
    vo.addDynamicAttribute(headerlist.get(i).toString().replace(" ", ""));
         for(int z=0;z<headerlist.size();z++){
    nvps.setAttribute (headerlist.get(z).toString(), ColumnList.get(z));
    vo.insertRow (vo.createAndInitRow (nvps));
         getTransaction ().commit ();
    With this i am able to get the headernames in UI but i was getting empty data for the columns....even tried adding hardcoded values like nvps.setAttribute (headerlist.get(z).toString(), "10"); Still i am getting empty data with headernames showing up...So please suggest if i missed anything.
    Thanks in Advance for your Help....

    We can skip EO if we dont need edit feature...here i created VO at Design time not based on any enities and in Appl Mod impl class i had written code to get instance and trying to add attributes and then values to it. Headernames are showing up with no issues but when trying to set values i am getting empty rows...

  • Access Application Module by SessionCookie

    Hi!
    I have created ApplicationModule in Model project of FusionWebApplication. The ApplicationModule is statefull and is successfully used in adf web page (defined in ViewController project).
    I have configured ADF Security over Fusion Web Application, so WebService cannot be accessed without providing security credentials os SessionCookie.
    In ViewController project I have created WebServicee base od POJO class. Inside its implementation method I want to access data via ApplicationModule.
    This can be done by writing this code:
    ApplicationModule am = Configuration.createRootApplicationModule("com.oracle.apps.hr.personnel.HiringModule",  "HiringModuleLocal");
    I have configured ADF Security over Fusion Web Application, so WebService cannot be accessed without providing security credentials os SessionCookie (I cannot access webservice with SessionCookie if it is defined in Model, so creating web service from ApplicationModule is out of option).
    Now my question is: I have read that ADF WebPage finds appropriate ApplicationModule of some user via DataBinding layer by SessionCookie. Is it possible to somehow simulate this way programatically - to somehow tell Configuration class to find/Create ApplicationModule via SessionCookie?
    Currently I am using Soap webservice, but we are planning to use REST the same way - define access point in ViewController and invoke ApplicationModule via Configuration class.
    Thnaks for help!

    Yvonne,
    I am using JDev 10.1.3.3.0.4157 (build 4157 I guess)
    Yes, createRootApplicationModule is called from the doGet method in my servlet.
    I have this running for a few days now and everything seems to work ok.
    But it doesn’t sit right with me that I have to use a configuration with no security.
    I also noticed the application Module tester does not work with jazn security.
    It gives around the same error:
    oracle.jbo.JboException: JBO-29000: Unexpected exception caught:
    oracle.jbo.JboException, msg=JBO-33021: Failed authenticate user testAlthough this seems to catch atleast the username, which is something I didn’t get.
    Anton

  • BC4J - How can I get java.sql.Connection ?

    Hi,
    I am using BC4J for my Application and want to get the java.sql.Connection from ApplicationModule or from anywhere such that I can use the same connection as in ApplicaitonModule, to do some work in the database.
    I tried to get it from the SessionInfo :
    sessioninfo.getConnectionInfo();
    but this returns me oracle.dacf.dataset.connections.Connection
    How can I convert this to java.sql.Connection?
    Or Is there any other means to get hold of sql.Connection?
    Any help would be appreciated.
    TIA

    Thanks for this reply.. but
    I need java.sql.Connection to call a stored procedure in Oracle database and I have to pass oracle.sql.ARRAY to it.
    My Stored Procedure looks like:
    create or replace PROCEDURE updateRevenueNetworkInfo(revid varchar2, netids Varchar32Array)
    where 'Varchar32Array' is my own datatype in the database which is mapped to oracle.sql.ARRAY object in java.
    And in order to create oracle.sql.ARRAY I need java.sql.Connection as shown below
    oracle.sql.ARRAY pTable = new oracle.sql.ARRAY(desc, connection, netidarray);
    I am executing my stored procedure like this:
    ArrayDescriptor desc = null; CallableStatement cs = null;
    String[] netidarray = {"00-AOL-T1-N003"};
    desc = ArrayDescriptor.createDescriptor("VARCHAR32ARRAY", conn);
    oracle.sql.ARRAY pTable = new ARRAY(desc, connection, netidarray);
    cs = conn.prepareCall( "BEGIN updaterevenuenetworkinfo(?,?); END;" );
    ((OracleCallableStatement)cs).setString(1,"00-AOL-T1-R3");
    ((OracleCallableStatement)cs).setArray(2, pTable);
    cs.execute();
    Is there any way of getting java.sql.Connection such that I can use the same connection as in the ApplicationModule?
    OR Is there any other way of passing Array of Strings to a stored procedure in the database?
    Thanks for the help.
    null

  • Changing database (login screen) in 10.1.3 Jclient ADF

    I have heard that in Jdev 10.1.3 there will be working login screen, but it is made exactly like in 10.1.2.
    During creating fe master-detail form, You can set in wizard to create login screen, but this is only simple user/pass panel. If You want to change database during runtime it is not that simple. Everything is taken from applicationModule. There is an example (made by Frank) how to build login screen (using database list from file). Is there an example how to build complete login screen with database, sid, log, pass... ?
    thx,
    Jacek

    Hi Frank,
    I have a related question could you take a look at following thread:
    Setting v$session.program property in application module config
    I would like to have a identifier of the application in the v$session.view/table
    For the first JClient login it works but when a new application module instance is opened the v$session.program is empty?
    Is there global solution for all application modules no matter the application (Web/JClient/...), another identifier field is ok.
    Thanks
    Fred

  • JDev ADF Faces and XML publisher integration

    Hi,
    I have an ADF Faces / BC project which I want to integrate XML Publisher for reporting and output purposes.
    Following this note by Deepak Vohra http://www.oracle.com/technology/pub/articles/vohra-jdev-xmlpub.html (which was incredibly helpful by the way)
    So far it's looking very promising but I have a few unknowns with the design.
    1. The database connection.
    In the examples a JDBC connection is opened (and actually forgotten to be closed!). I would like to utilise the AM pooling mechanisim rather than a seperate open/close situation. How do i properly reference/use the pooled AM java.sql.Connection?
    2. Output
    The examples write the PDF (what i am using) to the file system. Is it possible to write this to the browser response stream using a JSP or servlet? My preference is NOT to produce PDF's on the middle tier file system if possible. Need some guidance here.
    thanks and regards,
    Brenden

    1. The database connection.
    In the examples a JDBC connection is opened (and actually forgotten to be closed!). I would like to utilise the AM pooling mechanisim rather than a seperate open/close situation. How do i properly reference/use the pooled AM java.sql.Connection?
    To obtain JDBC connection from ApplicationModule refer
    http://radio.weblogs.com/0118231/2004/01/30.html#a232
    2. Output
    The examples write the PDF (what i am using) to the file system. Is it possible to write this to the browser response stream using a JSP or servlet? My preference is NOT to produce PDF's on the middle tier file system if possible. Need some guidance here.
    Output may be set to an OutputStream with the FOProcessor method
    setOutput(java.io.OutputStream stream)

  • JBO-33001

    Dear All
    i am facing a problem " JBO-33001: Configuration file /common/bc4j.xcfg is not found in the classpath"
    and let me inform you with all details
    i am new in JDeveloper , and i finished a small form based on Database Table in Dat_Model Project and JSF Form in Interface project , and it is work well
    i tried to make Jar File under Data_Model Project to cusomize query Criteria and Jar File contains the following
    package ORACLE;
    import oracle.jbo.server.ViewObjectImpl;
    import oracle.jbo.ApplicationModule;
    import oracle.jbo.client.Configuration;
    import oracle.jbo.ViewObject;
    import oracle.jbo.ViewCriteria;
    import oracle.jbo.ViewCriteriaRow;
    import oracle.jbo.Row;
    import oracle.jbo.RowSet;
    import oracle.jbo.domain.Number;
    // --- Customize By Oracle ITself
    public class employee_class {
    public static void main(String[] arg) {
    String def = "TEST";
    String name = "employee_view";
    ApplicationModule app_module =
    Configuration.createRootApplicationModule(def, name);
    ViewObject employee = app_module.findViewObject("employee_view");
    String where_clause = "emp_id = 1";
    employee.setWhereClause(null);
    employee.setWhereClause(where_clause);
    employee.executeQuery();
    int counter = (int)employee.getEstimatedRowCount();
    System.out.println("View Counter is :\t" + counter);
    --problem come from
    ApplicationModule app_module =
    Configuration.createRootApplicationModule(def, name);
    and the error is
    Exception in thread "main" oracle.jbo.ConfigException: JBO-33001: Configuration file /common/bc4j.xcfg is not found in the classpath.
    *     at oracle.jbo.client.Configuration.loadFromClassPath(Configuration.java:429)*
    *     at oracle.jbo.common.ampool.PoolMgr.createPool(PoolMgr.java:323)*
    *     at oracle.jbo.common.ampool.PoolMgr.findPool(PoolMgr.java:587)*
    *     at oracle.jbo.client.Configuration.createRootApplicationModule(Configuration.java:1393)*
    *     at oracle.jbo.client.Configuration.createRootApplicationModule(Configuration.java:1370)*
    *     at ORACLE.employee_class.main(employee_class.java:22)*
    Process exited with exit code 1.
    please i need to know what is the problem ?
    Many Thanks

    I don't understand what you try to do :-(
    If you want to customize view criteria you can do this declarative using the VO editor. Open the VO, select Query and add you criteria under 'View Criteria'.
    No need to set up jar and change the where clause (which by the way is not view criteria at all).
    I advice you to avoid createRootApplicationModule. You are not familiar with the framework right now and you'll run in all kind of trouble if you start with stuff like this.
    Look up the 'Fusion Developer's Guide for Oracle ADF' and read chapter 'Building Your Business Services'.
    Timo

  • ADF BC4J, Inserting row!

    Hello.
    I would like to insert ONE row to database using BC4J & ADF.
    One example i've tried. I'm calling everything from ApplicationModule implementation
    this.getApplicationhistoryView1().createRow();
    - InvalidOwnerException
    Can someone PLEASE give me simple example how to insert one row to database using my own specified values.
    Database is Oracle 9i
    JDeveloper 9.0.5.2
    PLEASE :)
    // Jari Timonen

    06/03/17 14:55:20 [944] OracleSQLBuilder Executing Select on: APPLICATION (false)
    06/03/17 14:55:20 [945] Built select: 'SELECT APPLICATIONID, APPLICATIONTYPEID, FORMTYPEID, APPLICANT_APPLICANTID, AUTHENTICATIONTYPEID, BRANCHID, REPLICATED FROM APPLICATION Application'
    06/03/17 14:55:20 [946] Executing FAULT-IN...SELECT APPLICATIONID, APPLICATIONTYPEID, FORMTYPEID, APPLICANT_APPLICANTID, AUTHENTICATIONTYPEID, BRANCHID, REPLICATED FROM APPLICATION Application WHERE APPLICATIONID=:1
    06/03/17 14:55:20 [947] OracleSQLBuilder Executing Select on: APPLICATION (false)
    06/03/17 14:55:20 [948] Reusing prepared FAULT-IN statement
    06/03/17 14:55:20 [949] CardapplicationViewView1 notify ROLLBACK ...
    06/03/17 14:55:20 [950] Clearing VO cache for CardapplicationViewView1
    06/03/17 14:55:20 [951] Clear QueryCollection in cache for VO CardapplicationViewView1
    06/03/17 14:55:20 [952] ValidMonths1 notify ROLLBACK ...
    06/03/17 14:55:20 [953] Clearing VO cache for ValidMonths1
    06/03/17 14:55:20 [954] Clear QueryCollection in cache for VO ValidMonths1
    06/03/17 14:55:20 [955] ApplicationhistoryView1 notify ROLLBACK ...
    06/03/17 14:55:20 [956] Clearing VO cache for ApplicationhistoryView1
    06/03/17 14:55:20 [957] Clear QueryCollection in cache for VO ApplicationhistoryView1
    06/03/17 14:55:20 [958] CardApplicationArchived1 notify ROLLBACK ...
    06/03/17 14:55:20 [959] Clearing VO cache for CardApplicationArchived1
    06/03/17 14:55:20 [960] Clear QueryCollection in cache for VO CardApplicationArchived1
    06/03/17 14:55:20 [961] Clearing EO cache for com.mydomain.portal.applications.cardapplication.model.Application
    06/03/17 14:55:20 [962] Clearing VO cache for ApplicationView1
    06/03/17 14:55:20 [963] Clear QueryCollection in cache for VO ApplicationView1
    06/03/17 14:55:20 [964] Clearing VO cache for ApplicationView2
    06/03/17 14:55:20 [965] Clear QueryCollection in cache for VO ApplicationView2
    06/03/17 14:55:20 [966] Clearing VO cache for ApplicationView3
    06/03/17 14:55:20 [967] Clear QueryCollection in cache for VO ApplicationView3
    06/03/17 14:55:20 [968] Clearing VO cache for ApplicationView4
    06/03/17 14:55:20 [969] Clear QueryCollection in cache for VO ApplicationView4
    06/03/17 14:55:20 [970] Clearing VO cache for ApplicationView5
    06/03/17 14:55:20 [971] Clear QueryCollection in cache for VO ApplicationView5
    06/03/17 14:55:20 [972] Clearing EO cache for com.mydomain.portal.applications.cardapplication.model.Applicationhistory
    06/03/17 14:55:20 [973] Clearing VO cache for ApplicationhistoryView1
    06/03/17 14:55:20 [974] Clear QueryCollection in cache for VO ApplicationhistoryView1
    06/03/17 14:55:20 [975] Clearing VO cache for ApplicationhistoryView2
    06/03/17 14:55:20 [976] Clear QueryCollection in cache for VO ApplicationhistoryView2
    06/03/17 14:55:20 [977] Clearing VO cache for ApplicationhistoryView3
    06/03/17 14:55:20 [978] Clear QueryCollection in cache for VO ApplicationhistoryView3
    oracle.jbo.InvalidOwnerException: JBO-25030: Failed to find or invalidate owning entity.
         at oracle.jbo.server.EntityImpl.internalCreate(EntityImpl.java:513)
         at oracle.jbo.server.EntityImpl.create(EntityImpl.java:377)
         at com.mydomain.portal.applications.cardapplication.model.ApplicationhistoryImpl.create(ApplicationhistoryImpl.java:264)
         at oracle.jbo.server.EntityImpl.callCreate(EntityImpl.java:395)
         at oracle.jbo.server.ViewRowStorage.create(ViewRowStorage.java:834)
         at oracle.jbo.server.ViewRowImpl.create(ViewRowImpl.java:335)
         at oracle.jbo.server.ViewRowImpl.callCreate(ViewRowImpl.java:352)
         at oracle.jbo.server.ViewObjectImpl.createInstance(ViewObjectImpl.java:2411)
         at oracle.jbo.server.QueryCollection.createRowWithEntities(QueryCollection.java:899)
         at oracle.jbo.server.ViewRowSetImpl.createRowWithEntities(ViewRowSetImpl.java:1626)
         at oracle.jbo.server.ViewRowSetImpl.doCreateAndInitRow(ViewRowSetImpl.java:1670)
    06/03/17 14:55:20 [979] Clearing EO cache for com.mydomain.portal.applications.cardapplication.model.CardapplicationView
    06/03/17 14:55:20 [980] Clearing VO cache for CardapplicationViewView1
    06/03/17 14:55:20 [981] Clear QueryCollection in cache for VO CardapplicationViewView1
    06/03/17 14:55:20 [982] Clearing VO cache for CardApplicationArchived1
    06/03/17 14:55:20 [983] Clear QueryCollection in cache for VO CardApplicationArchived1
    06/03/17 14:55:20 [984] Clearing VO cache for ValidMonths1
    06/03/17 14:55:20 [985] Clear QueryCollection in cache for VO ValidMonths1
         at oracle.jbo.server.ViewRowSetImpl.createAndInitRow(ViewRowSetImpl.java:1634)
         at oracle.jbo.server.ViewObjectImpl.createAndInitRow(ViewObjectImpl.java:5923)
         at com.mydomain.portal.applications.cardapplication.model.CardAppModuleImpl.setArchive(CardAppModuleImpl.java:101)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java)
         at oracle.jbo.server.remote.AbstractRemoteApplicationModuleImpl.dispatchMethod(AbstractRemoteApplicationModuleImpl.java:5001)
         at oracle.jbo.server.remote.AbstractRemoteApplicationModuleImpl.executeMethod(AbstractRemoteApplicationModuleImpl.java:5220)
         at oracle.jbo.server.remote.AbstractRemoteApplicationModuleImpl.processSvcMsgRequest(AbstractRemoteApplicationModuleImpl.java:3597)
         at oracle.jbo.server.remote.AbstractRemoteApplicationModuleImpl.processSvcMsgEntries(AbstractRemoteApplicationModuleImpl.java:3814)
         at oracle.jbo.server.remote.AbstractRemoteApplicationModuleImpl.readServiceMessage(AbstractRemoteApplicationModuleImpl.java)
         at oracle.jbo.server.remote.AbstractRemoteApplicationModuleImpl.processMessage(AbstractRemoteApplicationModuleImpl.java:1705)
         at oracle.jbo.server.ApplicationModuleImpl.doMessage(ApplicationModuleImpl.java:6424)
         at oracle.jbo.server.remote.AbstractRemoteApplicationModuleImpl.sync(AbstractRemoteApplicationModuleImpl.java)
         at oracle.jbo.server.remote.colo.ServerApplicationModuleImpl.doMessage(ServerApplicationModuleImpl.java:245)
         at oracle.jbo.common.colo.ColoApplicationModuleImpl.doMessage(ColoApplicationModuleImpl.java:102)
         at oracle.jbo.client.remote.ApplicationModuleImpl.doMessage(ApplicationModuleImpl.java:5804)
         at oracle.jbo.client.remote.PooledRequestHandler.doMessage(PooledRequestHandler.java:78)
         at oracle.jbo.client.remote.ApplicationModuleImpl.doMessage(ApplicationModuleImpl.java)
         at oracle.jbo.client.remote.ApplicationModuleImpl.sendServiceMessage(ApplicationModuleImpl.java)
         at oracle.jbo.client.remote.ApplicationModuleImpl.sendServiceMessage(ApplicationModuleImpl.java:1043)
         at oracle.jbo.client.remote.ApplicationModuleImpl.sendWorkingSetRequests(ApplicationModuleImpl.java:3300)
         at oracle.jbo.common.ws.WSApplicationModuleImpl.sendRequests(WSApplicationModuleImpl.java:824)
         at oracle.jbo.client.remote.ApplicationModuleImpl.sendRequest(ApplicationModuleImpl.java:1077)
         at oracle.jbo.client.remote.ApplicationModuleImpl.riInvokeExportedMethod(ApplicationModuleImpl.java:5832)
         at oracle.jbo.client.remote.ApplicationModuleImpl.invokeMethod(ApplicationModuleImpl.java:5969)
         at oracle.jbo.common.ws.WSApplicationModuleImpl.doInvokeExportedMethod(WSApplicationModuleImpl.java:1891)
         at oracle.jbo.common.ws.WSApplicationModuleImpl.invokeExportedMethod(WSApplicationModuleImpl.java:1879)
         at oracle.jbo.common.ws.WSProxy.invoke(WSProxy.java:121)
         at $Proxy0.setArchive(Unknown Source)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java)
         at oracle.adf.model.binding.DCInvokeMethodDef.invokeMethod(DCInvokeMethodDef.java:275)
         at oracle.adf.model.binding.DCDataControl.invokeMethod(DCDataControl.java:1548)
         at oracle.adf.model.binding.DCInvokeMethodDef.callMethod(DCInvokeMethodDef.java:169)
         at oracle.jbo.uicli.binding.JUCtrlActionBinding.doIt(JUCtrlActionBinding.java:886)
         at oracle.adf.controller.struts.actions.StrutsPageLifecycle.invokeCustomMethod(StrutsPageLifecycle.java:323)
         at oracle.adf.controller.struts.actions.DataAction.invokeCustomMethod(DataAction.java:363)
         at oracle.adf.controller.struts.actions.DataAction.invokeCustomMethod(DataAction.java:552)
         at oracle.adf.controller.lifecycle.PageLifecycle.handleLifecycle(PageLifecycle.java:122)
         at oracle.adf.controller.struts.actions.DataAction.handleLifecycle(DataAction.java:233)
         at oracle.adf.controller.struts.actions.DataAction.execute(DataAction.java:163)
         at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
         at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
         at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1485)
         at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:527)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
         at oracle.security.jazn.oc4j.JAZNFilter.doFilter(Unknown Source)
         at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:16)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:228)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:600)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:317)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
         at java.lang.Thread.run(Thread.java:534)

  • Changing the releasemode

    Hello,
    I call the <jbo:ApplicationModule> tag with Stateful release mode. But after successful completion of the jsp I want to release in Stateless mode because I know that there is no pending state. I want to release in Stateful mode in case of error, when the output is redirected to errorpage, because I don't want to lose pending state in this case:
    I have the following JSP:
    <jbo:ApplicationModule id="MyModule" releasemode="Stateful"/>
    <jbo:ReleasePageResources releasemode='Stateless' />But the app. module is released in Stateful mode in this case. So I've removed the releasemode attribute from ApplicationModule tag and it works, after error it is released in Stateful mode and after commit in stateless mode. But the documentation says that releasemode attribute for <jbo:RPR> is for backward compatibility only. Will this feature be removed in the future or can I safely use it?
    Thank you in advance
    Viliam

    Hi,
    We use only Stateful release modes for application modules, defined in the action mappings in struts-config.xml exactly the same way as in your example. Stateful mode releases the module instance back to the pool and it can be reused by other sessions as well. However, all the code that uses the app modules and view objects, etc, must be written with the assumption that the module or the view object the code is operating on can be a different instance from the one in the previous request in the same session.
    The concept of BC4J is that this recycling of modules should be transparent for the users of the app modules, but this is not exactly the case. Some things are not passivated in the am's snapshots and are not activated in case of recycling, for example, custom view object properties or entries in the userData map (or at least were not in 9.0.5, I doubt this is changed in 10.1.2.) These are things that you have to manually passivate and activate if you use them to store some information that is relevant to a particular user session.
    All chances are that these strange things that you experience only occur in sessions that use recycled application modules, that is, there was passivation and subsequent activation of vo and am states. I have found it useful as a minimum to test the application with only 1 application module in the pool and at least 2 user sessions, constantly recycling this one am instance. Many of the problems that will surface in a real application usage only when there is a high load can be experienced in this artificial setup.

Maybe you are looking for

  • Save for web return an unknown error!! Please help

    Whenever I press "save" on the save for web GUI this comes up. http://prntscr.com/4gpseu I really don't know what to do. I need to save a small animation (3 frames) as a gif. I'm on Windows 7 32 bit with Photoshop CC 2014.

  • I need y'all help once more! Custom coding.

    I am trying to figure out a way to custom code a input text box with a button to move into different frames. Example: When i input 1 goes to frame 2 Input 2 frame 3 input 3 frame 4 input 4 frame 5 input 5 frame 2 Basically having multiple different i

  • .mpg to .mov conversion using QT. no audio!

    i noticed that .mpg videos played from itunes stutter a lot and the play back is not smooth. whereas the .mov ones play fine. so i decided to convert my .mpg video collection to .mov. but, while .mpg videos have proper audio, the converted ones dont

  • New Computer - Adobe Acrobat XI Pro

    I had to purchase a new computer and still have the original disc and reg# . Is there a process to transfer the software to new computer without paying full price for new software? Its Adobe Acrobat XI Pro for Windows.

  • Question mark key does not work..... starnge

    right, every key but the question mark seems to be working fine. One thing I know, this is an internal malfunction. I connected another keyboard via usb and the same problem persists. Anyone experience this weirdness before(question mark) eg p.s. eve