Hi

1.  ------------------------------------------------------------------
I had the same error connecting and the answer (from kind people here) was:

Your exception is due to

try {
                        db.open(
                                "repository.xml",
                                Database.OPEN_READ_WRITE);
                } catch (ODMGException ex) {
                        ex.printStackTrace();
                }
the meaning of the database name has changed.  Must be:

 database.open("default",Database.OPEN_READ_WRITE);

or whatever is the value of the jcdAlias in your repository.xml

2.  ------------------------------------------------------------------
I do not use Oracle but have forwarded some previous threads to you 


HTH
Shane






-----Original Message-----
From: Vincenz Braun [mailto:[EMAIL PROTECTED] 
Sent: Thursday, 27 March 2003 3:14 a.m.
To: [EMAIL PROTECTED]
Subject: Newbie questions (oracle and ojb setup) (posted because archive
unbrowsable)

Hi,

my first steps with ojb. Some questions have arised. 
I post these because it is currently not possible to browse the archive
under
http://archives.apache.org/eyebrowse/[EMAIL PROTECTED]
org. 
All message bodies are empty :-(

I want to use ojb with a sample oracle schema. I wonder where to specify
the complete url. Has anybody a working example of the
repository_database.xml
with oracle.

Second I always get this Exception when trying to setup OJB.

[org.apache.ojb.broker.metadata.ConnectionRepository] INFO: Could not found
org.apache.ojb.broker.metadata.JdbcConnectionDescriptor for PBKey
org.apache.ojb.broker.PBKey: repository=repository.xml, user=null,
password=null
java.lang.reflect.InvocationTargetException: java.lang.NullPointerException
        at
org.apache.ojb.broker.platforms.PlatformFactory.getPlatformFor(Unknown
Source)
        [...]

Code Snippet:
                Implementation odmg = OJB.getInstance();
                Database db = odmg.newDatabase();
                //open database
                try {
                        db.open(
                                "repository.xml",
                                Database.OPEN_READ_WRITE);
                } catch (ODMGException ex) {
                        ex.printStackTrace();
                }

Third can anyone tell me where to report the problem with the archive?

What is the problem?

Thanks in advance,
Vincenz


---------------------------------------------------------------------
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]

Reply via email to