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 Johnson <jo...@soho.club.tw> on 2004/07/13 08:09:20 UTC
Question about OdmgImplementation
Hi!
>
I use odmg to connect postgres since cocoon 2.1.5 db-ojb is 1.0rc6
I upgrade to cocoon 2.2 dev db-ojb is 1.0.0
but the code is fail for getInstance();
the code is
var odmgImpl =
cocoon.getComponent(Packages.org.apache.cocoon.ojb.odmg.components.OdmgImple
metation.ROLE);
var impl = odmgImpl.getInstance("sy");
If I change the db-ojb back to 1.0rc6 it's ok
But in 1.0.0 java.lang.NullPointerException occurs
How to correct it.
Best regards
Johnson
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org
Re: Question about OdmgImplementation
Posted by Brian McCallister <mc...@forthillcompany.com>.
Thanks for the pointer, will try to get a patch in to the cocoon folks
for 1.0.0 asap =)
-Brian
On Jul 13, 2004, at 4:34 AM, Johnson wrote:
> great it'ok tks lots
>
> Best Regards
>
> Johnson
> ----- Original Message -----
> From: "Johnson" <jo...@soho.club.tw>
> To: "OJB Users List" <oj...@db.apache.org>
> Sent: Tuesday, July 13, 2004 4:27 PM
> Subject: Re: Question about OdmgImplementation
>
>
>> I just use the cocoon had.
>> I've check that it's different from 1.0
>> will try to see if work
>>
>> tks
>>
>> Best Regards
>>
>> Johnson
>>
>>
>> ----- Original Message -----
>> From: "Armin Waibel" <ar...@apache.org>
>> To: "OJB Users List" <oj...@db.apache.org>
>> Sent: Tuesday, July 13, 2004 4:13 PM
>> Subject: Re: Question about OdmgImplementation
>>
>>
>>> Hi Johnson,
>>>
>>> did you update the OJB.properties file? We introduce a new factory
>>> ImplementationClass=org.apache.ojb.odmg.ImplementationImpl
>>> in OJB.properties file to define the used org.odmg.Implementation
>>> implementation.
>>> Maybe this cause the problem.
>>>
>>> regards
>>> Armin
>>>
>>> Johnson wrote:
>>>> Hi!
>>>>
>>>> I Found if use db-ojb1.0rc7 had the same problem
>>>>
>>>> Best Regards
>>>> Johnson
>>>>
>>>> ----- Original Message -----
>>>> From: "Johnson" <jo...@soho.club.tw>
>>>> To: "OJB Users List" <oj...@db.apache.org>
>>>> Sent: Tuesday, July 13, 2004 2:09 PM
>>>> Subject: Question about OdmgImplementation
>>>>
>>>>
>>>>
>>>>> Hi!
>>>>>
>>>>> I use odmg to connect postgres since cocoon 2.1.5 db-ojb is 1.0rc6
>>>>> I upgrade to cocoon 2.2 dev db-ojb is 1.0.0
>>>>> but the code is fail for getInstance();
>>>>> the code is
>>>>> var odmgImpl =
>>>>>
>>>>
>>>>
>>
> cocoon.getComponent(Packages.org.apache.cocoon.ojb.odmg.components.Odmg
> Imple
>>>>
>>>>> metation.ROLE);
>>>>> var impl = odmgImpl.getInstance("sy");
>>>>> If I change the db-ojb back to 1.0rc6 it's ok
>>>>> But in 1.0.0 java.lang.NullPointerException occurs
>>>>>
>>>>> How to correct it.
>>>>>
>>>>> Best regards
>>>>>
>>>>> Johnson
>>>>>
>>>>>
>>>>>
>>>>> -------------------------------------------------------------------
>>>>> --
>>>>> 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
>>>
>>
>>
>> ---------------------------------------------------------------------
>> 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: Question about OdmgImplementation
Posted by Johnson <jo...@soho.club.tw>.
great it'ok tks lots
Best Regards
Johnson
----- Original Message -----
From: "Johnson" <jo...@soho.club.tw>
To: "OJB Users List" <oj...@db.apache.org>
Sent: Tuesday, July 13, 2004 4:27 PM
Subject: Re: Question about OdmgImplementation
> I just use the cocoon had.
> I've check that it's different from 1.0
> will try to see if work
>
> tks
>
> Best Regards
>
> Johnson
>
>
> ----- Original Message -----
> From: "Armin Waibel" <ar...@apache.org>
> To: "OJB Users List" <oj...@db.apache.org>
> Sent: Tuesday, July 13, 2004 4:13 PM
> Subject: Re: Question about OdmgImplementation
>
>
> > Hi Johnson,
> >
> > did you update the OJB.properties file? We introduce a new factory
> > ImplementationClass=org.apache.ojb.odmg.ImplementationImpl
> > in OJB.properties file to define the used org.odmg.Implementation
> > implementation.
> > Maybe this cause the problem.
> >
> > regards
> > Armin
> >
> > Johnson wrote:
> > > Hi!
> > >
> > > I Found if use db-ojb1.0rc7 had the same problem
> > >
> > > Best Regards
> > > Johnson
> > >
> > > ----- Original Message -----
> > > From: "Johnson" <jo...@soho.club.tw>
> > > To: "OJB Users List" <oj...@db.apache.org>
> > > Sent: Tuesday, July 13, 2004 2:09 PM
> > > Subject: Question about OdmgImplementation
> > >
> > >
> > >
> > >>Hi!
> > >>
> > >> I use odmg to connect postgres since cocoon 2.1.5 db-ojb is 1.0rc6
> > >>I upgrade to cocoon 2.2 dev db-ojb is 1.0.0
> > >>but the code is fail for getInstance();
> > >>the code is
> > >>var odmgImpl =
> > >>
> > >
> > >
>
cocoon.getComponent(Packages.org.apache.cocoon.ojb.odmg.components.OdmgImple
> > >
> > >>metation.ROLE);
> > >>var impl = odmgImpl.getInstance("sy");
> > >>If I change the db-ojb back to 1.0rc6 it's ok
> > >>But in 1.0.0 java.lang.NullPointerException occurs
> > >>
> > >> How to correct it.
> > >>
> > >> Best regards
> > >>
> > >> Johnson
> > >>
> > >>
> > >>
> > >>---------------------------------------------------------------------
> > >>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
> >
>
>
> ---------------------------------------------------------------------
> 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: Question about OdmgImplementation
Posted by Johnson <jo...@soho.club.tw>.
I just use the cocoon had.
I've check that it's different from 1.0
will try to see if work
tks
Best Regards
Johnson
----- Original Message -----
From: "Armin Waibel" <ar...@apache.org>
To: "OJB Users List" <oj...@db.apache.org>
Sent: Tuesday, July 13, 2004 4:13 PM
Subject: Re: Question about OdmgImplementation
> Hi Johnson,
>
> did you update the OJB.properties file? We introduce a new factory
> ImplementationClass=org.apache.ojb.odmg.ImplementationImpl
> in OJB.properties file to define the used org.odmg.Implementation
> implementation.
> Maybe this cause the problem.
>
> regards
> Armin
>
> Johnson wrote:
> > Hi!
> >
> > I Found if use db-ojb1.0rc7 had the same problem
> >
> > Best Regards
> > Johnson
> >
> > ----- Original Message -----
> > From: "Johnson" <jo...@soho.club.tw>
> > To: "OJB Users List" <oj...@db.apache.org>
> > Sent: Tuesday, July 13, 2004 2:09 PM
> > Subject: Question about OdmgImplementation
> >
> >
> >
> >>Hi!
> >>
> >> I use odmg to connect postgres since cocoon 2.1.5 db-ojb is 1.0rc6
> >>I upgrade to cocoon 2.2 dev db-ojb is 1.0.0
> >>but the code is fail for getInstance();
> >>the code is
> >>var odmgImpl =
> >>
> >
> >
cocoon.getComponent(Packages.org.apache.cocoon.ojb.odmg.components.OdmgImple
> >
> >>metation.ROLE);
> >>var impl = odmgImpl.getInstance("sy");
> >>If I change the db-ojb back to 1.0rc6 it's ok
> >>But in 1.0.0 java.lang.NullPointerException occurs
> >>
> >> How to correct it.
> >>
> >> Best regards
> >>
> >> Johnson
> >>
> >>
> >>
> >>---------------------------------------------------------------------
> >>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
>
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org
Re: Question about OdmgImplementation
Posted by Armin Waibel <ar...@apache.org>.
Hi Johnson,
did you update the OJB.properties file? We introduce a new factory
ImplementationClass=org.apache.ojb.odmg.ImplementationImpl
in OJB.properties file to define the used org.odmg.Implementation
implementation.
Maybe this cause the problem.
regards
Armin
Johnson wrote:
> Hi!
>
> I Found if use db-ojb1.0rc7 had the same problem
>
> Best Regards
> Johnson
>
> ----- Original Message -----
> From: "Johnson" <jo...@soho.club.tw>
> To: "OJB Users List" <oj...@db.apache.org>
> Sent: Tuesday, July 13, 2004 2:09 PM
> Subject: Question about OdmgImplementation
>
>
>
>>Hi!
>>
>> I use odmg to connect postgres since cocoon 2.1.5 db-ojb is 1.0rc6
>>I upgrade to cocoon 2.2 dev db-ojb is 1.0.0
>>but the code is fail for getInstance();
>>the code is
>>var odmgImpl =
>>
>
> cocoon.getComponent(Packages.org.apache.cocoon.ojb.odmg.components.OdmgImple
>
>>metation.ROLE);
>>var impl = odmgImpl.getInstance("sy");
>>If I change the db-ojb back to 1.0rc6 it's ok
>>But in 1.0.0 java.lang.NullPointerException occurs
>>
>> How to correct it.
>>
>> Best regards
>>
>> Johnson
>>
>>
>>
>>---------------------------------------------------------------------
>>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: Question about OdmgImplementation
Posted by Johnson <jo...@soho.club.tw>.
Hi!
I Found if use db-ojb1.0rc7 had the same problem
Best Regards
Johnson
----- Original Message -----
From: "Johnson" <jo...@soho.club.tw>
To: "OJB Users List" <oj...@db.apache.org>
Sent: Tuesday, July 13, 2004 2:09 PM
Subject: Question about OdmgImplementation
> Hi!
> >
> I use odmg to connect postgres since cocoon 2.1.5 db-ojb is 1.0rc6
> I upgrade to cocoon 2.2 dev db-ojb is 1.0.0
> but the code is fail for getInstance();
> the code is
> var odmgImpl =
>
cocoon.getComponent(Packages.org.apache.cocoon.ojb.odmg.components.OdmgImple
> metation.ROLE);
> var impl = odmgImpl.getInstance("sy");
> If I change the db-ojb back to 1.0rc6 it's ok
> But in 1.0.0 java.lang.NullPointerException occurs
>
> How to correct it.
>
> Best regards
>
> Johnson
>
>
>
> ---------------------------------------------------------------------
> 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