About application module client class

I wonder what a class such as appModuleClient.java is used for?

Hi,
this is used to expose interfaces of the methods exposed by the ApplicationModule to the application client. So this class basically contains signatures of all methods that you select as client methods in teh AM
Frank

Similar Messages

  • Access an Application Module Client Interface in a JSF Web Application

    How to Access an Application Module Client Interface in a JSF Web Application
    I use this code but class ValueBinding is deprecated in JDeveloper11g
    FacesContext fc=FacesContext.getCurrentInstance();
    ValueBinding vb=fc.getApplication().createValueBinding("#{data}");
    BindingContext bc=(BindingContext)vb.getValue(fc);
    DCDataControl dc=bc.findDataControl("SRServiceDataControl");
    ApplicationModule am=(ApplicationModule)dc.getDataProvider();

    user581394,
    JDeveloper 11 and the introduction of ADF Faces RC introduces a new dependency, which is JSF 1.2. The createValueBinding on the FacesContext object is deprecated in JSF 1.2. To resolve an expression in JSF 1.2 use the following method or something similar.
        public static Object resolveExpression(String expression) {
            FacesContext facesContext = getFacesContext();
            Application app = facesContext.getApplication();
            ExpressionFactory elFactory = app.getExpressionFactory();
            ELContext elContext = facesContext.getELContext();
            ValueExpression valueExp =
                elFactory.createValueExpression(elContext, expression,
                                                Object.class);
            return valueExp.getValue(elContext);
        }--RiC                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Non-void return type for Application Module Clients Interface

    Hello, can anyone guide me on how will I solve my problem.
    first of all, I'm using JDeveloper 10.1.3, I use JSF, ADF Faces, ADF Model, ADF Business Components.
    I made a web page that has a Transactional Capabilities, all is going smoothly, all data's can be saved to oracle database. I created a Custom Method in my Application Module and can be used in Clients Interface, that method is for saving data's to database.
    My problem is I dont know how to create a custom method that returns a value in my Application Module. Which means if I set it to non-void return type, it is not visible to Client Interface. If you're going to ask me why I need it to return a value? Well since that method is for saving data's, if there's an Error Occured, I can return the Error Message and show it to my user interface.
    Please help. thanks

    If you want to return your own type then simply define it as serializable and you will find that it will appear in the Client Interface dialog of your AM.
    eg, you could return this type from your application module to progagate a meaningful message to your UI:
    package com.delexian.model;
    import java.io.Serializable;
    public class MyMessage implements Serializable {
        private String _severity;
        private String _message;
        public MyMessage() {
        public void setSeverity(String severity) {
            this._severity = severity;
        public String getSeverity() {
            return _severity;
        public void setMessage(String message) {
            this._message = message;
        public String getMessage() {
            return _message;
    }regards,
    Brenden

  • Important conceptual question about Application Module, Maximum Pool Size

    Hello everyone,
    We have a critical question about the Application Module default settings (taking the DB connections from a DataSource)
    I know that on the Web it is generally suggested that each request must end with either a commit or rollback when executing PL/SQL blocks "directly" on the DB without the framework BC/ViewObject/Entity service intervention.
    Now, for some reasons, we started to develop our applications with thinking that each Web Session would reference exactly one DB session (opened by any instance taken from the AM pool) for the whole duration of the session, so that the changes made by each Web session to its DB session would never interfere with the changes made by "other" Web Sessions to "other" DB sessions .
    In other words, because of that convincement we often implemented sort of "transactions" that open and close (with either commit or rollback) each DB session not in/after a single HTTP request, but during many HTTP Requests.
    As a concrete example think of this scenario:
    1. the user presses the "Insert" button. An HTTP request is fired. The action listener is executed and ends up with inserting rows in a table via a PL SQL block (not via the ViewObjects API).
    2. no commit or rollback after the above PL/SQL block is done yet.
    3. finally the user presses a "Commit" or "Rollback" button, firing the call to the appropriate AM methos.
    Those three requests consist of what I called "transaction".
    From the documentation it's clear that there is no guarantee that the couple AM istance + DB session is the same during all the requests.
    This means that, during step 2, it's possible that another user might reference the same "pending" AM/DbSession for his needs and "steal" somehow the work done via PL/SQL after step 1. (This happens because sessions taken by the pool are always rolled back by default.)
    Now my question is:
    Suppose we set the "Maximum Pool Size" parameter to very a great number (always inferior to the maximum number of concurrent users):
    Is there any guarantee that all the requests will be isolated in that case?
    I hope the problem is clear.
    Let me know if you want more details.

    Thanks for the answers.
    If I am right, from all your answers about resource avaiability, this means that even supposing the framework is able to always give us the same AM instance back from the AM pool (by following the session-affinity criterias), there is, however, no "connection affinity" with the connections from the DataSource. This means that the "same AM instance" might take the "a new DB connection", if necessary, from the connection pool of the DataSource. If that happens, that could give us the same problems as taking "a new AM instance" (that is, not following session-affinity) from the beginning, since each time an a new connection is taken (either via a new AM instance or via the same AM instance plus a new DB connection), the corresponding DB session is rolle back by default, clearing all the pending transactions we might have performed before with direct PL/SQL calls bypassing the AM services during the life cycle of our application, so that the new HTTP request will have a clean DB session to start to work with.

  • Beginner: about Application Modules

    I am learning ADF, I have developed some small apps using JSPs/Servlets before.
    To get an understanding of how the framework works, and to learn 'best practice(s)', I first describe how I did things before:
    When developing my JSPs/Servlets I used the DAO pattern.
    For example: I have addresses and complaints in my database. I created a Address class and an AddressDAO class, plus an Complaint class and a ComplaintDAO class.
    Inside the DAO's I use a ConnectionManager for getting a (pooled/non pooled) Connection, and using JDBC I access the DB.
    Note the separation: there a two DAO's, each focused on a part of the total application.
    I do not use Hibernate (or other). I do not buffer data.
    Now my questions:
    - can I compare an ADF AM to a DAO?
    - is it better to create 1 Model project, having several Application Modules and VOs (each in their own package) OR create several specific Model projects?
    - when I use (instantiate) an AM based on a VO and read records from DB, I see (a lot) of instances are created in the VM.
    Is the AM stored in the Session? (and if so: as a singleton?)
    Are the VO instances (records from DB) kept in AM?
    Are these VO instances ever(automatically) released to prevent to much data in memory?
    Thanks so far!
    grts Stephan

    Hi,
    Now my questions:
    - can I compare an ADF AM to a DAO?You could probably compare it with VO or EO.
    - is it better to create 1 Model project, having several Application Modules and VOs (each in their own package) OR create several specific Model projects?Depends on usage. If you have multiple View projects and not every one of them uses all the models, then split them up into different model projects and use whichever is needed (adf library jars).
    - when I use (instantiate) an AM based on a VO and read records from DB, I see (a lot) of instances are created in the VM.Well, a correction here. AMs are data modeled based on single/multiple VOs. And, could you make it clear on lots of instances "of what" are created in the VM?
    Is the AM stored in the Session? (and if so: as a singleton?)This blog would be a worth a read : https://blogs.oracle.com/jdevotnharvest/entry/recommended_number_and_size_of_application_modules
    Are the VO instances (records from DB) kept in AM?AM is a container. VO comes under them. When a particular VO in a AM is executed, the data from DB are queried and fetched to it.
    Are these VO instances ever(automatically) released to prevent to much data in memory?In theory yes.
    -Arun

  • About application module

    Hi,
    I want to call executeWithParams method in one of application modules view object..
    what is the syntax?

    ADFBC problem with bind variables

  • About application module pooling

    Hi all,
    I'm developing an application with JDev9i and I' trying to enable am pooling. I setup the jbo.recycletreshold=0 property and I put a log statement in the constructor of my Entity Object.
    I execute a query and display its result (in a paged form 10 by 10) in a jsp.
    every time I call the jsp (even when I click on the next page) I see the creation of all the entity objects. I logged applicationmodule.hashCode() and it's always the same.
    Which steps should I follow to enable am pooling with entity object pooling? I'm trying to read the pdf docs but I still haven't found what I'm looking for. Can anyone explain me what I'm doing wrong and where to find the documentation I need?
    Thanks,
    Giovanni

    Hi,
    The issue is that changing where clause parameters does not itself cause a ViewObject to re-execute its query. So,
    analyzing your code sample above:
    ApplicationModule am = cookie.useApplicationModule(true);
    Acquire an ApplicationModule instance for the session.
    ViewObject vo = am.findViewObject("DoctorView");
    vo.setWhereClause("ID_DOC = :1");
    vo.setWhereClauseParams(new Object[]{new oracle.jbo.domain.Number(1160)});
    // tag0
    Find the target ViewObject and set its where clause. Do not execute the query. VO State:
    Not executed
    RowSet for ID_DOC 1160 is not fetched
    Not iterated
    RangeSize = default
    User defined where clause = "ID_DOC = :1"
    Where clause parameter 0 = 1160
    int firstIndex=0;
    int maxSize=vo.getRowCount();
    Acquire the VO's rowCount. This will force the VO to execute itself if it has not already been executed. If the VO has
    already been executed then this will not force the VO to re-execute itself. VO State:
    Executed
    RowSet for ID_DOC 1160 is fully fetched
    Not iterated
    RangeSize = default
    User defined where clause = "ID_DOC = :1"
    Where clause parameter 0 = 1160
    int rangeSize=1;
    vo.setRangeStart(0);
    vo.setRangeSize(rangeSize);
    Row[] rows=vo.getAllRowsInRange();
    Row row = rows[0];
    Setup the VO range size. VO State:
    Executed
    RowSet for ID_DOC 1160 is fully fetched
    Iterated to rowIndex 0
    RangeSize = 1
    User defined where clause = "ID_DOC = :1"
    Where clause parameter 0 = 1160
    if (row != null)
    System.out.println("IdDoc: " + row.getAttribute("IdDoc"));
    // release the application module statefully
    cookie.releaseApplicationModule(true, true);
    Release the ApplicationModule statefully. Note here that the rangeSize, the whereClause, the whereClause parameters,
    the current row, and the ViewObject's row cache will all be maintained by the ApplicationPool. VO State:
    Executed
    RowSet for ID_DOC 1160 is fully fetched
    Iterated to rowIndex 0
    RangeSize = 1
    User defined where clause = "ID_DOC = :1"
    Where clause parameter 0 = 1160
    // acquire an application module instance. use the same cookie.
    // this is equivalent to a second HTTP request originating from the same
    // session which released the cookie statefully.
    am = cookie.useApplicationModule(true);
    At this point, assuming that the AM was not recycled for use by another session (true for this SimpleTest), the same
    AM instance that was released will be returned. VO state (same as upon release):
    Executed
    RowSet for ID_DOC 1160 is fully fetched
    Iterated to rowIndex 0
    RangeSize = 1
    User defined where clause = "ID_DOC = :1"
    Where clause parameter 0 = 1160
    vo = am.findViewObject("DoctorView");
    vo.setWhereClause("ID_DOC = :1");
    vo.setWhereClauseParams(new Object[]{new oracle.jbo.domain.Number(1159)});
    // tag1
    Set the VO where clause. This is where the issue occurs. As mentioned above modifying the where clause
    parameters do not force the VO query to be re-executed. So, the VO remains in an executed, iterated state with a
    row cache corresponding to ID_DOC 1159. VO State:
    Executed
    RowSet for ID_DOC 1160 is fully fetched
    Iterated to rowIndex 0
    RangeSize = 1
    User defined where clause = "ID_DOC = :1"
    Where clause parameter 0 = 1159
    //vo.executeQuery();
    //row = vo.first();
    vo.setRangeStart(0);
    vo.setRangeSize(rangeSize);
    rows=vo.getAllRowsInRange();
    row = rows[0];
    // tag2
    Setup and populate the range. If the VO is already in an executed state then all of these operations will be performed
    against the cached RowSet (again, ID_DOC 1159). So, these will not force the VO to re-execute itself. VO State:
    Executed
    RowSet for ID_DOC 1160 is fully fetched
    Iterated to rowIndex 0
    RangeSize = 1
    User defined where clause = "ID_DOC = :1"
    Where clause parameter 0 = 1159
    if (row != null)
    System.out.println("IdDoc: " + row.getAttribute("IdDoc"));
    // release the application module statefully
    cookie.releaseApplicationModule(true, true);
    It sounds as if you would like the VO to be re-execute itself at :tag1above, placing it in the following state at :tag2:
    Executed
    RowSet for ID_DOC 1160 is fully fetched
    Iterated to rowIndex 0
    RangeSize = 1
    User defined where clause = "ID_DOC = :1"
    Where clause parameter 0 = 1160
    The most efficient way to achieve this is to force a query re-execution when the where clause parameters change.
    For example execute the following at tag0 (I assume this is the portion that simulates the servlet (model/controller) logic
    and/or at tag1 (I assume that this is the portion that simulates the JSP (view) logic which I also assume would not
    normally be responsible for setting the where clause parameter and modifying the range, correct?).
    Object[] oldWhereClauseParams = vo.getWhereClauseParams();
    // this block was copied from above tag0
    ViewObject vo = am.findViewObject("DoctorView");
    vo.setWhereClause("ID_DOC = :1");
    vo.setWhereClauseParams(new Object[]{new oracle.jbo.domain.Number(<new where clause parameter>)});
    Object[] newWhereClauseParams = vo.getWhereClauseParams();
    boolean whereClauseParamsSame =
    (newWhereClauseParams.length == oldWhereClauseParams.length);
    if (whereClauseParamsSame)
    for (int i=0; i < newWhereClauseParams.length; i++)
    if (!oldWhereClauseParams.equals(newWhereClauseParams[i]))
    whereClauseParamsSame = false;
    break;
    // force a query re-execution if the where clause paramters have changed.
    if (!whereClauseParamsSame)
    vo.executeQuery();
    which would yield the following VO state at tag2:
    Executed
    RowSet for ID_DOC 1160 is fully fetched
    Iterated to rowIndex 0
    RangeSize = 1
    User defined where clause = "ID_DOC = :1"
    Where clause parameter 0 = 1160
    Hope this helps.
    JR

  • Default Code Generation for a Custom Class for an Application Module

    hi all
    Oracle® Fusion Middleware
    Fusion Developer’s Guide for Oracle Application Development
    Framework
    11g Release 1 (11.1.1)
    with Jdeveloper TP3 ,
    By default, the application module Java class will look similar to what you see in
    Example below when you've first enabled it. Of interest, it contains:
    ■ Getter methods for each view object instance in the data model
    ■ A main() method allowing you to debug the application module using the
    Business Components Browser
    [package devguide.model;
    import devguide.model.common.StoreServiceAM;
    import oracle.jbo.server.ApplicationModuleImpl;
    import oracle.jbo.server.ViewLinkImpl;
    import oracle.jbo.server.ViewObjectImpl;
    // --- File generated by Oracle ADF Business Components Design Time.
    // --- Custom code may be added to this class.
    // --- Warning: Do not modify method signatures of generated methods.
    public class StoreServiceAMImpl extends ApplicationModuleImpl {
    /** This is the default constructor (do not remove) */
    public SRServiceImpl() { }
    /** Sample main for debugging Business Components code using the tester */
    public static void main(String[] args) {
    launchTester("devguide.model", /* package name */
    "SRServiceLocal" /* Configuration Name */);
    /** Container's getter for YourViewObjectInstance1 */
    public ViewObjectImpl getYourViewObjectInstance1() {
    return (ViewObjectImpl)findViewObject("YourViewObjectInstance1");
    // ... Additional ViewObjectImpl getters for each view object instance
    // ... ViewLink getters for view link instances here
    when i try this i didn't find the default generation for main method
    have i do something before enable custom java file for Application module
    hope to hear from you soon

    hi nonStop
    Since you are using Jdeveloper TP3, this might be a better place to ask your question:
    "JDeveloper and OC4J 11g Technology Preview"
    JDeveloper and OC4J 11g Technology Preview
    success
    Jan Vervecken

  • 9.7.3 Default Code Generation for a Custom Class for an Application Module

    hi all
    Oracle® Fusion Middleware
    Fusion Developer’s Guide for Oracle Application Development
    Framework
    11g Release 1 (11.1.1)
    with Jdeveloper TP3 ,
    By default, the application module Java class will look similar to what you see in
    Example below when you've first enabled it. Of interest, it contains:
    ■ Getter methods for each view object instance in the data model
    ■ A main() method allowing you to debug the application module using the
    Business Components Browser
    [package devguide.model;
    import devguide.model.common.StoreServiceAM;
    import oracle.jbo.server.ApplicationModuleImpl;
    import oracle.jbo.server.ViewLinkImpl;
    import oracle.jbo.server.ViewObjectImpl;
    // --- File generated by Oracle ADF Business Components Design Time.
    // --- Custom code may be added to this class.
    // --- Warning: Do not modify method signatures of generated methods.
    public class StoreServiceAMImpl extends ApplicationModuleImpl {
    /** This is the default constructor (do not remove) */
    public SRServiceImpl() { }
    /** Sample main for debugging Business Components code using the tester */
    public static void main(String[] args) {
    launchTester("devguide.model", /* package name */
    "SRServiceLocal" /* Configuration Name */);
    /** Container's getter for YourViewObjectInstance1 */
    public ViewObjectImpl getYourViewObjectInstance1() {
    return (ViewObjectImpl)findViewObject("YourViewObjectInstance1");
    // ... Additional ViewObjectImpl getters for each view object instance
    // ... ViewLink getters for view link instances here
    when i try this i didn't find the default generation for main method
    have i do something before enable custom java file for Application module
    hope to hear from you soon

    hi nonStop
    Since you are using Jdeveloper TP3, this might be a better place to ask your question:
    "JDeveloper and OC4J 11g Technology Preview"
    JDeveloper and OC4J 11g Technology Preview
    success
    Jan Vervecken

  • Client interface methods in application module editor get unselected

    Hello everybody,
    I have a problem with my application module client interface.
    Every time I edit source of application module methods that are exposed as a client interface, they get unselected in application module editor (they are not exposed anymore).
    Then I have to shift them from left (available) to the right (selected) manually.
    Has anyone experienced such problem?
    I'm using JDev 10.1.2.

    Strange, the same question here {thread:id=2187487}
    Timo
    Edited by: Timo Hahn on 08.03.2011 12:02
    @john You beat me agian

  • Application module creation for (web) services

    Hello,
    We are running into stack overflows from ADF BC (BC4J) with oracle.jbo.client.Configuration.createRootApplicationModule. We want to make sure we're doing this right.
    If you have data bound services (e.g. product lookup) and you don't want to put your operation/exposed method in the application module Impl class for clear seperation (unlike ADF toy store sample), is it appropriate to:
    1. Create a Java service class that you will expose as J2EE web service
    2. The method to be exposed will call Configuration.createRootApplicationModule to checkout an app module from pool.
    3. Find the view object, run the query, get the row.
    4. Configuration.releaseRootApplicationModule to check it back in.
    Please share your best practices and recommended approach with us.
    Thanks,
    - Zak

    I'd recommend using our built-in feature for exposing an application module class as a J2EE web service. This will code-generate a class for you that does the AM access correctly.

  • BC4J: How get Connection from Application Module

    I've written a custom method for my Application Module for using by the client tier. In this method I call a JPUblisher created class, that accesses a PL/SQL procedure. For this JPublisher created class I need a connection context. The class calls DefaultContext.getDefaultContext() but that seems to be null.
    How can I get the current Connection of the Application Module, so that I can create a DefaultContext?
    Unfortunately Transaction has no getConnection method.
    Thanks,
    Robert

    We don't make the Connection directly available because in some sense it's a rope on which you can hang yourself if you are not careful. Since BC4J AppModules are most often used from a pool, and you might be using connection pooling in addition to application module pooling, in general it is not safe to get hold of the raw JDBC connection and "hang onto it".
    If you make careful use to always get the current JDBC connection before you use it, and not try to cache it, then you should be ok. Often, you can avoid the need to get the raw JDBC connection by calling getDBTransaction().createPreparedStatement(...) or the analogous createCallableStatement() or createStatement() that are also on the DBTransaction interface.
    Here is a little function you can add to your application module impl class to retrieve the Connection:
      private Connection getCurrentConnection() {
        Statement st = null;
        try {
          st = getDBTransaction().createStatement(0);
          return st.getConnection();
        catch (SQLException s) {
          s.printStackTrace();
          return null;
        finally {
          if (st != null) try { st.close(); } catch (SQLException s2) {}
      }It basically creates a (dummy) statement, gets the current connection from the statement, then closes the statement.
    I tried using this in a custom method in an AppModuleImpl class that invoked a JPublisher-create package-wrapper class like this:
      public void callStoredProc() {
        try {
          // Empservice is package wrapper class created by JPublisher
          Empservice e = new Empservice(getCurrentConnection());
          BigDecimal sal = e.lookupsalary(new BigDecimal(7369));
          System.out.println(sal);
        catch (SQLException s) {
          s.printStackTrace();
      }and it works for me.

  • Error while opening application module xml file

    Hi All,
    I am using Jdeveloper 10.1.3.3. When I open any of my application module xml class say (Session.xml) , I am getting following exception in Jdeveloper
    Error while invoking menu action:Edit Session.xml
    java.lang.StackOverflowError
         at java.util.HashMap.get(HashMap.java:320)
         at oracle.ide.net.URLFileSystem.findHelper(URLFileSystem.java:126)
         at oracle.ide.net.URLFileSystem.findHelper(URLFileSystem.java:163)
         at oracle.ide.net.URLFileSystem.openInputStream(URLFileSystem.java:1164)
         at oracle.ide.net.IdeURLConnection.getInputStream(IdeURLConnection.java:44)
         at java.net.URL.openStream(URL.java:1007)
         at oracle.ide.net.URLFileSystemHelper.openInputStream(URLFileSystemHelper.java:993)
         at oracle.ide.net.URLFileSystem.openInputStream(URLFileSystem.java:1164)
         at oracle.ide.net.IdeURLConnection.getInputStream(IdeURLConnection.java:44)
         at java.net.URL.openStream(URL.java:1007)
         at oracle.ide.net.URLFileSystemHelper.openInputStream(URLFileSystemHelper.java:993)
         at oracle.ide.net.URLFileSystem.openInputStream(URLFileSystem.java:1164)
         at oracle.ide.net.IdeURLConnection.getInputStream(IdeURLConnection.java:44)
         at java.net.URL.openStream(URL.java:1007)
         at oracle.ide.net.URLFileSystemHelper.openInputStream(URLFileSystemHelper.java:993)
         at oracle.ide.net.URLFileSystem.openInputStream(URLFileSystem.java:1164)
         at oracle.ide.net.IdeURLConnection.getInputStream(IdeURLConnection.java:44)
         at java.net.URL.openStream(URL.java:1007)
         at oracle.ide.net.URLFileSystemHelper.openInputStream(URLFileSystemHelper.java:993)
         at oracle.ide.net.URLFileSystem.openInputStream(URLFileSystem.java:1164)
         at oracle.ide.net.IdeURLConnection.getInputStream(IdeURLConnection.java:44)
         at java.net.URL.openStream(URL.java:1007)
         at oracle.ide.net.URLFileSystemHelper.openInputStream(URLFileSystemHelper.java:993)
         at oracle.ide.net.URLFileSystem.openInputStream(URLFileSystem.java:1164)
         at oracle.ide.net.IdeURLConnection.getInputStream(IdeURLConnection.java:44)
         at java.net.URL.openStream(URL.java:1007)
         at oracle.ide.net.URLFileSystemHelper.openInputStream(URLFileSystemHelper.java:993)
         at oracle.ide.net.URLFileSystem.openInputStream(URLFileSystem.java:1164)
         at oracle.ide.net.IdeURLConnection.getInputStream(IdeURLConnection.java:44)
         at java.net.URL.openStream(URL.java:1007)
         at oracle.ide.net.URLFileSystemHelper.openInputStream(URLFileSystemHelper.java:993)
         at oracle.ide.net.URLFileSystem.openInputStream(URLFileSystem.java:1164)
         at oracle.ide.net.IdeURLConnection.getInputStream(IdeURLConnection.java:44)
         at java.net.URL.openStream(URL.java:1007)
         at oracle.ide.net.URLFileSystemHelper.openInputStream(URLFileSystemHelper.java:993)
         at oracle.ide.net.URLFileSystem.openInputStream(URLFileSystem.java:1164)
         at oracle.ide.net.IdeURLConnection.getInputStream(IdeURLConnection.java:44)
         at java.net.URL.openStream(URL.java:1007)
         at oracle.ide.net.URLFileSystemHelper.openInputStream(URLFileSystemHelper.java:993)
         at oracle.ide.net.URLFileSystem.openInputStream(URLFileSystem.java:1164)
         at oracle.ide.net.IdeURLConnection.getInputStream(IdeURLConnection.java:44)
         at java.net.URL.openStream(URL.java:1007)
         at oracle.ide.net.URLFileSystemHelper.openInputStream(URLFileSystemHelper.java:993)
         at oracle.ide.net.URLFileSystem.openInputStream(URLFileSystem.java:1164)
         at oracle.ide.net.IdeURLConnection.getInputStream(IdeURLConnection.java:44)
         at java.net.URL.openStream(URL.java:1007)
         at oracle.ide.net.URLFileSystemHelper.openInputStream(URLFileSystemHelper.java:993)
         at oracle.ide.net.URLFileSystem.openInputStream(URLFileSystem.java:1164)
         at oracle.ide.net.IdeURLConnection.getInputStream(IdeURLConnection.java:44)
         at java.net.URL.openStream(URL.java:1007)
         at oracle.ide.net.URLFileSystemHelper.openInputStream(URLFileSystemHelper.java:993)
         at oracle.ide.net.URLFileSystem.openInputStream(URLFileSystem.java:1164)
         at oracle.ide.net.IdeURLConnection.getInputStream(IdeURLConnection.java:44)
         at java.net.URL.openStream(URL.java:1007)
         at oracle.ide.net.URLFileSystemHelper.openInputStream(URLFileSystemHelper.java:993)
         at oracle.ide.net.URLFileSystem.openInputStream(URLFileSystem.java:1164)
         at oracle.ide.net.IdeURLConnection.getInputStream(IdeURLConnection.java:44)
         at java.net.URL.openStream(URL.java:1007)
         at oracle.ide.net.URLFileSystemHelper.openInputStream(URLFileSystemHelper.java:993)
         at oracle.ide.net.URLFileSystem.openInputStream(URLFileSystem.java:1164)
         at oracle.ide.net.IdeURLConnection.getInputStream(IdeURLConnection.java:44)
         at java.net.URL.openStream(URL.java:1007)
         at oracle.ide.net.URLFileSystemHelper.openInputStream(URLFileSystemHelper.java:993)
         at oracle.ide.net.URLFileSystem.openInputStream(URLFileSystem.java:1164)
         at oracle.ide.net.IdeURLConnection.getInputStream(IdeURLConnection.java:44)
         at java.net.URL.openStream(URL.java:1007)
         at oracle.ide.net.URLFileSystemHelper.openInputStream(URLFileSystemHelper.java:993)
         at oracle.ide.net.URLFileSystem.openInputStream(URLFileSystem.java:1164)
         at oracle.ide.net.IdeURLConnection.getInputStream(IdeURLConnection.java:44)
         at java.net.URL.openStream(URL.java:1007)
         at oracle.ide.net.URLFileSystemHelper.openInputStream(URLFileSystemHelper.java:993)
         at oracle.ide.net.URLFileSystem.openInputStream(URLFileSystem.java:1164)
         at oracle.ide.net.IdeURLConnection.getInputStream(IdeURLConnection.java:44)
         at java.net.URL.openStream(URL.java:1007)
         at oracle.ide.net.URLFileSystemHelper.openInputStream(URLFileSystemHelper.java:993)
         at oracle.ide.net.URLFileSystem.openInputStream(URLFileSystem.java:1164)
         at oracle.ide.net.IdeURLConnection.getInputStream(IdeURLConnection.java:44)
         at java.net.URL.openStream(URL.java:1007)
         at oracle.ide.net.URLFileSystemHelper.openInputStream(URLFileSystemHelper.java:993)
         at oracle.ide.net.URLFileSystem.openInputStream(URLFileSystem.java:1164)
         at oracle.ide.net.IdeURLConnection.getInputStream(IdeURLConnection.java:44)
         at java.net.URL.openStream(URL.java:1007)
         at oracle.ide.net.URLFileSystemHelper.openInputStream(URLFileSystemHelper.java:993)
         at oracle.ide.net.URLFileSystem.openInputStream(URLFileSystem.java:1164)
         at oracle.ide.net.IdeURLConnection.getInputStream(IdeURLConnection.java:44)
         at java.net.URL.openStream(URL.java:1007)
         at oracle.ide.net.URLFileSystemHelper.openInputStream(URLFileSystemHelper.java:993)
         at oracle.ide.net.URLFileSystem.openInputStream(URLFileSystem.java:1164)
         at oracle.ide.net.IdeURLConnection.getInputStream(IdeURLConnection.java:44)
         at java.net.URL.openStream(URL.java:1007)
         at oracle.ide.net.URLFileSystemHelper.openInputStream(URLFileSystemHelper.java:993)
         at oracle.ide.net.URLFileSystem.openInputStream(URLFileSystem.java:1164)
         at oracle.ide.net.IdeURLConnection.getInputStream(IdeURLConnection.java:44)
         at java.net.URL.openStream(URL.java:1007)
         at oracle.ide.net.URLFileSystemHelper.openInputStream(URLFileSystemHelper.java:993)
         at oracle.ide.net.URLFileSystem.openInputStream(URLFileSystem.java:1164)
         at oracle.ide.net.IdeURLConnection.getInputStream(IdeURLConnection.java:44)
         at java.net.URL.openStream(URL.java:1007)
         at oracle.ide.net.URLFileSystemHelper.openInputStream(URLFileSystemHelper.java:993)
         at oracle.ide.net.URLFileSystem.openInputStream(URLFileSystem.java:1164)
         at oracle.ide.net.IdeURLConnection.getInputStream(IdeURLConnection.java:44)
         at java.net.URL.openStream(URL.java:1007)
         at oracle.ide.net.URLFileSystemHelper.openInputStream(URLFileSystemHelper.java:993)
         at oracle.ide.net.URLFileSystem.openInputStream(URLFileSystem.java:1164)
         at oracle.ide.net.IdeURLConnection.getInputStream(IdeURLConnection.java:44)
         at java.net.URL.openStream(URL.java:1007)
         at oracle.ide.net.URLFileSystemHelper.openInputStream(URLFileSystemHelper.java:993)
         at oracle.ide.net.URLFileSystem.openInputStream(URLFileSystem.java:1164)
         at oracle.ide.net.IdeURLConnection.getInputStream(IdeURLConnection.java:44)
         at java.net.URL.openStream(URL.java:1007)
         at oracle.ide.net.URLFileSystemHelper.openInputStream(URLFileSystemHelper.java:993)
         at oracle.ide.net.URLFileSystem.openInputStream(URLFileSystem.java:1164)
         at oracle.ide.net.IdeURLConnection.getInputStream(IdeURLConnection.java:44)
         at java.net.URL.openStream(URL.java:1007)
         at oracle.ide.net.URLFileSystemHelper.openInputStream(URLFileSystemHelper.java:993)
         at oracle.ide.net.URLFileSystem.openInputStream(URLFileSystem.java:1164)
         at oracle.ide.net.IdeURLConnection.getInputStream(IdeURLConnection.java:44)
         at java.net.URL.openStream(URL.java:1007)
         at oracle.ide.net.URLFileSystemHelper.openInputStream(URLFileSystemHelper.java:993)
         at oracle.ide.net.URLFileSystem.openInputStream(URLFileSystem.java:1164)
         at oracle.ide.net.IdeURLConnection.getInputStream(IdeURLConnection.java:44)
         at java.net.URL.openStream(URL.java:1007)
         at oracle.ide.net.URLFileSystemHelper.openInputStream(URLFileSystemHelper.java:993)
         at oracle.ide.net.URLFileSystem.openInputStream(URLFileSystem.java:1164)
         at oracle.ide.net.IdeURLConnection.getInputStream(IdeURLConnection.java:44)
    I am wondering where things are wrong. Is it a bug in Jdeveloper.
    Thanks
    Vikram

    Hi All,
    I am using Jdeveloper 10.1.3.3. When I open any of my application module xml class say (Session.xml) , I am getting following exception in Jdeveloper
    Error while invoking menu action:Edit Session.xml
    java.lang.StackOverflowError
         at java.util.HashMap.get(HashMap.java:320)
         at oracle.ide.net.URLFileSystem.findHelper(URLFileSystem.java:126)
         at oracle.ide.net.URLFileSystem.findHelper(URLFileSystem.java:163)
         at oracle.ide.net.URLFileSystem.openInputStream(URLFileSystem.java:1164)
         at oracle.ide.net.IdeURLConnection.getInputStream(IdeURLConnection.java:44)
         at java.net.URL.openStream(URL.java:1007)
         at oracle.ide.net.URLFileSystemHelper.openInputStream(URLFileSystemHelper.java:993)
         at oracle.ide.net.URLFileSystem.openInputStream(URLFileSystem.java:1164)
         at oracle.ide.net.IdeURLConnection.getInputStream(IdeURLConnection.java:44)
         at java.net.URL.openStream(URL.java:1007)
         at oracle.ide.net.URLFileSystemHelper.openInputStream(URLFileSystemHelper.java:993)
         at oracle.ide.net.URLFileSystem.openInputStream(URLFileSystem.java:1164)
         at oracle.ide.net.IdeURLConnection.getInputStream(IdeURLConnection.java:44)
         at java.net.URL.openStream(URL.java:1007)
         at oracle.ide.net.URLFileSystemHelper.openInputStream(URLFileSystemHelper.java:993)
         at oracle.ide.net.URLFileSystem.openInputStream(URLFileSystem.java:1164)
         at oracle.ide.net.IdeURLConnection.getInputStream(IdeURLConnection.java:44)
         at java.net.URL.openStream(URL.java:1007)
         at oracle.ide.net.URLFileSystemHelper.openInputStream(URLFileSystemHelper.java:993)
         at oracle.ide.net.URLFileSystem.openInputStream(URLFileSystem.java:1164)
         at oracle.ide.net.IdeURLConnection.getInputStream(IdeURLConnection.java:44)
         at java.net.URL.openStream(URL.java:1007)
         at oracle.ide.net.URLFileSystemHelper.openInputStream(URLFileSystemHelper.java:993)
         at oracle.ide.net.URLFileSystem.openInputStream(URLFileSystem.java:1164)
         at oracle.ide.net.IdeURLConnection.getInputStream(IdeURLConnection.java:44)
         at java.net.URL.openStream(URL.java:1007)
         at oracle.ide.net.URLFileSystemHelper.openInputStream(URLFileSystemHelper.java:993)
         at oracle.ide.net.URLFileSystem.openInputStream(URLFileSystem.java:1164)
         at oracle.ide.net.IdeURLConnection.getInputStream(IdeURLConnection.java:44)
         at java.net.URL.openStream(URL.java:1007)
         at oracle.ide.net.URLFileSystemHelper.openInputStream(URLFileSystemHelper.java:993)
         at oracle.ide.net.URLFileSystem.openInputStream(URLFileSystem.java:1164)
         at oracle.ide.net.IdeURLConnection.getInputStream(IdeURLConnection.java:44)
         at java.net.URL.openStream(URL.java:1007)
         at oracle.ide.net.URLFileSystemHelper.openInputStream(URLFileSystemHelper.java:993)
         at oracle.ide.net.URLFileSystem.openInputStream(URLFileSystem.java:1164)
         at oracle.ide.net.IdeURLConnection.getInputStream(IdeURLConnection.java:44)
         at java.net.URL.openStream(URL.java:1007)
         at oracle.ide.net.URLFileSystemHelper.openInputStream(URLFileSystemHelper.java:993)
         at oracle.ide.net.URLFileSystem.openInputStream(URLFileSystem.java:1164)
         at oracle.ide.net.IdeURLConnection.getInputStream(IdeURLConnection.java:44)
         at java.net.URL.openStream(URL.java:1007)
         at oracle.ide.net.URLFileSystemHelper.openInputStream(URLFileSystemHelper.java:993)
         at oracle.ide.net.URLFileSystem.openInputStream(URLFileSystem.java:1164)
         at oracle.ide.net.IdeURLConnection.getInputStream(IdeURLConnection.java:44)
         at java.net.URL.openStream(URL.java:1007)
         at oracle.ide.net.URLFileSystemHelper.openInputStream(URLFileSystemHelper.java:993)
         at oracle.ide.net.URLFileSystem.openInputStream(URLFileSystem.java:1164)
         at oracle.ide.net.IdeURLConnection.getInputStream(IdeURLConnection.java:44)
         at java.net.URL.openStream(URL.java:1007)
         at oracle.ide.net.URLFileSystemHelper.openInputStream(URLFileSystemHelper.java:993)
         at oracle.ide.net.URLFileSystem.openInputStream(URLFileSystem.java:1164)
         at oracle.ide.net.IdeURLConnection.getInputStream(IdeURLConnection.java:44)
         at java.net.URL.openStream(URL.java:1007)
         at oracle.ide.net.URLFileSystemHelper.openInputStream(URLFileSystemHelper.java:993)
         at oracle.ide.net.URLFileSystem.openInputStream(URLFileSystem.java:1164)
         at oracle.ide.net.IdeURLConnection.getInputStream(IdeURLConnection.java:44)
         at java.net.URL.openStream(URL.java:1007)
         at oracle.ide.net.URLFileSystemHelper.openInputStream(URLFileSystemHelper.java:993)
         at oracle.ide.net.URLFileSystem.openInputStream(URLFileSystem.java:1164)
         at oracle.ide.net.IdeURLConnection.getInputStream(IdeURLConnection.java:44)
         at java.net.URL.openStream(URL.java:1007)
         at oracle.ide.net.URLFileSystemHelper.openInputStream(URLFileSystemHelper.java:993)
         at oracle.ide.net.URLFileSystem.openInputStream(URLFileSystem.java:1164)
         at oracle.ide.net.IdeURLConnection.getInputStream(IdeURLConnection.java:44)
         at java.net.URL.openStream(URL.java:1007)
         at oracle.ide.net.URLFileSystemHelper.openInputStream(URLFileSystemHelper.java:993)
         at oracle.ide.net.URLFileSystem.openInputStream(URLFileSystem.java:1164)
         at oracle.ide.net.IdeURLConnection.getInputStream(IdeURLConnection.java:44)
         at java.net.URL.openStream(URL.java:1007)
         at oracle.ide.net.URLFileSystemHelper.openInputStream(URLFileSystemHelper.java:993)
         at oracle.ide.net.URLFileSystem.openInputStream(URLFileSystem.java:1164)
         at oracle.ide.net.IdeURLConnection.getInputStream(IdeURLConnection.java:44)
         at java.net.URL.openStream(URL.java:1007)
         at oracle.ide.net.URLFileSystemHelper.openInputStream(URLFileSystemHelper.java:993)
         at oracle.ide.net.URLFileSystem.openInputStream(URLFileSystem.java:1164)
         at oracle.ide.net.IdeURLConnection.getInputStream(IdeURLConnection.java:44)
         at java.net.URL.openStream(URL.java:1007)
         at oracle.ide.net.URLFileSystemHelper.openInputStream(URLFileSystemHelper.java:993)
         at oracle.ide.net.URLFileSystem.openInputStream(URLFileSystem.java:1164)
         at oracle.ide.net.IdeURLConnection.getInputStream(IdeURLConnection.java:44)
         at java.net.URL.openStream(URL.java:1007)
         at oracle.ide.net.URLFileSystemHelper.openInputStream(URLFileSystemHelper.java:993)
         at oracle.ide.net.URLFileSystem.openInputStream(URLFileSystem.java:1164)
         at oracle.ide.net.IdeURLConnection.getInputStream(IdeURLConnection.java:44)
         at java.net.URL.openStream(URL.java:1007)
         at oracle.ide.net.URLFileSystemHelper.openInputStream(URLFileSystemHelper.java:993)
         at oracle.ide.net.URLFileSystem.openInputStream(URLFileSystem.java:1164)
         at oracle.ide.net.IdeURLConnection.getInputStream(IdeURLConnection.java:44)
         at java.net.URL.openStream(URL.java:1007)
         at oracle.ide.net.URLFileSystemHelper.openInputStream(URLFileSystemHelper.java:993)
         at oracle.ide.net.URLFileSystem.openInputStream(URLFileSystem.java:1164)
         at oracle.ide.net.IdeURLConnection.getInputStream(IdeURLConnection.java:44)
         at java.net.URL.openStream(URL.java:1007)
         at oracle.ide.net.URLFileSystemHelper.openInputStream(URLFileSystemHelper.java:993)
         at oracle.ide.net.URLFileSystem.openInputStream(URLFileSystem.java:1164)
         at oracle.ide.net.IdeURLConnection.getInputStream(IdeURLConnection.java:44)
         at java.net.URL.openStream(URL.java:1007)
         at oracle.ide.net.URLFileSystemHelper.openInputStream(URLFileSystemHelper.java:993)
         at oracle.ide.net.URLFileSystem.openInputStream(URLFileSystem.java:1164)
         at oracle.ide.net.IdeURLConnection.getInputStream(IdeURLConnection.java:44)
         at java.net.URL.openStream(URL.java:1007)
         at oracle.ide.net.URLFileSystemHelper.openInputStream(URLFileSystemHelper.java:993)
         at oracle.ide.net.URLFileSystem.openInputStream(URLFileSystem.java:1164)
         at oracle.ide.net.IdeURLConnection.getInputStream(IdeURLConnection.java:44)
         at java.net.URL.openStream(URL.java:1007)
         at oracle.ide.net.URLFileSystemHelper.openInputStream(URLFileSystemHelper.java:993)
         at oracle.ide.net.URLFileSystem.openInputStream(URLFileSystem.java:1164)
         at oracle.ide.net.IdeURLConnection.getInputStream(IdeURLConnection.java:44)
         at java.net.URL.openStream(URL.java:1007)
         at oracle.ide.net.URLFileSystemHelper.openInputStream(URLFileSystemHelper.java:993)
         at oracle.ide.net.URLFileSystem.openInputStream(URLFileSystem.java:1164)
         at oracle.ide.net.IdeURLConnection.getInputStream(IdeURLConnection.java:44)
         at java.net.URL.openStream(URL.java:1007)
         at oracle.ide.net.URLFileSystemHelper.openInputStream(URLFileSystemHelper.java:993)
         at oracle.ide.net.URLFileSystem.openInputStream(URLFileSystem.java:1164)
         at oracle.ide.net.IdeURLConnection.getInputStream(IdeURLConnection.java:44)
         at java.net.URL.openStream(URL.java:1007)
         at oracle.ide.net.URLFileSystemHelper.openInputStream(URLFileSystemHelper.java:993)
         at oracle.ide.net.URLFileSystem.openInputStream(URLFileSystem.java:1164)
         at oracle.ide.net.IdeURLConnection.getInputStream(IdeURLConnection.java:44)
         at java.net.URL.openStream(URL.java:1007)
         at oracle.ide.net.URLFileSystemHelper.openInputStream(URLFileSystemHelper.java:993)
         at oracle.ide.net.URLFileSystem.openInputStream(URLFileSystem.java:1164)
         at oracle.ide.net.IdeURLConnection.getInputStream(IdeURLConnection.java:44)
    I am wondering where things are wrong. Is it a bug in Jdeveloper.
    Thanks
    Vikram

  • Generated getter in Application Module impl overrides superclass getter

    Hi,
    I today came across this issue:
    * Created an application module where the data model contains a view object named "Parent" (resulting form a parent-child relationship)
    => Application runs perfectly.
    * Created an application module implementation class (just created it, no further code added)
    => Application throws java.lang.NullPointerException at oracle.adf.model.binding.DCIteratorBinding.executeQueryIfNeeded(DCIteratorBinding.java:2164)
    After some debugging, it turned out that the issue is that JDeveloper created the following getter in the application module impl class:
    public ViewObjectImpl getParent() {
    return (ViewObjectImpl)findViewObject("Parent");
    which overrides public NamedObjectImpl getParent() from NamedObjectImpl, which is a superclass of ApplicationModuleImpl, due to the method's covariant return type.
    JDeveloper does not give me any warning or error, not while creating the impl class nor highlighted in the source code.
    Actually this would mean that I must manually assure that I never ever name a view object the same as any getter method in any of the ApplicationModuleImpl super classes which have a return type which is covariant to ViewObjectImpl. getParent() is one example, another is getProperty(). Even if it might be unlikely, this adds a potential source for some subtle issues.
    Is this known behavior of JDeveloper? Did I miss anything?
    Thanks,
    Andreas

    Hi Frank,
    I agree that naming conventions can avoid this type of issue. Nevertheless, as a matter of usability and reliability, I think it would be good if JDeveloper at least gives a warning during code generation when it generates methods which would override a method from a superclass.
    In any case, I have logged a bug, lets see how it evolves...
    Thanks,
    Andreas

  • [SOLVED]overriding VO's SQL query in an application module

    Hi, can anybody help me in searching examples of everriding some aspects of VO in an application module.
    As i learned we can override, for example the "WHERE" clause of an VO's SQL query in different application modules, using as i supply the addWhereClause method on SomeViewObjImpl object.
    ... but are there any examples of using this possibility? Should i create a custom method in application module java class?
    Thanks in advance. Best Regards.Alex.
    Message was edited by:
    Timin
    Message was edited by:
    Timin

    Hi, can anybody help me in searching examples of everriding some aspects of VO in an application module.
    As i learned we can override, for example the "WHERE" clause of an VO's SQL query in different application modules, using as i supply the addWhereClause method on SomeViewObjImpl object.
    ... but are there any examples of using this possibility? Should i create a custom method in application module java class?
    Thanks in advance. Best Regards.Alex.
    Message was edited by:
    Timin
    Message was edited by:
    Timin

Maybe you are looking for

  • Aperture won't print to fill page!?!

    I had followed a couple threads on this topic and have come to a very aggrivating conclusion: Aperture printing will NOT let you set the border size smaller than the LARGEST print border your printer has. So my Epson printer which can print to within

  • IMac hanging... is my Hard Drive dead?

    Last week my 20 inch iMac (bought mid 2007, just after launch)started hanging weirdly. For no apparent reason, I got the Spinning Beachball of Death and everything was frozen. The dock was appearing when I moused over but no response, not possible to

  • My iPad won't turn on and I bought it only three days ago :(

    My iPad mini won't turn on. I have it on charge but still nothing. I just bought it three days ago

  • Most common JRE version today?

    I'm trying to develop an applet and I have trouble deciding on which version of the JRE to base it on. I know of some machines still running JRE 1.4.2, perhaps due to enterprise IT policy. I was told the most common JRE I can assume to be the most wi

  • Control parameters

    Hi, selected planning mode as adapt planning data (1) in mrp control parametrs. maintained 2 in ICI of mrp4 view and lot size as EX. Created one sales order for one fert material and delivery date maintained as 30.07.10 and run mrp, pr generatted for