FindBy method naming rules

What are the rules for naming the findBy methods?
I want to find entity Bean by two fields. e.g. Want find entity Bean on orderNumber and customerId field.
I created method like findByOrderNumberAndCustomerId(String orderNumber, String customerId)
It let me generate code and deploy the bean, but at runtime it does not return any entity bean or Collection. It throws exception.
Thanks for your help.
A

There is no problem with your method name, I think if u could post the code, it will be better.
or try using EJB QL for searching as
public Animal findbyId(int Id){
return (Animal) em.createQuery("Select e From Animal e where e.id = :id").setParameter("id",Id).getSingleResult();
}

Similar Messages

  • NoSuchMethodError in EJBHomeImpl.findBy() methods

    Hi All,
    I've searched all past entries relating to java.lang.NoSuchMethodError, but most
    responses have suggested mere typo errors or, at most, the presence of multiple
    jars during deployment. I've checked that this is not what happens to my BMP,
    but I still get the NoSuchMethodError in my EJBHomeImpl.findBy() method when the
    generated code reaches the
    weblogic.ejb.internal.MethodInfo __mi = findMethodInfo(__methodSig);
    line.
    I also ran the beanManaged example and it ran fine. I've done several rebuilds,
    most involving cleaning out all compiled classes and jar related to my project.
    I'm using Weblogic 5.1 SP8 on Windows NT 4 SP 4.
    Any help would be appreciated.
    Thanks,
    Boogie

    Hi Sean,
    Simple solution.
    Run a search in ur computer with the name of ur home interface's .class file.
    That ll display all the places where ur home interface .class files are stored(there are certain folders in the server where is gets stored secretly.: - ) ).
    Then go to individual location and delete the .class files.
    make all the editions u have to in ur bean class and ur home interface.
    compile using build again.Hope u achieve ur objective now. ; - )
    Regards
    Chatni

  • FindBy method for reference entities

    hi,
    I have created an entitity(Relation) which contains references of other 2 entities(address, person).I have created findBy methods(FindByCity,FindByLastName,etc) in Relation entity for attributes in those refernce entities(Address-city,state)(Person-First name, Last Name). but while i'am testing these functions it says :
    <b>ERROR. setFilter column(25): Undefined expression 'personRef_var.refObject.name'</b>
    I'am not able to decipher this error message. can anyone help me about what could possibly be wrong in the code generated. the following is the code containing this reference :-
    if ("addressRef".equals(attrName))
    if (subAttrName == null)
       resQueryFilter.setCollectionType("com.sap.relation.besrv.relateaddperson.AddressRefVO");
                             resQueryFilter.setCollectionAttribute("addressRef");
                             resQueryFilter.setAttribute("addressRef_var.refObject.key");
    else
         strParamName = subAttrName;
         dotIndex = strParamName.indexOf('.');
         attrName = (dotIndex == -1) ? strParamName : strParamName.substring(0, dotIndex);
         subAttrName = (dotIndex == -1) ? null : strParamName.substring(dotIndex + 1, strParamName.length());
         resQueryFilter = new com.sap.caf.rt.bol.util.IntQueryFilter((com.sap.caf.rt.bol.util.QueryFilter) qf);
                             resQueryFilter.setAttribute("addressRef_var.refObject." + strParamName);
    } else if ("personRef".equals(attrName))
    if (subAttrName == null)
    {                         resQueryFilter.setCollectionType("com.sap.relation.besrv.relateaddperson.PersonRefVO");
                             resQueryFilter.setCollectionAttribute("personRef");
                             resQueryFilter.setAttribute("personRef_var.refObject.key");
    else
         strParamName = subAttrName;
         dotIndex = strParamName.indexOf('.');
         attrName = (dotIndex == -1) ? strParamName : strParamName.substring(0, dotIndex);
         subAttrName = (dotIndex == -1) ? null : strParamName.substring(dotIndex + 1, strParamName.length());
         resQueryFilter = new com.sap.caf.rt.bol.util.IntQueryFilter((com.sap.caf.rt.bol.util.QueryFilter) qf);
         resQueryFilter.setAttribute("personRef_var.refObject." + strParamName);

    Hi Pamita,
    Generation is errorneous for related entities which do not have relations at all. This problem emerges when you searching by some specific attribute of related entity.
    The following workarounds:
    1. Create a fake relation for Person and Address entities. For example you can create relation from Person to Person.
    2. Change generation template. I don't remember template name - it should be like ServiceBean.
    the following fix in generated coding should work:
    <code>
    if ("addressRef".equals(attrName))
    if (subAttrName == null)
    resQueryFilter.setCollectionType("com.sap.relation.besrv.relateaddperson.AddressRefVO");
    resQueryFilter.setCollectionAttribute("addressRef");
    resQueryFilter.setAttribute("addressRef_var.refObject.key");
    else
    strParamName = subAttrName;
    dotIndex = strParamName.indexOf('.');
    attrName = (dotIndex == -1) ? strParamName : strParamName.substring(0, dotIndex);
    subAttrName = (dotIndex == -1) ? null : strParamName.substring(dotIndex + 1, strParamName.length());
    resQueryFilter = new com.sap.caf.rt.bol.util.IntQueryFilter((com.sap.caf.rt.bol.util.QueryFilter) qf);
    resQueryFilter.setCollectionType("com.sap.relation.besrv.relateaddperson.AddressRefVO");
    resQueryFilter.setCollectionAttribute("addressRef");
    resQueryFilter.setAttribute("addressRef_var.refObject." + strParamName);
    } else if ("personRef".equals(attrName))
    if (subAttrName == null)
    { resQueryFilter.setCollectionType("com.sap.relation.besrv.relateaddperson.PersonRefVO");
    resQueryFilter.setCollectionAttribute("personRef");
    resQueryFilter.setAttribute("personRef_var.refObject.key");
    else
    strParamName = subAttrName;
    dotIndex = strParamName.indexOf('.');
    attrName = (dotIndex == -1) ? strParamName : strParamName.substring(0, dotIndex);
    subAttrName = (dotIndex == -1) ? null : strParamName.substring(dotIndex + 1, strParamName.length());
    resQueryFilter = new com.sap.caf.rt.bol.util.IntQueryFilter((com.sap.caf.rt.bol.util.QueryFilter) qf);
    { resQueryFilter.setCollectionType("com.sap.relation.besrv.relateaddperson.PersonRefVO");
    resQueryFilter.setCollectionAttribute("personRef");
    resQueryFilter.setAttribute("personRef_var.refObject." + strParamName);
    </code>
    Be carefull while changing template because this generated piece of coding is used in many places.
    Best regrads,
    Aliaksei

  • FindBy method in CMP

    Hi
    I would like to know if there is a way of get case insensitive results
    from database using CMP findBy methods ?
    Thanks
    Lavanya

    In CMP, we don't want to or can not send queries directly to the database. The EJB container manages the O.R. mapping. It is likely the relational structure of your beans is unknown.
    We also can not assume the database he or she is using has the capacity to create materialized views.

  • Is it possible to create findBy method for collection of ids?

    subj -
    I have a set of ids (HashSet of Integers).
    is it possible to create such findBy method which retrieves group of entity beans with ids specified in the set?

    You could do something like:
    PrimKeyBean
    public PrimKey ejbSelectPrimKey(Long key) throws FinderException;
    public Collection getPrimKeys(Collection keyset) {
      try{
        Vector output = new Vector();
        Iterator it = keyset.iterator();
        while(it.hasNext()){
          output.add(ejbSelectPrimKey((Long)it.Next()));
        return output;
      } catch (FinderException fe) {}
    ...deploymentdescriptor.ejb
    <query>
    <query-method>
    <method-name>ejbSelectPrimKey</method-name>
    </query-method>
    <ejb-ql>
    SELECT OBJECT(o) FROM pkTable o WHERE pkTablePK = ?1
    </ejb-ql>
    </query>
    ...client
    Collection c = primKey.getPrimKeys(keyset);
    ...

  • OAF collapse, Payment Method Defaulting Rules (payments)

    hi all,
    i am using payments administrater responsibiliy,
    navigation:
    - Oracle Payments Setup
    - Level 3Payment Method Defaulting Rules
    whenever i click for this feature (Level 3Payment Method Defaulting Rules) html page (file version: /oracle/apps/iby/disbursement/setup/defaultmethod/webui/DmRulesPG 120.4.12000000.3)
    collapses with following message:
    oracle.apps.fnd.framework.OAException: java.lang.NullPointerException
         at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:912)
         at oracle.apps.fnd.framework.webui.OAPageErrorHandler.prepareException(OAPageErrorHandler.java:1169)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:2195)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:543)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:431)
         at OA.jspService(_OA.java:212)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:390)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:734)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:391)
         at com.evermind.server.http.ServletRequestDispatcher.unprivileged_forward(ServletRequestDispatcher.java:280)
         at com.evermind.server.http.ServletRequestDispatcher.access$100(ServletRequestDispatcher.java:68)
         at com.evermind.server.http.ServletRequestDispatcher$2.oc4jRun(ServletRequestDispatcher.java:214)
         at oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:284)
         at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:219)
         at com.evermind.server.http.EvermindPageContext.forward(EvermindPageContext.java:395)
         at OA.jspService(_OA.java:221)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:390)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:734)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:391)
         at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:908)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:458)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:313)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:199)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:234)
         at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:29)
         at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:879)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:619)
    ## Detail 0 ##
    java.lang.NullPointerException
         at oracle.apps.fnd.framework.webui.OAAdvancedTableHelper.setMetaDataProperties(OAAdvancedTableHelper.java:391)
         at oracle.apps.fnd.framework.webui.OAAdvancedTableHelper.createWebBean(OAAdvancedTableHelper.java:183)
         at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.createWebBeanUsingHelper(OAWebBeanFactoryImpl.java:1477)
         at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.createWebBeanFromCustomTables(OAWebBeanFactoryImpl.java:1142)
         at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.createWebBean(OAWebBeanFactoryImpl.java:734)
         at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.createWebBean(OAWebBeanFactoryImpl.java:714)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.addAkChildren(OAWebBeanContainerHelper.java:237)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.setMetaDataProperties(OAWebBeanContainerHelper.java:205)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.setMetaDataProperties(OAWebBeanContainerHelper.java:131)
         at oracle.apps.fnd.framework.webui.OAHeaderHelper.setMetaDataProperties(OAHeaderHelper.java:85)
         at oracle.apps.fnd.framework.webui.OAHeaderHelper.createWebBean(OAHeaderHelper.java:66)
         at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.createWebBeanUsingHelper(OAWebBeanFactoryImpl.java:1477)
         at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.createWebBeanFromCustomTables(OAWebBeanFactoryImpl.java:1142)
         at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.createWebBean(OAWebBeanFactoryImpl.java:734)
         at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.createWebBean(OAWebBeanFactoryImpl.java:714)
         at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.addAkChildren(OAPageLayoutHelper.java:741)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.setMetaDataProperties(OAWebBeanContainerHelper.java:205)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.setMetaDataProperties(OAWebBeanContainerHelper.java:131)
         at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.setMetaDataProperties(OAPageLayoutHelper.java:294)
         at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.createWebBean(OAPageLayoutHelper.java:245)
         at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.createWebBeanUsingHelper(OAWebBeanFactoryImpl.java:1477)
         at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.createWebBeanFromCustomTables(OAWebBeanFactoryImpl.java:1408)
         at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.createWebBean(OAWebBeanFactoryImpl.java:1294)
         at oracle.apps.fnd.framework.webui.OAPageBean.createRootWebBean(OAPageBean.java:4885)
         at oracle.apps.fnd.framework.webui.OAPageBean.processRequest(OAPageBean.java:2392)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1940)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:543)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:431)
         at OA.jspService(_OA.java:212)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:390)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:734)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:391)
         at com.evermind.server.http.ServletRequestDispatcher.unprivileged_forward(ServletRequestDispatcher.java:280)
         at com.evermind.server.http.ServletRequestDispatcher.access$100(ServletRequestDispatcher.java:68)
         at com.evermind.server.http.ServletRequestDispatcher$2.oc4jRun(ServletRequestDispatcher.java:214)
         at oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:284)
         at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:219)
         at com.evermind.server.http.EvermindPageContext.forward(EvermindPageContext.java:395)
         at OA.jspService(_OA.java:221)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:390)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:734)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:391)
         at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:908)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:458)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:313)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:199)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:234)
         at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:29)
         at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:879)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:619)
    java.lang.NullPointerException
         at oracle.apps.fnd.framework.webui.OAAdvancedTableHelper.setMetaDataProperties(OAAdvancedTableHelper.java:391)
         at oracle.apps.fnd.framework.webui.OAAdvancedTableHelper.createWebBean(OAAdvancedTableHelper.java:183)
         at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.createWebBeanUsingHelper(OAWebBeanFactoryImpl.java:1477)
         at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.createWebBeanFromCustomTables(OAWebBeanFactoryImpl.java:1142)
         at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.createWebBean(OAWebBeanFactoryImpl.java:734)
         at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.createWebBean(OAWebBeanFactoryImpl.java:714)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.addAkChildren(OAWebBeanContainerHelper.java:237)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.setMetaDataProperties(OAWebBeanContainerHelper.java:205)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.setMetaDataProperties(OAWebBeanContainerHelper.java:131)
         at oracle.apps.fnd.framework.webui.OAHeaderHelper.setMetaDataProperties(OAHeaderHelper.java:85)
         at oracle.apps.fnd.framework.webui.OAHeaderHelper.createWebBean(OAHeaderHelper.java:66)
         at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.createWebBeanUsingHelper(OAWebBeanFactoryImpl.java:1477)
         at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.createWebBeanFromCustomTables(OAWebBeanFactoryImpl.java:1142)
         at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.createWebBean(OAWebBeanFactoryImpl.java:734)
         at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.createWebBean(OAWebBeanFactoryImpl.java:714)
         at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.addAkChildren(OAPageLayoutHelper.java:741)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.setMetaDataProperties(OAWebBeanContainerHelper.java:205)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.setMetaDataProperties(OAWebBeanContainerHelper.java:131)
         at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.setMetaDataProperties(OAPageLayoutHelper.java:294)
         at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.createWebBean(OAPageLayoutHelper.java:245)
         at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.createWebBeanUsingHelper(OAWebBeanFactoryImpl.java:1477)
         at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.createWebBeanFromCustomTables(OAWebBeanFactoryImpl.java:1408)
         at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.createWebBean(OAWebBeanFactoryImpl.java:1294)
         at oracle.apps.fnd.framework.webui.OAPageBean.createRootWebBean(OAPageBean.java:4885)
         at oracle.apps.fnd.framework.webui.OAPageBean.processRequest(OAPageBean.java:2392)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1940)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:543)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:431)
         at OA.jspService(_OA.java:212)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:390)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:734)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:391)
         at com.evermind.server.http.ServletRequestDispatcher.unprivileged_forward(ServletRequestDispatcher.java:280)
         at com.evermind.server.http.ServletRequestDispatcher.access$100(ServletRequestDispatcher.java:68)
         at com.evermind.server.http.ServletRequestDispatcher$2.oc4jRun(ServletRequestDispatcher.java:214)
         at oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:284)
         at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:219)
         at com.evermind.server.http.EvermindPageContext.forward(EvermindPageContext.java:395)
         at OA.jspService(_OA.java:221)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:390)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:734)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:391)
         at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:908)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:458)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:313)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:199)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:234)
         at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:29)
         at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:879)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:619)
    any help is appreciated
    thank you !
    br juergen

    Hi Sheli,
    Thanks for the reply and sorry for the late response.
    I have already configured the particular structure for the DME file that has been generated. The issue here is with the data.
    May I ask whether it will be possible for you to kindly help out with the table from where the file is fetching these records. Couldn't figure out those exactly. I think most of the data are being fetched from REGUH, REGUP, REGUT tables but there are some places where the same data which needs to be repeated in another position is not getting populated. Thus I'm not sure whether the system is calling the same table the second time or its some other table.
    It will be of great help if you can help me out with the list of tables from which the DME file is getting prepared specially the following :
    1. Bank Routing Number
    2. Addenda records associated with entry detailed records
    3. Why there are two line items of 717
    4. Foreign Correspondent Bank Details
    Thanks in advance for the help.
    Have a nice day !
    Thanks and regards
    Anindya

  • Hyperion Dimension & Member Naming Rules.

    Hi
    what is Hyperion dimension and member naming rules?
    Thanks

    When naming applications in Essbase, follow these rules:
    ● For non-Unicode mode applications and databases, use no more than 8 bytes; for Unicodemode applications and databases, use no more than 30 characters.
    ● Do not use spaces.
    ● Do not use these special characters:
    ❍ asterisks
    ❍ backslashes
    ❍ brackets
    ❍ colons
    ❍ commas
    ❍ equal signs
    ❍ greater than signs
    ❍ less than signs
    ❍ periods
    ❍ plus signs
    ❍ question marks
    ❍ quotation marks (double and single)
    ❍ semicolons
    ❍ slashes
    ❍ tabs
    ❍ vertical bars
    ● For Planning application names in relational database environments, do not use extended characters (except for underscores).
    ● For aggregate storage databases, do not use DEFAULT, LOG, METADATA, or TEMP as application names.
    Also, avoid use some of the reserve words that smartlist uses:
    abstract, assert, boolean, break, byte, case, catch, char, class,
    const, continue, default, do, double, else, enum, extends, false,
    final, finally, float, for, if, goto, implements, import,
    instanceof, int, interface, long, native, new, null, private,
    protected, public, return, short, static, strictfp, super, switch,
    synchronized, this, throw, throws, transient, true, try, void,
    volatile, while.
    Or not to use dynamic time series (DTS) codes:
    ❍ H-T-D: History-to-date
    ❍ Y-T-D: Year-to-date
    ❍ S-T-D: Season-to-date
    ❍ P-T-D: Period-to-date
    ❍ Q-T-D: Quarter-to-date
    ❍ M-T-D: Month-to-date
    ❍ W-T-D: Week-to-date
    ❍ D-T-D: Day-to-date
    When naming dimensions, members, and aliases, follow these rules:
    ● For non-Unicode mode dimensions, members, or aliases, use no more than 80 bytes. For Unicode-mode dimensions, members, or aliases, use no more than 80 characters.
    ● Distinguish between upper and lower case only if case sensitivity is enabled.
    ● Do not use HTML tags in member names, dimension names, aliases, and descriptions.
    ● Do not use quotation marks, brackets, backslashes, or tabs. Brackets are permitted but not recommended in block storage outlines. They cause errors when converting to aggregate storage outlines.
    ● To begin dimension or member names, do not use these characters:
    ❍ at signs
    ❍ backslashes
    ❍ brackets
    ❍ commas
    ❍ dashes, hyphens, or minus signs
    ❍ equal signs
    ❍ less than signs
    ❍ parentheses
    ❍ periods
    ❍ plus signs
    ❍ quotation marks
    ❍ underscores
    ❍ vertical bars
    ● Do not place spaces at the beginning or end of names. Essbase ignores such spaces.
    ● Do not use forward slashes in member names.
    ● For time periods in custom calendars, do not use spaces in prefixes.

  • FindBy() Method finds the same bean more than once

    I am desperate.
    Can anyone at least tell me if they ever heard of a problem similar to this in a CMP Entity Bean?
    PROBLEM: My findByMemberOrHash(MemberLocal, String) method returns a Collection with FOUR references to the same Entity Bean from a table that has only one Entity Bean persisted in it!
    Yet, my findByMember(MemberLocal) and findByHash(String) both work perfectly and return a Collection with only one element -- the single Entity Bean in the table.
    Here is the relevant code and table info:
    My Entity Beans are named LoggedIn and are persited in a MySql table named loggedings that has but 3 columns:PK:         PrimaryKey (Integer).
    HASH:       persistance field (String).
    members-pk: relationship field (Foreign Key to Member Bean table (Integer)For this test the table persisted a single Bean. Here is the data base SELECT:mysql> SELECT * FROM loggedins;
    +----+------+------------+
    | PK | HASH | members_pk |
    +----+------+------------+
    | 40 | X    |          1 |
    +----+------+------------+
    1 row in set (0.00 sec)Here is my logger output from the server:
    LoggerBean is a Session bean that is processing the login.
    To test, I had it run three findBy()s ... Member Or Hash, Member Only, and Hash OnlyINFO  [LoggerBean] Print out findByMemberOrHash()
    INFO  [LoggerBean] 0:   LoggedInBean: PK(40) Hash(X) Member_pk(1)
    INFO  [LoggerBean] 1:   LoggedInBean: PK(40) Hash(X) Member_pk(1)
    INFO  [LoggerBean] 2:   LoggedInBean: PK(40) Hash(X) Member_pk(1)
    INFO  [LoggerBean] 3:   LoggedInBean: PK(40) Hash(X) Member_pk(1)
    INFO  [LoggerBean]
    INFO  [LoggerBean] Print out findByMember()
    INFO  [LoggerBean] 0:   LoggedInBean: PK(40) Hash(X) Member_pk(1)
    INFO  [LoggerBean]
    INFO  [LoggerBean] Print out findByHash()
    INFO  [LoggerBean]  0:   LoggedInBean: PK(40) Hash(X) Member_pk(1)I am lost for any ideas.
    Its too trivial a test to break it down any further.
    Especially since the single parameter SELECTs work perfectly.
    Here is my ejb-jar.xml code:<query>
         <query-method>
              <method-name>findByMemberOrHash</method-name>
                <method-params>
                  <method-param>
                    org.america3.go.server.ejb.entity.MemberLocal
                  </method-param>
                  <method-param>
                    java.lang.String
                  </method-param>
              </method-params>
         </query-method>
         <ejb-ql>
              SELECT OBJECT(c) FROM LoggedInSchema c
              WHERE c.members_pk = ?1 OR c.hash = ?2
         </ejb-ql>
    </query>

    I am desperate.
    Can anyone at least tell me if they ever heard of a problem similar to this in a CMP Entity Bean?
    PROBLEM: My findByMemberOrHash(MemberLocal, String) method returns a Collection with FOUR references to the same Entity Bean from a table that has only one Entity Bean persisted in it!
    Yet, my findByMember(MemberLocal) and findByHash(String) both work perfectly and return a Collection with only one element -- the single Entity Bean in the table.
    Here is the relevant code and table info:
    My Entity Beans are named LoggedIn and are persited in a MySql table named loggedings that has but 3 columns:PK:         PrimaryKey (Integer).
    HASH:       persistance field (String).
    members-pk: relationship field (Foreign Key to Member Bean table (Integer)For this test the table persisted a single Bean. Here is the data base SELECT:mysql> SELECT * FROM loggedins;
    +----+------+------------+
    | PK | HASH | members_pk |
    +----+------+------------+
    | 40 | X    |          1 |
    +----+------+------------+
    1 row in set (0.00 sec)Here is my logger output from the server:
    LoggerBean is a Session bean that is processing the login.
    To test, I had it run three findBy()s ... Member Or Hash, Member Only, and Hash OnlyINFO  [LoggerBean] Print out findByMemberOrHash()
    INFO  [LoggerBean] 0:   LoggedInBean: PK(40) Hash(X) Member_pk(1)
    INFO  [LoggerBean] 1:   LoggedInBean: PK(40) Hash(X) Member_pk(1)
    INFO  [LoggerBean] 2:   LoggedInBean: PK(40) Hash(X) Member_pk(1)
    INFO  [LoggerBean] 3:   LoggedInBean: PK(40) Hash(X) Member_pk(1)
    INFO  [LoggerBean]
    INFO  [LoggerBean] Print out findByMember()
    INFO  [LoggerBean] 0:   LoggedInBean: PK(40) Hash(X) Member_pk(1)
    INFO  [LoggerBean]
    INFO  [LoggerBean] Print out findByHash()
    INFO  [LoggerBean]  0:   LoggedInBean: PK(40) Hash(X) Member_pk(1)I am lost for any ideas.
    Its too trivial a test to break it down any further.
    Especially since the single parameter SELECTs work perfectly.
    Here is my ejb-jar.xml code:<query>
         <query-method>
              <method-name>findByMemberOrHash</method-name>
                <method-params>
                  <method-param>
                    org.america3.go.server.ejb.entity.MemberLocal
                  </method-param>
                  <method-param>
                    java.lang.String
                  </method-param>
              </method-params>
         </query-method>
         <ejb-ql>
              SELECT OBJECT(c) FROM LoggedInSchema c
              WHERE c.members_pk = ?1 OR c.hash = ?2
         </ejb-ql>
    </query>

  • RangeCheck method naming convention in ArrayList

    I was just going through the source code of ArrayList, found this method
    private void RangeCheck(int index) Just wondering why this is not named according to camel case, was it a mistake?
    Regards,
    Joshua

    I admit I've started doing that (and the inverse in C#)... IE: Non-private methods follow the camelCase convention... all private methods in PascalCase... so I can immediately see from the name what's private, and what's not.
    I suppose might one regard this as sloppy; and it certainly goes against the established conventions... my collegues (those who've seen it) aren't actively apposed to it; though they're NOT going to adopt the practice themselves, so I feel I should probably decist this practice and "return to the fold"... consistency of a codebase is far important than telling if a method is private or not from some silly casing of the name.
    Hmmm... On balance I think Jos is probably right... I just really hadn't thought it all through before.
    Cheers. Keith.

  • Agents: Method or Rule - WF more robust vs. better performance

    Hi all,
    we are in ECC 6.0 and building several workflows to cater for HR processes. These workflows will be implemented globally.
    Earlier this year, this thread talked a bit about this and I am using some of the statements from it in this post:
    Responsable agents: What's better? Role or expression (variable)
    We are writing a function module to Find Manager. What I am trying to determine is the best way to use this function module. I can either create a method to call it, or I can create a rule (called 'role' up to 4.6) to call it or I can create a virtual attribute to call it.
    This function module will be called a lot as most of the workflows will involve the employee's Manager.
    If implemented as a method, an RFC is used and I will need 2 steps in the WF - but I will be able to 'trap' any errors returned by the function module, e.g. manager not found, and use the returned exceptions within the workflow. The method can be implemented in a generic WF_UTILITY class/BOR, it doesn't need to be linked to a particular class/BOR.
    If implemented as a rule, it is 1 step instead of 2 - less logs, better performance. But if the rule fails, the workflow goes into error. I do not think there is a way to avoid the workflow going into error.
    I might be able to create a virtual attribute for it, but one of the parameters for the function module is the workflow that is calling it & it will also mean that I would have to make sure that every workflow has an instance of the object that I implement the virtual attribute.
    Is it worthy to 'trap' the errors and deal with it within the workflow? Or it is better to let the workflow go into error?
    Please let me know your thoughts on this one.
    Much thanks and regards,
    Cristiana

    I agree with Raja that you should choose the approach with rules. In your version you can also use tools to re-evaluate rules for active workflows to redetermine the agents, an option you lose if you implement it as a virtual attribute.
    Let the rule fail (flag HRS1203-ENFORCE set, the checkbox at the bottom of the rule definition screen) if no agent is found. Don't harcode sending it to anyone if no agent is found, that just gives you less flexibility. Whether the workflow administrator receives a work item in the inbox or sees it in the administrator transactions shouldn't make much difference to an administrator.
    If you want to avoid the workflow going into error (sending it to an administrator is not better than letting it go into error, it is just an error handling strategy) you must as in all programming have defined rules for handling the known problems. This could e.g. be a table which specifies who will receive the workflow (with as many parameters as you like for finding the most relevant person) if the proper agent can not be found. I have implemented solutions along those lines, but it always boils down to finding someone who will accept having responsibility for handling errors.

  • Archive Search - Naming Rules

    I am looking for an old (c. 2000 or before) MM TechNote of John Dowdell's regarding best practices in creating file names for the web. - If this is still on the web, please post the link.
    Thank you!
    Corona

    I used to have that in a PDF. Can't for the life of me find it now.
    I took three basic rules from it though that I use to this day.
    Never use punctuations in a file for the web.
    Always use lowercase letters.
    Never put a space in a filename - always use a dash (-) or underscore (_) to separate words.
    Another good idea is the K.I.S.S. principle - keep file names as short as possible allowing them to still be understood.
    There are a lot of SEO factors in file naming that are relevant, but I don't remember reading that in Dowdell's guide.
    This is probably the closest to it out there now: http://sweatte.wordpress.com/syntax/programming-style-guide/

  • Where can I configure the naming rule for child columns?

    I have the following logical model:
    https://www.dropbox.com/s/1eux01rrkmcn84f/child_logical.png
    When I engineer it I get the following physical model:
    https://www.dropbox.com/s/pwl2zxkvuigdr5q/child_physical.png
    How can I configure that no entity name prefix should be added to the column name?
    The columns should be named create_ts, modify_ts, delete_ts and attribute_1. (all upcase is ok).
    I tried to change the naming standard template for attribute relations but it has no effect.
    Can anybody give me a hint?

    I used the older SQL Developer modeler and by setting the SUPER and SUB TYPE and Naming Standards I was able to generate the columns without doing post relational model generation activity. I have documented the steps to do the same it taking many steps and generates misbehaves.
    Another problem I face is having to get the SUB TYPES generated as SINGLE TABLE.  If you have more than one SUPER and SUB Type usage it confuses the generator.
    Kindly let me know if there are better ways or fixes coming in soon, if not I would like to revert back to older version.
    1) Created two entities one a super type "SuperEntity" and another sub type "SubEntity"
    Entity name: SuperEntity
    Short name:  SUP
    Attributes:
    Super Entity UID - Primary Key
    Total
    UID - named as SUPER_PK
    Sub-Type implementation
    References - Identifying
    Attribute Inheritance - Primary attribute only
    Entity name: SubEntity
    Short name:  SUB
    Attributes:
    Flag
    Sub-Type implementation
    References - Identifying
    Attribute Inheritance - Primary attribute only
    Hierarchy Key (Foreign key) : named as SUPER_SUB_FK
    2) Generated the Relational Model - the entity SHORT NAME was pre-fixed automatically
       The Sub Typed entity inherits the Foreign key as Primary Key
    CREATE TABLE SuperEnity
        SUP_Super_Entity_UID NUMBER NOT NULL ,
        SUP_Total            NUMBER (8,2) NOT NULL
    CREATE UNIQUE INDEX SuperEnity_PKX ON SuperEnity
      (    SUP_Super_Entity_UID ASC  )  ;
      ALTER TABLE SuperEnity ADD CONSTRAINT SuperEnity_PK PRIMARY KEY
      (    SUP_Super_Entity_UID  )  ;
    CREATE TABLE SubEntity
        SUP_Super_Entity_UID NUMBER NOT NULL ,  -- Inherited from supertype
        SUB_Flag             VARCHAR2 (1) NOT NULL
    CREATE UNIQUE INDEX SubEntity_PKX ON SubEntity
      (    SUP_Super_Entity_UID ASC  )  ;
      ALTER TABLE SubEntity ADD CONSTRAINT SubEntity_PK PRIMARY KEY
      (    SUP_Super_Entity_UID  )  ;
    ALTER TABLE SubEntity ADD
    CONSTRAINT FK_ASS_2 FOREIGN KEY ( SUP_Super_Entity_UID )
    REFERENCES SuperEnity ( SUP_Super_Entity_UID ) ;
    3) Apply the custom transformation script to remove the table abbreviation from column (provided by SQL Developer)
       NOTE: The prefix (abbreviation) is removed in SUPER type attributes.
           : However the SUB type retains the columns, key inherited before
    CREATE TABLE SuperEnity
        Super_Entity_UID NUMBER NOT NULL ,
        Total            NUMBER (8,2) NOT NULL
    CREATE UNIQUE INDEX SuperEnity_PKX ON SuperEnity
      (    Super_Entity_UID ASC  )  ;
      ALTER TABLE SuperEnity ADD CONSTRAINT SuperEnity_PK PRIMARY KEY
      (    Super_Entity_UID  )  ;
    CREATE TABLE SubEntity
        SUP_Super_Entity_UID NUMBER NOT NULL ,  -- The column name did not change based on SUPER TYPE
        Flag                 VARCHAR2 (1) NOT NULL
    CREATE UNIQUE INDEX SubEntity_PKX ON SubEntity
      (    SUP_Super_Entity_UID ASC  )  ;
    ALTER TABLE SubEntity ADD CONSTRAINT SubEntity_PK PRIMARY KEY
      (    SUP_Super_Entity_UID  )  ;
    ALTER TABLE SubEntity ADD
    CONSTRAINT FK_ASS_2 FOREIGN KEY ( SUP_Super_Entity_UID )
    REFERENCES SuperEnity ( Super_Entity_UID ) ;
    4) Applied Naming Standards Specifically on the SUB TYPE table (SubEntity) as
    COLUMN FOREIGN KEY : {ref column abbr}
    CREATE TABLE SubEntity
        Super_Entity_UID NUMBER NOT NULL ,  -- Name follows the SUPER TYPE
        Flag             VARCHAR2 (1) NOT NULL
    CREATE UNIQUE INDEX SubEntity_PKX ON SubEntity
      (    Super_Entity_UID ASC  )  ;  -- Name follows the column/attribute name
      ALTER TABLE SubEntity ADD CONSTRAINT SubEntity_PK PRIMARY KEY
      (    Super_Entity_UID  )  ; -- Name follows the column/attribute name
      ALTER TABLE SubEntity ADD
      CONSTRAINT FK_ASS_2 FOREIGN KEY  (    Super_Entity_UID  ) -- Name follows the column/attribute name
      REFERENCES SuperEnity  (    Super_Entity_UID  )  ;

  • Naming Convention (Naming Rule) for CAF GP

    Hi, all.
      Is there any naming convention for CAF GP?
      For its process, action, callable object so and so.
      Web Dynpro for Java has very good naming convention like the following.
    http://help.sap.com/saphelp_nw2004s/helpdata/en/e4/d7fb402eb5f76fe10000000a1550b0/frameset.htm
      Could someone provide the information?
      Best Regards.

    Hi Sejoon,
    Sometimes I see GP provided coding examples and it seems that GP does not have some specific naming convention. It's clear that they use sdandart java naming convention. So, you can use it too.
    Best regards,
    Aliaksei

  • Udev network naming rules

    I updated yesterday, and afterward nothing seemed amiss.  This morning one of my eths was unable to get a dhcp lease.  Eventually I realized it was because the names got mixed up; eth0 (the one I was trying to activate) and eth2 got swapped.  Apparently 10-network.rules is being ignored.
    I seem to recall that another network rules file (70-persistent-net.rules [?]) was mentioned recently.  I used that back in my Ubu days and for a while in Arch, but eventually transitioned to 10-network.rules.  Also, I don't see 70-..., 10-..., or any other network related rules files in /usr/lib/udev/rules.d.

    @jjacky
    I didn't see anything during boot, but output of dmesg contains:
    [ 28.920102] systemd-udevd[241]: renamed network interface eth2 to eth3ACPI Warning: 0x0000000000000400-0x000000000000041f SystemIO conflicts with Region \SMRG 1 (20120320/utaddress-251)
    [ 28.996255] ACPI: If an ACPI driver is available for this device, you should use it instead of the native driver
    Interestingly, I also have a NIC using the sky2 driver.
    OT: Is 'arch' the hostname of the machine from which the log excerpts (post #3 of that thread) were pulled?  I'm curious because all of my logs just say 'localhost'.
    @brebs
    Yes, that's where my 10-network.rules file is located.  There's nothing else there.
    Last edited by alphaniner (2012-08-02 14:34:10)

  • Can we write getView method in rules

    If yes then how we can write....please give me an idea to write......
    thanks

    If you read the manual 'IDM Workflows,Forms and Views' provided by Sun, you will know.

Maybe you are looking for

  • Looking for Lion compatible All-in-One printer

    Looking for MacBook Pro Lion compatible All-in-One color printer for my Mom who is 77 and on a limited income when it comes to purchasing ink. Preferred options include wi-fi, auto duplex, memory card slots, easy to operate. I was leaning toward a Ko

  • When using a new pc, how do you download all of your music and playlists at the same time?

    I bought a new pc, and I would like all of my itunes content on here. I seem to be able to only download one song at a time. How can I get my entire library on my new pc

  • Changing data in PSA

    Hi all, I want to change the data in PSA manually, so I went in PSA and in Maintenance of PSA Data request, I selected the record and the menu option List->Change is disabled for me to make a change.  Is it that I don't have correct authorization to

  • Cannot sign documents with Adobe Reader 10.1.3 - 10.1.10, Can sign document with 10.1.2 and 11.0.07

    Cannot sign documents with Adobe Reader 10.1.3 - 10.1.10, Can sign document with 10.1.2 and 11.0.07 In my environment, we have 10.1.2 that's currently packaged. Our CIO was able to sign documents via signature with no problem. Later he got updated to

  • Problems implementing abstract classes

    hello. this is james mcfadden. I am developing a multiplayer BlackJack card game in Java. the game consists of three programs: BlackJack.java, BlackJackServer.java and BlackJackClient.java (three 3 programs are shown below). i don't know how to imple