openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ericp56 <eric.phettepl...@twcable.com>
Subject Schema is ignored in my unit testing
Date Thu, 20 Nov 2008 17:53:12 GMT

Hello, 

I have a simple JPA EJB unit test that is failing with (bolded the root
error below ):

ScrapEjbTest
com.twcable.ivr.test.ScrapEjbTest
test1(com.twcable.ivr.test.ScrapEjbTest)
javax.ejb.EJBException: The bean encountered a non-application exception;
nested exception is: 
	<openjpa-1.2.0-r422266:683325 fatal user error>
org.apache.openjpa.persistence.ArgumentException: Errors encountered while
resolving metadata.  See nested exceptions for details.
	at
org.apache.openejb.core.ivm.BaseEjbProxyHandler.convertException(BaseEjbProxyHandler.java:363)
	at
org.apache.openejb.core.ivm.BaseEjbProxyHandler.invoke(BaseEjbProxyHandler.java:291)
	at $Proxy42.Echo(Unknown Source)
	at com.twcable.ivr.test.ScrapEjbTest.test1(ScrapEjbTest.java:64)
	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:585)
	at
org.junit.internal.runners.TestMethodRunner.executeMethodBody(TestMethodRunner.java:99)
	at
org.junit.internal.runners.TestMethodRunner.runUnprotected(TestMethodRunner.java:81)
	at
org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:34)
	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:45)
	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)
Caused by: <openjpa-1.2.0-r422266:683325 fatal user error>
org.apache.openjpa.persistence.ArgumentException: Errors encountered while
resolving metadata.  See nested exceptions for details.
	at
org.apache.openjpa.meta.MetaDataRepository.resolve(MetaDataRepository.java:563)
	at
org.apache.openjpa.meta.MetaDataRepository.getMetaData(MetaDataRepository.java:308)
	at
org.apache.openjpa.jdbc.meta.MappingRepository.getMapping(MappingRepository.java:285)
	at
org.apache.openjpa.jdbc.meta.MappingTool.getMapping(MappingTool.java:676)
	at org.apache.openjpa.jdbc.meta.MappingTool.validate(MappingTool.java:734)
	at org.apache.openjpa.jdbc.meta.MappingTool.run(MappingTool.java:650)
	at
org.apache.openjpa.jdbc.kernel.JDBCBrokerFactory.synchronizeMappings(JDBCBrokerFactory.java:153)
	at
org.apache.openjpa.jdbc.kernel.JDBCBrokerFactory.newBrokerImpl(JDBCBrokerFactory.java:119)
	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:56)
	at
org.apache.openejb.persistence.JtaEntityManagerRegistry.getEntityManager(JtaEntityManagerRegistry.java:105)
	at
org.apache.openejb.persistence.JtaEntityManager.getEntityManager(JtaEntityManager.java:61)
	at
org.apache.openejb.persistence.JtaEntityManager.persist(JtaEntityManager.java:97)
	at com.twcable.ivr.test.ScrapClass.Echo(ScrapClass.java:19)
	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:585)
	at
org.apache.openejb.core.interceptor.ReflectionInvocationContext$Invocation.invoke(ReflectionInvocationContext.java:158)
	at
org.apache.openejb.core.interceptor.ReflectionInvocationContext.proceed(ReflectionInvocationContext.java:141)
	at
org.apache.openejb.core.interceptor.InterceptorStack.invoke(InterceptorStack.java:67)
	at
org.apache.openejb.core.stateless.StatelessContainer._invoke(StatelessContainer.java:211)
	at
org.apache.openejb.core.stateless.StatelessContainer.invoke(StatelessContainer.java:169)
	at
org.apache.openejb.core.ivm.EjbObjectProxyHandler.businessMethod(EjbObjectProxyHandler.java:217)
	at
org.apache.openejb.core.ivm.EjbObjectProxyHandler._invoke(EjbObjectProxyHandler.java:77)
	at
org.apache.openejb.core.ivm.BaseEjbProxyHandler.invoke(BaseEjbProxyHandler.java:286)
	... 22 more
Caused by: java.lang.Exception: <openjpa-1.2.0-r422266:683325 fatal user
error> org.apache.openjpa.persistence.ArgumentException: Table
"OUTBOUNDCONFIGURATION" given for
"com.twcable.ivr.test.Outboundconfiguration" does not exist.
	at
org.apache.openjpa.util.Exceptions.replaceNestedThrowables(Exceptions.java:249)
	at
org.apache.openjpa.persistence.ArgumentException.writeObject(ArgumentException.java:107)
	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:585)
	at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:917)
	at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1339)
	at
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
	at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
	at
java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
	at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
	at
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
	at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
	at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:302)
	at
org.apache.openejb.core.ivm.BaseEjbProxyHandler.copyObj(BaseEjbProxyHandler.java:506)
	at
org.apache.openejb.core.ivm.BaseEjbProxyHandler.copy(BaseEjbProxyHandler.java:306)
	at
org.apache.openejb.core.ivm.BaseEjbProxyHandler.invoke(BaseEjbProxyHandler.java:290)
	... 22 more


I don't know why it can't find the table.  It's not in my logon schema, but
I have specified it in my persistence.xml file.  I've tried specifying the
table in the persistence.xml properties (now I'm just specifying the
schemas, and that's recognized) , using annotations, orm.xml , all to no
avail.

Here's the trace log from JPA:

15  ScrapEjb  TRACE  [main] openjpa.Runtime - Setting the following
properties from "?" into configuration:
{openjpa.jdbc.SynchronizeMappings=validate,
openjpa.ConnectionFactory=org.apache.openejb.resource.jdbc.BasicManagedDataSource@17c398e,
openjpa.ConnectionFactory2=org.apache.openejb.resource.jdbc.BasicDataSource@a69b6b,
openjpa.Log=File=/tmp/org.apache.openjpa.log, DefaultLevel=TRACE,
Runtime=TRACE, Tool=TRACE, SQL=TRACE,
openjpa.MetaDataFactory=jpa(Files=/C:/eclipse-jee-ganymede-SR1/workspace/ScrapEjb/build/classes/,
Types=com.twcable.ivr.test.Outboundconfiguration),
javax.persistence.provider=org.apache.openjpa.persistence.PersistenceProviderImpl,
openjpa.ConnectionFactoryMode=managed, openjpa.TransactionMode=managed,
openjpa.jdbc.Schemas=SCHEDULER,SURVEY,CTI, openjpa.Id=ScrapEjb,
openjpa.ClassResolver=org.apache.openjpa.persistence.PersistenceUnitInfoImpl$ClassResolverImpl@1fc468e}
31  ScrapEjb  TRACE  [main] openjpa.Runtime - No cache marshaller found for
id org.apache.openjpa.conf.MetaDataCacheMaintenance.
140  ScrapEjb  TRACE  [main] openjpa.MetaData - Scanning directory
"C:\eclipse-jee-ganymede-SR1\workspace\ScrapEjb\build\classes" for
persistent types.
171  ScrapEjb  TRACE  [main] openjpa.MetaData - Skipping persistent type
location association for location
"file:/C:/eclipse-jee-ganymede-SR1/workspace/ScrapEjb/build/classes/com/twcable/ivr/test/Outboundconfiguration.class"
since it is a class, and will not need to be re-parsed later.
171  ScrapEjb  TRACE  [main] openjpa.MetaData - Scan of
"C:\eclipse-jee-ganymede-SR1\workspace\ScrapEjb\build\classes" found
persistent types [com.twcable.ivr.test.Outboundconfiguration].
171  ScrapEjb  TRACE  [main] openjpa.MetaData - Scanning resource
"META-INF/orm.xml" for persistent types.
265  ScrapEjb  TRACE  [main] openjpa.MetaData - Scan of "META-INF/orm.xml"
found persistent types [Ljava.lang.String;@1299f7e.
265  ScrapEjb  TRACE  [main] openjpa.MetaData - Mapping resource location
"file:/C:/eclipse-jee-ganymede-SR1/workspace/ScrapEjb/build/classes/META-INF/orm.xml"
to persistent types "[]".
265  ScrapEjb  TRACE  [main] openjpa.MetaData - Scan of "META-INF/orm.xml"
found persistent types [Ljava.lang.String;@1a631cc.
265  ScrapEjb  TRACE  [main] openjpa.MetaData - Mapping resource location
"file:/C:/eclipse-jee-ganymede-SR1/workspace/ScrapEjb/build/classes/META-INF/orm.xml"
to persistent types "[]".
265  ScrapEjb  TRACE  [main] openjpa.MetaData - parsePersistentTypeNames()
found [com.twcable.ivr.test.Outboundconfiguration].
265  ScrapEjb  TRACE  [main] openjpa.MetaData - Found 1 classes with
metadata in 125 milliseconds.
0  ScrapEjb  TRACE  [main] openjpa.Runtime - Setting the following
properties from "?" into configuration:
{openjpa.ConnectionFactory2=org.apache.openejb.resource.jdbc.BasicDataSource@a69b6b,
openjpa.ConnectionFactory=org.apache.openejb.resource.jdbc.BasicManagedDataSource@17c398e,
openjpa.BrokerFactory=jdbc,
openjpa.MetaDataFactory=jpa(Files=/C:/eclipse-jee-ganymede-SR1/workspace/ScrapEjb/build/classes/,
Types=com.twcable.ivr.test.Outboundconfiguration),
javax.persistence.provider=org.apache.openjpa.persistence.PersistenceProviderImpl,
openjpa.ConnectionFactoryMode=managed, openjpa.TransactionMode=managed,
openjpa.jdbc.Schemas=SCHEDULER,SURVEY,CTI, openjpa.Id=ScrapEjb,
openjpa.ClassResolver=org.apache.openjpa.persistence.PersistenceUnitInfoImpl$ClassResolverImpl@1fc468e,
openjpa.jdbc.SynchronizeMappings=validate,
openjpa.BrokerImpl=non-finalizing,
openjpa.Log=File=/tmp/org.apache.openjpa.log, DefaultLevel=TRACE,
Runtime=TRACE, Tool=TRACE, SQL=TRACE}
703  ScrapEjb  TRACE  [main] openjpa.Enhance -
"com.twcable.ivr.test.Outboundconfiguration" requires runtime enhancement:
true
843  ScrapEjb  TRACE  [main] openjpa.MetaData - Loading metadata for "class
com.twcable.ivr.test.Outboundconfiguration" under mode "[META][QUERY]".
906  ScrapEjb  TRACE  [main] openjpa.MetaData - Parsing resource
"file:/C:/eclipse-jee-ganymede-SR1/workspace/ScrapEjb/build/classes/META-INF/orm.xml".
1062  ScrapEjb  TRACE  [main] openjpa.MetaData - Finished parsing metadata
resource
"file:/C:/eclipse-jee-ganymede-SR1/workspace/ScrapEjb/build/classes/META-INF/orm.xml".
1062  ScrapEjb  TRACE  [main] openjpa.MetaData - Parsing class
"com.twcable.ivr.test.Outboundconfiguration".
1062  ScrapEjb  TRACE  [main] openjpa.MetaData - Parsing package
"com.twcable.ivr.test.Outboundconfiguration".
1093  ScrapEjb  TRACE  [main] openjpa.MetaData - Generating default metadata
for type "com.twcable.ivr.test.Outboundconfiguration".
1093  ScrapEjb  TRACE  [main] openjpa.MetaData - Using reflection for
metadata generation.
1124  ScrapEjb  TRACE  [main] openjpa.MetaData - Set persistence-capable
superclass of "com.twcable.ivr.test.Outboundconfiguration" to "null".
1124  ScrapEjb  TRACE  [main] openjpa.MetaData - Resolving metadata for
"com.twcable.ivr.test.Outboundconfiguration@21975073".
1124  ScrapEjb  TRACE  [main] openjpa.MetaData - 	Resolving field
"com.twcable.ivr.test.Outboundconfiguration@21975073.parameter".
1140  ScrapEjb  TRACE  [main] openjpa.MetaData - 	Resolving field
"com.twcable.ivr.test.Outboundconfiguration@21975073.value".
1156  ScrapEjb  TRACE  [main] openjpa.Enhance - Enhancing type "class
com.twcable.ivr.test.Outboundconfiguration".
906  ScrapEjb  INFO   [main] openjpa.Runtime - Starting OpenJPA 1.2.0
906  ScrapEjb  TRACE  [main] openjpa.Runtime - Properties:
openjpa.EntityManagerFactory: default
openjpa.DataCache: false
openjpa.MetaDataFactory:
jpa(Files=/C:/eclipse-jee-ganymede-SR1/workspace/ScrapEjb/build/classes/,
Types=com.twcable.ivr.test.Outboundconfiguration)
openjpa.InverseManager: false
openjpa.ReadLockLevel: read
openjpa.jdbc.SubclassFetchMode: join
openjpa.DataCacheManager: default
openjpa.RefreshFromDataCache: false
openjpa.jdbc.UpdateManager: default
openjpa.jdbc.SynchronizeMappings: validate
openjpa.NontransactionalRead: true
openjpa.QueryCompilationCache: true
openjpa.MaxFetchDepth: -1
openjpa.RetainState: true
openjpa.jdbc.QuerySQLCache: true
openjpa.DynamicDataStructs: false
openjpa.BrokerFactory: jdbc
openjpa.WriteLockLevel: write
openjpa.ManagedRuntime: auto
openjpa.jdbc.EagerFetchMode: parallel
openjpa.RestoreState: immutable
openjpa.jdbc.SchemaFactory: dynamic
openjpa.LockManager: version
openjpa.BrokerImpl: non-finalizing
openjpa.NontransactionalWrite: true
openjpa.MetaDataRepository: default
openjpa.Log: true(File=/tmp/org.apache.openjpa.log, DefaultLevel=TRACE,
Runtime=TRACE, Tool=TRACE, SQL=TRACE)
openjpa.jdbc.ResultSetType: forward-only
openjpa.AutoDetach: 
openjpa.ConnectionRetainMode: on-demand
openjpa.RuntimeUnenhancedClasses: supported
openjpa.SavepointManager: in-mem
openjpa.Optimistic: true
openjpa.ConnectionFactoryMode: managed
openjpa.Sequence: table
openjpa.FetchGroups: default
openjpa.jdbc.Schemas: SCHEDULER, SURVEY, CTI
openjpa.Id: ScrapEjb
openjpa.OrphanedKeyAction: log
openjpa.FlushBeforeQueries: true
openjpa.AutoClear: datastore
openjpa.Compatibility: default
openjpa.jdbc.LRSSize: query
openjpa.DetachState: loaded
openjpa.Multithreaded: false
openjpa.FetchBatchSize: -1
openjpa.jdbc.SQLFactory: default
openjpa.IgnoreChanges: false
openjpa.jdbc.MappingDefaults: jpa
openjpa.TransactionMode: managed
openjpa.RetryClassRegistration: false
openjpa.jdbc.FetchDirection: forward
openjpa.ClassResolver:
org.apache.openjpa.persistence.PersistenceUnitInfoImpl$ClassResolverImpl
openjpa.LockTimeout: -1
openjpa.DataCacheTimeout: -1
openjpa.QueryCache: true
openjpa.jdbc.DriverDataSource: simple
openjpa.jdbc.TransactionIsolation: default
openjpa.ProxyManager: default
906  ScrapEjb  TRACE  [main] openjpa.Runtime - No cache marshaller found for
id org.apache.openjpa.conf.MetaDataCacheMaintenance.
968  ScrapEjb  TRACE  [main] openjpa.MetaData - Using metadata factory
"org.apache.openjpa.persistence.jdbc.PersistenceMappingFactory@e6361e".
984  ScrapEjb  TRACE  [main] openjpa.jdbc.JDBC - OpenJPA will now connect to
the database to attempt to determine what type of database dictionary to
use. You may prevent this connection in the future by setting your
openjpa.jdbc.DBDictionary configuration property to the appropriate value
for your database (see the documentation for available values).
1500  ScrapEjb  INFO   [main] openjpa.jdbc.JDBC - Using dictionary class
"org.apache.openjpa.jdbc.sql.HSQLDictionary" (HSQL Database Engine 1.8.0
,HSQL Database Engine Driver 1.8.0).
1546  ScrapEjb  TRACE  [main] openjpa.jdbc.JDBC - catalogSeparator: 
catalogTerm: 
databaseProductName: HSQL Database Engine
databaseProductVersion: 1.8.0
driverName: HSQL Database Engine Driver
driverVersion: 1.8.0
extraNameCharacters: 
identifierQuoteString: "
numericFunctions:
ABS,ACOS,ASIN,ATAN,ATAN2,CEILING,COS,COT,DEGREES,EXP,FLOOR,LOG,LOG10,MOD,PI,POWER,RADIANS,RAND,ROUND,SIGN,SIN,SQRT,TAN,TRUNCATE,BITAND,BITOR,BITXOR,ROUNDMAGIC
procedureTerm: 
schemaTerm: SCHEMA
searchStringEscape: \
sqlKeywords:
BEFORE,BIGINT,BINARY,CACHED,DATETIME,LIMIT,LONGVARBINARY,LONGVARCHAR,OBJECT,OTHER,SAVEPOINT,TEMP,TEXT,TOP,TRIGGER,TINYINT,VARBINARY,VARCHAR_IGNORECASE
stringFunctions:
ASCII,BIT_LENGTH,CHAR,CHAR_LENGTH,CHARACTER_LENGTH,CONCAT,DIFFERENCE,HEXTORAW,INSERT,LCASE,LEFT,LENGTH,LOCATE,LTRIM,OCTET_LENGTH,RAWTOHEX,REPEAT,REPLACE,RIGHT,RTRIM,SOUNDEX,SPACE,SUBSTR,SUBSTRING,UCASE,LOWER,UPPER
systemFunctions: DATABASE,USER,IDENTITY
timeDateFunctions:
CURDATE,CURTIME,DATEDIFF,DAYNAME,DAY,DAYOFMONTH,DAYOFWEEK,DAYOFYEAR,HOUR,MINUTE,MONTH,MONTHNAME,NOW,QUARTER,SECOND,WEEK,YEAR,TO_CHAR
url: jdbc:hsqldb:mem:hsqldb
userName: SA
defaultTransactionIsolation: 1
driverMajorVersion: 1
driverMinorVersion: 8
maxBinaryLiteralLength: 0
maxCatalogNameLength: 0
maxCharLiteralLength: 0
maxColumnNameLength: 0
maxColumnsInGroupBy: 0
maxColumnsInIndex: 0
maxColumnsInOrderBy: 0
maxColumnsInSelect: 0
maxColumnsInTable: 0
maxConnections: 0
maxCursorNameLength: 0
maxIndexLength: 0
maxProcedureNameLength: 0
maxRowSize: 0
maxSchemaNameLength: 0
maxStatementLength: 0
maxStatements: 0
maxTableNameLength: 0
maxTablesInSelect: 0
maxUserNameLength: 0
isCatalogAtStart: false
isReadOnly: false
nullPlusNonNullIsNull: true
nullsAreSortedAtEnd: false
nullsAreSortedAtStart: false
nullsAreSortedHigh: false
nullsAreSortedLow: true
storesLowerCaseIdentifiers: false
storesLowerCaseQuotedIdentifiers: false
storesMixedCaseIdentifiers: false
storesMixedCaseQuotedIdentifiers: false
storesUpperCaseIdentifiers: true
storesUpperCaseQuotedIdentifiers: false
supportsAlterTableWithAddColumn: true
supportsAlterTableWithDropColumn: true
supportsANSI92EntryLevelSQL: false
supportsANSI92FullSQL: false
supportsANSI92IntermediateSQL: false
supportsCatalogsInDataManipulation: false
supportsCatalogsInIndexDefinitions: false
supportsCatalogsInPrivilegeDefinitions: false
supportsCatalogsInProcedureCalls: false
supportsCatalogsInTableDefinitions: false
supportsColumnAliasing: true
supportsConvert: true
supportsCoreSQLGrammar: true
supportsCorrelatedSubqueries: true
supportsDataDefinitionAndDataManipulationTransactions: false
supportsDataManipulationTransactionsOnly: true
supportsDifferentTableCorrelationNames: true
supportsExpressionsInOrderBy: true
supportsExtendedSQLGrammar: false
supportsFullOuterJoins: false
supportsGroupBy: true
supportsGroupByBeyondSelect: true
supportsGroupByUnrelated: true
supportsIntegrityEnhancementFacility: true
supportsLikeEscapeClause: true
supportsLimitedOuterJoins: true
supportsMinimumSQLGrammar: false
supportsMixedCaseIdentifiers: false
supportsMixedCaseQuotedIdentifiers: true
supportsMultipleResultSets: false
supportsMultipleTransactions: true
supportsNonNullableColumns: true
supportsOpenCursorsAcrossCommit: false
supportsOpenCursorsAcrossRollback: false
supportsOpenStatementsAcrossCommit: true
supportsOpenStatementsAcrossRollback: true
supportsOrderByUnrelated: true
supportsOuterJoins: true
supportsPositionedDelete: false
supportsPositionedUpdate: false
supportsSchemasInDataManipulation: false
supportsSchemasInIndexDefinitions: true
supportsSchemasInPrivilegeDefinitions: true
supportsSchemasInProcedureCalls: false
supportsSchemasInTableDefinitions: true
supportsSelectForUpdate: false
supportsStoredProcedures: true
supportsSubqueriesInComparisons: true
supportsSubqueriesInExists: true
supportsSubqueriesInIns: true
supportsSubqueriesInQuantifieds: true
supportsTableCorrelationNames: true
supportsTransactions: true
supportsUnion: true
supportsUnionAll: true
usesLocalFilePerTable: false
usesLocalFiles: false
allProceduresAreCallable: true
allTablesAreSelectable: true
dataDefinitionCausesTransactionCommit: true
dataDefinitionIgnoredInTransactions: false
doesMaxRowSizeIncludeBlobs: true
supportsBatchUpdates: true
1546  ScrapEjb  TRACE  [main] openjpa.jdbc.JDBC - Initial connection
autoCommit: false, holdability: 1, TransactionIsolation: 2
1546  ScrapEjb  TRACE  [main] openjpa.jdbc.JDBC - <t 26914830, conn 0> [0
ms] close
1609  ScrapEjb  TRACE  [main] openjpa.jdbc.JDBC - <t 26914830, conn 0> [0
ms] close
1609  ScrapEjb  TRACE  [main] openjpa.jdbc.JDBC - DataSource connection
setAutoCommit to "true"
1640  ScrapEjb  TRACE  [main] openjpa.jdbc.JDBC - <t 26914830, conn 0> [0
ms] close
1703  ScrapEjb  TRACE  [main] openjpa.MetaData - Scanning directory
"C:\eclipse-jee-ganymede-SR1\workspace\ScrapEjb\build\classes" for
persistent types.
1718  ScrapEjb  TRACE  [main] openjpa.MetaData - Skipping persistent type
location association for location
"file:/C:/eclipse-jee-ganymede-SR1/workspace/ScrapEjb/build/classes/com/twcable/ivr/test/Outboundconfiguration.class"
since it is a class, and will not need to be re-parsed later.
1718  ScrapEjb  TRACE  [main] openjpa.MetaData - Scan of
"C:\eclipse-jee-ganymede-SR1\workspace\ScrapEjb\build\classes" found
persistent types [com.twcable.ivr.test.Outboundconfiguration].
1718  ScrapEjb  TRACE  [main] openjpa.MetaData - Scanning resource
"META-INF/orm.xml" for persistent types.
1718  ScrapEjb  TRACE  [main] openjpa.MetaData - Scan of "META-INF/orm.xml"
found persistent types [Ljava.lang.String;@178feba.
1718  ScrapEjb  TRACE  [main] openjpa.MetaData - Mapping resource location
"file:/C:/eclipse-jee-ganymede-SR1/workspace/ScrapEjb/build/classes/META-INF/orm.xml"
to persistent types "[]".
1718  ScrapEjb  TRACE  [main] openjpa.MetaData - Scan of "META-INF/orm.xml"
found persistent types [Ljava.lang.String;@9b86ea.
1718  ScrapEjb  TRACE  [main] openjpa.MetaData - Mapping resource location
"file:/C:/eclipse-jee-ganymede-SR1/workspace/ScrapEjb/build/classes/META-INF/orm.xml"
to persistent types "[]".
1718  ScrapEjb  TRACE  [main] openjpa.MetaData - parsePersistentTypeNames()
found [com.twcable.ivr.test.Outboundconfiguration].
1718  ScrapEjb  TRACE  [main] openjpa.MetaData - Found 1 classes with
metadata in 15 milliseconds.
1734  ScrapEjb  TRACE  [main] openjpa.Runtime - No cache marshaller found
for id org.apache.openjpa.conf.MetaDataCacheMaintenance.
1734  ScrapEjb  TRACE  [main] openjpa.MetaData - Using metadata factory
"org.apache.openjpa.persistence.jdbc.PersistenceMappingFactory@189cab".
1734  ScrapEjb  TRACE  [main] openjpa.MetaData - Loading metadata for "class
com.twcable.ivr.test.Outboundconfiguration" under mode "[META][QUERY]".
1734  ScrapEjb  TRACE  [main] openjpa.MetaData - Scanning directory
"C:\eclipse-jee-ganymede-SR1\workspace\ScrapEjb\build\classes" for
persistent types.
1734  ScrapEjb  TRACE  [main] openjpa.MetaData - Skipping persistent type
location association for location
"file:/C:/eclipse-jee-ganymede-SR1/workspace/ScrapEjb/build/classes/com/twcable/ivr/test/Outboundconfiguration.class"
since it is a class, and will not need to be re-parsed later.
1734  ScrapEjb  TRACE  [main] openjpa.MetaData - Scan of
"C:\eclipse-jee-ganymede-SR1\workspace\ScrapEjb\build\classes" found
persistent types [com.twcable.ivr.test.Outboundconfiguration].
1734  ScrapEjb  TRACE  [main] openjpa.MetaData - Scanning resource
"META-INF/orm.xml" for persistent types.
1750  ScrapEjb  TRACE  [main] openjpa.MetaData - Scan of "META-INF/orm.xml"
found persistent types [Ljava.lang.String;@767fb3.
1750  ScrapEjb  TRACE  [main] openjpa.MetaData - Mapping resource location
"file:/C:/eclipse-jee-ganymede-SR1/workspace/ScrapEjb/build/classes/META-INF/orm.xml"
to persistent types "[]".
1750  ScrapEjb  TRACE  [main] openjpa.MetaData - Scan of "META-INF/orm.xml"
found persistent types [Ljava.lang.String;@1b9e7fc.
1750  ScrapEjb  TRACE  [main] openjpa.MetaData - Mapping resource location
"file:/C:/eclipse-jee-ganymede-SR1/workspace/ScrapEjb/build/classes/META-INF/orm.xml"
to persistent types "[]".
1750  ScrapEjb  TRACE  [main] openjpa.MetaData - parsePersistentTypeNames()
found [com.twcable.ivr.test.Outboundconfiguration].
1750  ScrapEjb  TRACE  [main] openjpa.MetaData - Found 1 classes with
metadata in 16 milliseconds.
1828  ScrapEjb  TRACE  [main] openjpa.MetaData - Parsing resource
"file:/C:/eclipse-jee-ganymede-SR1/workspace/ScrapEjb/build/classes/META-INF/orm.xml".
1890  ScrapEjb  TRACE  [main] openjpa.MetaData - Finished parsing metadata
resource
"file:/C:/eclipse-jee-ganymede-SR1/workspace/ScrapEjb/build/classes/META-INF/orm.xml".
1890  ScrapEjb  TRACE  [main] openjpa.MetaData - Parsing class
"com.twcable.ivr.test.Outboundconfiguration".
1890  ScrapEjb  TRACE  [main] openjpa.MetaData - Parsing package
"com.twcable.ivr.test.Outboundconfiguration".
1906  ScrapEjb  TRACE  [main] openjpa.MetaData - Generating default metadata
for type "com.twcable.ivr.test.Outboundconfiguration".
1937  ScrapEjb  TRACE  [main] openjpa.MetaData - Set persistence-capable
superclass of "com.twcable.ivr.test.Outboundconfiguration" to "null".
1937  ScrapEjb  TRACE  [main] openjpa.MetaData - Resolving metadata for
"com.twcable.ivr.test.Outboundconfiguration@1766184".
1937  ScrapEjb  TRACE  [main] openjpa.MetaData - 	Resolving field
"com.twcable.ivr.test.Outboundconfiguration@1766184.parameter".
1937  ScrapEjb  TRACE  [main] openjpa.MetaData - 	Resolving field
"com.twcable.ivr.test.Outboundconfiguration@1766184.value".
1937  ScrapEjb  TRACE  [main] openjpa.MetaData - Preparing mapping for
"com.twcable.ivr.test.Outboundconfiguration".
1953  ScrapEjb  TRACE  [main] openjpa.jdbc.Schema - Reading table
information for schema name "SCHEDULER", table name "OUTBOUNDCONFIGURATION".
1953  ScrapEjb  TRACE  [main] openjpa.jdbc.JDBC - <t 26914830, conn
29450443> getColumns: null, SCHEDULER, OUTBOUNDCONFIGURATION, null
2015  ScrapEjb  TRACE  [main] openjpa.jdbc.JDBC - <t 26914830, conn 0> [0
ms] close
2031  ScrapEjb  TRACE  [main] openjpa.MetaData - Resolving mapping for
"com.twcable.ivr.test.Outboundconfiguration@1766184".
2031  ScrapEjb  TRACE  [main] openjpa.jdbc.Schema - Reading table
information for schema name "SCHEDULER", table name "OUTBOUNDCONFIGURATION".
<-- That looks promising...
2031  ScrapEjb  TRACE  [main] openjpa.jdbc.JDBC - <t 26914830, conn
29450443> getColumns: null, SCHEDULER, OUTBOUNDCONFIGURATION, null
2031  ScrapEjb  TRACE  [main] openjpa.jdbc.JDBC - <t 26914830, conn 0> [0
ms] close

Perhaps I have a permissions problem in the DB?
-- 
View this message in context: http://n2.nabble.com/Schema-is-ignored-in-my-unit-testing-tp1558133p1558133.html
Sent from the OpenJPA Users mailing list archive at Nabble.com.


Mime
View raw message