Object not found from dead lock graph

Hi,
I am frequently getting ora--00060 error. And in all the trace files i see
Deadlock graph:
                       ---------Blocker(s)--------  ---------Waiter(s)---------
Resource Name          process session holds waits  process session holds waits
TX-00080021-00002b64       109     546           X       88     545           S
TX-00210021-0000142d        88     545     X             72     547           S
TX-00080021-00002b64        72     547     X            109     546           X
session 546: DID 0001-006D-000104E8     session 545: DID 0001-0058-00051514
session 545: DID 0001-0058-00051514     session 547: DID 0001-0048-0005384F
session 547: DID 0001-0048-0005384F     session 546: DID 0001-006D-000104E8
Rows waited on:
Session 545: obj - rowid = 0000B0FD - AAALkXAAAAAAAAAAAA
  (dictionary objn - 45309, +*file - 0, block - 0, slot - 0*)+
Session 547: obj - rowid = 0000B0FD - AAALkXAAAAAAAAAAAA
  (dictionary objn - 45309, file - 0, block - 0, slot - 0)
Session 546: obj - rowid = 000031E1 - AAADHhAAFAAACjwAEc
  (dictionary objn - 12769, file - 5, block - 10480, slot - 284)When i do
select dbms_rowid.rowid_object( 'AAALkXAAAAAAAAAAAA' ) from dual;
It returns 47383
Then again
select * from all_objects where object_id = 47383;
Returns no rows.
And i can not undersand (dictionary objn - 45309, file - 0, block - 0, slot - 0)+
as it is pointing to FILE 0, BLOCK 0 and SLOT 0.
Could any one give some pointers please
Thanks
Edited by: EBSDBA on Mar 6, 2012 12:50 AM

Hi,
Mr.Jonathan, I am a fan of your posts and replies.
Deadlock graph:
                       ---------Blocker(s)--------  ---------Waiter(s)---------
Resource Name          process session holds waits  process session holds waits
TX-003a0002-00000002       196     468           X      224     607           S
TX-000e002c-00006097       224     607     X            113     616           S
TX-003a0002-00000002       113     616     X            196     468           X
session 468: DID 0001-00C4-00000002     session 607: DID 0001-00E0-00000004
session 607: DID 0001-00E0-00000004     session 616: DID 0001-0071-0005E56A
session 616: DID 0001-0071-0005E56A     session 468: DID 0001-00C4-00000002
Rows waited on:
Session 607: obj - rowid = 0000B0FD - AAALkXAAAAAAAAAAAA
  (dictionary objn - 45309, file - 0, block - 0, slot - 0)
Session 616: obj - rowid = 0000B0FD - AAALkXAAAAAAAAAAAA
  (dictionary objn - 45309, file - 0, block - 0, slot - 0)
Session 468: obj - rowid = 000031E1 - AAADHhAAFAAACjtAA9
  (dictionary objn - 12769, file - 5, block - 10477, slot - 61)
Information on the OTHER waiting sessions:
Session 607:
  application name: frmweb.exe, hash value=854945150
  Current SQL Statement:
  SELECT MS_MESSAGES.MSG_SEVERITY FROM GENCDE.MS_MESSAGES   WHERE MS_MESSAGES.MSG_CODE =  :1  
Session 616:
  application name: xxxxxxx.exe, hash value=2799981571
  Current SQL Statement:
INSERT INTO ACCCDE.GLVODMF (VD_BRANCH, VD_OFFICE, VD_VOH_TYPE, VD_VOH_YEAR, VD_VOH_NO, VD_SRL, VD_ACC, VD_CURR, VD_CEXCH, VD_SIDE, VD_FAMT, VD_LAMT,VD_STATUS) VALUES (:B13 , :B12 , :B11 , :B10 , :B9 , :B8 , :B7 , :B6 , :B5 , :B4 , :B3 , :B2 ,NVL(:B1 ,1))
End of information on OTHER waiting sessions.
Current SQL statement for this session:
SELECT AVS_NEXT_NO FROM ACCCDE.ACC_VOH_NO WHERE AVS_BRANCH = :B4 AND AVS_OFFICE = :B3 AND AVS_VOH_TYPE = :B2 AND AVS_VOH_YEAR = :B1 FOR UPDATEMany a times, we also see the following
Deadlock graph:
                       ---------Blocker(s)--------  ---------Waiter(s)---------
Resource Name          process session holds waits  process session holds waits
TX-000f0015-00005fa0        68     429     X            101     639           S
TX-0018000c-0000496b       101     639     X             68     429           S
session 429: DID 0001-0044-00172927     session 639: DID 0001-0065-0000DA9A
session 639: DID 0001-0065-0000DA9A     session 429: DID 0001-0044-00172927
Rows waited on:
Session 639: obj - rowid = 0000B0FD - AAALkXAAAAAAAAAAAA
  (dictionary objn - 45309, file - 0, block - 0, slot - 0)
Session 429: obj - rowid = 0000B0FD - AAALkXAAAAAAAAAAAA
  (dictionary objn - 45309, file - 0, block - 0, slot - 0)
Information on the OTHER waiting sessions:
Session 639:
  application name: frmweb.exe, hash value=854945150
  Current SQL Statement:
  SELECT SYSDATE  FROM SYS.DUAL  
End of information on OTHER waiting sessions.
Current SQL statement for this session:
INSERT INTO ACCCDE.GLVODMF (VD_BRANCH, VD_OFFICE, VD_VOH_TYPE, VD_VOH_YEAR, VD_VOH_NO, VD_SRL, VD_ACC, VD_CURR, VD_CEXCH, VD_SIDE, VD_FAMT, VD_LAMT,VD_STATUS) VALUES (:B13 , :B12 , :B11 , :B10 , :B9 , :B8 , :B7 , :B6 , :B5 , :B4 , :B3 , :B2 ,NVL(:B1 ,1))
SQL> desc ACCCDE.GLVODMF
Name                                      Null?    Type
VD_MVD_REC_ID                             NOT NULL NUMBER(9)
VD_BRANCH                                 NOT NULL NUMBER(2)
VD_OFFICE                                 NOT NULL NUMBER(2)
VD_VOH_TYPE                               NOT NULL NUMBER(2)
VD_VOH_YEAR                               NOT NULL NUMBER(4)
VD_VOH_NO                                 NOT NULL NUMBER(6)
VD_SRL                                    NOT NULL NUMBER(4)
VD_VOH_NATURE                             NOT NULL NUMBER(1)
VD_VOH_DT                                 NOT NULL DATE
VD_VALUE_DT                               NOT NULL DATE
VD_ACC                                    NOT NULL NUMBER(16)
VD_CURR                                   NOT NULL NUMBER(3)
VD_CEXCH                                  NOT NULL NUMBER(9,6)
VD_BEING_FOR                              NOT NULL NUMBER(3)
VD_COST_CENTER                                     NUMBER(3)
VD_SIDE                                   NOT NULL NUMBER(1)
VD_FAMT                                            NUMBER(17,3)
VD_LAMT                                   NOT NULL NUMBER(17,3)
VD_MAMT                                            NUMBER(17,3)
VD_STATUS                                 NOT NULL NUMBER(1)
VD_STATUS_DT                              NOT NULL DATE
VD_RELATED_REC_ID                                  NUMBER(9)
VD_REMARKS                                         VARCHAR2(255)
VD_USER_NO                                NOT NULL NUMBER
VD_REC_DT                                 NOT NULL DATE
VD_REC_ID                                 NOT NULL NUMBER(9)
VD_CLEAR_FLAG                                      NUMBER(1)
VD_CUST_NO                                         NUMBER(8)
VD_LINE_OF_BUSINESS                                NUMBER(3)
SQL> DESC ACCCDE.ACC_VOH_NO
Name                                      Null?    Type
AVS_BRANCH                                NOT NULL NUMBER(2)
AVS_OFFICE                                NOT NULL NUMBER(2)
AVS_VOH_TYPE                              NOT NULL NUMBER(2)
AVS_VOH_YEAR                              NOT NULL NUMBER(4)
AVS_CURR_NO                               NOT NULL NUMBER(6)
AVS_NEXT_NO                               NOT NULL NUMBER(6)
SQL>
select do1.owner,do1.object_name,do1.object_type,di.index_type,di.uniqueness,di.table_name,di.table_type
from dba_objects do1, dba_indexes di
where object_id=45309
AND DI.INDEX_NAME=DO1.OBJECT_NAME
OWNER,  OBJECT_NAME,     OBJECT_TYPE,   INDEX_TYPE, UNIQUENESS, TABLE_NAME, TABLE_TYPE
ACCCDE, ACC_VD_SIDE_IDX, INDEX,         BITMAP,     NONUNIQUE,  GLVODMF,     TABLEThanks

Similar Messages

  • 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

  • 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.

  • 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.

  • Object not found in store error when trying to load MimeContent of an email (containing attachments)

    This is a weird one and I'm hoping someone can reproduce this and give me some help.
    We have a system that uses the EWS Managed API to send emails. Optionally an email may need to be saved out as an rfc822 (.eml) file afterwards for storing in our own database. In order to save to a file I need to load up the MimeContent of the message.
    And this is where an "Object not found in store" exception can get thrown.
    The really strange part is that the exception only seems to occur if the email contains an attachment and if there is too much of a delay between sending the email and trying to access the MimeContent!
    My test code is something like:
    // Set up the basics
    _item = new EmailMessage(P7ExchangeService.Service);
    _item.Subject ="Hello world";
    _item.ToRecipients.Add("some name", "[email protected]");
    _item.Body = new MessageBody(BodyType.HTML, @"<html><head></head><body>hello world<image src=""cid:blah""/></body></html>");
    // Add attachment
    FileAttachment att = _item.Attachments.AddFileAttachment("blah", "c:\temp\blah.jpg");
    att.IsInline = true;
    att.ContentId = "blah";
    // Send and save
    _item.SendAndSaveCopy();
    // Wait a bit (see comments below)
    Thread.Sleep(5000);
    // Now try and save out
    var propCollection = _item.GetLoadedPropertyDefinitions();
    propCollection.Add(ItemSchema.MimeContent);
    _item.Load(new PropertySet(propCollection)); // EXCEPTION!
    // ... etc
    On some systems it seems that the sending can take a while, hence my Thread.Sleep() call to simulate this.
    Its when I try and load up the MimeContent that I will then get the exception. But ONLY if I sleep (simulating the occasional delay seen on customer sites) and ONLY if the email contains an attachment.
    The mimecontent is necessary in order to save out to a file (by accessing the _item.MimeContetn property).
    Can someone please explain the exception and/or provide a better way of doing this??

    This is normal EWS doesn't return the Id of the Item in the SentItems Folder so you need to use a workaround like
    http://blogs.msdn.com/b/exchangedev/archive/2010/02/25/determining-the-id-of-a-sent-message-by-using-extended-properties-with-the-ews-managed-api.aspx .
    If you want to understand the issue you can enable tracing and look at responses, the actually Id your trying to load the MimeContent from is probably the Id of the draft message. Eg to send a message via EWS with attachments multiple operations must be
    used to construct it and when the messages finally gets sent the copy in the drafts folder is deleted and a copy is created in the SentItems folder. However the Id isn't returned for the SentItems copy hence you need the workaround.
    Cheers
    Glen

  • Error in AS2 adapter. Object not found in lookup of as2.. Its urgent..!!

    Hi AS2 experts,
    *When i tried sending an xml to partner system using AS2 adapter.. Mapping is succesfull and message is failing in receiver AS2 adapter.
    1. I used the following parameters in AS2 Module.
    ModuleName                                                       Module Key
    localejbs/Seeburger/solution/as2                              solutionid
    localejbs/ModuleProcessorExitBean                          exit
    ModuleKey    ParameterName         ParameterValue
    exit                JNDIName     deployedAdapters/SeeXIAS2/shareable/SeeXIAS2
    Iam getting the following error.
    Success     MP: Processing local module localejbs/Seeburger/solution/as2
    Error :   MP: Exception caught with cause com.sap.engine.services.jndi.persistent.exceptions.NameNotFoundException: Object not found in lookup of as2.
    Error :  Exception caught by adapter framework: Object not found in lookup of as2.
    Error : Delivery of the message to the application using connection AS2_http://seeburger.com/xi failed, due to: com.sap.aii.af.ra.ms.api.RecoverableException: Object not found in lookup of as2.: com.sap.engine.services.jndi.persistent.exceptions.NameNotFoundException: Object not found in lookup of as2..
    2. When i tried by removing Modulename "localejbs/Seeburger/solution/as2"
    It is showing the below error like AS2ID is missing.. but its there in party configuration.
    Error :
    Unable to forward message to JCA adapter. Reason: Fatal exception: com.sap.aii.af.ra.cci.XIRecoverableException: SEEBURGER AS2: AS2 Adapter failure # Outbound configuration error: Sender configuration incomplete - perhaps AS2ID missing.., SEEBURGER AS2: AS2 Adapter failure # Outbound configuration error: Sender configuration incomplete - perhaps AS2ID missing..       
    Can anyone has idea what might be wrong.
    Kindly suggest me asap.
    Thank You.
    Regards
    Seema.

    Hi,
    Plesae go through below links
    /people/bla.suranyi/blog/2006/06/08/sap-xi-supports-edifact
    EDI Adapter by SeeBurger
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/206e2b65-2ca8-2a10-edad-f2d1391644cb
    B2B(EDI) Integration using SAP Netweaver XI and Seeburger AS2 Adapter
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/00f9cdf5-d812-2a10-03b4-aff3bbf792bf
    Integrating XI with SeeBurger
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/6dc02f5d-0601-0010-cd9d-f4ff9a7e8c33
    and
    Check with below configuration
    Configuration for AS2 or simple file adapter.
    We are using this module configuration for converting EDI D96A format to XML:
    1 localejbs/CallBicXIRaBean Local Enterprise Bean bic
    2 localejbs/CallSapAdapter Local Enterprise Bean 0
    bic destSourceMsg MainDocument
    bic destTargetMsg MainDocument
    bic logAttID ConverterLog
    bic mappingName See_E2X_ORDERS_UN_D96A
    bic saveSourceMsg ORIGINAL_EDI
    can someone please tell me the module configuration for reverse mapping at receiver end,i.e.,XML to EDI D96A
    basically,I need mapping name for this.
    Scheme=AS2ID
    Name = WAN network no of the partner who is sending the file
    Sender AS2 adapter configuration:
    Few changes in the module parameter tab.
    localejbs/CallBicXIRaBean bic
    CallSapAdapter 0
    Module configuration:
    bic= destSourceMsg = MainDocument
    bic= destTargetMsg = MainDocument
    bic= mappingName= See_E2X_EDIFACT_ORDERS_UN_D93A which does the conversion of EDI-XML.
    Receiver AS2 adapter configuration:
    When the adapter is used in a receiver channel, it obtains a message from the Integration Engine and sends it to a business partner. In this case, the following steps are required:
    1. Define the channel as a Receiver channel on the Parameters tab
    2. The last step ensures the module sequence is complete:
    Make sure the module ModuleProcessorExitBean does exist in the module sequence:
    Module Name=localejbs/ModuleProcessorExitBean
    Type=L
    Module Key=Exit
    • with the following module parameter:
    Module Key=Exit
    Parameter Name=JNDIName
    Parameter Value=deployedAdapters/SeeXIAS2/shareable/SeeXIAS2
    File receiver:
    localejbs/CallBicXIRaBean bic
    CallSapAdapter 0
    Module configuration:
    bic= destSourceMsg = MainDocument
    bic= destTargetMsg = MainDocument
    bic= mappingName= See_X2E_EDIFACT_ORDERS_UN_D93A
    ONly the mapping program name changes from E2X to X2E. IN ur case it will be See_X2E_ORDERS_UN_D96A
    Thanks
    Swarup

  • 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

  • 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.

  • Object not found in lookup of XMLAnonymizerBean..

    I have followed the Blog here, from Stefan (excellent, by the way!)
    /people/stefan.grube/blog/2007/02/02/remove-namespace-prefix-or-change-xml-encoding-with-the-xmlanonymizerbean
    i have the following xml.....
    <?xml version="1.0" encoding="UTF-8" ?>
    <ns0:Message xmlns:ns0="http://www.host.com/aoc">
    <ns0:header>
      <ns0:trackingId>00237DA659FD1DDF8CA4B49A1800AC7E</ns0:trackingId>
      <ns0:msgClass>PUBLISH</ns0:msgClass>
      <ns0:msgName>MX001</ns0:msgName>
      <ns0:owner>SAPECD</ns0:owner>
      <ns0:version>1</ns0:version>
      <ns0:timestamp>2010-03-16T17:59:21Z</ns0:timestamp>
      </ns0:header>
    i am trying to strip out the ns0: from the xml as per the requirement from the target system developers
    i added the following config in the JMS Adapter:
    number 1
    XMLAnonymizerBean
    Local Enterprise Bean
    0
    0
    anonymizer.acceptNamespaces
    http://www.host.com/aoc "
    0
    anonymizer.quote
    and i get the following error:
    2010-03-16 19:43:13 Error Adapter Framework caught exception: Object not found in lookup of XMLAnonymizerBean.
    2010-03-16 19:43:13 Error Delivering the message to the application using connection JMS_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 XMLAnonymizerBean..
    any thoughts on what i have done wrong???

    Hi Michal
    i got it resolved... i missed the AF_Modules off the front.....
    that's what you get after a 12 hour shift clearing issues!    grrrrrr!
    i am on PI7.11 
    p.s...
    apparently you are not allowed any points!
      You are about to mark the message "Re: Object not found in lookup of XMLAnonymizerBean.." by Michal_Krawczyk_PIXI as correct which means you found the information in the message to be the right answer to the original question. If you believe this message was only helpful but not correct, please go back and click "Helpful" next to the message. Otherwise, click "Mark Message" to rate the message and return to the message page.
    Note, marking a message as helpful or correct can not be undone. If you don't want to do this, click "Cancel" to go back to the question.
    An error has occured while assigning points. Please refresh the thread view and try again.
    Edited by: Barry Neaves on Mar 16, 2010 8:08 PM

  • Problem with WCS, with an error message (Error: Object not found in device)

    I  have a problem with WCS, I can not open the window monitor /  controllers with an error message (Error: Object not found in device)  -> https: / / 10.19x.xxx.xx/webacs/switchDetailAction. do? ControllerID = 23735
    by  cons I can open the window configures / controllers -> https: / /  10.19x.xxx.xx/webacs/switchGeneralAction.do? command = detail &  ControllerID = 23735
    Is there a way to recreate the database or the object? thank you in advance

    thank you for your help
    Unfortunately, the command "refresh config from controller"  does not solve the problem because we have a negative result
    (in mode retain or in mode delete) with the following logs :
    Log file wcs-0-0.log
    10/19/10 12:07:16.333 ERROR[snmpmed] [23] Response VarBind missing for class InterfaceConfig attribute isInterfaceWired
    Log file tomcat_localhost_access_log
    10.197.xxx.xx - - [19/Oct/2010:12:07:16 +0000] "POST /webacs/switchListCommandAction.do HTTP/1.1" 200 47399
    10.197.xxx.xx- - [19/Oct/2010:12:07:16 +0000] "GET /webacs/alarmSummaryAction.do?command=summary&dojo.preventCache=1287490037130 HTTP/1.1" 200 421

  • 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.

  • Explain plan--Object not found error

    Hi All,
    I want to use 'explain plan' to optimise the query.
    How do i see the explain plan in toad.
    when i say
    explain plan set statement_id='XX' for select stmt;
    select * from explain plan
    where statement_id='XX';
    iam geeting object not found
    what parameters i need to set up before using explain plan
    Please give me details.
    Please suggest.
    Thanks.

    This should have been in TOAD Forum :-)).. Anyway,
    You need to set the plan table name in view->Options->Oracle. If the specified plan table doesnt exist, create the plan table

  • Javah error java.lang.Object not found

    Hi guys-
    I'm trying to run a javah command to generate a .h file... I'm using windows2000 & jdk1.1.8... when I run the command from DOS prompt I keep getting the same eror as java.lang.Object not found: aborting.. I've checked all the classpath and it seems ok ... I have CLASSPATH=..;c:\jdk1.1.8\lib\classes.zip
    Can anybody help me with this???
    Thanx

    Maybe try ; right click my computer ,click the advanced tab and select enviroment variables,click on classpath and then edit,check if it's correct.I had the sam problem and that seemed to fix it. :)

  • Find Object.vi function of 3D picture control - when object not found

    I am using Labview 8.2, and this post is regarding the 3D Picture Control.
    I am wanting to make use of the "Find Object" VI to either return a reference to a named object, or otherwise determine that it does not exist yet.  However, if I call it with the name of an object that doesn't exist yet (i.e. just any random string), it returns an error message that arises from the attempt to release a queue (the reference to which gets lost when crossing a zero-iteration For Loop's tunnels), instead of an error message that says "Object not found" which I would find much more useful.  With a simple modification of the "Find Object.vi" function, this behaviour can be changed, by replacing the For Loop's tunnels with shift registers.
    The problem with the current function is that the error is not an intentionally thrown error, rather just the result of the queue's refnum being set to the default 0 as it "exits" the For Loop, since in the situation that an object is not found, the code passes a 0 to the N terminal.
    The attached images show the problematic code and the simple modification
    Attachments:
    Find Object.png ‏2 KB
    Find Object_modified.png ‏2 KB

    pauldavey,
    I agree with you - the current way of handling the case of an object not being found does not appear to be ideal.
    This was reported to R&D (# 43D8GSVQ) for further investigation.
    Thanks for the feedback!
    Regards,
    Simon H
    Applications Engineer
    National Instruments

Maybe you are looking for

  • Unable to start EPMA PROCESS MANAGER

    I'm having an issue starting the EPMA Process Manager service ERROR : Service cannot be started. Hyperion.DimensionServer.ProcessManager.Interface.ProcessManagerException: Cannot initialize the Session Manager. ---> System.ArgumentException: An item

  • How to connect Java with Acces (DSN Less)

    Hi, I'm try to connect an Access DataBase in Java with an example. I find it in this forum, but don't work... I've my database in the folder Data, and its name is BaseDat.mdb... I'm working in NetBeans 5.5, and the DataBase is in the Folder: "C:/Docu

  • I can not to restore my Itunes music file.

    rergm I have a 4 Gb ipod nano and a music file that I want to keep. I had troubles with my computer (crash) and I needed to format my hard drive. Now I want to restore my original Itunes music file from my ipod, but I can't to copy it back. How can I

  • Visibility of Objects Upon Re-Opening

    I have a form that allows users to show or hide subforms via checkboxes. However, when the user saves the form and then re-opens it to make changes all of the original visibility settings are maintained. So then the user has to go through and re-sele

  • Split Brain in RAC

    Hi ALL, I am new to RAC, I am just reading the RAC concepts & Architecture. I got little idea about GRD, Cache Fusion Etc, But still not sure about Split Brain. Kindly anyone tell me, 1, what is split Brain? 2, why & when will happen? what is the sol