Hi,
Problem is that an class name attribute is empty.
It seems that your first extent-class has an incorrectly spelled class-ref
attribute (you have calls-ref).

Cheers,

Charles.

> -----Original Message-----
> From: Reitsam Andreas [mailto:[EMAIL PROTECTED]
> Sent: 23 October 2003 08:18
> To: Ojb-User (E-Mail)
> Subject: mapping
> 
> 
> Hello.
> 
> I tried to map multiple inteface inheritance like this:
> 
> <!-- Interface  Preis -->
> <class-descriptor 
>       class="de.sigel.business.mvgl.bo.Preis">  
>       <extent-class
> calss-ref="de.sigel.business.mvgl.bo.MitbewerbervergleichPreis"/>
>       <extent-class
> class-ref="de.sigel.business.mvgl.bo.KundenListPreisImpl" />
> </class-descriptor>
> 
> <!-- Interface  MitbewerbervergleichPreis -->
> <class-descriptor
>       class="de.sigel.business.mvgl.bo.MitbewerbervergleichPreis"> 
>       <extent-class
> class-ref="de.sigel.business.mvgl.bo.KonkurrenzKundenPreisImpl" />
>       <extent-class
> class-ref="de.sigel.business.mvgl.bo.KonkurrenzHaendlerPreisImpl" />
>       <extent-class
> class-ref="de.sigel.business.mvgl.bo.SigelHaendlerPreisImpl" />
>       <extent-class
> class-ref="de.sigel.business.mvgl.bo.SigelKundenPreisImpl" />
> </class-descriptor>
> 
> <!-- Implementation Class -->
> <class-descriptor
>       class="de.sigel.business.mvgl.bo.KonkurrenzKundenPreisImpl"
>       table="TEST_PREISE">
>       
>       <field-descriptor
>          name="ojbConcreteClass"
>          column="CLASS_NAME"
>          jdbc-type="VARCHAR"/>
>       
> ....
> 
> What's wrong with this, because a NullPointerException is thrown.
> 
> java.lang.NullPointerException
>         at java.lang.Class.forName0(Native Method)
>         at java.lang.Class.forName(Class.java:219)
>         at 
> org.apache.ojb.broker.util.ClassHelper.getClass(Unknown Source)
>         at 
> org.apache.ojb.broker.util.ClassHelper.getClass(Unknown Source)
>         at
> org.apache.ojb.broker.metadata.ClassDescriptor.getExtentClasse
> s(Unknown
> Source)
>         at 
> org.apache.ojb.broker.query.QueryFactory.getExtentClasses(Unknown
> Source)
>         at
> org.apache.ojb.broker.query.QueryFactory.addCriteriaForOjbConc
> reteClasses(Un
> known Source)
>         at 
> org.apache.ojb.broker.query.QueryFactory.newQuery(Unknown Source)
>         at 
> org.apache.ojb.broker.query.QueryFactory.newQuery(Unknown Source)
> 
> 
> 
> thx, 
> andreas
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


This email and any attachments are strictly confidential and are intended
solely for the addressee. If you are not the intended recipient you must
not disclose, forward, copy or take any action in reliance on this message
or its attachments. If you have received this email in error please notify
the sender as soon as possible and delete it from your computer systems.
Any views or opinions presented are solely those of the author and do not
necessarily reflect those of HPD Software Limited or its affiliates.

 At present the integrity of email across the internet cannot be guaranteed
and messages sent via this medium are potentially at risk.  All liability
is excluded to the extent permitted by law for any claims arising as a re-
sult of the use of this medium to transmit information by or to 
HPD Software Limited or its affiliates.



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to