I've tried e.printStackTrace() , log.error, simple System.out - none of them
prints anything.
I've configured log4j.properties to DEBUG everything - the same result.
I found the problem - jcd-alias="default" was missing in repository.xml.
OJB 0.9.7 doesn't require it, but OJB 1.0.rc3 does.
Regards,
Mykola
----- Original Message -----
From: "Edson Carlos Ericksson Richter" <[EMAIL PROTECTED]>
To: "OJB Users List" <[EMAIL PROTECTED]>; "Mykola Ostapchuk"
<[EMAIL PROTECTED]>
Sent: Wednesday, July 09, 2003 6:36 AM
Subject: Re: Migrating from OJB 0.9.7 to OJB 1.0.rc3
> Can you try to change from log.error to e.printStackTrace() so we can have
> more info about line/stack trace?
>
> The code you are using to obtain the broker is exatly same I'm using, so
> it's right.
>
> What about .xml and .dtd? You remembered to updated too?
>
> Edson
>
> ----- Original Message -----
> From: "Mykola Ostapchuk" <[EMAIL PROTECTED]>
> To: "OJB Users List" <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>
> Sent: Tuesday, July 08, 2003 9:14 PM
> Subject: Re: Migrating from OJB 0.9.7 to OJB 1.0.rc3
>
>
> Hello,
>
> I've spent 2 days trying to migrate my application from OJB 0.9.7 to OJB
> 1.0.rc3, and still no success.
> The problem is - I can't instantiate broker with the next line:
> broker = PersistenceBrokerFactory.defaultPersistenceBroker();
>
> I'm using default OJB.properties from 1.0 rc3. I have db-ojb-1.0.rc3.jar
and
> all additional *.jar files in /lib folder.
> I debug RepositoryXmlHandler and it seems there're no problems (see code
> snap from pevious message below).
>
> Line:
> broker = PersistenceBrokerFactory.defaultPersistenceBroker();
> generates some error I don't know how to cach.
> log.error in cach statement doesn't print anything.
>
>
> try {
> broker = PersistenceBrokerFactory.defaultPersistenceBroker();
> usersVO.setUsername(username);
> usersVO.setPassword(password);
> Query query = new QueryByCriteria(usersVO);
> usersVO = (UsersVO) broker.getObjectByQuery(query);
> } catch (Exception e) {
> log.error("PersistenceBrokerException thrown in UsersDAO.findByUP():
"
> + e.toString());
> }
>
>
> With OJB 0.9.7 everything works fine.
> I'll very appreciate any help!
>
>
> Regards,
> Mykola Ostapchuk
>
>
>
>
>
>
> ----- Original Message -----
> From: "Mykola Ostapchuk" <[EMAIL PROTECTED]>
> To: "OJB Users List" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
> Sent: Tuesday, July 08, 2003 11:52 AM
> Subject: Re: Migrating from OJB 0.9.7 to OJB 1.0.rc3
>
>
> > Sorry for the previous message. Here's the log:
> >
> >
> > 0 DEBUG [Thread-5] metadata.RepositoryXmlHandler - startDoc
> > 0 DEBUG [Thread-5] metadata.RepositoryXmlHandler - >
> > descriptor-repository
> > 0 DEBUG [Thread-5] metadata.RepositoryXmlHandler - <
documentation
> > 15 DEBUG [Thread-5] metadata.RepositoryXmlHandler - >
> class-descriptor
> > 31 DEBUG [Thread-5] metadata.RepositoryXmlHandler -
> isolation-level:
> > read-uncommitted
> > 31 DEBUG [Thread-5] metadata.RepositoryXmlHandler - class:
> > com.iprs.web.users.UsersVO
> > 31 DEBUG [Thread-5] metadata.RepositoryXmlHandler - proxy: null
> > 31 DEBUG [Thread-5] metadata.RepositoryXmlHandler - table: users
> > 31 DEBUG [Thread-5] metadata.RepositoryXmlHandler - row-reader:
> null
> > 31 DEBUG [Thread-5] metadata.RepositoryXmlHandler - extends:
null
> > 31 DEBUG [Thread-5] metadata.RepositoryXmlHandler -
accept-locks:
> > true
> > 31 DEBUG [Thread-5] metadata.RepositoryXmlHandler -
accept-locks:
> > true
> > 31 DEBUG [Thread-5] metadata.RepositoryXmlHandler -
> > initialization-method: null
> > 31 DEBUG [Thread-5] metadata.RepositoryXmlHandler - refresh:
true
> > 31 DEBUG [Thread-5] metadata.RepositoryXmlHandler - >
> > field-descriptor
> > 31 DEBUG [Thread-5] metadata.RepositoryXmlHandler - name: userId
> > 46 DEBUG [Thread-5] metadata.RepositoryXmlHandler - column:
US_id
> > 46 DEBUG [Thread-5] metadata.RepositoryXmlHandler - jdbc-type:
> > BIGINT
>
............................................................................
> ............................
>
............................................................................
> ............................
> > > [org.apache.ojb.broker.metadata.RepositoryXmlHandler] DEBUG: endDoc
> > >
> > >
> > >
> > > ----- Original Message -----
> > > From: "Thomas Mahler" <[EMAIL PROTECTED]>
> > > To: "OJB Users List" <[EMAIL PROTECTED]>
> > > Sent: Tuesday, July 08, 2003 1:57 AM
> > > Subject: Re: Migrating from OJB 0.9.7 to OJB 1.0.rc3
> > >
> > >
> > > > this is most likely a problem during the parsing of the repository.
> > > > please set the debug level for XmlRepositoryHandler to DEBUG to see
> > > > where the repository problems are.
> > > >
> > > > cheers,
> > > > Thomas
> > > >
> > > > Mykola Ostapchuk wrote:
> > > > > Hello,
> > > > >
> > > > > I have a problem with migrating from OJB 0.9.7 to OJB 1.0.rc3.
> > > > > What I did:
> > > > > - replaced db-ojb-0.9.7.jar with db-ojb-1.0.rc3.jar.
> > > > > - built new OJB internal DB tables.
> > > > > - replaced old OJB.properties with a new one.
> > > > > - replaced repository.dtd with a new one.
> > > > > - modified repository.xml for a new version.
> > > > >
> > > > > I can't instantiate broker. I see no error messages:
> > > > >
> > > > > try {
> > > > > log.info("************Can see this message***************");
> > > > > broker =
PersistenceBrokerFactory.defaultPersistenceBroker();
> > > > > log.info("************Can not see this
> message***************");
> > > > > } catch (Exception e) {
> > > > > log.info("************Can not see this
> message***************");
> > > > > }
> > > > >
> > > > > Is there something I've missed?
> > > > >
> > > > >
> > > > > Regards,
> > > > > Mykola Ostapchuk
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]