CMR JDEV9032 TABLE VIEW NOT FOUND

Hello,
I'm breaking my head on the following:
I created two entity beans (A and B). Both are CMP EJB's.
In EJB terms : A has the field (id, name), B also.
In the deployment descriptor I set a CMR relationship from A to many B's. This is just like the example of the EMP DEPT. The only difference is that there are no tables mappped yet of the EJB's A and B. They are to be generated at deployment time by the oc4j instance.
This goes correctly. The tables are created (no intermediate tables are created), direct foreign keys (I'm using oc4j 904 pre to do this).
So the idea is to work from EJB's and not to worry about the database.
Since I'm using a CMR (so local interfaces are used), I created a Session Facade, so that I can try to create entity (read records) through a sample client (generated by JDeveloper 9032).
I can create individual ejbs (==records), I see them in the database. But the moment I try to relate the objects (either by doing a B.setA(LocalA) on the B-entity or by adding to the collection A.getBees().add(LocalB)) it goes wrong.
None of these work. I get a table or view not found exception. This is strange, since I can see at deployment that two tables are generated, exaclty like I expected. But setting the relationship is very hard !!!!!!
My question is: who can help me on this ? I found some examples on otn.oracle.com, but they NEVER described the situation where you want to set the relationship.
Now I'm working for a customer and the deadline is reaching. JDeveloper 9032 is the developerplatform. The embedded OC4J shipped with JDeveloper has a bug (Datasource not closed), that's why I'm using the OC4J 904 pre, since the bug is fixed in this release. Of course a Oracle 9i database is used.
Hope to hear from you soon.

Dear Debu,
The only things I set in the orion-ejb-jar.xml is that datasource name and the table name. I can create instances of the A and B EJB's. Setting the relation between A and B seems to result in the message "Table or View not found".
Furthermore If I try to do:
(on Entity A).
(This code is declared in a SessionFacade EJB which is used to set the relation();
public void connect( Long idA, Long idB){
LocalA a = LocalAHome.findByPrimaryKey(new Long(idA));
LocalB b = LocalBHome.findByPrimaryKey(new Long(idB));
// now b is filled.
a.getBees().add(b); // Exception is thrown.
The Exception is an Illegal State Exception.
My Question is Why ?
Regards,
Rokesh Jankie

Similar Messages

  • Loaded dump from 12.5.4 to 15.7, Error 622 & Tables/Views not found

    Hi all,
    I am getting desperate trying to fix that issue. I had to import a dump from an ASE 12.5.4 into a new database on an ASE 15.7. I therefore enabled the compatibility mode server-wide and then proceeded to the load which seems to have performed correctly. The database seems well imported, and I can access most of the tables/views/procedures (from my C# application), but a procedure is giving me troubles.
    I am getting this error while executing a given procedure :
    Error: 622, Severity: 20, State: 1
    Opentable was passed a varno of 52. Object 'temp worktable' in database 'tempdb' already has that session descriptor in use. This occured while opening object id -1245236 in database id 2.
    I realised this was caused by a view which is used in this procedure but which is weird is that the error is not thrown when running the SQL code itself, out of the procedure context.
    I am using Toad for Sybase as a client, and realised I cannot access the data tab of the concerned view, Toad gives me the same error. So I cannot execute this view while it performs without any trouble on  the original server (production server which runs ASE 12.5.4).
    I also realised, when trying to execute some pieces of the query individually that I get warnings about unfound tables (and that I should use sp_help to fix the problem). Although, the tables actually exists and I can access their data.
    I have tried so many things and still cannot fix this problem. I've used 'upgrade_object', 'sp_recompile' on all tables, 'dbcc reindex' on all tables.
    Would you have any idea where the problem could come from? Thank you very much

    Thank you for your reply.
    Good to know that enabling compatibility mode before or after loading the load doesn't have any effect.
    I didn't drop/recreate all the SP and views but I can tell you I recreated a similar view and it causes the same issue.
    I had a look at your link yes. I have run 'dbcc upgrade_object' several times already, on the view and the procedures calling the view, and it won't solve anything.
    I've seen a similar post about the problem I have when executing the code itself of the view in a "normal" adhoc query (errors saying the tables are not found) : SAP Sybase Forums - ASE - Backup and Recovery - PRoblem after restore - Object does not exist.
    Could it be the same problem for me?
    Although I've tried splitting the SQL query and executing the parts individually and it works without any trouble. Problem is when the 2 parts of the view are put together. It may be something that was possible with ASE 12.5.4 but not with 15.7 and that compatiblity mode doesn't solve. My view consists of an union a two selects where both have left joins, case when then else, not in and a final group by (adding an order by doesn't help, as I tried).
    PS : I don't have access to the production server where the dump is actually from (but I could if it is really necessary)

  • Table or view not found

    Hello,
    Please help me, I´m doing a query over a database table and it gave me the next exception:
    java.sql.SQLException: [POL-5130] table or view not found Excepción Interna: java.sql.SQLException: [POL-5130] table or view not found Código de Error: -5130<
    I already tried the solucion suggested in the dev guide.

    Hi Raj,
    could you post the fulll Oracle error Message?
    Also, read up on how to grant explicit priviliges to schemas on procedures/views and tables. This may be necessary in order for a dbms_job to function as expected.
    http://download.oracle.com/docs/cd/E11882_01/server.112/e10897/users_secure.htm#CHDBDBGI
    http://download.oracle.com/docs/cd/E11882_01/server.112/e17118/statements_9013.htm#SQLRF01603

  • Table or View Not Found Problem

    Hi all,
    I am facing a strange problem where-in I am calling a query from a normal SQl window which works but the same in Procedure gives me an error.
    User A...This runs this statement
    Select * from B.emp which gives results. The same statement when I compile in a procedure it gives an error saying Table or View not Found.
    User A has a select on B.Emp where B is the owner of table Emp.
    I am not able to get to the solution of the same. Is it apossibility of a synonym conflict? Can someone help in what ways this error can come?
    Thanks and Regards,
    Kapil Uppal

    Hi,
    >>Well the error is Table Or View Does not exist
    Interesting, what version of Oracle are you using ? As you can see below, the stored procedure does not recognized the privilege that have been granted through a role.
    LEGATTI@ORACLE10> create user user1 identified by user1;
    User created.
    LEGATTI@ORACLE10> create user user2 identified by user2;
    User created.
    LEGATTI@ORACLE10> grant connect,resource to user1,user2;
    Grant succeeded.
    LEGATTI@ORACLE10> create table user1.emp (id number);
    Table created.
    LEGATTI@ORACLE10> create role user1_role_tables;
    Role created.
    LEGATTI@ORACLE10> grant user1_role_tables to user2;
    Grant succeeded.
    LEGATTI@ORACLE10> grant select on user1.emp to user1_role_tables;
    Grant succeeded.
    LEGATTI@ORACLE10> connect user2/user2
    Connected.
    USER2@ORACLE10> select count(*) from user1.emp;
      COUNT(*)
             0
    USER2@ORACLE10> create or replace procedure my_test_procedure as
      2  n_id number;
      3  begin
      4  select count(*) into n_id from user1.emp;
      5  end;
      6  /
    Warning: Procedure created with compilation errors.
    USER2@ORACLE10> show errors
    Errors for PROCEDURE MY_TEST_PROCEDURE:
    LINE/COL ERROR
    4/1      PL/SQL: SQL Statement ignored
    4/38 PL/SQL: ORA-01031: insufficient privilegesCheers

  • Table "StoredProcedure" not found when changing Database location in VS 2005.

    <p>I&#39;m having a problem changing the datasource location when generating a report using the report viewer in VS2005.  If the table is a stored procedure, I get the message "Table (StoredProcedureName) not found", but if the report references tables rather than a stored procedure the location is changed and the report runs successfully.  The same problem was reported in earlier versions of Crystal Reports and was fixed in a service pack, but I couldn&#39;t find any documentation on the VS2005 version. </p><p>Does anybody know how to fix this problem?  I am using CrystalDecisions.CrystalReports.Engine.dll version 10.2.3600.0 and SQL Server 2000.</p>

    Peggy, I wonder if getting the latest SP for CR 10.2 will be better for now. SP 1 can be downloaded from here:
    https://smpdl.sap-ag.de/~sapidp/012002523100006007872008E/crvs05sp1.exe
    I\Let us know if that does not resolve the issue and we'll take a closer look before going all the way to CR XI.
    With regards,
    Ludek

  • XML File as Datasource -  The table is not found in file

    Hi,
    I am trying to use a xml file as datasource and want to map those columns to the existing DWH. Actually, it is additional data which should be combined with the existing DWH data. Therefore I am using the fragmentation option.
    I did it already on my privat pc and it works, but as soon as I implement it to the DEV environment it doesn' t work at all :( I am getting the following error:
    Status: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 64002] The table is not found in file C:\Ist.xml loaded. (HY000)
    Could somebody help me??
    Thanks

    If you changed environments make sure that the XML file actually exists in the location specified at C:\ist.xml.
    Also be sure that the information in the properties section of the XML data source match your DEV environment. If you used any session variables be sure that you have also modified those in the DEV environment to reflect the DEV environment.
    Did you switch from a same OS environment, i.e.: Linux to Linux or Windows to Windows? Or did you go from a Windows to Linux OS?

  • External Table error: KUP-04043: table column not found in external source

    I am trying to get the syntaxc correct for an external table.
    I keep getting this error:
    ORA-29913: error in executing ODCIEXTTABLEOPEN callout
    ORA-29400: data cartridge error
    KUP-04043: table column not found in external source: SITE
    29913. 00000 - "error in executing %s callout"
    *Cause:    The execution of the specified callout caused an error.
    *Action:   Examine the error messages take appropriate action.
    Data looks like: (some of one of many files, where the character field widths are variable)
    ZZ,ANYOLDDATA,77777,25002000,201103,12,555.555,11.222
    ZZ,ANYOLDDATA,77777,25002300,201103,34,602.162,8.777
    ZZ,ANYOLDDATA,77777,25002400,201103,12,319.127,9.666
    ZZ,OTHERDATA,77121,55069600,201103,34,25.544,1.332
    ZZ,OTHERDATAS,77122,55069600,201103,22, 1.011,0.293
    External table def I have:
    CREATE TABLE MY_INPUT (
    FIRST_CODE VARCHAR2(10),
    SECOND_CODE VARCHAR2(20),
    MY_NUMBER VARCHAR2(20),
    THIRD_CODE VARCHAR2(20),
    YEARMO VARCHAR2(6),
    N NUMBER,
    MEAN NUMBER,
    SD NUMBER
    ORGANIZATION EXTERNAL (
    TYPE ORACLE_LOADER
    DEFAULT DIRECTORY INPUT_DIR
    ACCESS PARAMETERS (
    RECORDS DELIMITED BY newline
    BADFILE INPUT_LOGDIR:'bad.bad'
    LOGFILE INPUT_LOGDIR:'log.log'
    DISCARDFILE INPUT_LOGDIR:'discards.log'
    fields terminated by ',' LRTRIM
    MISSING FIELD VALUES ARE NULL
    REJECT ROWS WITH ALL NULL FIELDS
    ( THIRD_CODE,N,MEAN,SD) )
    LOCATION ( 'myfile.rpt')
    NOPARALLEL
    REJECT LIMIT UNLIMITED;
    I have the directories INPUT_DIR and INPUT_LOGDIR defined, and read/write access granted to the user who creates the table and tried to query from it.
    I have tried various combinations of VARCHAR2 lengths and NUMBER vs VARCHAR2 for some of the numeric fields.
    I am not getting any Bad, Log or Discard files.
    I can do a GET from the SQL prompt, and see the data:
    SQL> GET 'C:\temp\input_dir'myfile.rpt'
    and I see the data.
    Windows 7
    Oracle 11.2
    I am not positive of the newline record delimiter - these files are generated by an automated system. Probably generated on a UNIX machine.
    Any suggestions on what to try would be helpful.
    KUP-04043 error message says to check the syntax .. .I am running out of thigns to check.
    Thank you - Karen

    And the get ( I created the sanitized file, so we have a real working, failing, santiized example):
    SQL> get c:\Inputfiles\myfile.rpt
    1 ZZ,ANYOLDDATA,77777,25002000,201103,12,555.555,11.222
    2 ZZ,ANYOLDDATA,77777,25002300,201103,34,602.162,8.777
    3 ZZ,ANYOLDDATA,77777,25002400,201103,12,319.127,9.666
    4 ZZ,OTHERDATA,77121,55069600,201103,34,25.544,1.332
    5* ZZ,OTHERDATAS,77122,55069600,201103,22, 1.011,0.293
    So the full series is:
    CREATE DIRECTORY INPUT_DIR AS 'C:\InputFiles';
    -- grant READ and WRITE
    GRANT READ ON DIRECTORY INPUT_DIR TO ILQC;
    GRANT WRITE ON DIRECTORY INPUT_DIR TO ILQC;
    -- As SYS, create the bad/log/discard directory:
    CREATE DIRECTORY LOGDIR AS 'C:\InputFiles\Logs';
    -- grant READ and WRITE
    GRANT READ ON DIRECTORY LOGDIR TO ILQC;
    GRANT WRITE ON DIRECTORY LOGDIR TO ILQC;
    CREATE TABLE MY_INPUT (
    FIRST_CODE VARCHAR2(10),
    SECOND_CODE VARCHAR2(20),
    MY_NUMBER VARCHAR2(20),
    THIRD_CODE VARCHAR2(20),
    YEARMO VARCHAR2(6),
    N NUMBER,
    MEAN NUMBER,
    SD NUMBER
    ORGANIZATION EXTERNAL (
    TYPE ORACLE_LOADER
    DEFAULT DIRECTORY INPUT_DIR
    ACCESS PARAMETERS (
    RECORDS DELIMITED BY newline
    BADFILE INPUT_LOGDIR:'bad.bad'
    LOGFILE INPUT_LOGDIR:'log.log'
    DISCARDFILE INPUT_LOGDIR:'discards.log'
    fields terminated by ',' LRTRIM
    MISSING FIELD VALUES ARE NULL
    REJECT ROWS WITH ALL NULL FIELDS
    ( THIRD_CODE,N,MEAN,SD) )
    LOCATION ( 'myfile.rpt')
    NOPARALLEL
    REJECT LIMIT UNLIMITED;
    SELECT * FROM my_input;
    and GET is as above.

  • View not found

    Недавно у коллеги в окне со списком заявок перестали отображаться заявки со статусом Открыто, Закрыто и соответственно не отображаются Все. "часики" крутятся и ничего не отображается, кроме короткого появления сообщения "View not found". Обновленные и другие категории отображаются нормально. 
    Сегодня у меня в HelpDesk тоже перестали отображаться заявки, аналогично, как и у коллеги. Выяснил по логу, что мы одновременно в одну секунду одну и ту же заявку закрывали, как дубликат и присоединяли к другой. У коллеги пошли какие-то глюки и он удалил заявку. В итоге у меня теперь список заявок не грузится. 
    Как это может лечиться? Явно приложение сформировать список с определенным статусом не может.
    This topic first appeared in the Spiceworks Community

    yes correct.I am using UpdateOrder WS API.
    there is a "vf_demo" role defined in cartridge.however i am not able to see this role in OSM Admin Client.
    but i am able to place the order thorugh web client.
    how to embed "vf_demo" role in OSM Admin Client??
    Regards,
    Kaushal

  • Table Driver Not Found message during initial boot up - What is this?

    Every since upgrading to 10,5 when I boot or change accounts I get the message, "Table Driver Not Found". I am not sure what program this is but there is what looks like the letter A and an art stand? I press ok and never see it again unless I log off or reboot.
    Any clue?

    Did you mean "Tablet Driver Not Found"... oh you did in the title!
    So, did you ever have a Wacom Tablet or anything installed before?
    Check System Preferences>Accounts>Login Items window to see if it or something relevant is listed.
    Check the System Preferences>Other Row, for 3rd party Pref Panes.
    Also look in these if they exist, some are invisible...
    /private/var/run/StartupItems
    /Library/StartupItems
    /System/Library/StartupItems
    /System/Library/LaunchDaemons
    /Library/LaunchDaemons

  • PL/SQL Exception for ORA-00942 - Table or view not found?

    Hey there!
    I want to create an exception my code runs into whenever it tries to select from a table that is not existent (or because of insufficient privileges).
    How can I get these ORA-00942 errors and place them into a exception? Except for WHEN OTHERS, that's not concrete enough.
    Regards,
    Thomas

    SQL> DECLARE
      2   table_not_found EXCEPTION;
      3   PRAGMA EXCEPTION_INIT(table_not_found, -942);
      4  BEGIN
      5   EXECUTE IMMEDIATE 'SELECT COUNT(*) FROM DUALX';
      6  EXCEPTION
      7   WHEN table_not_found
      8   THEN
      9      dbms_output.put_line('Table NOT found');
    10  END;
    11  /
    Table NOT found

  • Table AFVG not found

    Hi experts,
    This is the first time I am working on PP side of BW extractions and here is the issue I am facing. Please share your experiences.
    For Extractor 2LIS_04_P_ARBPL,  in LBWE under Maintain Structure view, I see 3 tables AFKO, AFPO and AFVG. (I took these table names from Com Structure MCAFKO etc.). Out of the 3 tables, I found the first 2 in SE11 but table AFVG is not found though. Instead there is AFVV which is very close. Please let me know if there is another way of finding table details from extract structure/com structure. Thanks in advance.

    Hi,
    AFVG mentioned in LBWE is a structure. There are lot of other Structures that start with AFVG. Check out the field of the structure and find out the tables/programs/ Function modules using Where used list in SE11.
    Check out this thread -
    How to find source table
    Regards,
    Geeta
    Edited by: PGeeta on Oct 13, 2011 10:20 AM

  • Problem with ALV-Table: attruibut not found

    Hello experts,
    I've created an input-view with an alv-table as output list.
    I've mapped the alv-table called 'daten' with the component controller 'daten'.
    Check is ok, but when I start the application I get shortdump:
    attribut 'daten' not found.
    Method: IF_WD_CONTEXT_NODE_INFO~GET_ATTRIBUTE of program CL_WDR_CONTEXT_NODE_INFO======CP
    Method: IF_WD_CONTEXT_ELEMENT~GET_ATTRIBUTE of program CL_WDR_CONTEXT_ELEMENT========CP
    Method: GET_ATTRIBUTE_INTERNAL of program CL_WDR_VIEW_ELEMENT_ADAPTER===CP
    Has anybody an idea what this could be  ?
    Thanks
    Gerd

    Hi,
    this is all code I've yet written:
    METHOD wddoinit .
    data lr_node type ref to if_wd_context_node.
    Data lt_el_datensaetze type wdr_context_element_set.
    lr_node = wd_context->get_child_node( 'DATENSAETZE' ).
    lt_el_datensaetze = lr_node->get_elements( ).
      DATA: ls_smot005t TYPE smot005t,
            lt_smot005t TYPE TABLE OF smot005t.
      DATA lo_nd_laender TYPE REF TO if_wd_context_node.
      navigate from <CONTEXT> to <OPPORTUNITY_STATUS> via lead selection
      lo_nd_laender = wd_context->get_child_node( name =
      wd_this->wdctx_laender ).
    Länderkennzeichen auslesen und an Context übergeben
      SELECT * FROM smot005t INTO ls_smot005t WHERE spras = 'DE' ORDER BY
    landx ASCENDING.
        IF sy-subrc = 0.
          APPEND ls_smot005t TO lt_smot005t.
        ENDIF.
      ENDSELECT.
      lo_nd_laender->bind_table( new_items = lt_smot005t ).
      lo_nd_laender->set_lead_selection_index( index = 40 ).
    ENDMETHOD.
    BR
    Gerd

  • CRYSTAL REPORT VIEWER NOT FOUND IN VC++

    Hi All,
    I am migrating our appn VC++ 6.0 code to VS 2010(MFC code compiled in VS2010). I could able to compile all the code in VS 2010 and i am created vb.net report application using crystalreport viewer, it working fine, afterthat i am converted vb.net code  to C#.
    My questions are,
    1) how to add crystalreportviewer control in VC++ (searched not found) or alternative any control is available in vc++ using same c# code?
    2) if its possible , to load rpt files without viewer control ? ,if yes, please provide me sample code.
    Regards,
    Esha Abdullah M

    I found one, since you never looked, to get you going. It's written in C++, just change the assemblies to CR for VS 2010
    General
    Crystal Reports .NET - All Sample Applications
    This set includes the following samples:
        cr_net_sdk_tutorial_samples_en.zip
        crsdk_net_samples_12.zip
        NET-CPP2005_CRNET_CR115_Change_Record-Selection-Formula.zip
    #using <C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86\dotnet\CrystalDecisions.CrystalReports.Engine.dll>
    #using <C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86\dotnet\CrystalDecisions.Shared.dll>
    #using <C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86\dotnet\CrystalDecisions.Windows.Forms.dll>
    And comment out the Page event, seems they don't work in 2010, we changed the event handler:
    //               this->crViewer->ClickPage += new CrystalDecisions::Windows::Forms::PageMouseEventHandler (this,&ViewForm::crystalReportViewer1_ClickPage);
    //               this->crViewer->DoubleClickPage += new CrystalDecisions::Windows::Forms::PageMouseEventHandler (this,&ViewForm::crystalReportViewer1_ClickPage);
    Don
    Edited by: Don Williams on Jul 13, 2011 9:05 AM

  • Employee selection table view not opening in MSS while selecting process

    Hello Everyone,
      In MSS, Team->Start Process for Employee Employee selection table view is not visible, so without selecting employee if i click Select Process button its telling employee is not selected.. How make that Employee selection view visible in MSS..

    This may be structural authorization issue. Execute RHBAUS00 for the user then check what happens.
    Sandip

  • Import problem of tables/views not installed

    Hello,
    need urgent advice to the below error encountered whiel trying to import database using imp. receive tables/views does not exist/not installed. grateful for advice/solution.
    Thanks
    >>
    Username: sys
    Password:
    Connected to: Oracle8 Enterprise Edition Release 8.0.4.0.0 - Production
    PL/SQL Release 8.0.4.0.0 - Production
    IMP-00003: ORACLE error 942 encountered
    ORA-00942: table or view does not exist
    IMP-00021: operating system error - error code (dec 2, hex 0x2)
    IMP-00023: Import views not installed, please notify your DBA
    IMP-00000: Import terminated unsuccessfully
    $ exit
    script done on Fri Aug 10 08:07:37 2001
    null

    import utility script may not be existing in full or the version of import utility that is needed to import from that perticular export not exists at all.
    In other words you should check which version of export file you are trying to import ?
    for example if you are trying an import on oracle version 7.3.4. you need to have same version of oracle to import. If not you should run relevant catexp.sql files before you import.
    if still confused contact in this forum again.

Maybe you are looking for