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 Patrick Scheuerer <pa...@hispeed.ch> on 2003/12/09 09:21:20 UTC
Vector not found in OJB Repository
Hello OJB Group,
I wrote a test case to check if my OJB configuration works properly but
everytime I run it I get the following exception:
org.apache.ojb.broker.metadata.ClassNotPersistenceCapableException:
java.util.Vector not found in OJB Repository
Here's the repository_user.xml
<class-descriptor class="ch.ctc.support.member.MemberVO"
table="member">
<field-descriptor id="1"
name="memberId"
column="member_id"
jdbc-type="BIGINT"
primarykey="true"
autoincrement="true"
access="anonymous"/>
<field-descriptor id="2"
name="firstName"
column="first_name"
jdbc-type="VARCHAR"/>
<field-descriptor id="3"
name="lastName"
column="last_name"
jdbc-type="VARCHAR"/>
<field-descriptor id="4"
name="userName"
column="user_name"
jdbc-type="VARCHAR"/>
<field-descriptor id="5"
name="password"
column="password"
jdbc-type="VARCHAR"/>
<field-descriptor id="6"
name="email"
column="email"
jdbc-type="VARCHAR"/>
<field-descriptor id="7"
name="companyId"
column="company_id"
jdbc-type="BIGINT"/>
<reference-descriptor name="category"
class-ref="ch.ctc.suppport.CategoryVO"
auto-retrieve="true">
<foreignkey field-id-ref="9"/>
</reference-descriptor>
</class-descriptor>
<class-descriptor class="ch.ctc.support.document.DocumentVO"
table="document">
<field-descriptor id="1"
name="documentId"
column="document_id"
jdbc-type="BIGINT"
primarykey="true"
autoincrement="true"
access="anonymous"/>
<field-descriptor id="2"
name="documentName"
column="document_name"
jdbc-type="VARCHAR"/>
<field-descriptor id="3"
name="documentDescription"
column="document_description"
jdbc-type="VARCHAR"/>
<field-descriptor id="4"
name="documentVersion"
column="document_version"
jdbc-type="VARCHAR"/>
<field-descriptor id="5"
name="documentAbstract"
column="document_abstract"
jdbc-type="LONGVARBINARY"/>
<field-descriptor id="6"
name="creationDate"
column="creation_date"
jdbc-type="DATE"/>
<field-descriptor id="7"
name="palModel"
column="pal_model_id"
jdbc-type="BIGINT"/>
<field-descriptor id="8"
name="keywords"
column="keyword_id"
jdbc-type="BIGINT"/>
<field-descriptor id="9"
name="category"
column="category_id"
jdbc-type="BIGINT"/>
<field-descriptor id="10" name="documentAuthor"
column="member_id"
jdbc-type="BIGINT"/>
<collection-descriptor name ="palModel"
element-class-ref="ch.ctc.support.category.PalModelVO"
auto-retrieve="true"
auto-update="true"
indirection-table="pal_relevancy">
<fk-pointing-to-this-class column="pal_model_id"/>
<fk-pointing-to-this-class column="document_id"/>
</collection-descriptor>
<collection-descriptor name ="keywords"
element-class-ref="ch.ctc.support.category.KeywordVO"
auto-retrieve="true"
auto-update="true"
indirection-table="document_keyword">
<fk-pointing-to-this-class column="keyword_id"/>
<fk-pointing-to-this-class column="document_id"/>
</collection-descriptor>
<reference-descriptor name="category"
class-ref="ch.ctc.suppport.CategoryVO"
auto-retrieve="true">
<foreignkey field-id-ref="9"/>
</reference-descriptor>
<reference-descriptor name="doucmentAuthor"
class-ref="ch.ctc.suppport.MemberVO"
auto-retrieve="true">
<foreignkey field-id-ref="10"/>
</reference-descriptor>
</class-descriptor>
<class-descriptor class="ch.ctc.support.category.CategoryVO"
table="category">
<field-descriptor id="1"
name="categoryId"
column="category_id"
jdbc-type="BIGINT"
primarykey="true"
autoincrement="true"
access="anonymous"/>
<field-descriptor id="2"
name="categoryName"
column="category_name"
jdbc-type="VARCHAR"/>
<field-descriptor id="3"
name="categoryDescription"
column="category_description"
jdbc-type="VARCHAR"/>
</class-descriptor>
<class-descriptor class="ch.ctc.support.category.PALModelVO"
table="pal_model">
<field-descriptor id="1"
name="palModelId"
column="pal_model_id"
jdbc-type="BIGINT"
primarykey="true"
autoincrement="true"
access="anonymous"/>
<field-descriptor id="2"
name="palModelName"
column="pal_model_name"
jdbc-type="VARCHAR"/>
<field-descriptor id="3"
name="palModelDescription"
column="pal_model_description"
jdbc-type="VARCHAR"/>
</class-descriptor>
<class-descriptor class="ch.ctc.support.category.CompanyVO"
table="company">
<field-descriptor id="1"
name="companyId"
column="company_id"
jdbc-type="BIGINT"
primarykey="true"
autoincrement="true"/>
<field-descriptor id="2"
name="companyName"
column="company_name"
jdbc-type="VARCHAR"/>
</class-descriptor>
What am I doing wrong? Do I have do declare what type of Collection I'm
using in the repository file?
Any help would be highly appreciated?
Patrick
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org
Re: Vector not found in OJB Repository
Posted by Jakob Braeuchi <jb...@gmx.ch>.
hi patrick,
please post your classes as well.
why do you use field-id ? it works but makes the repository hard to read.
jakob
Patrick Scheuerer wrote:
> Fixed it. Changed nothing though. Still the same problem....
>
>
>>-----Original Message-----
>>From: Anish [mailto:anishkumarg@teamdyna.com]
>>Sent: Donnerstag, 11. Dezember 2003 09:45
>>To: ojb-user@db.apache.org
>>Subject: Re: Vector not found in OJB Repository
>>
>>hi,
>> the <foreignkey field-id-ref="9"/> is wrong. where is the
>>field with id 9.
>>check it out.
>>Anish..
>>
>>
>>---
>>Outgoing mail is certified Virus Free.
>>Checked by AVG anti-virus system (http://www.grisoft.com).
>>Version: 6.0.537 / Virus Database: 332 - Release Date: 11/6/2003
>>
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
>>For additional commands, e-mail: ojb-user-help@db.apache.org
>>
>>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
> For additional commands, e-mail: ojb-user-help@db.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org
RE: Vector not found in OJB Repository
Posted by Patrick Scheuerer <ta...@hispeed.ch>.
Fixed it. Changed nothing though. Still the same problem....
> -----Original Message-----
> From: Anish [mailto:anishkumarg@teamdyna.com]
> Sent: Donnerstag, 11. Dezember 2003 09:45
> To: ojb-user@db.apache.org
> Subject: Re: Vector not found in OJB Repository
>
> hi,
> the <foreignkey field-id-ref="9"/> is wrong. where is the
> field with id 9.
> check it out.
> Anish..
>
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.537 / Virus Database: 332 - Release Date: 11/6/2003
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
> For additional commands, e-mail: ojb-user-help@db.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org
Re: Vector not found in OJB Repository
Posted by Anish <an...@teamdyna.com>.
hi,
the <foreignkey field-id-ref="9"/> is wrong. where is the field with id 9.
check it out.
Anish..
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.537 / Virus Database: 332 - Release Date: 11/6/2003
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org