You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-user@db.apache.org by Ramana Ramachandran <ra...@yahoo.com> on 2003/02/17 02:26:46 UTC

Errors using current CVS head on Oracle 8.1.7

hi
I fetched jakarta-ojb from the CVS head and did

(1) bin\build junit

I had the Oracle error
[torque-insert-sql] Executing file:
C:\eclipse\workspace\jakarta-ojb\target\src\
sql\ojbcore-schema.sql
[torque-insert-sql] Failed to execute: CREATE TABLE
OJB_DMAP_ENTRIES ( ID NUMBER
 NOT NULL, DMAP_ID NUMBER NOT NULL, KEY_OID LONG RAW,
VALUE_OID LONG RAW )
[torque-insert-sql] java.sql.SQLException: ORA-01754:
a table may contain only o
ne column of type LONG
[torque-insert-sql] Failed to execute: ALTER TABLE
OJB_DMAP_ENTRIES ADD CONSTRAI
NT OJB_DMAP_ENTRIES_PK PRIMARY KEY (ID)
[torque-insert-sql] java.sql.SQLException: ORA-00942:
table or view does not exi
st
[torque-insert-sql] Executing file:
C:\eclipse\workspace\jakarta-ojb\target\src\
sql\ojbtest-data.sql
[torque-insert-sql] 374 of 376 SQL statements executed
successfully

Then I manually created the Table 

CREATE TABLE OJB_DMAP_ENTRIES
(
    ID NUMBER NOT NULL,
    DMAP_ID NUMBER NOT NULL,
    KEY_OID VARCHAR2 (1024),
    VALUE_OID LONG RAW
);


ALTER TABLE OJB_DMAP_ENTRIES ADD CONSTRAINT
OJB_DMAP_ENTRIES_PK PRIMARY KEY (ID);


(2) Now I rnRan bin\build junit-no-compile-no-prepare

C:\eclipse\workspace\jakarta-ojb>bin\build
junit-no-compile-no-prepare
Buildfile: build.xml

junit-no-compile-no-prepare:
    [junit] Running org.apache.ojb.broker.AllTests
    [junit] Tests run: 179, Failures: 7, Errors: 10,
Time elapsed: 64.483 sec
    [junit] TEST org.apache.ojb.broker.AllTests FAILED
    [junit] Running org.apache.ojb.odmg.AllTests
    [junit] [BOOT] INFO: OJB.properties:
file:/C:/eclipse/workspace/jakarta-ojb/
target/test/ojb/OJB.properties
    [junit]
[org.apache.ojb.broker.accesslayer.ConnectionManagerImpl]
INFO: Roll
back was called, do rollback on current connection
oracle.jdbc.driver.OracleConn
ection@15d4273
    [junit] Tests run: 147, Failures: 7, Errors: 48,
Time elapsed: 6.43 sec
    [junit] TEST org.apache.ojb.odmg.AllTests FAILED
    [junit] Running org.apache.ojb.soda.AllTests
    [junit] [BOOT] INFO: OJB.properties:
file:/C:/eclipse/workspace/jakarta-ojb/
target/test/ojb/OJB.properties
    [junit] Tests run: 3, Failures: 0, Errors: 0, Time
elapsed: 2.704 sec

BUILD SUCCESSFUL
Total time: 1 minute 19 seconds

As you can see, I am getting Failures and Errors, what
next?
Thanks
Ramana

__________________________________________________
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day
http://shopping.yahoo.com

Re: Errors using current CVS head on Oracle 8.1.7

Posted by Phil Warrick <wa...@bmed.mcgill.ca>.
This is an issue dealt with in many previous messages.  Make the 
following change for Oracle:

In src/schema/ojbcore-schema.xml

Change:
<     <column name="KEY_OID" type="LONGVARBINARY"/>
<     <column name="VALUE_OID" type="LONGVARBINARY"/>

to:
 >     <column name="KEY_OID" type="VARBINARY"/>
 >     <column name="VALUE_OID" type="VARBINARY"/>

Phil

Ramana Ramachandran wrote:
> hi
> I fetched jakarta-ojb from the CVS head and did
> 
> (1) bin\build junit
> 
> I had the Oracle error
> [torque-insert-sql] Executing file:
> C:\eclipse\workspace\jakarta-ojb\target\src\
> sql\ojbcore-schema.sql
> [torque-insert-sql] Failed to execute: CREATE TABLE
> OJB_DMAP_ENTRIES ( ID NUMBER
>  NOT NULL, DMAP_ID NUMBER NOT NULL, KEY_OID LONG RAW,
> VALUE_OID LONG RAW )
> [torque-insert-sql] java.sql.SQLException: ORA-01754:
> a table may contain only o
> ne column of type LONG
> [torque-insert-sql] Failed to execute: ALTER TABLE
> OJB_DMAP_ENTRIES ADD CONSTRAI
> NT OJB_DMAP_ENTRIES_PK PRIMARY KEY (ID)
> [torque-insert-sql] java.sql.SQLException: ORA-00942:
> table or view does not exi
> st
> [torque-insert-sql] Executing file:
> C:\eclipse\workspace\jakarta-ojb\target\src\
> sql\ojbtest-data.sql
> [torque-insert-sql] 374 of 376 SQL statements executed
> successfully
> 
> Then I manually created the Table 
> 
> CREATE TABLE OJB_DMAP_ENTRIES
> (
>     ID NUMBER NOT NULL,
>     DMAP_ID NUMBER NOT NULL,
>     KEY_OID VARCHAR2 (1024),
>     VALUE_OID LONG RAW
> );
> 
> 
> ALTER TABLE OJB_DMAP_ENTRIES ADD CONSTRAINT
> OJB_DMAP_ENTRIES_PK PRIMARY KEY (ID);
> 
> 
> (2) Now I rnRan bin\build junit-no-compile-no-prepare
> 
> C:\eclipse\workspace\jakarta-ojb>bin\build
> junit-no-compile-no-prepare
> Buildfile: build.xml
> 
> junit-no-compile-no-prepare:
>     [junit] Running org.apache.ojb.broker.AllTests
>     [junit] Tests run: 179, Failures: 7, Errors: 10,
> Time elapsed: 64.483 sec
>     [junit] TEST org.apache.ojb.broker.AllTests FAILED
>     [junit] Running org.apache.ojb.odmg.AllTests
>     [junit] [BOOT] INFO: OJB.properties:
> file:/C:/eclipse/workspace/jakarta-ojb/
> target/test/ojb/OJB.properties
>     [junit]
> [org.apache.ojb.broker.accesslayer.ConnectionManagerImpl]
> INFO: Roll
> back was called, do rollback on current connection
> oracle.jdbc.driver.OracleConn
> ection@15d4273
>     [junit] Tests run: 147, Failures: 7, Errors: 48,
> Time elapsed: 6.43 sec
>     [junit] TEST org.apache.ojb.odmg.AllTests FAILED
>     [junit] Running org.apache.ojb.soda.AllTests
>     [junit] [BOOT] INFO: OJB.properties:
> file:/C:/eclipse/workspace/jakarta-ojb/
> target/test/ojb/OJB.properties
>     [junit] Tests run: 3, Failures: 0, Errors: 0, Time
> elapsed: 2.704 sec
> 
> BUILD SUCCESSFUL
> Total time: 1 minute 19 seconds
> 
> As you can see, I am getting Failures and Errors, what
> next?
> Thanks
> Ramana
> 
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Shopping - Send Flowers for Valentine's Day
> http://shopping.yahoo.com
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
> For additional commands, e-mail: ojb-user-help@db.apache.org