R
P.S. Equifax uses OJB?
On Tuesday, Feb 11, 2003, at 16:28 US/Eastern, [EMAIL PROTECTED] wrote:
Thanks much. But isn't that why I specify 'default-connection="true"' in
the JCD?
|---------+--------------------------->
| | "Robert S. |
| | Sfeir" |
| | <[EMAIL PROTECTED]|
| | gov> |
| | |
| | 02/11/2003 04:15|
| | PM |
| | Please respond |
| | to "OJB Users |
| | List" |
| | |
|---------+--------------------------->
---------------------------------------------------------------------- ---------------------------------------------------------------------- ------|| |
| To: "OJB Users List" <[EMAIL PROTECTED]> |
| cc: |
| Subject: Re: more 098 to 099 conversion problems |
| |
---------------------------------------------------------------------- ---------------------------------------------------------------------- ------|
yup ran into that last weekend. The trick is that in your class file where you do the db.open, you need to change (something close to): db.open("repository.xml", Database.READ_WRITE) to db.open("default", Database.READ_WRITE) (Default in this case is the name of your alias) R On Tuesday, Feb 11, 2003, at 16:04 US/Eastern, [EMAIL PROTECTED] wrote:When I try to get my new app running with 0.9.9, I get the following.
[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
[org.apache.ojb.broker.accesslayer.ConnectionManagerFactory] ERROR:
ConfigurableFactory instantiation failed for class class
org.apache.ojb.broker.accesslayer.ConnectionManagerImpl
* Factory types:
1 - Type: org.apache.ojb.broker.PersistenceBroker
* Factory arguments:
1 - Argument:
org.apache.ojb.broker.singlevm.PersistenceBrokerImpl@79935d
null
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructo r
AccessorImpl.java:39)
.
.
.
.
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingCo n
structorAccessorImpl.java:27)
at
java.lang.reflect.Constructor.newInstance(Constructor.java:274)
at org.apache.ojb.broker.util.ClassHelper.newInstance(Unknown
Source)
... 35 more
Caused by: java.lang.NullPointerException
at
org.apache.ojb.broker.platforms.PlatformFactory.getPlatformFor(Unknown
Source)
at
org.apache.ojb.broker.accesslayer.ConnectionManagerImpl.<init>(Unknown
Source)
... 40 more
The OJB.properties is now "stock". At the moment, here is my jdbc
connection descriptor.
<jdbc-connection-descriptor
jcd-alias="default"
default-connection="true"
platform="Hsqldb"
jdbc-level="2.0"
driver="org.hsqldb.jdbcDriver"
username="sa"
password=""
eager-release="false"
batch-mode="false"
useAutoCommit="0"
ignoreAutoCommitExceptions="false"
<sequence-manager className ="org.apache.ojb.broker.util.sequence.SequenceManagerHighLowImpl"> <attribute attribute-name="grabSize" attribute-value="250"/> </sequence-manager> </jdbc-connection-descriptor> Normally, I'd just debug into OJB to understand what is going on, but at the moment I'm having network difficulties which are making it hard for me to get the source in a form I can use....so, can anyone tell me what I've done wrong? Thanks. David This message contains information from Equifax Inc. which may be confidential and privileged. If you are not an intended recipient, please refrain from any disclosure, copying, distribution or use of this information and note that such actions are prohibited. If you have received this transmission in error, please notify by e-mail [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]R -- Robert S. Sfeir Senior Java Engineer National Institutes of Health Center for Information Technology Department of Enterprise Custom Applications [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]
R -- Robert S. Sfeir Senior Java Engineer National Institutes of Health Center for Information Technology Department of Enterprise Custom Applications [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
