I think it needs to be explicitly public, otherwise it's scope is package or 
something.

On Friday 03 January 2003 00:18, Anthony Kong wrote:
> Hi, Lee Haw,
>
> Thanks for your response. Yes, I do have zero-parameter constructor.
>
> Here is the listing of the java class implementation:
>
> package test;
>
> class product {
>
>     private String type;
>     private String subtype;
>     private String supported;
>     private String description;
>
>     product(){
>         type = null;
>         subtype = null;
>         supported = null;
>         description = null;
>     };
>
>
>     product(String type, String subtype, String supported, String desp){
>         this.type = type;
>         this.subtype = subtype;
>         this.supported = supported;
>         this.description = desp;
>     }
>
>     public String getType(){
>         return type;
>     }
>     public String getSubType(){
>         return subtype;
>     }
>
> }
>
> I do not recall reading any particular documentation about constructor
> under OJB. Please kindly point this to me if there is one.
>
>
> Regards,
>
> Anthony
>
>
>
> -----Original Message-----
> From: Ong Lee Haw (FS) [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 02, 2003 7:07 PM
> To: OJB Users List
> Subject: RE: What does this error message means?
>
>
> Hi Anthony,
>
> Do you have a public constructor with no parameter?
>
> Regards,
> Lee Haw
>
> > -----Original Message-----
> > From: Anthony Kong [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, January 02, 2003 6:19 PM
> > To: '[EMAIL PROTECTED]'
> > Subject: What does this error message means?
> >
> >
> > Hi, all,
> >
> > I have encountered this error messages:
> >
> >
> > [org.apache.ojb.broker.accesslayer.RsIterator] ERROR: Unable to
> > build object
> > instance (MAYBE you don't have a constructor available):class
> > test.product:
> > Class org.apache.ojb.broker.accesslayer.RowReaderDefaultImpl can
> > not access
> > a member of class test.product with modifiers "public"
> >
> > The class has 4 data member defined (as shown in the following mapping):
> >
> >  <field-descriptor id="1"
> >          name="type"
> >          column="TradeType"
> >          jdbc-type="VARCHAR"
> >          primarykey="true"
> >          autoincrement="false"
> >       />
> >       <field-descriptor id="2"
> >          name="subtype"
> >          column="TradeSubType"
> >          jdbc-type="VARCHAR"
> >          primarykey="true"
> >          autoincrement="false"
> >       />
> >       <field-descriptor id="3"
> >          name="supported"
> >          column="Supported"
> >          jdbc-type="VARCHAR"
> >       />
> >       <field-descriptor id="4"
> >          name="description"
> >          column="Description"
> >          jdbc-type="VARCHAR"
> >       />
> >
> > I think the error message refers to the constructor. I have changed the
> > constructor modifier from public to private to nothing, but the message
> > still appear. How should I get rid of this error?
> >
> >
> > Regards,
> >
> > Anthony
> >
> > --
> > To unsubscribe, e-mail:  
> > <mailto:[EMAIL PROTECTED]> For additional commands,
> > e-mail: <mailto:[EMAIL PROTECTED]>
>
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>


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

Reply via email to