How to properly detect object not found in query?

Generally, we'd prefer to catch the unchecked exceptions which JDO throws in
response to database operations that go awry. That said, there's one in
particular that's bothering us:
The most important and common one of these which we'd like to know about is
when a query or getObjectByID() fails because the desired object isn't in
the DB.
Currently, an exception is thrown, which we would presumably have to catch
and parse the message text of to determine if this was a row not found, vs.
a database problem?
Please tell me there's a better way to determine if a row(s) isn't(aren't)
found!
thanks,
david

Patrick -- I believe we just see them in getObjectById(), which is what we
do most often.
The subclass of JDODataStoreException that you'll throw is great.
I'd suggest that a property setting could configure kodo to return null to
getObjectById() instead -- ONLY for the case of object not found, for those
of us who might consider this a less-than-truly-exceptional case :)
thanks much,
david
"Patrick Linskey" <[email protected]> wrote in message
news:[email protected]..
David,
Also, a query should return a collection of size zero, and not throw an
exception.
Are you seeing exceptions only when executing getObjectById(), or also
when querying?
-Patrick
On Tue, 29 Apr 2003 05:03:23 -0400, david michaels wrote:
Generally, we'd prefer to catch the unchecked exceptions which JDO
throws in response to database operations that go awry. That said,
there's one in particular that's bothering us:
The most important and common one of these which we'd like to know about
is when a query or getObjectByID() fails because the desired object
isn't in the DB.
Currently, an exception is thrown, which we would presumably have to
catch and parse the message text of to determine if this was a row not
found, vs. a database problem?
Please tell me there's a better way to determine if a row(s)
isn't(aren't) found!
thanks,
david--
Patrick Linskey
SolarMetric Inc.

Similar Messages

  • Info object not found at query level

    Dear Experts,
    I have a issue in concern of Query dsigner. I have designed a query on the basis of ODS & i is working fine on dev system. Then i transport the same query on the QAS system, when i executed the same on QAS syste, it gives an error Characteristic BAS: Place Name was not found in InfoProvider when I analyse the same i found that the query is not able to find one field. then I check the same field in ODS, but the field is available in ODS. I am not able to find out the solution or other way that why this type of error is coming.
    I also re transport all the things but still getting the same error.
    thanks in advance
    Neha

    Hi Neha,
    Try re-importing(with overwrite mode) the query once  in QA and if the error still persists, collect the query once again and transport it to QA.
    I'm saying this because you have made enough checks at all levels, hence try this option.
    if structure of the DSO's in both the systems are identical and if you transport the query once again...the error should be fixed.
    if the structures are not indentical or any of the objects are inactive then you may face the problem. consider all these things before collecting the query.
    Regards,
    Sudheer.

  • How to recover from a Sync command that returns a SyncStatus value 8 (Object not found)

    Hello,
    We are using ActiveSync protocol. We have a situation where our local DB is probably in a invalid state where we do a Sync command passing all of our folders (full sync) and one of the folder (or many) doesn't exist anymore.
    The Sync command result doesn't tell us which folder is invalid.
    But the question is more: how should we recover from this "Object not found" error? Should we erase the local database and do a full refresh?
    Status reference:
    http://msdn.microsoft.com/en-us/library/gg675457(v=exchg.80).aspx
    Thanks
    ArchieCoder

    Sorry, that really isn't a Firefox support issue. Contact a Mac support forum or Mac-users group for advice on to solve that issue.

  • ODI not able to detect primary/foreign keys from XML- user lacks privilege or object not found

    Hi Guys,
    Im trying to load an xml file with two entities address and employee as below. The topology reverse engineering everything works fine. Im even able to view the xml data  in ODI,  but when i try to load the data from these two entities joining by the schema primary keys and foreign keys which odi created on reverse engineering process for xml, im getting the below error.  Im able to load data from one entity, error only occurs when i use the join odi creates internally to identify the xml components employee and address
    XML File:
    <?xml version="1.0" encoding="UTF-8" ?>
    <EMP>
    <Empsch>
    <Employee>
    <EmployeeID>12345</EmployeeID>
    <Initials>t</Initials>
    <LastName>john</LastName>
    <FirstName>doe</FirstName>
    </Employee>
    <Address>
    <WorkPhone>12345</WorkPhone>
    <WorkAddress>Test 234</WorkAddress>
    </Address>
    </Empsch>
    </EMP>
    Topology:  jdbc:snps:xml?f=C:/Temp/RR/Empsch.xml&s=Empsch&re=EMP&dod=true&nobu=false
    Error Message:
    -5501 : 42501 : java.sql.SQLException: user lacks privilege or object not found: EMPSCH.EMPSCHPK
    java.sql.SQLException: user lacks privilege or object not found: EMPSCH.EMPSCHPK
        at org.hsqldb.jdbc.Util.sqlException(Unknown Source)
        at org.hsqldb.jdbc.JDBCPreparedStatement.<init>(Unknown Source)
        at org.hsqldb.jdbc.JDBCConnection.prepareStatement(Unknown Source)
        at com.sunopsis.jdbc.driver.xml.SnpsXmlConnection.prepareStatement(SnpsXmlConnection.java:1232)
        at sun.reflect.GeneratedMethodAccessor65.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at oracle.odi.core.datasource.dwgobject.support.OnConnectOnDisconnectDataSourceAdapter$OnDisconnectCommandExecutionHandler.invoke(OnConnectOnDisconnectDataSourceAdapter.java:200)
        at $Proxy2.prepareStatement(Unknown Source)
        at oracle.odi.runtime.agent.execution.sql.SQLCommand.doInitializeStatement(SQLCommand.java:83)
        at oracle.odi.runtime.agent.execution.sql.SQLCommand.getStatement(SQLCommand.java:117)
        at oracle.odi.runtime.agent.execution.sql.SQLCommand.getStatement(SQLCommand.java:111)
        at oracle.odi.runtime.agent.execution.sql.SQLDataProvider.readData(SQLDataProvider.java:81)
        at oracle.odi.runtime.agent.execution.sql.SQLDataProvider.readData(SQLDataProvider.java:1)
        at oracle.odi.runtime.agent.execution.DataMovementTaskExecutionHandler.handleTask(DataMovementTaskExecutionHandler.java:70)
        at com.sunopsis.dwg.dbobj.SnpSessTaskSql.processTask(SnpSessTaskSql.java:2913)
        at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java:2625)
        at com.sunopsis.dwg.dbobj.SnpSessStep.treatAttachedTasks(SnpSessStep.java:577)
        at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java:468)
        at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java:2128)
        at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$2.doAction(StartSessRequestProcessor.java:366)
        at oracle.odi.core.persistence.dwgobject.DwgObjectTemplate.execute(DwgObjectTemplate.java:216)
        at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.doProcessStartSessTask(StartSessRequestProcessor.java:300)
        at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.access$0(StartSessRequestProcessor.java:292)
        at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$StartSessTask.doExecute(StartSessRequestProcessor.java:855)
        at oracle.odi.runtime.agent.processor.task.AgentTask.execute(AgentTask.java:126)
        at oracle.odi.runtime.agent.support.DefaultAgentTaskExecutor$2.run(DefaultAgentTaskExecutor.java:82)
        at java.lang.Thread.run(Thread.java:662)
    Caused by: org.hsqldb.HsqlException: user lacks privilege or object not found: EMPSCH.EMPSCHPK
        at org.hsqldb.error.Error.error(Unknown Source)
        at org.hsqldb.ExpressionColumn.checkColumnsResolved(Unknown Source)
        at org.hsqldb.QueryExpression.resolve(Unknown Source)
        at org.hsqldb.ParserDQL.compileCursorSpecification(Unknown Source)
        at org.hsqldb.ParserCommand.compilePart(Unknown Source)
        at org.hsqldb.ParserCommand.compileStatement(Unknown Source)
        at org.hsqldb.Session.compileStatement(Unknown Source)
        at org.hsqldb.StatementManager.compile(Unknown Source)
        at org.hsqldb.Session.execute(Unknown Source)
        ... 27 more
    Please advice
    Thanks
    Revanth

    Thats obvious from the xml file contents you have given here. In this xml file You have four complex type. Two of them are employee and address. However the employee doesnot have any relation with address as you have not added the relationship. Thats why its failing. Its not the fault of ODI.
    Also I would suggest not to use auto generated dtd by ODI as you might face problem in future. For example the address type of XML has 8 attributes and 4 of them are not mandatory. That means each of your xml file may have attributes between 4 to 8.  This is where ODI auto generated DTD fails.
    XML Schema complexType Element
    Thanks
    Bhabani

  • NameNotFoundException: Object not found in lookup of FilenameModuleBean

    Hello,
    after migration from XI 3.0 to PI 7.10 we have a problem with a Java-Module in the File-Adapter.
    In XI 3.0 we hat only a EAR-File. We converted it into a SCA-File an deploy it with the JSPM.
    I also can see the Objekt in the JNDI-Browser under:
    localejbs/sap.com/fnmodear/FilenameModuleBean
    rfcaccessejb/sap.com/fnmodear/FilenameModuleBean
    sap.com/fnmodear/FilenameModuleBean
    ejbCosNaming/sap.com/fnmodear/FilenameModuleBean
    but not under:
    AF_Modules/ (I don´t know if it matters)
    In the File-Adapter we try FilenameModuleBean in the Module Name, but we get the following error message:
    18.11.2010 17:02:59 Fehler Adapter Framework caught exception: Object not found in lookup of FilenameModuleBean.
    18.11.2010 17:02:59 Fehler Delivering the message to the application using connection File_http://sap.com/xi/XI/System failed, due to: com.sap.engine.interfaces.messaging.api.exception.MessagingException: com.sap.engine.services.jndi.persistent.exceptions.NameNotFoundException: Object not found in lookup of FilenameModuleBean..
    It seems that he can´t look up the JNDI name.
    I hope anyone can help me with the problem.
    Best Regards
    Georg
    Edited by: Georg Kunkel on Nov 18, 2010 5:21 PM

    Hi Georg,
    I believe the java module "FilenameModuleBean" in your case is a custom adapter module and hence it would not be available under AF_Modules. The AF_Module is for the modules which are shipped with PI by SAP like PayloadSwapBean, XMLConvertorBean etc.
    As a checklist, please check the following entries in the module tab of the channel configuration:
    1. Module Name: FilenameModuleBean
    2. Type: Local Enterprise Bean
    3. Module Key: Any Constant Value
    4. Module parameters for this module key (Necessary only if the custom module expects any inputs)
    Also as you mentioned,
    >>In XI 3.0 we hat only a EAR-File. We converted it into a SCA-File an deploy it with the JSPM.
    For this, there might be a case that the .SCA file was not generated properly. To properly generate the .SCA or .SDA file you can:
    1. Build sca from ear using nwpacktool described in SAP note:1223957
    2. Use NWDS 7.1. You can convert your EAR file to SDA file with the help of CECTL & nwcetool provided with NWDS 7.1
    Check: Re: How to build an adapter module in NWDS 7.1?
    You might also want to look at the following link for creating custom adapter module for PI 7.10
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/c0b39e65-981e-2b10-1c9c-fc3f8e6747fa?quicklink=index&overridelayout=true
    In case everything looks fine to you, a manual re-start (if possible) of the PI Server should solve the problem.
    I hope this helps.
    Regards, Gaurav.

  • While Doing BW  Role Uploading Getting message "Linked Objects Not Found" ?

    Dear All,
    I am trying to upload a BW role from EP , while doing role upoad activity, when I am giving role name, system namein the first step it is identifying the role from the system.
    To that role four reports has been attached.
    After uploading the role, the role has been get uploaded, but the reports which are attached to the role it is showing that "Linked Objects Not Found", for all the reports.
    For all those reports I have checked the web url on BW server it is corect but then also I am getting above message.
    Please any one help me out in this scenario.
    Regards,
    Aditya

    The same problem during XI to BI integration as it was told in how-to.

  • PI 7.0 JMS Rcv Adapter: Object not found in lookup of XIJMSService

    Hi all,
    When sending messages to an JMS queue, JNDI setup, in the Message Monitoring we get  the error:
    "MP: Exception caught with cause com.sap.aii.af.ra.ms.api.RecoverableException: Object not found in lookup of XIJMSService.: com.sap.engine.services.jndi.persistent.exceptions.NameNotFoundException: Object not found in lookup of XIJMSService."
    The Error points to the Module Processor. Indeed the 2 default Modules are used:
    - SAP XI JMS Adapter/ConvertMessageToBinary
    - SAP XI JMS Adapter/SendBinarytoXIJMSService
    This second Module contains 'XIJMSService', and according the documentation (http://help.sap.com/saphelp_nw04/Helpdata/EN/4d/a3bc97ff55c742af7faed661635baf/content.htm)
    , it uses a parameter named 'modulePoolAdminLookupName' with the default value: /XIJMSService.
    This is how far we get. Even when we assign a different value to the parameter 'modulePoolAdminLookupName' , the error in the Message Monitoring stays the same.
    Has anyone experience with this issue, or any ideas to investigate or solve this?
    Thanx in advance, Walter.

    Hi all,
    Issue is solved. Apparently the Java-version on our XI-server (1.4.2) could not handle the Vendor's JMS-driver we installed (ActiveMQ 4.1.2.jar) so we tried using the ActiveMQ 4.1.0.jar as the JMS-driver. Now it is OK and message are put on the destination queue.
    Walter.

  • XI error: Object not found in lookup of RfcAFBean

    Hi Forum,
    In a scenario, I have a BPM, which makes a synchronous call to R/3 for execution of a rfc enabled Function module, while doing so, it gives an error as a response, which i can see in the MONI:
    <b>com.sap.aii.af.ra.ms.api.DeliveryException: Object not found in lookup of RfcAFBean</b>
    what can be the reason for the error? and how can it be avoided?
    pls help

    it might be a cache problem, run the CPA cache and check.
    ir, id cache the data here also.

  • JMS Destination object not found

    Hi everyone,
    I have a weird problem with SunONE Message Queue 3.
    I have a queue and a connection factory defined (using the SunONE Application Server 7 Admin Console) as well as a physical resource.
    I can verify their existance using asadmin....
    asadmin>list-jmsdest -u admin server1
    queue_1 queue {}
    asadmin>list-jms-resources -u admin server1
    jms/newqueue_1
    jms/newQCF_1
    When I attempt to deploy a message driven EJB I get the following error
    SEVERE ( 1484): javax.naming.InvalidNameException: JMS Destination object not found:`jms/newqueue_1`
    This question has already been asked on the App Server board here http://swforum.sun.com/jive/thread.jspa?threadID=15517&tstart=0 (that post is nine months old btw).
    I am posting this here in the hope that someone more familiar with MQ3 may have an idea of how to help us.
    Thanks in advance.

    I have now solved this problem. External JNDI resources are required in the AppServer.
    They can be created with the following commands:
    asadmin>create-jndi-resource jndilookupname jms/newQCF_1 resourcetype javax.jms.QueueConnectionFactory factoryclass com.sun.jndi.fscontext.RefFSContextFactory enabled=true --property java.naming.provider.url=file\:///c\:/java/mqjndi:java.naming.security.authentication=none newQCF_1
    asadmin>create-jndi-resource jndilookupname jms/queue_1 resourcetype javax.jms.Queue factoryclass com.sun.jndi.fscontext.RefFSContextFactory enabled=true --property java.naming.provider.url=file\:///c\:/java/mqjndi newqueue_1
    Both these commands assume that the file system context is being used however the LDAP commands are similar (just more properties).
    This step, which seems vital, is missing from the AppServer documentation (in fact it specifically states that this step is not necessary). The irony is that I found the answer in the IBM MQ documentation!

  • ERROR:NameNotFoundException: Object not found in lookup of MYDB

    NW 7.0 SP3
    I have defined a datasource MYDB by VA,and it tests OK.
    I wonder about how to use it in J2EE project or in WebDynpro Project.
    I created a J2EE project ,in the Web Model ,i new a class Test:
    public static Connection myconn(){    
         Context ctx = new InitialContext();
         Connection conn = null;
         DataSource dataSource = null;
         dataSource = (DataSource) ctx.lookup("MYDB");
        conn = dataSource.getConnection();
        return conn;
    then in webcontent ,I new a JSP page:
    <%
      Connection conn = com.Test.myconn();
    java.sql.Statement st = conn.createStatement();
    String str = "select * from TMP_NAME";
    ResultSet rs = st.executeQuery(str);
    rs.next();
    String str1 = rs.getString(1);
    %>
    after build and deploy the *.ear,the server returns an error:
             com.sap.engine.services.jndi.persistent.exceptions.NameNotFoundException: Object not found in lookup of MYDB.
    Now I do not know anything else should I do,such as create a reference,and so on.
    Thanks for you all help!

    Hi,
    Try the code as below:
    DataSource ds = (DataSource) context.lookup("java:comp/env/jdbc/MYDB")
    Go through the below help link:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/82/fdbf2085f65f43a71e755fc904478d/content.htm
    Go through the below thread for more info:
    Re: datasource using VA
    Regards,
    Charan

  • REP-1070 Object not found in the object store ...

    When trying to open an report file (.rdf) in Reports 6 it won't open. I get the error REP-1070 Error while saving or opening ... Object not found in the object store.
    I know that in the report there is an OLE object, is that the problem? How can I save the source code when I can't open the file?
    Please help!
    /Linda

    Hi vdha,
    Try this..
    Get the user account under which the host instance for the send port is configured.
    Log-off from your server. Log back in using the service account. The account which is been used in the host instance.
    Go to MMC..Select “My User Account” as opposed to “Computer account” as you did.
    The import the certificate under “Personal “ folder and “Trusted Root Certification Authorities ”
    If this answers your question please mark it accordingly. If this post is helpful, please vote as helpful by clicking the upward arrow mark next to my reply.

  • Object not found in lookup of SetDynamicConfiguration.

    Hi,
    We are doing File to Proxy Scenario, in the File adapter we used the SetDynamicConfiguration as the module with module Type as Local enterprise Bean and Paramaters as
    DynamicFeedeNS and _Simulate.
    during testing the  File adapter  shows log as "Attempt to process file failed with com.sap.engine.services.jndi.persistent.exceptions.NameNotFoundException: Object not found in lookup of SetDynamicConfiguration".
    Please suggest as how to solve this problem.
    No mapping is done in our scenario and the rest are handeled at ERP.
    thanks
    Archanaa

    Hi,
    first of all go to the NWA and check, if your module is active. Then check the JNDI name.
    In the module chain you just enter the JNDI name, nothing else.
    Also look into these links
    http://help.sap.com/saphelp_nwpi71/helpdata/en/e9/61e1407e858031e10000000a1550b0/frameset.htm
    http://help.sap.com/saphelp_nwpi71/helpdata/en/16/2da04028f40160e10000000a1550b0/frameset.htm
    SDM Troubleshooting for the error:
    http://help.sap.com/saphelp_nw04/helpdata/en/76/fb72ec091f4bf8a2d8ba321bb7e8d9/content.htm
    /people/udo.paltzer/blog/2007/04/26/new-sap-netweaver-process-integration-release-planned-for-2007
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/00838345-708c-2a10-1199-9514c0b0a91c
    Regards
    Aashish Sinha
    PS : reward points if helpful

  • NameNotFoundException: Object not found in lookup

    Hi all!
    I have a problem with my Netweaver SP18 WebAS EJB application. The JNDI lookup fails with the following runtime error:
    com.sap.engine.services.jndi.persistent.exceptions.NameNotFoundException: Object not found in lookup of CaTreeServerIFBean.
         at com.sap.engine.services.jndi.implserver.ServerContextImpl.lookup(ServerContextImpl.java:649)
         at com.sap.engine.services.jndi.implserver.ServerContextRedirectableImpl.lookup(ServerContextRedirectableImpl.java:80)
         at com.sap.engine.services.jndi.implserver.ServerContextImplp4_Skel.dispatch(ServerContextImplp4_Skel.java:555)
         at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:320)
         at com.sap.engine.services.rmi_p4.DispatchImpl._run(DispatchImpl.java:198)
         at com.sap.engine.services.rmi_p4.server.P4SessionProcessor.request(P4SessionProcessor.java:129)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
    predecessor system -
    com.sap.engine.services.jndi.persistent.exceptions.NameNotFoundException: Object not found in lookup of CaTreeServerIFBean.
         at com.sap.engine.services.jndi.implserver.ServerContextImpl.lookup(ServerContextImpl.java:649)
         at com.sap.engine.services.jndi.implserver.ServerContextRedirectableImpl.lookup(ServerContextRedirectableImpl.java:80)
         at com.sap.engine.services.jndi.implserver.ServerContextImplp4_Skel.dispatch(ServerContextImplp4_Skel.java:555)
         at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:320)
         at com.sap.engine.services.rmi_p4.DispatchImpl._run(DispatchImpl.java:198)
         at com.sap.engine.services.rmi_p4.server.P4SessionProcessor.request(P4SessionProcessor.java:129)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
    I use the following code to lookup the EJB:
    Object homeTreeObj = ctx.lookup("sap.com/anafee-server-ear/CaTreeServerIFBean");
    I think the JNDI name should be right, because it's a composite name
    of "provider-name/application-name/EJB-name".
    My provider-name is defined in the application-j2ee-engine.xml:
    <application-j2ee-engine>
        <provider-name>sap.com</provider-name>
        <fail-over-enable mode="disable" />
    </application-j2ee-engine>
    My application-name is defined in the application.xml:
    <application>
        <display-name>anafee-server-ear</display-name>
        <description>EAR description</description>
        <module>
            <ejb>anafee-server-ejb-3_2.jar</ejb>
        </module>
    </application>
    My Session EJB is declared in the ejb-jar.xml:
    <session>
                <description>test</description>
                <ejb-name>CaTreeServerIFBean</ejb-name>
    <home>com.catenic.anafee.server.common.serverinterface.CaTreeServerIFHome</home>
    <remote>com.catenic.anafee.server.common.serverinterface.CaTreeServerIF</remote>
                <ejb-class>com.catenic.anafee.server.common.serverinterface.CaTreeServerIFBean</ejb-class>
                <session-type>Stateless</session-type>
                <transaction-type>Container</transaction-type>
                <ejb-ref>
                    <ejb-ref-name>ejb/CaFastReaderManager</ejb-ref-name>
                    <ejb-ref-type>Session</ejb-ref-type>
    <home>com.catenic.anafee.server.manager.reader.CaFastReaderManagerHome</home>
    <remote>com.catenic.anafee.server.manager.reader.CaFastReaderManager</remote>
                    <ejb-link>CaFastReaderManagerBean</ejb-link>
                </ejb-ref>
                <ejb-ref>
                    <ejb-ref-name>ejb/CaTreeManager</ejb-ref-name>
                    <ejb-ref-type>Session</ejb-ref-type>        <home>com.catenic.anafee.server.manager.tree.CaTreeManagerHome</home>
    <remote>com.catenic.anafee.server.manager.tree.CaTreeManager</remote>
                    <ejb-link>CaTreeManagerBean</ejb-link>
                </ejb-ref>
                <ejb-ref>
                    <ejb-ref-name>ejb/CaTNBasicManager</ejb-ref-name>
                    <ejb-ref-type>Session</ejb-ref-type>
    <home>com.catenic.anafee.server.manager.tree.CaTNManagerHome</home>      <remote>com.catenic.anafee.server.manager.tree.CaTNBasicManager</remote>
                    <ejb-link>CaTNBasicManagerBean</ejb-link>
                </ejb-ref>
                <ejb-ref>
                    <ejb-ref-name>ejb/CaTreeRole2IFMappingService</ejb-ref-name>
                    <ejb-ref-type>Session</ejb-ref-type>
                    <home>com.catenic.anafee.server.manager.rolemapping.tree.CaTreeRole2IFMappingServiceHome</home>
    <remote>com.catenic.anafee.server.manager.rolemapping.tree.CaTreeRole2IFMappingService</remote>
                    <ejb-link>CaTreeRole2IFMappingServiceBean</ejb-link>
                </ejb-ref>
                <ejb-ref>
                    <ejb-ref-name>ejb/CaRoleInfoManager</ejb-ref-name>
                    <ejb-ref-type>Session</ejb-ref-type>
    <home>com.catenic.anafee.server.metadata.CaRoleInfoManagerHome</home>
    <remote>com.catenic.anafee.server.metadata.CaRoleInfoManager</remote>
                    <ejb-link>CaRoleInfoManagerBean</ejb-link>
                </ejb-ref>
                <ejb-ref>
                    <ejb-ref-name>ejb/CaNestedTreeManager</ejb-ref-name>
                    <ejb-ref-type>Session</ejb-ref-type>
    <home>com.catenic.anafee.server.manager.tree.CaNestedTreeManagerHome</home>
    <remote>com.catenic.anafee.server.manager.tree.CaNestedTreeManager</remote>
                    <ejb-link>CaNestedTreeManagerBean</ejb-link>
                </ejb-ref>
            </session>
    Do you have any idea why the lookup fails? (I don't have any special JNDI mappings
    defined in the ejb-j2ee-engine.xml, if this could matter.)
    Regards,
    Matthias

    Hi, Experts,
    I have same exceiption as this one, my error message as:
    com.sap.engine.services.jndi.persistent.exceptions.NameNotFoundException: Object not found in lookup of Route.
    I register in Object: "Route" using JNDI in my RMI over IIOP server. However in my SAP Web Dynpro application, the javaBean model cannot talk with external RMI over IIOP server. my source code as:
                Context ctx = new InitialContext();
                Object obj = ctx.lookup("Route");
                route = (Route)PortableRemoteObject.narrow(obj, Route.class);
    How to make SAP J2EE server talk with external Cobra Server?

  • EJB3.0 App Deplyed wid warnings : Object not found in lookup of JPA-DEFAULT

    Hello Friends
    I am getting this warning while deploying this EJB 3.0 Application
    here I have
    1) 4 DCs with session beans
    2) One Entity DC
    I have checked my jta-data-source its added properly
    here is the deployment stack trace
         Description:
              1. Exception has been returned while the 'asianpaints.com/hssp_app_new' was starting. Warning/Exception :
    [ERROR CODE DPL.DS.6193] Error while ; nested exception is:
         com.sap.engine.services.deploy.exceptions.ServerDeploymentException: [ERROR CODE DPL.DS.5030] Clusterwide exception: server ID 6358450:com.sap.engine.services.orpersistence.container.deploy.ActionException: [ERROR CODE DPL.DS.5030] Clusterwide exception: com.sap.engine.services.jndi.persistent.exceptions.NameNotFoundException: Object not found in lookup of JPA_DEFAULT.
         at com.sap.engine.services.jndi.implserver.ServerContextImpl.lookup(ServerContextImpl.java:584)
         at com.sap.engine.services.jndi.implclient.ClientContext.lookup(ClientContext.java:343)
         at com.sap.engine.services.jndi.implclient.ClientContext.lookup(ClientContext.java:637)
         at javax.naming.InitialContext.lookup(InitialContext.java:351)
         at javax.naming.InitialContext.lookup(InitialContext.java:351)
         at com.sap.engine.services.orpersistence.container.deploy.impl.ComplexModuleCreator.initDataSources(ComplexModuleCreator.java:344)
         at com.sap.engine.services.orpersistence.container.deploy.impl.ComplexModuleCreator.initRuntimeModels(ComplexModuleCreator.java:230)
         at com.sap.engine.services.orpersistence.container.deploy.impl.ComplexModuleCreator.createModule(ComplexModuleCreator.java:154)
         at com.sap.engine.services.orpersistence.container.deploy.impl.ComplexModuleCreator.execute(ComplexModuleCreator.java:84)
         at com.sap.engine.services.orpersistence.container.deploy.impl.ComplexActionAdapter.execute(ComplexActionAdapter.java:34)
         at com.sap.engine.services.orpersistence.container.deploy.impl.ApplicationCreator.execute(ApplicationCreator.java:74)
         at com.sap.engine.services.orpersistence.container.deploy.impl.PersistenceContainer.prepareStart(PersistenceContainer.java:187)
         at com.sap.engine.services.deploy.server.application.StartTransaction.prepareCommon(StartTransaction.java:219)
         at com.sap.engine.services.deploy.server.application.StartTransaction.prepare(StartTransaction.java:179)
         at com.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhasesOnOneServer(ApplicationTransaction.java:420)
         at com.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhases(ApplicationTransaction.java:445)
         at com.sap.engine.services.deploy.server.application.ParallelAdapter.super_MakeAllPhases(ParallelAdapter.java:337)
         at com.sap.engine.services.deploy.server.application.StartTransaction.makeAllPhasesImpl(StartTransaction.java:550)
         at com.sap.engine.services.deploy.server.application.ParallelAdapter.runInTheSameThread(ParallelAdapter.java:251)
         at com.sap.engine.services.deploy.server.application.ParallelAdapter.makeAllPhasesAndWait(ParallelAdapter.java:392)
         at com.sap.engine.services.deploy.server.DeployServiceImpl.startApplicationAndWait(DeployServiceImpl.java:3389)
         at com.sap.engine.services.deploy.server.DeployServiceImpl.startApplicationAndWait(DeployServiceImpl.java:3375)
         at com.sap.engine.services.deploy.server.DeployServiceImpl.startApplicationAndWait(DeployServiceImpl.java:3278)
         at com.sap.engine.services.deploy.server.DeployServiceImpl.startApplicationAndWait(DeployServiceImpl.java:3251)
         at com.sap.engine.services.dc.lcm.impl.J2EELCMProcessor.doStart(J2EELCMProcessor.java:99)
         at com.sap.engine.services.dc.lcm.impl.LifeCycleManagerImpl.start(LifeCycleManagerImpl.java:62)
         at com.sap.engine.services.dc.cm.deploy.impl.LifeCycleManagerStartVisitor.visit(LifeCycleManagerStartVisitor.java:34)
         at com.sap.engine.services.dc.cm.deploy.impl.DeploymentItemImpl.accept(DeploymentItemImpl.java:83)
         at com.sap.engine.services.dc.cm.deploy.impl.DefaultDeployPostProcessor.postProcessLCMDeplItem(DefaultDeployPostProcessor.java:80)
         at com.sap.engine.services.dc.cm.deploy.impl.DefaultDeployPostProcessor.postProcess(DefaultDeployPostProcessor.java:56)
         at com.sap.engine.services.dc.cm.deploy.impl.DeployerImpl.doPostProcessing(DeployerImpl.java:741)
         at com.sap.engine.services.dc.cm.deploy.impl.DeployerImpl.performDeploy(DeployerImpl.java:732)
         at com.sap.engine.services.dc.cm.deploy.impl.DeployerImpl.doDeploy(DeployerImpl.java:576)
         at com.sap.engine.services.dc.cm.deploy.impl.DeployerImpl.deploy(DeployerImpl.java:270)
         at com.sap.engine.services.dc.cm.deploy.impl.DeployerImpl.deploy(DeployerImpl.java:192)
         at com.sap.engine.services.dc.cm.deploy.impl.DeployerImplp4_Skel.dispatch(DeployerImplp4_Skel.java:875)
         at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:351)
         at com.sap.engine.services.rmi_p4.server.ServerDispatchImpl.run(ServerDispatchImpl.java:70)
         at com.sap.engine.services.rmi_p4.P4Message.process(P4Message.java:62)
         at com.sap.engine.services.rmi_p4.P4Message.execute(P4Message.java:37)
         at com.sap.engine.services.cross.fca.FCAConnectorImpl.executeRequest(FCAConnectorImpl.java:877)
         at com.sap.engine.services.rmi_p4.P4Message.process(P4Message.java:53)
         at com.sap.engine.services.cross.fca.MessageReader.run(MessageReader.java:58)
         at com.sap.engine.core.thread.execution.Executable.run(Executable.java:108)
         at com.sap.engine.core.thread.execution.CentralExecutor$SingleThread.run(CentralExecutor.java:304)
         at com.sap.engine.services.orpersistence.container.deploy.impl.ComplexModuleCreator.initDataSources(ComplexModuleCreator.java:360)
         at com.sap.engine.services.orpersistence.container.deploy.impl.ComplexModuleCreator.initRuntimeModels(ComplexModuleCreator.java:230)
         at com.sap.engine.services.orpersistence.container.deploy.impl.ComplexModuleCreator.createModule(ComplexModuleCreator.java:154)
         at com.sap.engine.services.orpersistence.container.deploy.impl.ComplexModuleCreator.execute(ComplexModuleCreator.java:84)
         at com.sap.engine.services.orpersistence.container.deploy.impl.ComplexActionAdapter.execute(ComplexActionAdapter.java:34)
         at com.sap.engine.services.orpersistence.container.deploy.impl.ApplicationCreator.execute(ApplicationCreator.java:74)
         at com.sap.engine.services.orpersistence.container.deploy.impl.PersistenceContainer.prepareStart(PersistenceContainer.java:187)
         at com.sap.engine.services.deploy.server.application.StartTransaction.prepareCommon(StartTransaction.java:219)
         at com.sap.engine.services.deploy.server.application.StartTransaction.prepare(StartTransaction.java:179)
         at com.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhasesOnOneServer(ApplicationTransaction.java:420)
         at com.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhases(ApplicationTransaction.java:445)
         at com.sap.engine.services.deploy.server.application.ParallelAdapter.super_MakeAllPhases(ParallelAdapter.java:337)
         at com.sap.engine.services.deploy.server.application.StartTransaction.makeAllPhasesImpl(StartTransaction.java:550)
         at com.sap.engine.services.deploy.server.application.ParallelAdapter.runInTheSameThread(ParallelAdapter.java:251)
         at com.sap.engine.services.deploy.server.application.ParallelAdapter.makeAllPhasesAndWait(ParallelAdapter.java:392)
         at com.sap.engine.services.deploy.server.DeployServiceImpl.startApplicationAndWait(DeployServiceImpl.java:3389)
         at com.sap.engine.services.deploy.server.DeployServiceImpl.startApplicationAndWait(DeployServiceImpl.java:3375)
         at com.sap.engine.services.deploy.server.DeployServiceImpl.startApplicationAndWait(DeployServiceImpl.java:3278)
         at com.sap.engine.services.deploy.server.DeployServiceImpl.startApplicationAndWait(DeployServiceImpl.java:3251)
         at com.sap.engine.services.dc.lcm.impl.J2EELCMProcessor.doStart(J2EELCMProcessor.java:99)
         at com.sap.engine.services.dc.lcm.impl.LifeCycleManagerImpl.start(LifeCycleManagerImpl.java:62)
         at com.sap.engine.services.dc.cm.deploy.impl.LifeCycleManagerStartVisitor.visit(LifeCycleManagerStartVisitor.java:34)
         at com.sap.engine.services.dc.cm.deploy.impl.DeploymentItemImpl.accept(DeploymentItemImpl.java:83)
         at com.sap.engine.services.dc.cm.deploy.impl.DefaultDeployPostProcessor.postProcessLCMDeplItem(DefaultDeployPostProcessor.java:80)
         at com.sap.engine.services.dc.cm.deploy.impl.DefaultDeployPostProcessor.postProcess(DefaultDeployPostProcessor.java:56)
         at com.sap.engine.services.dc.cm.deploy.impl.DeployerImpl.doPostProcessing(DeployerImpl.java:741)
         at com.sap.engine.services.dc.cm.deploy.impl.DeployerImpl.performDeploy(DeployerImpl.java:732)
         at com.sap.engine.services.dc.cm.deploy.impl.DeployerImpl.doDeploy(DeployerImpl.java:576)
         at com.sap.engine.services.dc.cm.deploy.impl.DeployerImpl.deploy(DeployerImpl.java:270)
         at com.sap.engine.services.dc.cm.deploy.impl.DeployerImpl.deploy(DeployerImpl.java:192)
         at com.sap.engine.services.dc.cm.deploy.impl.DeployerImplp4_Skel.dispatch(DeployerImplp4_Skel.java:875)
         at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:351)
         at com.sap.engine.services.rmi_p4.server.ServerDispatchImpl.run(ServerDispatchImpl.java:70)
         at com.sap.engine.services.rmi_p4.P4Message.process(P4Message.java:62)
         at com.sap.engine.services.rmi_p4.P4Message.execute(P4Message.java:37)
         at com.sap.engine.services.cross.fca.FCAConnectorImpl.executeRequest(FCAConnectorImpl.java:877)
         at com.sap.engine.services.rmi_p4.P4Message.process(P4Message.java:53)
         at com.sap.engine.services.cross.fca.MessageReader.run(MessageReader.java:58)
         at com.sap.engine.core.thread.execution.Executable.run(Executable.java:108)
         at com.sap.engine.core.thread.execution.CentralExecutor$SingleThread.run(CentralExecutor.java:304)
    Result
    Status:Warning

    OK, you have properly declared the data source for your persistence unit in the persistence.xml. But you also have to maintain this data source (alias) on the server, i.e. it has to be created explicitly.
    Check this [document|http://help.sap.com/saphelp_nwce711/helpdata/en/46/96ec3c33621e5ce10000000a1553f6/frameset.htm].
    HTH!
    -- Vladimir
    PS: Please take your time to go through the [Rules of Engagement|https://wiki.sdn.sap.com/wiki/display/HOME/RulesofEngagement] and do not crosspost to multiple forums.

  • Object Not found in lookup of RNIF11Module Listener

    Hi All,
    Facing an issue with RNIF11  in XI3.0 SP19  quality system.There is no issue in dev and production.
    When we run an inerface with Rosettanet in quality we are getting following error in audit log
    [Delivery of message  to the application using connection RNIF11  http://sap.com/xi/XI/System  failed due to :com.sap.aii.af.ra.ms.api.RecoverableException:Object not found in the lookup of RNIF11Modue Listener:com.sap.engine.services.jndi.persistent.exceptions.NamenotfoundException:Object Not found  in lookup of RNIF11ModuleListener.]
    When i compare JNDIRegistry in Visual Admin of Production/development  and Quality, i do not find the entries
    RNIF11Module Listener,
    RNIFModuleListener,
    RNIF11DetailsEAR,
    in  quality but find them in Production as well as development.
    How do i get them updated in JNDIRegistry?
    The interface ran well previously(but not sure when it ran successfully ) and all of a sudden when we wanted to test again in quality it is failing.
    Please help.
    Thanks,
    Padmaja

    Hi All,
    Facing an issue with RNIF11  in XI3.0 SP19  quality system.There is no issue in dev and production.
    When we run an inerface with Rosettanet in quality we are getting following error in audit log
    [Delivery of message  to the application using connection RNIF11  http://sap.com/xi/XI/System  failed due to :com.sap.aii.af.ra.ms.api.RecoverableException:Object not found in the lookup of RNIF11Modue Listener:com.sap.engine.services.jndi.persistent.exceptions.NamenotfoundException:Object Not found  in lookup of RNIF11ModuleListener.]
    When i compare JNDIRegistry in Visual Admin of Production/development  and Quality, i do not find the entries
    RNIF11Module Listener,
    RNIFModuleListener,
    RNIF11DetailsEAR,
    in  quality but find them in Production as well as development.
    How do i get them updated in JNDIRegistry?
    The interface ran well previously(but not sure when it ran successfully ) and all of a sudden when we wanted to test again in quality it is failing.
    Please help.
    Thanks,
    Padmaja

Maybe you are looking for

  • BtTray.exe error on startup in Windows 8.1

    I receive a BtTray.exe Error, BsSdk.dll missing on startup in Windows 8.0.......... PC is 2 months old and has always done this. Joe_Rock 

  • Excise Base value wrong in MIGO

    Hello , PB00 and some Z condition types are used in Pricing Procedure....And Excise is calculted on the addition of PBoo+Z condition types, The BED and ECS and SECess is calculted correctly While capturing the excise invoice in MIGO We are using Ecc

  • No asset values shown for new fiscal year

    We have a problem with an Asset in our FA module. The Asset was created in May 08 and had costs posted to it within the same month. Depreciation was run for May & Jun 08 with no problems. Year end was Jun 08 and the asset was included in both the Ass

  • Urgent : Performance Issue DELETE , INSERT INTO SELECT, UPDATE

    Hi, NEED ASSISTANCE TO OPTIMIZE THE INSERT STATEMENT (insert into select): ================================================= We have a report. As per current design following steps are used to populate the custom table whcih is used for reporting pur

  • Eset Node 32 interfering with icloud photos

    I have recently installed Eset Node 32 on my WIndows 7 PC. My photos are now not updating on my Photo Stream/iCloud Photos folder. Any ideas?