You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Johnson <jo...@soho.club.tw> on 2004/07/13 07:56:17 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: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: Question about OdmgImplementation

Posted by Johnson <jo...@soho.club.tw>.
It's solved:>

Because the OJB.Properties is changed from db-ojb1.0rc7
it had a new factory
ImplementationClass=org.apache.ojb.odmg.ImplementationImpl
But cocoon's had not change
Just use the OJB.Properties from db-ojb-1.0.0 to replace the cocoon's.

tks Armin Waibel <ar...@apache.org>

Best Regard

Johnson


----- Original Message ----- 
From: "Johnson" <jo...@soho.club.tw>
To: <us...@cocoon.apache.org>
Sent: Tuesday, July 13, 2004 3:38 PM
Subject: Re: Question about OdmgImplementation


> Hi!
>
> I Found if use db-ojb1.0rc7 had the same problem
>
> Best Regards
> Johnson
> ----- Original Message ----- 
> From: "Johnson" <jo...@soho.club.tw>
> To: <us...@cocoon.apache.org>
> Sent: Tuesday, July 13, 2004 1:56 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: users-unsubscribe@cocoon.apache.org
> > For additional commands, e-mail: users-help@cocoon.apache.org
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.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: <us...@cocoon.apache.org>
Sent: Tuesday, July 13, 2004 1:56 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: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org