openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Frederic_Bell...@capgroup.com
Subject Re: Wierdest error
Date Wed, 09 Apr 2008 02:49:25 GMT
LOL

I am an idiot.

I fixed all properties to openjpa.

Apologies to all.

Frederic




                                                                           
             Frederic                                                      
             Bellier/CDS/CG/CA                                             
             PITAL                                                      To 
             CONFMB                    Frederic Bellier/CDS/CG/CAPITAL@CG  
                                                                        cc 
             04/08/2008 06:53          dev@openjpa.apache.org              
             PM                                                    Subject 
                                       Re: Wierdest error (Document link:  
                                       Frederic Bellier)                   
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           



My bad -

OpenJPA does not start becuase of another exception -
<openjpa-1.0.2-r420667:627158 fatal user error>
org.apache.openjpa.persistence.ArgumentException: A JDBC Driver or
DataSource class name must be specified in the ConnectionDriverName
property.
      at
org.apache.openjpa.jdbc.schema.DataSourceFactory.newDataSource(DataSourceFactory.java:72)
      at
org.apache.openjpa.jdbc.conf.JDBCConfigurationImpl.createConnectionFactory(JDBCConfigurationImpl.java:803)
      at
org.apache.openjpa.jdbc.conf.JDBCConfigurationImpl.getDBDictionaryInstance(JDBCConfigurationImpl.java:568)
      at
org.apache.openjpa.jdbc.meta.MappingRepository.endConfiguration(MappingRepository.java:1221)
      at
org.apache.openjpa.lib.conf.Configurations.configureInstance(Configurations.java:476)
      at
org.apache.openjpa.lib.conf.Configurations.configureInstance(Configurations.java:401)
      at
org.apache.openjpa.lib.conf.PluginValue.instantiate(PluginValue.java:102)
      at
org.apache.openjpa.lib.conf.ObjectValue.instantiate(ObjectValue.java:82)
      at
org.apache.openjpa.conf.OpenJPAConfigurationImpl.newMetaDataRepositoryInstance(OpenJPAConfigurationImpl.java:861)
      at
org.apache.openjpa.conf.OpenJPAConfigurationImpl.getMetaDataRepositoryInstance(OpenJPAConfigurationImpl.java:852)
      at
org.apache.openjpa.kernel.BrokerImpl.initialize(BrokerImpl.java:270)
      at
org.apache.openjpa.kernel.AbstractBrokerFactory.newBroker(AbstractBrokerFactory.java:189)
      at
org.apache.openjpa.kernel.DelegatingBrokerFactory.newBroker(DelegatingBrokerFactory.java:142)
      at
org.apache.openjpa.persistence.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:192)
      at
org.apache.openjpa.persistence.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:145)
      at
org.apache.openjpa.persistence.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:56)
      at
com.capgroup.etp.dao3.AccountDAO_BasicTest.setUp(AccountDAO_BasicTest.java:183)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at
org.junit.internal.runners.BeforeAndAfterRunner.invokeMethod(BeforeAndAfterRunner.java:74)
      at
org.junit.internal.runners.BeforeAndAfterRunner.runBefores(BeforeAndAfterRunner.java:50)
      at
org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:33)
      at
org.junit.internal.runners.TestMethodRunner.runMethod(TestMethodRunner.java:75)
      at
org.junit.internal.runners.TestMethodRunner.run(TestMethodRunner.java:45)
      at
org.junit.internal.runners.TestClassMethodsRunner.invokeTestMethod(TestClassMethodsRunner.java:66)
      at
org.junit.internal.runners.TestClassMethodsRunner.run(TestClassMethodsRunner.java:35)
      at
org.junit.internal.runners.TestClassRunner$1.runUnprotected(TestClassRunner.java:42)
      at
org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:34)
      at
org.junit.internal.runners.TestClassRunner.run(TestClassRunner.java:52)
      at
org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:38)
      at
org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
      at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
      at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
      at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
      at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)

But here is my persistence file - I did not chnage it and all of a sudden -
I got this excpetion.

            <properties>
                  <property name="kodo.ConnectionURL" value=
"jdbc:jtds:sybase://smith:1234/xxx" />
                  <property name="kodo.ConnectionDriverName" value=
"net.sourceforge.jtds.jdbc.Driver" />
                  <property name="kodo.ConnectionUserName" value="xxx" />
                  <property name="kodo.ConnectionPassword" value="xxx" />
                  <property name="kodo.MetaDataFactory" value="jpa"/>
                  <property name="kodo.Multithreaded" value="true"/>
                  <property name="kodo.jdbc.MappingDefaults" value=
"DefaultMissingInfo=true,ForeignKeyDeleteAction=restrict"/>
                  <property name="kodo.jdbc.EagerFetchMode" value=
"parallel"/>
                  <property name="kodo.jdbc.SubclassFetchMode" value="join"
/>
                  <!-- Tangosol cache configuration...
                  <property name="kodo.DataCacheManager" value="coherence"
/>
                  <!-- Kodo lock manager configuration -
                  -->
                  <property name="kodo.LockManager" value="version"/> <!--
c.f. page 580 -->
                  <property name="kodo.ReadLockLevel" value="none"/>
                  <property name="kodo.WriteLockLevel" value="write"/>
                  <property name="kodo.LockTimeout" value="30000"/> <!-- in
ms -->
                  <property name="kodo.Log" value="DefaultLevel=TRACE,
Runtime=TRACE, Tool=TRACE, MetaData=TRACE, Schema=TRACE, SQL=TRACE,
DataCache=TRACE" />
            </properties>


The error message I mentioned below might very well be something else.



                                                                           
             Frederic                                                      
             Bellier/CDS/CG/CA                                             
             PITAL                                                      To 
             CONFMB                    dev@openjpa.apache.org              
                                                                        cc 
             04/08/2008 06:43                                              
             PM                                                    Subject 
                                       Wierdest error                      
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           



I got a very strange error now -

0  WARN   [main] openjpa.Runtime - The property named "openjpa.Id" was not
recognized and will be ignored, although the name closely matches a valid
property called "openjpa.Id".
And then OpenJPA does not start.

This just started to happened and I can not figure it out.

Has anyone see this? Any idea how to fix it?

Frederic




Mime
View raw message