tx.begin();
// 2. get an OQLQuery object from the ODMG facade
OQLQuery query = odmg.newOQLQuery(); // 3. set the OQL select statement
query.create(sql); // 4. perform the query and store the result
// in a persistent Collection
DList rawResults = (DList) query.execute();Armin Waibel wrote:
Where is the Nullpointer stack trace? Your snip seems OK.
regards, Armin ----- Original Message ----- From: "Larry Schuler" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, March 13, 2003 12:52 AM Subject: ODMG w/oracle problem
Hi, I'm just starting to use OJB, so I think this may be configuration
related,
but I can use the PersisetenceBroker to retrieve objects, so I think I
have it
set up correctly. Anyway, when I try to use the ODMG method of access,
OJB
seems to load up ok, but when I try to retrieve objects, I get a NullPointerException with very little other details, here is a debug
trace:
(What I think may be the problem is the call to "PB.close", why would
that be
called right after opening?) The final message (select) is all that I
receive in
the log. My client app is reporting a failure due to a
NullPointerException in
the server.
Thanks for any help. --Larry
08:56:20,751 INFO RepositoryPersistor:? - Read connection repository
from file
took 150 ms 08:56:20,821 INFO PersistenceBrokerFactoryDefaultImpl:? - Set default
PBKey: or
g.apache.ojb.broker.PBKey: repository=MAGE, user=magedev,
password=*****
08:56:20,831 DEBUG PersistenceBrokerFactoryDefaultImpl:? -
createPersistenceBrok
er(key) called 08:56:20,831 INFO PersistenceBrokerFactoryDefaultImpl:? - Create new
PB instanc
e for PBKey org.apache.ojb.broker.PBKey: repository=MAGE,
user=magedev, password
=*****, already created persistence broker instances: 0 08:56:20,861 DEBUG SequenceManagerFactory:? - Default sequence manager
class was
org.apache.ojb.broker.util.sequence.SequenceManagerHighLowImpl 08:56:20,861 DEBUG SequenceManagerFactory:? - create new sequence
manager for br
oker [EMAIL PROTECTED] 08:56:20,861 DEBUG SequenceManagerFactory:? -
Jdbc-Connection-Descriptor 'MAGE'
use sequence manager: class
org.apache.ojb.broker.util.sequence.SequenceManagerH
ighLowImpl 08:56:20,911 DEBUG OJB:? - Set current database
org.apache.ojb.odmg.DatabaseImpl
@811c88 PBKey was org.apache.ojb.broker.PBKey: repository=MAGE,
user=magedev, pa
ssword=***** 08:56:20,911 DEBUG DatabaseImpl:? - Open database using PBKey
org.apache.ojb.bro
ker.PBKey: repository=MAGE, user=magedev, password=***** 08:56:20,911 DEBUG PersistenceBrokerImpl:? - PB.close was called:
org.apache.ojb
[EMAIL PROTECTED] Debug2 * Mage Manager bound 08:56:34,381 DEBUG TransactionImpl:? - Begin transaction was called on
tx org.ap
[EMAIL PROTECTED], with associated PB null 08:56:34,391 DEBUG OQLQueryImpl:? - create query for query-string:
select * from
ContactImpl
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
