Overide JBO-27010 in resourcebundle

Hi,
I have added the jbo message JBO-27010=Value has invalid precision/scale in the
applicationresource.properties but i don't get this message as error message.
The error remains - JBO-27010: Attribuutset met waarde 8.99999 voor NptcRefractionSpheric in heeft ongeldige precisie/schaal.
Where does this dutch message come from and do you have a tip why i don't get the message from the applicationresource.properties file?
Regards,
Erik

Erik,
Overriding JBO messages can be done using the standard ADF BC facilities:
http://download-west.oracle.com/docs/html/B25947_01/bcadvgen008.htm#BABEFGCI
Steven Davelaar,
JHeadstart Team.

Similar Messages

  • JBO-27010: Attribute set ... has invalid precision/scale

    We have created a table ACCOUNT with a column RATE defined as NUMBER(5, 3).
    Bc4j has created the corresponding entity object Account with:
    <Attribute
    Name="Rate"
    Type="oracle.jbo.domain.Number"
    ColumnName="RATE"
    ColumnType="NUMBER"
    SQLType="NUMERIC"
    IsNotNull="true"
    Precision="5"
    Scale="3"
    TableName="ACCOUNT" >
    Also the corresponding view object AccountView has been created.
    Here is the java code (JDeveloper Ver.3.2.3) where we catch an exception:
    ViewObject vo = applicationModule.findViewObject("AccountView");
    Row r = vo.createRow();
    String rateStr = "12,725"; // comma used locally as decimal separator
    oracle.jbo.domain.Number rateN = new oracle.jbo.domain.Number(rateStr);
    r.setAttribute("Rate", rateN);
    The exception is:
    oracle.jbo.AttrSetValException: JBO-27010: Attribute set with value 12,725 for Rate in Account has invalid precision/scale
    Any help would be greatly appreciated.
    Thanks in advance.
    null

    I like to tell you that now everything is ok.
    Looking at the libraries included in my project, I found an unecessary library "JBO Generic Domains" (X:\Program Files\Oracle\JDeveloper 3.2.3\lib\jbodomgnrc.zip) containing a class oracle.jbo.domain.Number different from the right one in "JBO Oracle Domains" (X:\Program Files\Oracle\JDeveloper 3.2.3\lib\jbodomorcl.zip).

  • Issues with UpdateAction and later using jbo:RowsetIterate

    Hello -
    I am putting together a BC4J/Struts web app and am having some issues
    with using the oracle.jbo.html.struts11.actions.UpdateAction class.
    I am trying to figure out the correct way to reset a row after validation exceptions
    so that <jbo:RowsetIterate> doesn't blow up when it hits the row if the user doesn't fix the
    data they entered in to pass validation.
    Call the objects being update 'Accounts'.
    Pass 1:
    User changes account data in an edit page and submits.
    Struts hands off control to an action that is a subclass of UpdateAction which invokes super.execute(...).
    UpdateAction does its thing - catches the validation errors and sticks them in ActionErrors.
    Control gets passed back to the edit page with the errors displayed.
    This is expected. HOWEVER, if the user goes to a page that lists accounts (via <jbo:RowsetIterate>) it blows
    up on the edited account because it tries to validate the row. So...
    Pass 2:
    After super.execute(...) check to see if any errors happened (by whether or not the forward returned indicated success).
    If there were errors, refresh the row via:
    BC4JContext context = BC4JContext.getContext(request);
    Row row = context.getRow();
    row.refresh(Row.REFRESH_WITH_DB_FORGET_CHANGES | Row.REFRESH_REMOVE_NEW_ROWS);
    This works (not blowing up if user goes back to listing page) for emptying a mandatory field (JBO-27014)
    but not for inserting too much data into a field (JBO-27010). I've tried this with REFRESH_UNDO_CHANGES as
    well with the same results. So...
    Pass 3:
    Instead of refreshing the row in my update action, rollback the transaction via:
    BC4JContext.getContext(request).getApplicationModule().getTransaction().rollback();
    However this seems unnessary - I don't want to rollback the whole transaction just to undo changes to one row. Is there some better way to fix the issue?
    Any suggestions?
    Thanks,
    -- Scott

    I don't know why either, but I'd love to fix it. Please install one of the debug packages (this looks like x86_64?):
    http://dev.archlinux.org/~dreisner/kmod … pkg.tar.xz
    http://dev.archlinux.org/~dreisner/kmod … pkg.tar.xz
    Run 'gdb --args depmod 3.2.2-1-ARCH'. When it crashes, type 'bt full'. Post all that output here (either in code tags or on a paste service)

  • How can I use jbo:InputSelect for a char type filed?

    How can I use <jbo:InputSelect for a char type filed?
    I have two tables. One is room (primary key is room(type is char)), another table is responsibility (foreign ker is room(type is char)). Both tables have same length for room column.
    There is a problem:
    If I use (in the "DataEditComponent.jsp" file)
    <jbo:InputSelect multiple="false" datasource="dsEdit" displaydatasource="roomData" displaydataitem="ROOM" displayvaluedataitem="ROOM" ></jbo:InputSelect>
    to get the room input for responsibility from combobox(Datasource roomData is from room table). In the form the room field cannot bind the data in combobox, alway select the first item. And if I select one item and click the update button.There is an error message:
    Error Message: JBO-27010: Attribute set with value H409 for Room in Responsibility has invalid precision/scale
    I found If I changed the field type from char to varchar2 in database also change the entity objects, it works well. I wonder if there are any diffrence using <jbo:InputSelect tag in char and varchar2 type. How can I use <jbo:InputSelect for a char type filed as i don't want to change my datatype in database at this stage.
    I try this in JDeveloper 9.03, 9.034, 9.04. The result is the same.

    If I were in your shoes, here's how I would do it:
    <%-- Assuming you have dsRoom and dsResponsibility --%>
    <%-- Select is an HTML tag --%>
    <select name="ROOM" size="1">
    <% char roomID =""; // Init your character var
    // Open a rowsetIterator to get the records and add them to the LOV
    <jbo:RowsetIterate datasource="dsResponsibility" changecurrentrow="true" >
    <% roomID = (char)dsResponsibility.getRowSet().getCurrentRow().getAttribute("ROOM"); // Grab the char value
    // add the value to the LOV
    %>
    <option value="<%=roomID%>"><%=roomID%></option>
    </jbo:RowsetIterate>
    </select>
    If you are using this as part of an edit page you may want to utilize the "selected" option of the <option> tag. In one instance I am doing this on an edit page because the use may open an existing record. If I don't account for it, then it will change the DB to contain the first value from the list! You can do a simple check like:
    //Set the current record's char
    char curRecord = (char)rowEdit.getAttribute("ROOM");
    // inside the iterate:
    if (curRecord == roomID) {
    <option value="<%=roomID%>" selected><%=roomID%></option>
    } else {
    <option value="<%=roomID%>" ><%=roomID%></option>
    Hope that helps!

  • PL/SQL update Problems

    Hi,

    Hi,
    Yes the PK has more than one attribute.
    To see what key is returning the lov when the user choose the attirbute in the Lov i have used this funtion in execute with params:
    public void codIdReturnPopupListenerDocEnv(ReturnPopupEvent returnPopupEvent) {
    BindingContainer bindings = getBindings();
    OperationBinding operationBinding = bindings.getOperationBinding("ExecuteWithParamsDocEnv");
    operationBinding.execute();
    BindingContainer BC=getBindings();
    DCIteratorBinding miView= (DCIteratorBinding) BC.get("LovView1Iterator");
    RowSetIterator miViewIter = miView.getRowSetIterator();
    Object fila = miViewIter.getCurrentRow().getKey();
    System.out.println("****************KEY "+ fila);
    And i have configured the Lov to return all the Key. And i see that the Lov is returning an incorrect Key. I mean it takes the correct cod the one that choose the user but the other two attirbutes are incorrect and always return the same two.
    Any idea why the Lov doesn't return the correct Key?
    Thanks,
    Now this error:
    ADVERTENCIA: ADFc: STRINGMANAGER: Key: 27010 not found in bundle oracle.javatools.resourcebundle.ResourceBundleRT
    oracle.jbo.AttrSetValException: JBO-27010: STRINGMANAGER: Key: 27010 not found in bundle oracle.javatools.resourcebundle.ResourceBundleRT
         at oracle.jbo.rules.RulesBeanUtils.createException(RulesBeanUtils.java:368)
         at oracle.jbo.rules.RulesBeanUtils.createException(RulesBeanUtils.java:349)
         at oracle.jbo.rules.AbstractValidator.createException(AbstractValidator.java:805)
         at oracle.jbo.rules.AbstractValidator.raiseException(AbstractValidator.java:837)
    Rowan
    Edited by: Rowan on Oct 29, 2008 5:28 AM

  • Error while setting data into table

    I am getting an error while inerting a new record into table
    error is
    JBO-27010: Attribute set with value 9991431 for AckmntInd in EdMsgHeaderDetailsEO has invalid precision/scale oracle.jbo.AttrSetValException: JBO-27010: Attribute set with value 9991431 for AckmntInd in EdMsgHeaderDetailsEO has invalid
    and followed by
    java.lang.ArrayIndexOutOfBoundsException: 20 at oracle.jbo.server.ViewRowStorage.getViewAttributeDef
    help to fix this error is appreciated !!
    thanks,
    Message was edited by:
    user447047
    Message was edited by:
    user447047

    As you have mentioned following error...
    JBO-27010: Attribute set with value 9991431 for AckmntInd in EdMsgHeaderDetailsEO has invalid precision/scale oracle.jbo.AttrSetValException:
    It comes when you are trying to insert a value to an attribute whose DB width is less then the value supplied.
    For example If corresponding value of Number(2) is 123, then JBO-27010 will be thrown.
    Change it in either place.
    Atal

  • HOWTO: Using a BC4J Application Module in an Stateless EJB Session Bean

    HOWTO: Using a BC4J Application Module in an Stateless EJB Session Bean
    by Steve Muench
    Overview
    BC4J provides automatic facilities for deploying any application module as a stateful EJB session bean. If you want to leverage the features of your BC4J application module from a stateless EJB session bean, it's not automatic but it is straightforward to implement. This howto article explains the details.
    For our example, we will create a stateless EJB session bean that uses a container-managed transaction. To keep things simple, let's assume the session bean has a single public method on its remote interface named createDepartment() with the following signature:
    public void createDepartment(int id, String name, String loc) throws AppException
    AppException is an example of an application-specific exception that our method will throw if any problems arise during its execution.The goal of this article is to illustrate how to use the BC4J application module named com.example.hr.HRApp as part of the implementation of this createDepartment method on our stateless enterprise bean. Let's assume that the HRApp application module has a view object member named Departments, based on the com.example.hr.DeptView view object, based on the familiar DEPT table and related to the com.example.hr.Dept entity object so our view can be updateable.
    Creating the Stateless Session Bean
    We can start by using the JDeveloper Enterprise Bean wizard to create a new stateless session bean called StatelessSampleEJB implemented by:[list][*]com.example.StatelessSampleEJBBean (Bean class)[*]com.example.StatelessSampleEJBHome (Home interface)[*]com.example.StatelessSampleEJB (Remote interface)[list]
    We then use the EJB Class Editor to add the createDepartment method to the remote interface of StatelessSampleEJB with the signature above. We edit the remote interface to make sure that it also reflects that the createDepartment method thows the AppException like this:
    package com.example;
    import javax.ejb.EJBObject;
    import java.rmi.RemoteException;
    public interface StatelessSampleEJB extends EJBObject {
      void createDepartment(int id, String name, String loc)
      throws RemoteException,AppException;
    }Before we start adding BC4J into the picture for our implementation, our StatelessSampleEJBBean class looks like this:
    package com.example;
    import javax.ejb.SessionBean;
    import javax.ejb.SessionContext;
    public class StatelessSampleEJBBean implements SessionBean {
      public void ejbCreate(){}
      public void ejbActivate(){}
      public void ejbPassivate(){}
      public void ejbRemove(){}
      public void setSessionContext(SessionContext ctx){
      public void createDepartment(int id, String name, String loc) 
      throws AppException {
        // TODO: Implement method here
    }We can double-click on the ejb-jar.xml file in our project to see the XML deployment descriptor for the bean we just created:
    <ejb-jar>
       <enterprise-beans>
          <session>
             <description>Session Bean ( Stateless )</description>
             <display-name>StatelessSampleEJB</display-name>
             <ejb-name>StatelessSampleEJB</ejb-name>
             <home>com.example.StatelessSampleEJBHome</home>
             <remote>com.example.StatelessSampleEJB</remote>
             <ejb-class>com.example.StatelessSampleEJBBean</ejb-class>
             <session-type>Stateless</session-type>
             <transaction-type>Container</transaction-type>
          </session>
       </enterprise-beans>
    </ejb-jar>We need to add the extra <assembly-descriptor> section in this file to indicate that the createDepartment method will require a transaction. After this edit, the ejb-jar.xml file looks like this:
    <ejb-jar>
       <enterprise-beans>
          <session>
             <description>Session Bean ( Stateless )</description>
             <display-name>StatelessSampleEJB</display-name>
             <ejb-name>StatelessSampleEJB</ejb-name>
             <home>com.example.StatelessSampleEJBHome</home>
             <remote>com.example.StatelessSampleEJB</remote>
             <ejb-class>com.example.StatelessSampleEJBBean</ejb-class>
             <session-type>Stateless</session-type>
             <transaction-type>Container</transaction-type>
          </session>
       </enterprise-beans>
       <assembly-descriptor>
          <container-transaction>
             <method>
                <ejb-name>StatelessSampleEJB</ejb-name>
                <method-name>createDepartment</method-name>
                <method-params>
                   <method-param>int</method-param>
                   <method-param>java.lang.String</method-param>
                   <method-param>java.lang.String</method-param>
                </method-params>
             </method>
             <trans-attribute>Required</trans-attribute>
          </container-transaction>
       </assembly-descriptor>
    </ejb-jar>
    Aggregating a BC4J Application Module
    With the EJB aspects of our bean setup, we can proceed to implementing the BC4J application module aggregation.
    The first thing we do is add private variables to hold the EJB SessionContext and the instance of the aggregated BC4J ApplicationModule, like this:
    // Place to hold onto the aggregated appmodule instance
    transient private ApplicationModule _am  = null;
    // Remember the SessionContext that the EJB container provides us
    private           SessionContext    _ctx = null;and we modify the default, empty implementation of the setSessionContext() method to remember the session context like this:
    public void setSessionContext(SessionContext ctx){ _ctx = ctx; }We add additional constants that hold the names of the J2EE datasource that we want BC4J to use, as well as the fully-qualified name of the BC4J application module that we'll be aggregating:
    // JNDI resource name for the J2EE datasource to use
    private static final String DATASOURCE = "jdbc/OracleCoreDS";
    // Fully-qualified BC4J application module name to aggregate
    private static final String APPMODNAME = "com.example.hr.HRApp";We expand the now-empty ejbCreate() and ejbRemove() methods to create and destory the aggregated instance of the BC4J application module that we'll use for the lifetime of the stateless session bean. When we're done, ejbCreate() it looks like this:
    public void ejbCreate() throws CreateException {
      try {
        // Setup a hashtable of environment parameters for JNDI initial context
        Hashtable env = new Hashtable();
        env.put(JboContext.INITIAL_CONTEXT_FACTORY,JboContext.JBO_CONTEXT_FACTORY);
        // NOTE: we want to use the BC4J app module in local mode as a simple Java class!
        env.put(JboContext.DEPLOY_PLATFORM, JboContext.PLATFORM_LOCAL);
        env.put(PropertyConstants.INTERNAL_CONNECTION_PARAMS,DATASOURCE);
        // Create an initial context, using this hashtable of environment params
        InitialContext ic = new InitialContext(env);
        // Lookup a home interface for the application module
        ApplicationModuleHome home = (ApplicationModuleHome)ic.lookup(APPMODNAME);
        // Using the home, create the instance of the appmodule we'll use
        _am = home.create();
        // Register the BC4J factory to handle EJB container-managed transactions
        registerContainerManagedTransactionHandlerFactory();
      catch(Exception ex) {
         ex.printStackTrace();
        throw new CreateException(ex.getMessage());
    }and ejbRemove() looks like this:
    public void ejbRemove() {
      try {
        // Cleanup any appmodule resources before getting shutdown
        _am.remove();
      catch(JboException ex) { /* Ignore */ }
    }The helper method named reigsterContainerManagedTransactionHandlerFactory() looks like this:
    private void registerContainerManagedTransactionHandlerFactory() {
      SessionImpl session = (SessionImpl)_am.getSession();
      session.setTransactionHandlerFactory(
        new TransactionHandlerFactory() {
          public TransactionHandler  createTransactionHandler() {
            return new ContainerManagedTxnHandlerImpl();
          public JTATransactionHandler createJTATransactionHandler() {
            return new ContainerManagedTxnHandlerImpl();
    }The last detail is to use the BC4J appmodule to implement the createDepartment() method. It ends up looking like this:
    public void createDepartment(int id, String name, String loc)
    throws AppException {
      try {
        // Connect the AM to the datasource we want to use for the duration
        // of this single method call.
        _am.getTransaction().connectToDataSource(null,DATASOURCE,false);
        // Use the "Departments" view object member of this AM
        ViewObject departments = _am.findViewObject("Departments");
        // Create a new row in this view object.
        Row newDept = departments.createRow();
        // Populate the attributes from the parameter arguments.
        newDept.setAttribute("Deptno", new Number(id));
        newDept.setAttribute("Dname", name);
        newDept.setAttribute("Loc", loc);
        // Add the new row to the view object's default rowset
        departments.insertRow(newDept);
        // Post all changes in the AM, but we don't commit them. The EJB
        // container managed transaction handles the commit.
        _am.getTransaction().postChanges();
      catch(JboException ex) {
        // To be good EJB Container-Managed Transaction "citizens" we have
        // to mark the transaction as needing a rollback if there are problems
        _ctx.setRollbackOnly();
        throw new AppException("Error creating dept "+ id +"\n"+ex.getMessage());
      finally {
        try {
          // Disconnect the AM from the datasource we're using
          _am.getTransaction().disconnect();
        catch(Exception ex) { /* Ignore */ }
    Building a Test Client
    With the EJB-Tier work done, we can build a sample client program to test this new stateless EJB Session Bean by selecting the bean in the Oracle9i JDeveloper IDE and choosing "Create Sample Java Client" from the right-mouse menu.
    When the "Sample EJB Client Details" dialog appears, we take the defaults of connecting to embedded OC4J container. Clicking the (OK) button generates the following test class:
    import java.util.Hashtable;
    import javax.naming.Context;
    import javax.naming.InitialContext;
    import com.example.StatelessSampleEJB;
    import com.example.StatelessSampleEJBHome;
    public class SampleStatelessSampleEJBClient {
      public static void main(String [] args) {
        SampleStatelessSampleEJBClient sampleStatelessSampleEJBClient =
           new SampleStatelessSampleEJBClient();
        try {
          Hashtable env = new Hashtable();
          env.put(Context.INITIAL_CONTEXT_FACTORY,
                  "com.evermind.server.rmi.RMIInitialContextFactory");
          env.put(Context.SECURITY_PRINCIPAL, "admin");
          env.put(Context.SECURITY_CREDENTIALS, "welcome");
          env.put(Context.PROVIDER_URL,
                  "ormi://localhost:23891/current-workspace-app");
          Context ctx = new InitialContext(env);
          StatelessSampleEJBHome statelessSampleEJBHome =
               (StatelessSampleEJBHome)ctx.lookup("StatelessSampleEJB");
          StatelessSampleEJB statelessSampleEJB;
          // Use one of the create() methods below to create a new instance
          // statelessSampleEJB = statelessSampleEJBHome.create();
          // Call any of the Remote methods below to access the EJB
          // statelessSampleEJB.createDepartment( int id, java.lang.String name, java.lang.String loc );
        catch(Throwable ex) {
          ex.printStackTrace();
    }We uncomment the call to the create() method and add a few calls to the createDepartment() method so that the body of the test program now looks like this:
    // Use one of the create() methods below to create a new instance
    statelessSampleEJB = statelessSampleEJBHome.create();
    // Call any of the Remote methods below to access the EJB
    statelessSampleEJB.createDepartment( 13, "Test1","Loc1");
    System.out.println("Created department 13");
    statelessSampleEJB.createDepartment( 14, "Test2","Loc2");
    System.out.println("Created department 14");
    try {
      // Try setting a department id that is too large!
      statelessSampleEJB.createDepartment( 23456, "Test3","Loc3");
    catch (AppException ax) {
      System.err.println("AppException: "+ax.getMessage());
    }Before we can successfully run our SampleStatelessSampleEJBClient we need to first run the EJB bean that the client will try to connect to. Since Oracle9i JDeveloper supports local running and debugging of the EJB-Tier without doing through a full J2EE deployment step, to accomplish this prerequisite step we just need to right-mouse on the StatelessSampleEJB node in the System Navigator and select "Run". This starts up the embedded OC4J instance and runs the EJB right out of the current out path.Finally, we can run the SampleStatelessSampleEJBClient, and see the output of the test program in the JDeveloper log window:
    Created department 13
    Created department 14
    AppException: Error creating dept 23456
    JBO-27010: Attribute set with value 23456 for Deptno in Dept has invalid precision/scale
    Troubleshooting
    One error that might arise while running the example is that the database connection information in your data-sources.xml for the jdbc/OracleCoreDS datasource does not correspond to the database you are trying to test against. If this happens, then double-check the file .\jdev\system\oc4j-config\data-sources.xml under the JDeveloper installation home directory to make sure that the url value provided is what you expect. For example, to work against a local Oracle database running on your current machine, listening on port 1521, with SID of ORCL, you would edit this file to have an entry like this for jdbc/OracleCoreDS :
    <data-source
        class="com.evermind.sql.DriverManagerDataSource"
        name="OracleDS"
        location="jdbc/OracleCoreDS"
        xa-location="jdbc/xa/OracleXADS"
        ejb-location="jdbc/OracleDS"
        connection-driver="oracle.jdbc.driver.OracleDriver"
        username="scott"
        password="tiger"
        url="jdbc:oracle:thin:@localhost:1521:ORCL"
        inactivity-timeout="30"
    />This is the data-sources.xml file that gets used by the embedded OC4J instance running in JDeveloper.
    Conclusion
    Hopefully this article has illustrated that it is straightforward to utilize the full power of BC4J in local mode as part of your EJB Stateless Session Beans using container-managed transaction. This example illustrated a single createDepartment method in the enterprise bean, but by replicating the application module interaction code that we've illustrated in createDepartment, any number of methods in your stateless session bean can use the aggregated application module instance created in the ejbCreate() method.
    Code Listing
    The full code listing for the SampleStatelessEJB bean implementation class looks like this:
    * StatelessSampleEJB
    * Illustrates how to use an aggregated BC4J application module
    * in local mode as part of the implementation of a stateless
    * EJB session bean using container-managed transaction.
    * HISTORY
    * smuench/dmutreja 14-FEB-2002 Created
    package com.example;
    import oracle.jbo.*;
    import oracle.jbo.server.*;
    import javax.ejb.*;
    import oracle.jbo.domain.Number;
    import oracle.jbo.common.PropertyConstants;
    import java.util.Hashtable;
    import javax.naming.InitialContext;
    import oracle.jbo.server.ejb.ContainerManagedTxnHandlerImpl;
    public class StatelessSampleEJBBean implements SessionBean {
      // JNDI resource name for the J2EE datasource to use
      private static final String DATASOURCE = "jdbc/OracleCoreDS";
      // Fully-qualified BC4J application module name to aggregate
      private static final String APPMODNAME = "com.example.hr.HRApp";
      // Place to hold onto the aggregated appmodule instance
      transient private ApplicationModule _am  = null;
      // Remember the SessionContext that the EJB container provides us
      private           SessionContext    _ctx = null;
      public void ejbCreate() throws CreateException {
        try {
          // Setup a hashtable of environment parameters for JNDI initial context
          Hashtable env = new Hashtable();
          env.put(JboContext.INITIAL_CONTEXT_FACTORY,JboContext.JBO_CONTEXT_FACTORY);
          env.put(JboContext.DEPLOY_PLATFORM, JboContext.PLATFORM_LOCAL);
          env.put(PropertyConstants.INTERNAL_CONNECTION_PARAMS,DATASOURCE);
          // Create an initial context, using this hashtable of environment params
          InitialContext ic = new InitialContext(env);
          // Lookup a home interface for the application module
          ApplicationModuleHome home = (ApplicationModuleHome)ic.lookup(APPMODNAME);
          // Using the home, create the instance of the appmodule we'll use
          _am = home.create();
          // Register the BC4J factory to handle EJB container-managed transactions
          registerContainerManagedTransactionHandlerFactory();
        catch(Exception ex) {
           ex.printStackTrace();
          throw new CreateException(ex.getMessage());
      public void ejbActivate(){}
      public void ejbPassivate(){}
      public void ejbRemove(){}
      public void setSessionContext(SessionContext ctx){ _ctx = ctx; }
      public void createDepartment(int id, String name, String loc)
      throws AppException {
        try {
          // Connect the AM to the datasource we want to use for the duration
          // of this single method call.
          _am.getTransaction().connectToDataSource(null,DATASOURCE,false);
          // Use the "Departments" view object member of this AM
          ViewObject departments = _am.findViewObject("Departments");
          // Create a new row in this view object.
          Row newDept = departments.createRow();
          // Populate the attributes from the parameter arguments.
          newDept.setAttribute("Deptno", new Number(id));
          newDept.setAttribute("Dname", name);
          newDept.setAttribute("Loc", loc);
          // Add the new row to the view object's default rowset
          departments.insertRow(newDept);
          // Post all changes in the AM, but we don't commit them. The EJB
          // container managed transaction handles the commit.
          _am.getTransaction().postChanges();
        catch(JboException ex) {
          // To be good EJB Container-Managed Transaction "citizens" we have
          // to mark the transaction as needing a rollback if there are problems
          _ctx.setRollbackOnly();
          throw new AppException("Error creating dept "+ id +\n"+ex.getMessage());
        finally {
          try {
            // Disconnect the AM from the datasource we're using
            _am.getTransaction().disconnect();
          catch(Exception ex) { /* Ignore */ }
      private void registerContainerManagedTransactionHandlerFactory() {
        SessionImpl session = (SessionImpl)_am.getSession();
        session.setTransactionHandlerFactory(
          new TransactionHandlerFactory() {
            public TransactionHandler createTransactionHandler() {
              return new ContainerManagedTxnHandlerImpl();
            public JTATransactionHandler createJTATransactionHandler() {
              return new ContainerManagedTxnHandlerImpl();

    Hi Steve, It4s me again;
    About the question I made, I tried with a single assembly-descriptor tag and a single container-transaction tag in the deployment descriptor of the session bean and these were the results.
    java.lang.NullPointerException
         void com.evermind.server.rmi.RMIConnection.EXCEPTION_ORIGINATES_FROM_THE_REMOTE_SERVER(java.lang.Throwable)
         java.lang.Object com.evermind.server.rmi.RMIConnection.invokeMethod(com.evermind.server.rmi.RMIContext, long, long, java.lang.reflect.Method, java.lang.Object[])
         java.lang.Object com.evermind.server.rmi.RemoteInvocationHandler.invoke(java.lang.Object, java.lang.reflect.Method, java.lang.Object[])
         java.lang.Object com.evermind.server.rmi.RecoverableRemoteInvocationHandler.invoke(java.lang.Object, java.lang.reflect.Method, java.lang.Object[])
         java.lang.Object com.evermind.server.ejb.StatelessSessionRemoteInvocationHandler.invoke(java.lang.Object, java.lang.reflect.Method, java.lang.Object[])
         void __Proxy1.modificaEnvoltura(java.lang.Integer, java.lang.Integer, java.lang.Integer, java.lang.Integer, java.lang.Integer, java.lang.Integer, java.lang.String)
         void SamplemdeController.envolturaControlEJBClient.main(java.lang.String[])
    Then I tried with multiple assembly-descriptor tags each with a single container-transaction tag and the results were:
    java.lang.NullPointerException
         void com.evermind.server.rmi.RMIConnection.EXCEPTION_ORIGINATES_FROM_THE_REMOTE_SERVER(java.lang.Throwable)
         java.lang.Object com.evermind.server.rmi.RMIConnection.invokeMethod(com.evermind.server.rmi.RMIContext, long, long, java.lang.reflect.Method, java.lang.Object[])
         java.lang.Object com.evermind.server.rmi.RemoteInvocationHandler.invoke(java.lang.Object, java.lang.reflect.Method, java.lang.Object[])
         java.lang.Object com.evermind.server.rmi.RecoverableRemoteInvocationHandler.invoke(java.lang.Object, java.lang.reflect.Method, java.lang.Object[])
         java.lang.Object com.evermind.server.ejb.StatelessSessionRemoteInvocationHandler.invoke(java.lang.Object, java.lang.reflect.Method, java.lang.Object[])
         void __Proxy1.modificaEnvoltura(java.lang.Integer, java.lang.Integer, java.lang.Integer, java.lang.Integer, java.lang.Integer, java.lang.Integer, java.lang.String)
         void SamplemdeController.envolturaControlEJBClient.main(java.lang.String[])
    Finally I tried with a single assembly-descriptor and multiple container tags and the results were:
    java.lang.NullPointerException
         void com.evermind.server.rmi.RMIConnection.EXCEPTION_ORIGINATES_FROM_THE_REMOTE_SERVER(java.lang.Throwable)
         java.lang.Object com.evermind.server.rmi.RMIConnection.invokeMethod(com.evermind.server.rmi.RMIContext, long, long, java.lang.reflect.Method, java.lang.Object[])
         java.lang.Object com.evermind.server.rmi.RemoteInvocationHandler.invoke(java.lang.Object, java.lang.reflect.Method, java.lang.Object[])
         java.lang.Object com.evermind.server.rmi.RecoverableRemoteInvocationHandler.invoke(java.lang.Object, java.lang.reflect.Method, java.lang.Object[])
         java.lang.Object com.evermind.server.ejb.StatelessSessionRemoteInvocationHandler.invoke(java.lang.Object, java.lang.reflect.Method, java.lang.Object[])
         void __Proxy1.modificaEnvoltura(java.lang.Integer, java.lang.Integer, java.lang.Integer, java.lang.Integer, java.lang.Integer, java.lang.Integer, java.lang.String)
         void SamplemdeController.envolturaControlEJBClient.main(java.lang.String[])
    How can I make my Stateless Session bean work out?

  • Length Validator

    Hi All,
    I used Length Validator on few attributes in Entity Object. It works fine and gives validation error on UI when validation for textfields fails.
    But, I Do Not want those extra JBO thinggy appearing on UI. How can I get rid of that JBO thiggy (Just "First Name: - FirstName exceeds max limit of 22" looks cool ). How do I suppress JBO thing not to appear. thanks pp
    I have pasted following sample.
    Error
    JBO-27024: Failed to validate a row with key oracle.jbo.Key[[email protected] ] of type GeminiLoginAppModule.TableUsersView
    JBO-27025: Failed to validate attribute FirstName with value dfjkdshfjkdshfjksdhfjkdshfjdshfjdshfjkdhfdsf
    JBO-27025: Failed to validate attribute LastName with value sdfdsfdsfdsfsdfsdhjkfdsjkfhjkdshfjkdshfjkdshfjskdfs
    First Name: - JBO-27010: Attribute set with value dfjkdshfjkdshfjksdhfjkdshfjdshfjdshfjkdhfdsf for FirstName in GeminiLoginAppModule.TableUsersView has invalid precision/scale
    First Name: - FirstName exceeds max limit of 22
    Last Name: - JBO-27010: Attribute set with value sdfdsfdsfdsfsdfsdhjkfdsjkfhjkdshfjkdshfjkdshfjskdfs for LastName in GeminiLoginAppModule.TableUsersView has invalid precision/scale
    Last Name: - LastName exceeds max limit of 22

    Hi,
    didn't try if th SRDemo code also works for validators, I assume this however. Get SRDemo from help--> check for updates
    Expand the UserInterface project and also the node ApplicationSources-->oracle.srdemo.view --> frameworkExt
    The package contains a page lifecycle class that in combination with the other classes intercepts JBO error messages to eliminate the JBO-xxxxx content
    See the faces-config.xml file how this is added
    Frank

  • Error.  Combobox in JTable in 10.1.3 EA

    (oracle.jbo.AttrSetValException) JBO-27010: Attribute set with value oracle.jbo.server.ViewRowImpl@1b for Ediz in AppModule.UgSfpView2 has invalid precision/scale
    Type of "Ediz" is VARCHAR2(5)

    Hi,
    can you provide a step-by-step description using the EMP Table of what you did to get to this state ?
    Frank

  • Invalid precision/scale

    hi when i select a value in my LOV AM GETING THIS ERROR invalid precision/scale
    my LOV IS
    <ViewAttribute
        Name="Orgsubtypecode1"
        IsNotNull="true"
        PrecisionRule="true"
        EntityAttrName="Orgsubtypecode"
        EntityUsage="LutOrgsubtypes"
        AliasName="ORGSUBTYPECODE1"
        LOVName="LOV_Orgsubtypecode1">
        <Properties>
          <SchemaBasedProperties>
            <CONTROLTYPE
              Value="choice"/>
          </SchemaBasedProperties>
        </Properties>
      </ViewAttribute>my stack error is
    oracle.jbo.AttrSetValException: JBO-27010: Attribute set with value DBE for Orgsubtypecode in AppModule.OrgDetails1 has invalid precision/scale
         at oracle.jbo.rules.RulesBeanUtils.createException(RulesBeanUtils.java:381)
         at oracle.jbo.rules.RulesBeanUtils.createException(RulesBeanUtils.java:360)
         at oracle.jbo.rules.AbstractValidator.createException(AbstractValidator.java:1077)
         at oracle.jbo.rules.AbstractValidator.doRaiseException(AbstractValidator.java:1120)
         at oracle.jbo.rules.AbstractValidator.raiseException(AbstractValidator.java:1109)
         at oracle.jbo.rules.JboAbstractValidator.raiseException(JboAbstractValidator.java:409)
         at oracle.jbo.rules.AbstractValidator.raiseException(AbstractValidator.java:1096)
         at oracle.jbo.rules.JboAbstractValidator.callValidateValueWithContext(JboAbstractValidator.java:239)
         at oracle.jbo.rules.JboAbstractValidator.validate(JboAbstractValidator.java:386)
         at oracle.jbo.rules.RulesBeanUtils.validateObject(RulesBeanUtils.java:716)
         at oracle.jbo.rules.RulesBeanUtils.validate(RulesBeanUtils.java:696)
         at oracle.jbo.server.AttributeDefImpl.validate(AttributeDefImpl.java:3349)
         at oracle.jbo.server.AttributeDefImpl.set(AttributeDefImpl.java:3294)
         at oracle.jbo.server.EntityImpl.setAttributeInternal(EntityImpl.java:2012)
         at ecadastre.gov.za.model.entities.UamOrganisationsImpl.setOrgsubtypecode(UamOrganisationsImpl.java:501)
         at ecadastre.gov.za.model.entities.UamOrganisationsImpl$AttributesEnum$14.put(UamOrganisationsImpl.java:159)
         at ecadastre.gov.za.model.entities.UamOrganisationsImpl.setAttrInvokeAccessor(UamOrganisationsImpl.java:531)
         at oracle.jbo.server.EntityImpl.setAttribute(EntityImpl.java:1920)
         at oracle.jbo.server.ViewRowStorage.setAttributeValue(ViewRowStorage.java:2363)
         at oracle.jbo.server.ViewRowStorage.setAttributeInternal(ViewRowStorage.java:2165)
         at oracle.jbo.server.ViewRowImpl.setAttributeInternal(ViewRowImpl.java:1453)
         at oracle.jbo.server.ViewRowImpl.setAttrInvokeAccessor(ViewRowImpl.java:1428)
         at oracle.jbo.server.ViewRowImpl.setAttribute(ViewRowImpl.java:1089)
         at oracle.jbo.server.ViewRowImpl.setAttribute(ViewRowImpl.java:1029)
         at oracle.jbo.server.ViewRowImpl.setAttributeValues(ViewRowImpl.java:1703)
         at oracle.adf.model.binding.DCDataControl.setAttributesInRow(DCDataControl.java:2428)
         at oracle.jbo.uicli.binding.JUCtrlValueBinding.setAttributeValuesInRow(JUCtrlValueBinding.java:976)
         at oracle.jbo.uicli.binding.JUCtrlListBinding.setTargetAttrsFromLovRow(JUCtrlListBinding.java:2801)
         at oracle.jbo.uicli.jui.JUComboBoxCtrlBinding.updateTargetFromSelectedValue(JUComboBoxCtrlBinding.java:793)
         at oracle.jbo.uicli.jui.JUComboBoxCtrlBinding.actionPerformed(JUComboBoxCtrlBinding.java:702)
         at javax.swing.JComboBox.fireActionEvent(JComboBox.java:1240)
         at javax.swing.JComboBox.setSelectedItem(JComboBox.java:567)
         at javax.swing.JComboBox.setSelectedIndex(JComboBox.java:603)
         at javax.swing.plaf.basic.BasicComboPopup$Handler.mouseReleased(BasicComboPopup.java:817)
         at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:273)
         at java.awt.Component.processMouseEvent(Component.java:6289)
         at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
         at javax.swing.plaf.basic.BasicComboPopup$1.processMouseEvent(BasicComboPopup.java:481)
         at java.awt.Component.processEvent(Component.java:6054)
         at java.awt.Container.processEvent(Container.java:2041)
         at java.awt.Component.dispatchEventImpl(Component.java:4652)
         at java.awt.Container.dispatchEventImpl(Container.java:2099)
         at java.awt.Component.dispatchEvent(Component.java:4482)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4577)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
         at java.awt.Container.dispatchEventImpl(Container.java:2085)
         at java.awt.Window.dispatchEventImpl(Window.java:2478)
         at java.awt.Component.dispatchEvent(Component.java:4482)
         at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:644)
         at java.awt.EventQueue.access$000(EventQueue.java:85)
         at java.awt.EventQueue$1.run(EventQueue.java:603)
         at java.awt.EventQueue$1.run(EventQueue.java:601)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
         at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98)
         at java.awt.EventQueue$2.run(EventQueue.java:617)
         at java.awt.EventQueue$2.run(EventQueue.java:615)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:614)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
         at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

    Can you check whats the precision/scale and datatype of the attribute from corresponding EO attribute. That will clarify things.

  • Dynamic Checkbox in Grid..........

    Hi,
    i have 2 grid controls(grid1 & grid2). Grid2 values are displaying based on the selected values from grid1.Im getting the dynamic values in grid2.
    now i have to dynamicaly inculde a checkbox in grid2 .so that user can select any one from the grid2 values. how to inculde a dynamice checkbox in a grid?
    null

    Nainar,
    I did this class for active CheckBox in Grid using Brian's note. the CheckBox will attached to Grid and link to database.The only problem is when I clicked on
    CheckBox to change the value, got this error:
    JBO-27010: Attribute set with value true for Saturday in Terminal has invalid precision/scale
    Note:Saturday is a column of Terminal table.
    should be something regarding DataType
    import javax.swing.*;
    import java.awt.*;
    import oracle.dacf.control.swing.*;
    import javax.swing.table.*;
    // this class will customize a cell in GridControl as CheckBox(Dynamic)
    // To instantiate this class, add the following step in your applet
    // 0- add this class to your package.
    // 1- Get a reference to your GridControl, same as below:
    // JTable myTable = gridControl1.getTable();
    // 2- instantiate an object from this class. same as below
    // new myGridCheckBox(myTable,"SundayOpen");
    public class myGridCheckBox extends Object {
    public myGridCheckBox(JTable m_Table, String m_colName ) {
    CheckBoxControl checkBx = new CheckBoxControl();
    // get reference to a column
    TableColumn ActiveColumn = m_Table.getColumn(m_colName);
    // custom TableCellRenderer
    TableCellRenderer myTCR = new CheckCellRenderer();
    // forces this column to use the custom Cell Renderer
    ActiveColumn.setCellRenderer(myTCR);
    TableCellEditor myTCE = new DefaultCellEditor(checkBx);
    ActiveColumn.setCellEditor(myTCE);
    // inner class for custom CellRenderer (CheckBox)
    class CheckCellRenderer extends CheckBoxControl implements TableCellRenderer{
    public CheckCellRenderer()
    super();
    public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected,
    boolean hasFocus, int row, int column)
    setBackground(isSelected && hasFocus ? table.getSelectionBackground() : table.getBackground());
    setForeground(isSelected && hasFocus ? table.getSelectionForeground() : table.getForeground());
    setFont(table.getFont());
    setSelectionValue("Y");
    setDeselectionValue("N");
    setValue(value);
    return this;
    would appreciate to let me know if you solved the problem.
    Thanks
    Ali
    null

  • BC4J - how to remove invalid Row from ViewObject

    See the simplified code below. I want to insert a number of records in a table in one transaction. For every insert any occuring error is handled (stored) and after all inserts the errors are reported.
    private void insert(ViewObject vo, int id, String flag) {
    try {
    Row row = vo.createRow();
    row.setAttribute("Id", new Integer(id));
    row.setAttribute("Flag", flag);
    vo.insertRow(row);
    appMod.getTransaction().postChanges();
    catch (JboException exc) {
    handleError(exc);
    // appMod.getTransaction().rollback();
    So when inserting 3 records as below:
    insert(vo, 1, "A");
    insert(vo, 2 ,"BB");
    insert(vo, 3, "C");
    a "JBO-27010: Attribute set with value BB for Flag in Testtab has invalid precision/scale" exception will occur in the second record on the statement row.setAttribute("Flag", flag); as the Flag attribute is a varchar2(1). When the 3rd record gets inserted still an error occurs. It seems that the 2nd record is still cached somewhere; it's not been inserted into the ViewObject (from using the debugger I get the impression it's in the Entity object cache). BC4J tries to insert the 2nd row, that only has an Id attribute and no Flag attribute which is defined not null. So the 3rd record which is ok doesn't get inserted....
    How can I get rid of the second row ? Doing a rollback when an exception occurs doesn't work because then the first record which is ok is lost.
    Cheers Hans

    It turns out to be pretty simple - row.remove() does the trick.
    If only I'ld look in the right place first time everytime... :P

  • ADF Groovy Expression with bind variable and ResourceBundle

    Now I have ViewObject which have WHERE clause with bind variable.
    This bind variable is for language. Within bind variable I can change Value Type to Expression and into Value: I put +(ResourceBundle.getBundle("model.ModelBundle")).getString("language")+.
    Now if I run Oracle Business Component Browser (on AppModule) this works. In my ModelBundle.properties there is language=1 name-value pair. And with different locale I have different language number.
    Now if I put that ViewObject on one JSF, this bind variable expression does not work any more. Error:
    *oracle.jbo.JboException: JBO-29000: Unexpected exception caught: java.util.MissingResourceException, msg=Can't find bundle for base name model.ModelBundle, locale my_locale*
    Any ideas?
    10x
    Zmeda

    The most wierd thing is that, if I make ViewObjectImpl and insert this method
    public String getLanguage() {
    return (ResourceBundle.getBundle("model.ModelBundle")).getString("language");
    and call it in Bind Variable Expression Value: viewObject.getLanguage()
    IT WORKS!
    But why with groovy expression it does not work?
    Zmeda

  • Executable JAR using ADF displays JBO-26061: Error while opening JDBC conn.

    I'm trying to create a simple Java Desktop Application (ADF) in JDeveloper 11g (11.1.2.3.0) which will run on Windows XP (SP3) simply by clicking the JAR file. I have encountered many problems and found solutions but I am now completely stuck. Currently when I execute the JAR I get (oracle.jbo.DMLException) JBO-26061: Error while opening JDBC connection.
    Inside JDeveloper it runs perfectly but I want it to run without JDeveloper. If I run the executable string JDeveloper displays when you click run, this also works fine.
    Here's what I've done -
    Created a demo app using the 'Building a Java Swing application with Oracle ADF' tutorial as a proof of concept.
    Created a deployment profile 'Client Jar Deployment Profile'
    Create a new file group to include all the JAR files.
    Create a manifest.mf listing all the JAR files - making sure not to exceed 70 bytes on each line and every new line starts with 2 spaces and at the end of the line there is no trailing spaces.
    Made sure the jps-config.xml and cwallet.sso is included in the META-INF folder of the JAR.
    I've deployed the JAR file to a folder which contains all the associated JAR files, made sure the manifest.mf is pointing to the correct files and executed my jar (double clicked it) after a short pause (2-3 seconds) that's when the error pops up.
    Here is the error stack
    oracle.jbo.DMLException: JBO-26061: Error while opening JDBC connection.
         at oracle.jbo.server.URLConnectionHelper.getConnection(URLConnectionHelper.java:218)
         at oracle.jbo.server.URLConnectionHelper.getConnection(URLConnectionHelper.java:45)
         at oracle.jbo.server.ConnectionPoolDataSource.getConnection(ConnectionPoolDataSource.java:72)
         at oracle.jbo.server.ConnectionPoolDataSource.getConnection(ConnectionPoolDataSource.java:61)
         at oracle.jbo.server.DBTransactionImpl.establishNewConnection(DBTransactionImpl.java:968)
         at oracle.jbo.server.DBTransactionImpl.initTransaction(DBTransactionImpl.java:1147)
         at oracle.jbo.server.DBTransactionImpl.initTxn(DBTransactionImpl.java:6838)
         at oracle.jbo.server.DBTransactionImpl2.connectToDataSource(DBTransactionImpl2.java:298)
         at oracle.jbo.server.DBTransactionImpl2.connectToDataSource(DBTransactionImpl2.java:329)
         at oracle.jbo.common.ampool.DefaultConnectionStrategy.connect(DefaultConnectionStrategy.java:203)
         at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolConnect(ApplicationPoolMessageHandler.java:600)
         at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolMessage(ApplicationPoolMessageHandler.java:417)
         at oracle.jbo.server.ApplicationModuleImpl.doPoolMessage(ApplicationModuleImpl.java:9053)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.sendPoolMessage(ApplicationPoolImpl.java:4606)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.sendPoolMessage(ApplicationPoolImpl.java:4697)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.sendPoolMessage(ApplicationPoolImpl.java:4697)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.prepareApplicationModule(ApplicationPoolImpl.java:2536)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:2346)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(ApplicationPoolImpl.java:3245)
         at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:571)
         at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:504)
         at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:499)
         at oracle.adf.model.bc4j.DCJboDataControl.initializeApplicationModule(DCJboDataControl.java:517)
         at oracle.adf.model.bc4j.DCJboDataControl.getApplicationModule(DCJboDataControl.java:867)
         at oracle.adf.model.binding.DCBindingContainer.setDataControl(DCBindingContainer.java:571)
         at oracle.jbo.uicli.jui.JUPanelBinding.useDefaultDataControl(JUPanelBinding.java:912)
         at oracle.jbo.uicli.jui.JUPanelBinding.setup(JUPanelBinding.java:125)
         at view.Form.setBindingContext(Form.java:370)
         at view.Form.main(Form.java:425)
    Here is my manifest
    Manifest-Version: 1.0
    Class-Path: adf-controller-security.jar adf-dt-at-rt.jar adf-share-bas
    e.jar adf-share-ca.jar adf-share-security.jar adf-share-support.jar a
    dfdt_common.jar adflibrary.jar adflogginghandler.jar adfm.jar adfshar
    embean.jar adftransactionsdt.jar bc4j-mbeans.jar bc4jimdomains.jar ca
    che.jar commons-cli-1.0.jar commons-el.jar db-ca.jar dms.jar dvt-jcli
    ent.jar dvt-utils.jar fmw_audit.jar forms-1.0.6.jar groovy-all-1.6.3.
    jar identitystore.jar inspect4.jar jacc-spi.jar javatools-nodeps.jar
    javax.activation_1.1.0.0_1-1.jar javax.jsp_1.2.0.0_2-1.jar javax.mail
    _1.1.0.0_1-4-1.jar javax.management.j2ee_1.0.jar javax.management_1.2
    .1.jar javax.security.jacc_1.0.0.0_1-1.jar javax.servlet_1.0.0.0_2-5.
    jar jdev-cm.jar jdev-rt.jar jewt4.jar jmf.jar jmxframework.jar jmxspi
    .jar jps-api.jar jps-common.jar jps-ee.jar jps-internal.jar jps-manif
    est.jar jps-unsupported-api.jar jsp-el-api.jar ldapjclnt11.jar list.t
    xt mdsrt.jar META-INF model ojdbc6dms.jar ojdl.jar ojmisc.jar oracle-
    el.jar oracle.ucp_11.1.0.jar oraclepki.jar orai18n-mapping.jar orai18
    n.jar oramds.jar ordhttp.jar ordim.jar osdt_cert.jar osdt_core.jar os
    dt_ws_sx.jar osdt_xmlsec.jar resourcebundle.jar runtime12.jar share.j
    ar xml.jar xmlef.jar xmlparserv2.jar
    Main-Class: view.Form
    All of these JARs are in the same folder as my JAR.
    Here's the tutorial i followed - http://docs.oracle.com/cd/E18941_01/tutorials/jdtut_11r2_19/jdtut_11r2_19.html
    Any help would be greatly appreciated. Perhaps I'm misunderstanding and Java/ADF applications are not supposed to work without the WLS.
    Many thanks,
    Christian.
    Edited by: ChrisDugdale on Nov 15, 2012 2:41 AM

    That's excellent advice, changing the connection type, I tried this before, it still gives the same error so I didn't think it had much to do with my problem but what I didn't notice is it gives a more meaningful error stack - see below, compared to my original error stack, i think you're on to something good! So, clearly the password isn't being packaged into the JAR, now I thought this might be happening which is why I added "DeployPassword" in the connections.xml file but that hasn't made a difference. I can see the connections.xml in my JAR if i expand it in the META-INF folder, so I know that's included ok, along with jps-config.xml/adf-config.xml/adfm.xml/cwallet.sso/MANIFEST.MF also in the META-INF folder (inside the JAR)
    I can see the password element contains no value, but I tried changing this before with no luck. I'll try again.
    connections.xml -
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <References xmlns="http://xmlns.oracle.com/adf/jndi">
    <Reference name="FOD" className="oracle.jdeveloper.db.adapter.DatabaseProvider" credentialStoreKey="FOD" xmlns="">
    <Factory className="oracle.jdeveloper.db.adapter.DatabaseProviderFactory"/>
    <RefAddresses>
    <StringRefAddr addrType="sid">
    <Contents>DEVSHED</Contents>
    </StringRefAddr>
    <StringRefAddr addrType="subtype">
    <Contents>oraJDBC</Contents>
    </StringRefAddr>
    <StringRefAddr addrType="port">
    <Contents>1521</Contents>
    </StringRefAddr>
    <StringRefAddr addrType="hostname">
    <Contents>moe</Contents>
    </StringRefAddr>
    <StringRefAddr addrType="user">
    <Contents>fod</Contents>
    </StringRefAddr>
    <SecureRefAddr addrType="password"/>
    <StringRefAddr addrType="DeployPassword">
    <Contents>true</Contents>
    </StringRefAddr>
    <StringRefAddr addrType="oraDriverType">
    <Contents>thin</Contents>
    </StringRefAddr>
    </RefAddresses>
    </Reference>
    </References>
    oracle.jbo.DMLException: JBO-26061: Error while opening JDBC connection.
         at oracle.jbo.server.ConnectionPool.createConnection(ConnectionPool.java:207)
         at oracle.jbo.server.ConnectionPool.instantiateResource(ConnectionPool.java:166)
         at oracle.jbo.pool.ResourcePool.createResource(ResourcePool.java:580)
         at oracle.jbo.pool.ResourcePool.useResource(ResourcePool.java:313)
         at oracle.jbo.server.ConnectionPool.getConnectionInternal(ConnectionPool.java:102)
         at oracle.jbo.server.ConnectionPool.getConnection(ConnectionPool.java:66)
         at oracle.jbo.server.ConnectionPoolManagerImpl.getConnection(ConnectionPoolManagerImpl.java:52)
         at oracle.jbo.server.URLConnectionHelper.getConnection(URLConnectionHelper.java:129)
         at oracle.jbo.server.DBTransactionImpl.establishNewConnection(DBTransactionImpl.java:978)
         at oracle.jbo.server.DBTransactionImpl.initTransaction(DBTransactionImpl.java:1147)
         at oracle.jbo.server.DBTransactionImpl.initTxn(DBTransactionImpl.java:6838)
         at oracle.jbo.server.DBTransactionImpl2.connect(DBTransactionImpl2.java:130)
         at oracle.jbo.common.ampool.DefaultConnectionStrategy.connect(DefaultConnectionStrategy.java:213)
         at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolConnect(ApplicationPoolMessageHandler.java:600)
         at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolMessage(ApplicationPoolMessageHandler.java:417)
         at oracle.jbo.server.ApplicationModuleImpl.doPoolMessage(ApplicationModuleImpl.java:9053)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.sendPoolMessage(ApplicationPoolImpl.java:4606)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.sendPoolMessage(ApplicationPoolImpl.java:4697)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.sendPoolMessage(ApplicationPoolImpl.java:4697)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.prepareApplicationModule(ApplicationPoolImpl.java:2536)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:2346)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(ApplicationPoolImpl.java:3245)
         at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:571)
         at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:504)
         at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:499)
         at oracle.adf.model.bc4j.DCJboDataControl.initializeApplicationModule(DCJboDataControl.java:517)
         at oracle.adf.model.bc4j.DCJboDataControl.getApplicationModule(DCJboDataControl.java:867)
         at oracle.adf.model.binding.DCBindingContainer.setDataControl(DCBindingContainer.java:571)
         at oracle.jbo.uicli.jui.JUPanelBinding.useDefaultDataControl(JUPanelBinding.java:912)
         at oracle.jbo.uicli.jui.JUPanelBinding.setup(JUPanelBinding.java:125)
         at view.Form.setBindingContext(Form.java:370)
         at view.Form.main(Form.java:425)
    Caused by: java.sql.SQLException: ORA-01005: null password given; logon denied
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:462)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:397)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:389)
         at oracle.jdbc.driver.T4CTTIfun.processError(T4CTTIfun.java:689)
         at oracle.jdbc.driver.T4CTTIoauthenticate.processError(T4CTTIoauthenticate.java:452)
         at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:481)
         at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:205)
         at oracle.jdbc.driver.T4CTTIoauthenticate.doOAUTH(T4CTTIoauthenticate.java:384)
         at oracle.jdbc.driver.T4CTTIoauthenticate.doOAUTH(T4CTTIoauthenticate.java:811)
         at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:411)
         at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:678)
         at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:238)
         at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:34)
         at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:567)
         at java.sql.DriverManager.getConnection(Unknown Source)
         at java.sql.DriverManager.getConnection(Unknown Source)
         at oracle.jbo.server.URLConnectionHelper.getConnection(URLConnectionHelper.java:144)
         at oracle.jbo.server.URLConnectionHelper.getConnectionFromDriver(URLConnectionHelper.java:50)
         at oracle.jbo.server.ConnectionPool.createConnection(ConnectionPool.java:195)
         ... 31 more
    ## Detail 0 ##
    java.sql.SQLException: ORA-01005: null password given; logon denied
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:462)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:397)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:389)
         at oracle.jdbc.driver.T4CTTIfun.processError(T4CTTIfun.java:689)
         at oracle.jdbc.driver.T4CTTIoauthenticate.processError(T4CTTIoauthenticate.java:452)
         at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:481)
         at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:205)
         at oracle.jdbc.driver.T4CTTIoauthenticate.doOAUTH(T4CTTIoauthenticate.java:384)
         at oracle.jdbc.driver.T4CTTIoauthenticate.doOAUTH(T4CTTIoauthenticate.java:811)
         at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:411)
         at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:678)
         at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:238)
         at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:34)
         at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:567)
         at java.sql.DriverManager.getConnection(Unknown Source)
         at java.sql.DriverManager.getConnection(Unknown Source)
         at oracle.jbo.server.URLConnectionHelper.getConnection(URLConnectionHelper.java:144)
         at oracle.jbo.server.URLConnectionHelper.getConnectionFromDriver(URLConnectionHelper.java:50)
         at oracle.jbo.server.ConnectionPool.createConnection(ConnectionPool.java:195)
         at oracle.jbo.server.ConnectionPool.instantiateResource(ConnectionPool.java:166)
         at oracle.jbo.pool.ResourcePool.createResource(ResourcePool.java:580)
         at oracle.jbo.pool.ResourcePool.useResource(ResourcePool.java:313)
         at oracle.jbo.server.ConnectionPool.getConnectionInternal(ConnectionPool.java:102)
         at oracle.jbo.server.ConnectionPool.getConnection(ConnectionPool.java:66)
         at oracle.jbo.server.ConnectionPoolManagerImpl.getConnection(ConnectionPoolManagerImpl.java:52)
         at oracle.jbo.server.URLConnectionHelper.getConnection(URLConnectionHelper.java:129)
         at oracle.jbo.server.DBTransactionImpl.establishNewConnection(DBTransactionImpl.java:978)
         at oracle.jbo.server.DBTransactionImpl.initTransaction(DBTransactionImpl.java:1147)
         at oracle.jbo.server.DBTransactionImpl.initTxn(DBTransactionImpl.java:6838)
         at oracle.jbo.server.DBTransactionImpl2.connect(DBTransactionImpl2.java:130)
         at oracle.jbo.common.ampool.DefaultConnectionStrategy.connect(DefaultConnectionStrategy.java:213)
         at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolConnect(ApplicationPoolMessageHandler.java:600)
         at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolMessage(ApplicationPoolMessageHandler.java:417)
         at oracle.jbo.server.ApplicationModuleImpl.doPoolMessage(ApplicationModuleImpl.java:9053)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.sendPoolMessage(ApplicationPoolImpl.java:4606)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.sendPoolMessage(ApplicationPoolImpl.java:4697)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.sendPoolMessage(ApplicationPoolImpl.java:4697)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.prepareApplicationModule(ApplicationPoolImpl.java:2536)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:2346)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(ApplicationPoolImpl.java:3245)
         at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:571)
         at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:504)
         at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:499)
         at oracle.adf.model.bc4j.DCJboDataControl.initializeApplicationModule(DCJboDataControl.java:517)
         at oracle.adf.model.bc4j.DCJboDataControl.getApplicationModule(DCJboDataControl.java:867)
         at oracle.adf.model.binding.DCBindingContainer.setDataControl(DCBindingContainer.java:571)
         at oracle.jbo.uicli.jui.JUPanelBinding.useDefaultDataControl(JUPanelBinding.java:912)
         at oracle.jbo.uicli.jui.JUPanelBinding.setup(JUPanelBinding.java:125)
         at view.Form.setBindingContext(Form.java:370)
         at view.Form.main(Form.java:425)
    ----- Level 1: Detail 0 -----
    java.sql.SQLException: ORA-01005: null password given; logon denied
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:462)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:397)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:389)
         at oracle.jdbc.driver.T4CTTIfun.processError(T4CTTIfun.java:689)
         at oracle.jdbc.driver.T4CTTIoauthenticate.processError(T4CTTIoauthenticate.java:452)
         at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:481)
         at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:205)
         at oracle.jdbc.driver.T4CTTIoauthenticate.doOAUTH(T4CTTIoauthenticate.java:384)
         at oracle.jdbc.driver.T4CTTIoauthenticate.doOAUTH(T4CTTIoauthenticate.java:811)
         at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:411)
         at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:678)
         at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:238)
         at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:34)
         at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:567)
         at java.sql.DriverManager.getConnection(Unknown Source)
         at java.sql.DriverManager.getConnection(Unknown Source)
         at oracle.jbo.server.URLConnectionHelper.getConnection(URLConnectionHelper.java:144)
         at oracle.jbo.server.URLConnectionHelper.getConnectionFromDriver(URLConnectionHelper.java:50)
         at oracle.jbo.server.ConnectionPool.createConnection(ConnectionPool.java:195)
         at oracle.jbo.server.ConnectionPool.instantiateResource(ConnectionPool.java:166)
         at oracle.jbo.pool.ResourcePool.createResource(ResourcePool.java:580)
         at oracle.jbo.pool.ResourcePool.useResource(ResourcePool.java:313)
         at oracle.jbo.server.ConnectionPool.getConnectionInternal(ConnectionPool.java:102)
         at oracle.jbo.server.ConnectionPool.getConnection(ConnectionPool.java:66)
         at oracle.jbo.server.ConnectionPoolManagerImpl.getConnection(ConnectionPoolManagerImpl.java:52)
         at oracle.jbo.server.URLConnectionHelper.getConnection(URLConnectionHelper.java:129)
         at oracle.jbo.server.DBTransactionImpl.establishNewConnection(DBTransactionImpl.java:978)
         at oracle.jbo.server.DBTransactionImpl.initTransaction(DBTransactionImpl.java:1147)
         at oracle.jbo.server.DBTransactionImpl.initTxn(DBTransactionImpl.java:6838)
         at oracle.jbo.server.DBTransactionImpl2.connect(DBTransactionImpl2.java:130)
         at oracle.jbo.common.ampool.DefaultConnectionStrategy.connect(DefaultConnectionStrategy.java:213)
         at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolConnect(ApplicationPoolMessageHandler.java:600)
         at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolMessage(ApplicationPoolMessageHandler.java:417)
         at oracle.jbo.server.ApplicationModuleImpl.doPoolMessage(ApplicationModuleImpl.java:9053)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.sendPoolMessage(ApplicationPoolImpl.java:4606)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.sendPoolMessage(ApplicationPoolImpl.java:4697)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.sendPoolMessage(ApplicationPoolImpl.java:4697)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.prepareApplicationModule(ApplicationPoolImpl.java:2536)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:2346)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(ApplicationPoolImpl.java:3245)
         at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:571)
         at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:504)
         at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:499)
         at oracle.adf.model.bc4j.DCJboDataControl.initializeApplicationModule(DCJboDataControl.java:517)
         at oracle.adf.model.bc4j.DCJboDataControl.getApplicationModule(DCJboDataControl.java:867)
         at oracle.adf.model.binding.DCBindingContainer.setDataControl(DCBindingContainer.java:571)
         at oracle.jbo.uicli.jui.JUPanelBinding.useDefaultDataControl(JUPanelBinding.java:912)
         at oracle.jbo.uicli.jui.JUPanelBinding.setup(JUPanelBinding.java:125)
         at view.Form.setBindingContext(Form.java:370)
         at view.Form.main(Form.java:425)

  • Oracle.jbo.NoDefException JBO-25058

    I am using JDeveloper 11g (11.1.1.2.0) and I am getting an exception when using a choice list in a Search form (Query Component) which is created as a View Criteria on a view object based on an entity object. These are the steps I followed when creating this:
    1. Created an Entity Object.
    2. Created a view object
    3. Created a view accessor for accessing the values to be used for LOV.
    4. In the View Object's attributes window, specified the LOV for the attribute "USR_STA_CD"
    5. Created a view criteria(s) for this view object.
    6. For one of the View Criteria's, for the attribute "USR_STA_CD", selected operator "EqualTo", Operand to be "Literal", checked "IgnoreCase" so that this attribute can use the Choice list with all the values retrieved by the view accessor created earlier.
    Now in the front end, using this view object created the search form (Query Components) page and the detail page (with the control flow accordingly mapped in the bounded task flow). The Detail Page is able to show the choice list (correctly with the view accessor and LOV configiration done in the Model).
    I have also tested the functionality using the Business Component Tester locally and it is working fine with the choice list getting all the required configured values from the view accessor but in the front end, the search form (Query Components) page is throwing the below error on loading:
    *oracle.jbo.NoDefException: JBO-25058: Definition __vcrow_indexed_attribute__UsrStaCd_0 of type Attribute is not found in vcilov_LOV_UsrStaCd_DSExternalUserVOSubCriteria1_vcrow78_UsrStaCd.*     
    at oracle.jbo.uicli.binding.JUCtrlValueBinding.getAttributeDef(JUCtrlValueBinding.java:526)
         at oracle.jbo.uicli.binding.JUCtrlValueBinding.hasAttributeViewablePermission(JUCtrlValueBinding.java:3300)
         at oracle.jbo.uicli.binding.JUCtrlValueBinding.isAttributeViewable(JUCtrlValueBinding.java:3265)
         at oracle.jbo.uicli.binding.JUCtrlValueBinding.getAttributeFromRow(JUCtrlValueBinding.java:685)
         at oracle.jbo.uicli.binding.JUCtrlValueBinding.getAttributes(JUCtrlValueBinding.java:1348)
         at oracle.jbo.uicli.binding.JUCtrlListBinding$JUCtrlListBindingItemRef.getDisplayValues(JUCtrlListBinding.java:3675)
         at oracle.jbo.uicli.binding.JUCtrlListBinding$JUCtrlListBindingItemRef.getMergedPrompt(JUCtrlListBinding.java:3666)
         at oracle.jbo.uicli.binding.JUCtrlListBinding$JUCtrlListBindingItemRef.get(JUCtrlListBinding.java:3633)
         at oracle.adfinternal.view.faces.model.binding.FacesCtrlListBinding$1.get(FacesCtrlListBinding.java:271)
         at java.util.AbstractList$Itr.next(AbstractList.java:345)
         at oracle.adfinternal.view.faces.renderkit.rich.SelectItemUtils.addSelectItems(SelectItemUtils.java:209)
         at oracle.adfinternal.view.faces.renderkit.rich.SelectItemUtils.getSelectItems(SelectItemUtils.java:78)
         at oracle.adfinternal.view.faces.renderkit.rich.SimpleSelectOneChoiceRenderer.getSelectItems(SimpleSelectOneChoiceRenderer.java:83)
         at oracle.adfinternal.view.faces.renderkit.rich.SimpleSelectBaseRenderer._renderContent(SimpleSelectBaseRenderer.java:194)
         at oracle.adfinternal.view.faces.renderkit.rich.SimpleSelectBaseRenderer.renderElementContent(SimpleSelectBaseRenderer.java:113)
         at oracle.adfinternal.view.faces.renderkit.rich.FormInputRenderer.encodeAllAsElement(FormInputRenderer.java:149)
         at oracle.adfinternal.view.faces.renderkit.rich.FormElementRenderer.encodeAll(FormElementRenderer.java:135)
         at oracle.adf.view.rich.render.RichRenderer.delegateRenderer(RichRenderer.java:1600)
         at oracle.adfinternal.view.faces.renderkit.rich.LabeledInputRenderer.renderFieldCellContents(LabeledInputRenderer.java:204)
         at oracle.adfinternal.view.faces.renderkit.rich.LabeledInputRenderer.encodeAll(LabeledInputRenderer.java:186)
         at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1369)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:335)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:751)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:415)
         at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:2572)
         at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer._encodeHorizontalChild(PanelGroupLayoutRenderer.java:468)
         at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer.access$100(PanelGroupLayoutRenderer.java:30)
         at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer$EncoderCallback.processComponent(PanelGroupLayoutRenderer.java:628)
         at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer$EncoderCallback.processComponent(PanelGroupLayoutRenderer.java:570)
         at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:170)
         at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:290)
         at org.apache.myfaces.trinidad.component.UIXComponent.encodeFlattenedChildren(UIXComponent.java:255)
         at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer.encodeAll(PanelGroupLayoutRenderer.java:327)
         at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1369)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:335)
    Caused By: oracle.jbo.NoDefException: JBO-25058: Definition __vcrow_indexed_attribute__UsrStaCd_0 of type Attribute is not found in SNIDataSecurityService_DSExternalUser1_SearchExternalUsers_51.
    Below is the XML file for the view object with the View criteria(s) definition. The view criteria that is causing this
    problem is "SearchExternalUsers" and the attribute name is "UsrStaCd" (USR_STA_CD).
    <?xml version="1.0" encoding="windows-1252" ?>
    <!DOCTYPE ViewObject SYSTEM "jbo_03_01.dtd">
    <!---->
    <ViewObject
    xmlns="http://xmlns.oracle.com/bc4j"
    Name="DSExternalUserVO"
    Version="11.1.1.55.36"
    SelectList="DSExternalUserEO.USR_ID,
    DSExternalUserEO.USR_STA_CD,
    DSExternalUserEO.USR_TERM_DT,
    DSExternalUserEO.USR_FRST_NAM,
    DSExternalUserEO.USR_LAST_NAM,
    DSExternalUserEO.CPY_NAM,
    DSExternalUserEO.VERS_NUM,
    DSExternalUserEO.CRE_USR_ID,
    DSExternalUserEO.CRE_DTTM,
    DSExternalUserEO.UPD_USR_ID,
    DSExternalUserEO.UPD_DTTM"
    FromList="SNI.SNI_DS_EXT_USR DSExternalUserEO"
    BindingStyle="OracleName"
    CustomQuery="false"
    RowClass="sni.datasecurity.model.queries.DSExternalUserVORowImpl"
    ComponentClass="sni.datasecurity.model.queries.DSExternalUserVOImpl"
    DefClass="sni.foundation.bcextensions.SNIViewDefImpl"
    PageIterMode="Full"
    UseGlueCode="false"
    ComponentInterface="sni.datasecurity.model.queries.common.DSExternalUserVO"
    ClientProxyName="sni.datasecurity.model.queries.client.DSExternalUserVOClient">
    <DesignTime>
    <Attr Name="_codeGenFlag2" Value="Access|Coll|VarAccess"/>
    <Attr Name="_isCodegen" Value="true"/>
    </DesignTime>
    <Variable
    Name="roleCd"
    Kind="viewcriteria"
    Type="java.lang.String"/>
    <Data>
    <Property
    Name="ID"
    Value="69408eb1-0128-1000-800c-0a0a0a0a2ccb::::ViewObject"/>
    </Data>
    *<ViewAccessor*
    Name="ExtUserStatusCodesLOVVA"
    ViewObjectName="sni.foundation.lovs.quries.SNIListOfValuesVO">
    *<ParameterMap>*
    *<PIMap Variable="BindApplicationCode">*
    *<TransientExpression><![CDATA['DATASEC']]></TransientExpression>*
    *</PIMap>*
    *<PIMap Variable="BindDomainName">*
    *<TransientExpression><![CDATA['USER_STATUS_CODES']]></TransientExpression>*
    *</PIMap>*
    *</ParameterMap>*
    *</ViewAccessor>*
    *<ListBinding*
    Name="LOV_UsrStaCd"
    ListVOName="ExtUserStatusCodesLOVVA"
    ListRangeSize="-1"
    NullValueFlag="start"
    *NullValueId="${adfBundle['oracle.javatools.resourcebundle.SystemBundle']['NULL_VALUE_RESID']}"*
    *MRUCount="0">*
    *<AttrArray Name="AttrNames">*
    *<Item Value="UsrStaCd"/>*
    *</AttrArray>*
    *<AttrArray Name="ListAttrNames">*
    *<Item Value="DmnValCd"/>*
    *</AttrArray>*
    *<AttrArray Name="ListDisplayAttrNames">*
    *<Item Value="LongVal"/>*
    *</AttrArray>*
    *<DisplayCriteria/>*
    *</ListBinding>*
    <EntityUsage
    Name="DSExternalUserEO"
    Entity="sni.datasecurity.model.entities.DSExternalUserEO">
    <Data>
    <Property
    Name="ID"
    Value="69409894-0128-1000-808b-0a0a0a0a2ccb::::EntityObjectInstance"/>
    </Data>
    </EntityUsage>
    <ViewAttribute
    Name="UsrId"
    IsNotNull="true"
    PrecisionRule="true"
    EntityAttrName="UsrId"
    EntityUsage="DSExternalUserEO"
    AliasName="USR_ID">
    <Data>
    <Property
    Name="ID"
    Value="69409894-0128-1000-8079-0a0a0a0a2ccb::::ViewObjectAttribute"/>
    </Data>
    <Properties>
    <SchemaBasedProperties>
    <DISPLAYWIDTH
    Value="30"/>
    </SchemaBasedProperties>
    </Properties>
    </ViewAttribute>
    *<ViewAttribute*
    *Name="UsrStaCd"*
    *IsNotNull="true"*
    *PrecisionRule="true"*
    *EntityAttrName="UsrStaCd"*
    *EntityUsage="DSExternalUserEO"*
    *AliasName="USR_STA_CD"*
    *LOVName="LOV_UsrStaCd">*
    *<Data>*
    *<Property*
    *Name="ID"*
    *Value="69409894-0128-1000-807a-0a0a0a0a2ccb::::ViewObjectAttribute"/>*
    *</Data>*
    *<Properties>*
    *<SchemaBasedProperties>*
    *<CONTROLTYPE*
    *Value="choice"/>*
    *<DISPLAYWIDTH*
    *Value="20"/>*
    *</SchemaBasedProperties>*
    *</Properties>*
    *</ViewAttribute>*
    <ViewAttribute
    Name="UsrTermDt"
    PrecisionRule="true"
    EntityAttrName="UsrTermDt"
    EntityUsage="DSExternalUserEO"
    AliasName="USR_TERM_DT">
    <Data>
    <Property
    Name="ID"
    Value="69409894-0128-1000-807b-0a0a0a0a2ccb::::ViewObjectAttribute"/>
    </Data>
    </ViewAttribute>
    <ViewAttribute
    Name="UsrFrstNam"
    IsNotNull="true"
    PrecisionRule="true"
    EntityAttrName="UsrFrstNam"
    EntityUsage="DSExternalUserEO"
    AliasName="USR_FRST_NAM">
    <Data>
    <Property
    Name="ID"
    Value="69409894-0128-1000-807c-0a0a0a0a2ccb::::ViewObjectAttribute"/>
    </Data>
    <Properties>
    <SchemaBasedProperties>
    <DISPLAYWIDTH
    Value="30"/>
    </SchemaBasedProperties>
    </Properties>
    </ViewAttribute>
    <ViewAttribute
    Name="UsrLastNam"
    IsNotNull="true"
    PrecisionRule="true"
    EntityAttrName="UsrLastNam"
    EntityUsage="DSExternalUserEO"
    AliasName="USR_LAST_NAM">
    <Data>
    <Property
    Name="ID"
    Value="69409894-0128-1000-807d-0a0a0a0a2ccb::::ViewObjectAttribute"/>
    </Data>
    <Properties>
    <SchemaBasedProperties>
    <DISPLAYWIDTH
    Value="30"/>
    </SchemaBasedProperties>
    </Properties>
    </ViewAttribute>
    <ViewAttribute
    Name="CpyNam"
    IsNotNull="true"
    PrecisionRule="true"
    EntityAttrName="CpyNam"
    EntityUsage="DSExternalUserEO"
    AliasName="CPY_NAM">
    <Data>
    <Property
    Name="ID"
    Value="69409894-0128-1000-807e-0a0a0a0a2ccb::::ViewObjectAttribute"/>
    </Data>
    <Properties>
    <SchemaBasedProperties>
    <DISPLAYWIDTH
    Value="30"/>
    </SchemaBasedProperties>
    </Properties>
    </ViewAttribute>
    <ViewAttribute
    Name="VersNum"
    PrecisionRule="true"
    EntityAttrName="VersNum"
    EntityUsage="DSExternalUserEO"
    AliasName="VERS_NUM">
    <Data>
    <Property
    Name="ID"
    Value="69409894-0128-1000-8086-0a0a0a0a2ccb::::ViewObjectAttribute"/>
    </Data>
    </ViewAttribute>
    <ViewAttribute
    Name="CreUsrId"
    IsNotNull="true"
    PrecisionRule="true"
    EntityAttrName="CreUsrId"
    EntityUsage="DSExternalUserEO"
    AliasName="CRE_USR_ID"
    IsUpdateable="false">
    <Data>
    <Property
    Name="ID"
    Value="69409894-0128-1000-8087-0a0a0a0a2ccb::::ViewObjectAttribute"/>
    </Data>
    <Properties>
    <SchemaBasedProperties>
    <DISPLAYWIDTH
    Value="20"/>
    </SchemaBasedProperties>
    </Properties>
    </ViewAttribute>
    <ViewAttribute
    Name="CreDttm"
    IsNotNull="true"
    PrecisionRule="true"
    EntityAttrName="CreDttm"
    EntityUsage="DSExternalUserEO"
    AliasName="CRE_DTTM"
    IsUpdateable="false">
    <Data>
    <Property
    Name="ID"
    Value="69409894-0128-1000-8088-0a0a0a0a2ccb::::ViewObjectAttribute"/>
    </Data>
    </ViewAttribute>
    <ViewAttribute
    Name="UpdUsrId"
    PrecisionRule="true"
    EntityAttrName="UpdUsrId"
    EntityUsage="DSExternalUserEO"
    AliasName="UPD_USR_ID"
    IsUpdateable="false">
    <Data>
    <Property
    Name="ID"
    Value="69409894-0128-1000-8089-0a0a0a0a2ccb::::ViewObjectAttribute"/>
    </Data>
    </ViewAttribute>
    <ViewAttribute
    Name="UpdDttm"
    PrecisionRule="true"
    EntityAttrName="UpdDttm"
    EntityUsage="DSExternalUserEO"
    AliasName="UPD_DTTM"
    IsUpdateable="false">
    <Data>
    <Property
    Name="ID"
    Value="69409894-0128-1000-808a-0a0a0a0a2ccb::::ViewObjectAttribute"/>
    </Data>
    </ViewAttribute>
    *<ViewCriteria*
    *Name="SearchExternalUsers"*
    *ViewObjectName="sni.datasecurity.model.queries.DSExternalUserVO"*
    *Conjunction="AND">*
    *<Properties>*
    *<CustomProperties>*
    *<Property*
    *Name="displayOperators"*
    *Value="InAdvancedMode"/>*
    *<Property*
    *Name="autoExecute"*
    *Value="false"/>*
    *<Property*
    *Name="allowConjunctionOverride"*
    *Value="true"/>*
    *<Property*
    *Name="showInList"*
    *Value="true"/>*
    *<Property*
    *Name="mode"*
    *Value="Basic"/>*
    *<Property*
    *Name="displayName"*
    *ResId="displayName"/>*
    *</CustomProperties>*
    *</Properties>*
    *<ViewCriteria*
    *Name="DSExternalUserVOSubCriteria1"*
    *ViewObjectName="sni.datasecurity.model.queries.DSExternalUserVO"*
    *Conjunction="AND">*
    *<ViewCriteriaRow*
    *Name="vcrow78"*
    *UpperColumns="1">*
    *<ViewCriteriaItem*
    *Name="DSExternalUserVOSubCriteria1_vcrow78_UsrId"*
    *ViewAttribute="UsrId"*
    *Operator="STARTSWITH"*
    *Conjunction="AND"*
    *Required="Optional"/>*
    *<ViewCriteriaItem*
    *Name="SearchExternalUsers_DSExternalUserVOSubCriteria1_vcrow78_UsrStaCd"*
    *ViewAttribute="UsrStaCd"*
    *Operator="="*
    *Conjunction="AND"*
    *Required="Optional"/>*
    *<ViewCriteriaItem*
    *Name="SearchExternalUsers_DSExternalUserVOSubCriteria1_vcrow78_UsrFrstNam"*
    *ViewAttribute="UsrFrstNam"*
    *Operator="STARTSWITH"*
    *Conjunction="AND"*
    *Required="Optional"/>*
    *<ViewCriteriaItem*
    *Name="SearchExternalUsers_DSExternalUserVOSubCriteria1_vcrow78_UsrLastNam"*
    *ViewAttribute="UsrLastNam"*
    *Operator="STARTSWITH"*
    *Conjunction="AND"*
    *Required="Optional"/>*
    *<ViewCriteriaItem*
    *Name="DSExternalUserVOCriteria_DSExternalUserVOSubCriteria1_vcrow78_CpyNam"*
    *ViewAttribute="CpyNam"*
    *Operator="STARTSWITH"*
    *Conjunction="AND"*
    *Required="Optional"/>*
    *</ViewCriteriaRow>*
    *</ViewCriteria>*
    *</ViewCriteria>*
    <ViewCriteria
    Name="SecondarySearch"
    ViewObjectName="sni.datasecurity.model.queries.DSExternalUserVO"
    Conjunction="AND">
    <Properties>
    <CustomProperties>
    <Property
    Name="displayOperators"
    Value="InAdvancedMode"/>
    <Property
    Name="autoExecute"
    Value="false"/>
    <Property
    Name="allowConjunctionOverride"
    Value="true"/>
    <Property
    Name="showInList"
    Value="true"/>
    <Property
    Name="mode"
    Value="Basic"/>
    <Property
    Name="displayName"
    ResId="displayName"/>
    </CustomProperties>
    </Properties>
    <ViewCriteria
    Name="DSExternalUserVOSubCriteria1_1"
    ViewObjectName="sni.datasecurity.model.queries.DSExternalUserVO"
    Conjunction="AND">
    <ViewCriteriaRow
    Name="vcrow11"
    UpperColumns="1">
    <ViewCriteriaItem
    Name="DSExternalUserVOSubCriteria1_1_vcrow11_UsrId"
    ViewAttribute="UsrId"
    Operator="STARTSWITH"
    Conjunction="AND"
    Required="Optional"/>
    <ViewCriteriaItem
    Name="DSExternalUserVOCriteria_DSExternalUserVOSubCriteria1_1_vcrow11_UsrFrstNam"
    ViewAttribute="UsrFrstNam"
    Operator="STARTSWITH"
    Conjunction="AND"
    Required="Optional"/>
    <ViewCriteriaItem
    Name="DSExternalUserVOCriteria_DSExternalUserVOSubCriteria1_1_vcrow11_UsrLastNam"
    ViewAttribute="UsrLastNam"
    Operator="STARTSWITH"
    Conjunction="AND"
    Required="Optional"/>
    <ViewCriteriaItem
    Name="DSExternalUserVOCriteria_DSExternalUserVOSubCriteria1_1_vcrow11_CpyNam"
    ViewAttribute="CpyNam"
    Operator="STARTSWITH"
    Conjunction="AND"
    Required="Optional"/>
    <ViewCriteriaItem
    Name="DSExternalUserVOCriteria_DSExternalUserVOSubCriteria1_1_vcrow11_CreUsrId"
    ViewAttribute="CreUsrId"
    Operator="STARTSWITH"
    Conjunction="AND"
    Required="Optional"/>
    <ViewCriteriaItem
    Name="DSExternalUserVOCriteria_DSExternalUserVOSubCriteria1_1_vcrow11_CreDttm"
    ViewAttribute="CreDttm"
    Operator="="
    Conjunction="AND"
    Required="Optional"/>
    </ViewCriteriaRow>
    </ViewCriteria>
    </ViewCriteria>
    <ViewCriteria
    Name="SearchExternalUsersByRole"
    ViewObjectName="sni.datasecurity.model.queries.DSExternalUserVO"
    Conjunction="AND">
    <Properties>
    <CustomProperties>
    <Property
    Name="displayOperators"
    Value="InAdvancedMode"/>
    <Property
    Name="displayName"
    ResId="LABEL_SEARCH_EXTERNAL_USERS_BY_ROLE"/>
    <Property
    Name="autoExecute"
    Value="false"/>
    <Property
    Name="allowConjunctionOverride"
    Value="true"/>
    <Property
    Name="showInList"
    Value="true"/>
    <Property
    Name="mode"
    Value="Basic"/>
    </CustomProperties>
    </Properties>
    <ViewCriteria
    Name="DSExternalUserVOSubCriteria1_1"
    ViewObjectName="sni.datasecurity.model.queries.DSExternalUserVO"
    Conjunction="AND">
    <ViewCriteriaRow
    Name="vcrow124"
    UpperColumns="1">
    <!--ViewCriteriaItem
    Name="DSExternalUserVOSubCriteria1_1_vcrow124_UsrId"
    ViewAttribute="UsrId"
    Operator="STARTSWITH"
    Conjunction="AND"
    Value=""
    Required="Optional"/-->
    <ViewCriteriaItem
    Name="DSExternalUserVOCriteria_DSExternalUserVOSubCriteria1_1_vcrow124_DSExternalUserRole"
    ViewAttribute="DSExternalUserRole"
    Operator="EXISTS"
    Conjunction="AND"
    Required="Optional">
    <ViewCriteria
    Name="DSExternalUserRoleVONestedCriteria"
    ViewObjectName="sni.datasecurity.model.queries.DSExternalUserRoleVO"
    Conjunction="AND">
    <ViewCriteriaRow
    Name="vcrow125"
    UpperColumns="1">
    <!--ViewCriteriaItem
    Name="DSExternalUserRoleVONestedCriteria_vcrow125_UsrId"
    ViewAttribute="UsrId"
    Operator="STARTSWITH"
    Conjunction="AND"
    Value=""
    Required="Optional"/-->
    <ViewCriteriaItem
    Name="DSExternalUserRoleVONestedCriteria_vcrow125_RolCd"
    ViewAttribute="RolCd"
    Operator="="
    Conjunction="AND"
    Required="Optional"/>
    </ViewCriteriaRow>
    </ViewCriteria>
    </ViewCriteriaItem>
    </ViewCriteriaRow>
    </ViewCriteria>
    </ViewCriteria>
    <ViewLinkAccessor
    Name="DSUserGroup"
    ViewLink="sni.datasecurity.model.queries.viewlinks.ExternalUserToUserGroup"
    Type="oracle.jbo.RowIterator"
    IsUpdateable="false"/>
    <ViewLinkAccessor
    Name="DSExternalUserRole"
    ViewLink="sni.datasecurity.model.queries.viewlinks.ExternalUserToExternalUserRole"
    Type="oracle.jbo.RowIterator"
    IsUpdateable="false"/>
    <ViewLinkAccessor
    Name="DSExternalUserSniRel"
    ViewLink="sni.datasecurity.model.queries.viewlinks.ExternalUserToExternalUserSniRel"
    Type="oracle.jbo.RowIterator"
    IsUpdateable="false"/>
    <LOVUIHints
    ListType="105"
    MRUCount="0"
    ListRangeSize="-1"
    NullValueFlag="none"
    NullValueId="LOVUIHints_NullValueId">
    <DisplayCriteria/>
    </LOVUIHints>
    <ResourceBundle>
    <PropertiesBundle
    PropertiesFile="sni.datasecurity.model.SNIDataSecurityModelBundle"/>
    </ResourceBundle>
    <ClientInterface>
    <Method
    Name="getRowStatus">
    <Return
    Type="java.lang.String"/>
    <Parameter
    Name="row"
    Type="oracle.jbo.Row"/>
    </Method>
    <Method
    Name="getRowStatus">
    <Return
    Type="java.lang.String"/>
    <Parameter
    Name="row"
    Type="oracle.jbo.Row"/>
    </Method>
    <Method
    Name="getRowStatus">
    <Return
    Type="java.lang.String"/>
    <Parameter
    Name="row"
    Type="oracle.jbo.Row"/>
    </Method>
    <Method
    Name="getRowStatus">
    <Return
    Type="java.lang.String"/>
    <Parameter
    Name="row"
    Type="oracle.jbo.Row"/>
    </Method>
    <Method
    Name="getRowStatus">
    <Return
    Type="java.lang.String"/>
    <Parameter
    Name="row"
    Type="oracle.jbo.Row"/>
    </Method>
    <Method
    Name="getRowStatus">
    <Return
    Type="java.lang.String"/>
    <Parameter
    Name="row"
    Type="oracle.jbo.Row"/>
    </Method>
    <Method
    Name="getRowStatus">
    <Return
    Type="java.lang.String"/>
    <Parameter
    Name="row"
    Type="oracle.jbo.Row"/>
    </Method>
    </ClientInterface>
    </ViewObject>
    Thanks
    Venkat
    Edited by: Venkatesh Pasam on Jun 9, 2010 2:14 PM
    Edited by: Venkatesh Pasam on Jun 9, 2010 2:16 PM
    Edited by: Venkatesh Pasam on Jun 9, 2010 2:18 PM

    Can some one please help me with this.
    Thanks
    Venkatesh

Maybe you are looking for

  • How can I get data in radio button?

    I want to get data in same page.while the radio button check ,textbox 's which is in the same page , value can be changeable.what can I understand radio button check or not. out.println("<td style=\"width: 16%\"><input type='radio' name='rapor1' valu

  • Crystal x and iis7 windows 2008

    I am upgrading to a new box that haas windows server 2008 and iis7.  My sql 08 backend server is on another box running windows 2008. I currently have my live environment working which is using iis 6 with the same backend sql server and all is workin

  • Hidden color profiles

    A profile which appears in Windows/System32/Spool/drivers/color does not appear in the Printer Profile Window of the Print Window.  A second profile does appear there but not in Windows/System32/Spool/drivers/color.  This is after twice rebooting my

  • Pricing for wieghted articles

    Hi How do we maintain pricing for weighted articles at store, like customer buys vegitables- ABC - 1 kgs, XYZ - 2 kgs, how to setup this, vegitable normolly wieght check at POS point and then displays prices based on how much it is. regards Satish

  • HT1414 ipod has frozen how do i fix this

    was updating a game on my ipod and it has frozen on the black screen with the aplle and the updating sign not moving.How do i fix this.