Hi

 

I have been writing a DBDictionary for the Ingres database and have been
running the test cases.  Ingres supports 32 character table names, and
this has been set in the dictionary.  However some tests have hit an
error whereby the table name is too long for the database.

 

I notice in the DBDictionary class there is a method called
"getValidTableName" but this clearly isn't being used since it is trying
to use a table name which is too long.  Other databases (such as Oracle)
also have quite a short maximum length for table names, so this problem
must be able to overcome, but I can't see anything in other Dictionary
classes.

 

Is there anything special I should be doing to run the tests?  I am
currently running through mvn test.

 

My draft DBDictionary class is attached along with a sample surefire
report (with my username and password removed!)

Alan

Alan Raison

 

<?xml version="1.0" encoding="UTF-8" ?>
<testsuite failures="0" time="648.578" errors="5" skipped="0" tests="5" name="org.apache.openjpa.persistence.kernel.TestExtents2">
  <properties>
    <property name="java.runtime.name" value="Java(TM) SE Runtime Environment"/>
    <property name="sun.boot.library.path" value="C:\Program Files\Java\jdk1.6.0_02\jre\bin"/>
    <property name="java.vm.version" value="1.6.0_02-b05"/>
    <property name="java.vm.vendor" value="Sun Microsystems Inc."/>
    <property name="java.vendor.url" value="http://java.sun.com/"/>
    <property name="path.separator" value=";"/>
    <property name="java.vm.name" value="Java HotSpot(TM) Client VM"/>
    <property name="file.encoding.pkg" value="sun.io"/>
    <property name="user.country" value="GB"/>
    <property name="sun.java.launcher" value="SUN_STANDARD"/>
    <property name="sun.os.patch.level" value="Service Pack 3"/>
    <property name="java.vm.specification.name" value="Java Virtual Machine Specification"/>
    <property name="user.dir" value="C:\java\temp-openjpa\openjpa-persistence-jdbc"/>
    <property name="java.runtime.version" value="1.6.0_02-b05"/>
    <property name="java.awt.graphicsenv" value="sun.awt.Win32GraphicsEnvironment"/>
    <property name="basedir" value="C:\java\temp-openjpa\openjpa-persistence-jdbc"/>
    <property name="java.endorsed.dirs" value="C:\Program Files\Java\jdk1.6.0_02\jre\lib\endorsed"/>
    <property name="os.arch" value="x86"/>
    <property name="java.io.tmpdir" value="C:\DOCUME~1\raial01\LOCALS~1\Temp\"/>
    <property name="openjpa.jdbc.DBDictionary" value="org.apache.openjpa.jdbc.sql.IngresDictionary"/>
    <property name="line.separator" value="
"/>
    <property name="java.vm.specification.vendor" value="Sun Microsystems Inc."/>
    <property name="user.variant" value=""/>
    <property name="openjpa.ConnectionUserName" value="USERNAME"/>
    <property name="os.name" value="Windows XP"/>
    <property name="classworlds.conf" value="C:\Program Files\Maven\bin\..\bin\m2.conf"/>
    <property name="sun.jnu.encoding" value="Cp1252"/>
    <property name="java.library.path" value="C:\Program Files\Java\jdk1.6.0_02\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\Python25\;C:\Program Files\Support Tools\;C:\Program Files\Ingres\IngresII\ingres\bin;C:\Program Files\Ingres\IngresII\ingres\utility;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\system32\WindowsPowerShell\v1.0;C:\PROGRA~1\COMMON~1\MUVEET~1\030625;C:\Program Files\Common Files\Teleca Shared;C:\Program Files\Groovy\Groovy-1.5.1\bin;C:\Program Files\TortoiseHg;C:\Program Files\TortoiseSVN\bin;C:\Program Files\Putty;C:\Program Files\Nmap;C:\Program Files\cwRsync\bin;C:\Program Files\GNU;C:\Program Files\Subversion\bin;C:\Program Files\Maven\bin;;C:\PROGRA~1\COMMON~1\MUVEET~1\030625"/>
    <property name="surefire.test.class.path" value="C:\java\temp-openjpa\openjpa-persistence-jdbc\target\test-classes;C:\java\temp-openjpa\openjpa-persistence-jdbc\target\classes;\java\repo\org\apache\openjpa\openjpa-jdbc\1.2.0\openjpa-jdbc-1.2.0.jar;\java\repo\org\apache\openjpa\openjpa-kernel\1.2.0\openjpa-kernel-1.2.0.jar;\java\repo\org\apache\openjpa\openjpa-lib\1.2.0\openjpa-lib-1.2.0.jar;\java\repo\commons-logging\commons-logging\1.0.4\commons-logging-1.0.4.jar;\java\repo\log4j\log4j\1.2.13\log4j-1.2.13.jar;\java\repo\commons-lang\commons-lang\2.1\commons-lang-2.1.jar;\java\repo\ant\ant\1.6.5\ant-1.6.5.jar;\java\repo\commons-collections\commons-collections\3.2\commons-collections-3.2.jar;\java\repo\net\sourceforge\serp\serp\1.13.1\serp-1.13.1.jar;\java\repo\junit\junit\3.8.1\junit-3.8.1.jar;\java\repo\org\apache\geronimo\specs\geronimo-jms_1.1_spec\1.0.1\geronimo-jms_1.1_spec-1.0.1.jar;\java\repo\org\apache\geronimo\specs\geronimo-jta_1.1_spec\1.1\geronimo-jta_1.1_spec-1.1.jar;\java\repo\commons-pool\commons-pool\1.3\commons-pool-1.3.jar;\java\repo\javax\xml\bind\jaxb-api\2.0\jaxb-api-2.0.jar;\java\repo\javax\xml\bind\jsr173_api\1.0\jsr173_api-1.0.jar;\java\repo\javax\activation\activation\1.1\activation-1.1.jar;\java\repo\hsqldb\hsqldb\1.8.0.1\hsqldb-1.8.0.1.jar;\java\repo\postgresql\postgresql\8.1-407.jdbc3\postgresql-8.1-407.jdbc3.jar;\java\repo\org\apache\openjpa\openjpa-persistence\1.2.0\openjpa-persistence-1.2.0.jar;\java\repo\org\apache\geronimo\specs\geronimo-jpa_3.0_spec\1.0\geronimo-jpa_3.0_spec-1.0.jar;\java\repo\commons-dbcp\commons-dbcp\1.2.1\commons-dbcp-1.2.1.jar;\java\repo\xml-apis\xml-apis\1.0.b2\xml-apis-1.0.b2.jar;\java\repo\xerces\xercesImpl\2.0.2\xercesImpl-2.0.2.jar;\java\repo\jakarta-regexp\jakarta-regexp\1.4\jakarta-regexp-1.4.jar;\java\repo\com\ingres\jdbc\iijdbc\9.2.0\iijdbc-9.2.0.jar;\java\repo\com\ingres\openjpa-jdbc-ingres\0.0.1-SNAPSHOT\openjpa-jdbc-ingres-0.0.1-SNAPSHOT.jar;"/>
    <property name="openjpa.ConnectionPassword" value="PASSWORD"/>
    <property name="openjpa.ConnectionURL" value="jdbc:ingres://localhost:II7/localdb"/>
    <property name="openjpa.ConnectionDriverName" value="com.ingres.jdbc.IngresDriver"/>
    <property name="java.specification.name" value="Java Platform API Specification"/>
    <property name="java.class.version" value="50.0"/>
    <property name="sun.management.compiler" value="HotSpot Client Compiler"/>
    <property name="os.version" value="5.1"/>
    <property name="user.home" value="C:\Documents and Settings\raial01"/>
    <property name="user.timezone" value="Europe/London"/>
    <property name="java.awt.printerjob" value="sun.awt.windows.WPrinterJob"/>
    <property name="java.specification.version" value="1.6"/>
    <property name="file.encoding" value="Cp1252"/>
    <property name="user.name" value="raial01"/>
    <property name="java.class.path" value="C:\Program Files\Maven\bin\..\boot\classworlds-1.1.jar"/>
    <property name="openjpa.Log" value="DefaultLevel=INFO"/>
    <property name="java.vm.specification.version" value="1.0"/>
    <property name="sun.arch.data.model" value="32"/>
    <property name="java.home" value="C:\Program Files\Java\jdk1.6.0_02\jre"/>
    <property name="java.specification.vendor" value="Sun Microsystems Inc."/>
    <property name="user.language" value="en"/>
    <property name="awt.toolkit" value="sun.awt.windows.WToolkit"/>
    <property name="java.vm.info" value="mixed mode"/>
    <property name="java.version" value="1.6.0_02"/>
    <property name="java.ext.dirs" value="C:\Program Files\Java\jdk1.6.0_02\jre\lib\ext;C:\WINDOWS\Sun\Java\lib\ext"/>
    <property name="sun.boot.class.path" value="C:\Program Files\Java\jdk1.6.0_02\jre\lib\resources.jar;C:\Program Files\Java\jdk1.6.0_02\jre\lib\rt.jar;C:\Program Files\Java\jdk1.6.0_02\jre\lib\sunrsasign.jar;C:\Program Files\Java\jdk1.6.0_02\jre\lib\jsse.jar;C:\Program Files\Java\jdk1.6.0_02\jre\lib\jce.jar;C:\Program Files\Java\jdk1.6.0_02\jre\lib\charsets.jar;C:\Program Files\Java\jdk1.6.0_02\jre\classes"/>
    <property name="java.vendor" value="Sun Microsystems Inc."/>
    <property name="maven.home" value="C:\Program Files\Maven\bin\.."/>
    <property name="localRepository" value="/java/repo"/>
    <property name="file.separator" value="\"/>
    <property name="derby.stream.error.file" value="target/derby.log"/>
    <property name="java.vendor.url.bug" value="http://java.sun.com/cgi-bin/bugreport.cgi"/>
    <property name="sun.cpu.endian" value="little"/>
    <property name="sun.io.unicode.encoding" value="UnicodeLittle"/>
    <property name="sun.desktop" value="windows"/>
    <property name="sun.cpu.isalist" value="pentium_pro+mmx pentium_pro pentium+mmx pentium i486 i386 i86"/>
  </properties>
  <testcase time="129.281" name="testProperties">
    <error message="Table name &quot;PersistentMapHolder_testPCIntfKeyPCValue&quot; is 40-character long. The database allows maximum 32-character for a table name. " type="&amp;openjpa-1.2.0-r422266">&amp;lt;openjpa-1.2.0-r422266:683325 nonfatal user error&amp;gt; org.apache.openjpa.persistence.ArgumentException: Table name &quot;PersistentMapHolder_testPCIntfKeyPCValue&quot; is 40-character long. The database allows maximum 32-character for a table name. 
	at org.apache.openjpa.jdbc.sql.DBDictionary.checkNameLength(DBDictionary.java:4557)
	at org.apache.openjpa.jdbc.sql.DBDictionary.getCreateTableSQL(DBDictionary.java:3068)
	at org.apache.openjpa.jdbc.schema.SchemaTool.createTable(SchemaTool.java:949)
	at org.apache.openjpa.jdbc.schema.SchemaTool.add(SchemaTool.java:526)
	at org.apache.openjpa.jdbc.schema.SchemaTool.add(SchemaTool.java:344)
	at org.apache.openjpa.jdbc.schema.SchemaTool.run(SchemaTool.java:321)
	at org.apache.openjpa.jdbc.meta.MappingTool.record(MappingTool.java:501)
	at org.apache.openjpa.jdbc.meta.MappingTool.record(MappingTool.java:453)
	at org.apache.openjpa.jdbc.kernel.JDBCBrokerFactory.synchronizeMappings(JDBCBrokerFactory.java:159)
	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:145)
	at org.apache.openjpa.persistence.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:56)
	at org.apache.openjpa.persistence.common.utils.AbstractTestCase.deleteAll(AbstractTestCase.java:170)
	at org.apache.openjpa.persistence.kernel.TestExtents2.setUp(TestExtents2.java:58)
	at junit.framework.TestCase.runBare(TestCase.java:125)
	at junit.framework.TestResult$1.protect(TestResult.java:106)
	at junit.framework.TestResult.runProtected(TestResult.java:124)
	at junit.framework.TestResult.run(TestResult.java:109)
	at junit.framework.TestCase.run(TestCase.java:118)
	at org.apache.openjpa.persistence.test.PersistenceTestCase.run(PersistenceTestCase.java:132)
	at junit.framework.TestSuite.runTest(TestSuite.java:208)
	at junit.framework.TestSuite.run(TestSuite.java:203)
	at sun.reflect.GeneratedMethodAccessor69.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:213)
	at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
	at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
	at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
	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.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:334)
	at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:980)
</error>
    <system-err>0  TestConv  INFO   [main] openjpa.Runtime - Starting OpenJPA 1.2.0
0  TestConv  INFO   [main] openjpa.jdbc.JDBC - Using dictionary class &quot;org.apache.openjpa.jdbc.sql.IngresDictionary&quot;.
844  TestConv  WARN   [main] openjpa.MetaData - OpenJPA cannot map field &quot;org.apache.openjpa.persistence.kernel.common.apps.PCClassPC.genericInterface&quot; efficiently.  It is of an unsupported type. The field value will be serialized to a BLOB by default.
844  TestConv  WARN   [main] openjpa.MetaData - OpenJPA cannot map field &quot;org.apache.openjpa.persistence.kernel.common.apps.PCClassPC.genericObject&quot; efficiently.  It is of an unsupported type. The field value will be serialized to a BLOB by default.
844  TestConv  WARN   [main] openjpa.MetaData - OpenJPA cannot map field &quot;org.apache.openjpa.persistence.kernel.common.apps.PCClassPC.serializableInterface&quot; efficiently.  It is of an unsupported type. The field value will be serialized to a BLOB by default.
875  TestConv  WARN   [main] openjpa.MetaData - OpenJPA cannot map field &quot;org.apache.openjpa.persistence.kernel.common.apps.BlobTest.blob&quot; efficiently.  It is of an unsupported type. The field value will be serialized to a BLOB by default.
1219  TestConv  WARN   [main] openjpa.MetaData - OpenJPA cannot map field &quot;org.apache.openjpa.persistence.kernel.common.apps.DetachSMPC.relSet&quot; efficiently.  It is of an unsupported type. The field value will be serialized to a BLOB by default.
</system-err>
  </testcase>
  <testcase time="129.235" name="testNoSubclasses">
    <error message="Table name &quot;PersistentMapHolder_testPCIntfKeyPCValue&quot; is 40-character long. The database allows maximum 32-character for a table name. " type="&amp;openjpa-1.2.0-r422266">&amp;lt;openjpa-1.2.0-r422266:683325 nonfatal user error&amp;gt; org.apache.openjpa.persistence.ArgumentException: Table name &quot;PersistentMapHolder_testPCIntfKeyPCValue&quot; is 40-character long. The database allows maximum 32-character for a table name. 
	at org.apache.openjpa.jdbc.sql.DBDictionary.checkNameLength(DBDictionary.java:4557)
	at org.apache.openjpa.jdbc.sql.DBDictionary.getCreateTableSQL(DBDictionary.java:3068)
	at org.apache.openjpa.jdbc.schema.SchemaTool.createTable(SchemaTool.java:949)
	at org.apache.openjpa.jdbc.schema.SchemaTool.add(SchemaTool.java:526)
	at org.apache.openjpa.jdbc.schema.SchemaTool.add(SchemaTool.java:344)
	at org.apache.openjpa.jdbc.schema.SchemaTool.run(SchemaTool.java:321)
	at org.apache.openjpa.jdbc.meta.MappingTool.record(MappingTool.java:501)
	at org.apache.openjpa.jdbc.meta.MappingTool.record(MappingTool.java:453)
	at org.apache.openjpa.jdbc.kernel.JDBCBrokerFactory.synchronizeMappings(JDBCBrokerFactory.java:159)
	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:145)
	at org.apache.openjpa.persistence.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:56)
	at org.apache.openjpa.persistence.common.utils.AbstractTestCase.deleteAll(AbstractTestCase.java:170)
	at org.apache.openjpa.persistence.kernel.TestExtents2.setUp(TestExtents2.java:58)
	at junit.framework.TestCase.runBare(TestCase.java:125)
	at junit.framework.TestResult$1.protect(TestResult.java:106)
	at junit.framework.TestResult.runProtected(TestResult.java:124)
	at junit.framework.TestResult.run(TestResult.java:109)
	at junit.framework.TestCase.run(TestCase.java:118)
	at org.apache.openjpa.persistence.test.PersistenceTestCase.run(PersistenceTestCase.java:132)
	at junit.framework.TestSuite.runTest(TestSuite.java:208)
	at junit.framework.TestSuite.run(TestSuite.java:203)
	at sun.reflect.GeneratedMethodAccessor69.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:213)
	at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
	at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
	at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
	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.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:334)
	at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:980)
</error>
    <system-err>0  TestConv  INFO   [main] openjpa.Runtime - Starting OpenJPA 1.2.0
0  TestConv  INFO   [main] openjpa.jdbc.JDBC - Using dictionary class &quot;org.apache.openjpa.jdbc.sql.IngresDictionary&quot;.
938  TestConv  WARN   [main] openjpa.MetaData - OpenJPA cannot map field &quot;org.apache.openjpa.persistence.kernel.common.apps.PCClassPC.genericInterface&quot; efficiently.  It is of an unsupported type. The field value will be serialized to a BLOB by default.
938  TestConv  WARN   [main] openjpa.MetaData - OpenJPA cannot map field &quot;org.apache.openjpa.persistence.kernel.common.apps.PCClassPC.genericObject&quot; efficiently.  It is of an unsupported type. The field value will be serialized to a BLOB by default.
938  TestConv  WARN   [main] openjpa.MetaData - OpenJPA cannot map field &quot;org.apache.openjpa.persistence.kernel.common.apps.PCClassPC.serializableInterface&quot; efficiently.  It is of an unsupported type. The field value will be serialized to a BLOB by default.
1516  TestConv  WARN   [main] openjpa.MetaData - OpenJPA cannot map field &quot;org.apache.openjpa.persistence.kernel.common.apps.BlobTest.blob&quot; efficiently.  It is of an unsupported type. The field value will be serialized to a BLOB by default.
1531  TestConv  WARN   [main] openjpa.MetaData - OpenJPA cannot map field &quot;org.apache.openjpa.persistence.kernel.common.apps.DetachSMPC.relSet&quot; efficiently.  It is of an unsupported type. The field value will be serialized to a BLOB by default.
</system-err>
  </testcase>
  <testcase time="130.593" name="testSubclasses">
    <error message="Table name &quot;PersistentMapHolder_testPCIntfKeyPCValue&quot; is 40-character long. The database allows maximum 32-character for a table name. " type="&amp;openjpa-1.2.0-r422266">&amp;lt;openjpa-1.2.0-r422266:683325 nonfatal user error&amp;gt; org.apache.openjpa.persistence.ArgumentException: Table name &quot;PersistentMapHolder_testPCIntfKeyPCValue&quot; is 40-character long. The database allows maximum 32-character for a table name. 
	at org.apache.openjpa.jdbc.sql.DBDictionary.checkNameLength(DBDictionary.java:4557)
	at org.apache.openjpa.jdbc.sql.DBDictionary.getCreateTableSQL(DBDictionary.java:3068)
	at org.apache.openjpa.jdbc.schema.SchemaTool.createTable(SchemaTool.java:949)
	at org.apache.openjpa.jdbc.schema.SchemaTool.add(SchemaTool.java:526)
	at org.apache.openjpa.jdbc.schema.SchemaTool.add(SchemaTool.java:344)
	at org.apache.openjpa.jdbc.schema.SchemaTool.run(SchemaTool.java:321)
	at org.apache.openjpa.jdbc.meta.MappingTool.record(MappingTool.java:501)
	at org.apache.openjpa.jdbc.meta.MappingTool.record(MappingTool.java:453)
	at org.apache.openjpa.jdbc.kernel.JDBCBrokerFactory.synchronizeMappings(JDBCBrokerFactory.java:159)
	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:145)
	at org.apache.openjpa.persistence.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:56)
	at org.apache.openjpa.persistence.common.utils.AbstractTestCase.deleteAll(AbstractTestCase.java:170)
	at org.apache.openjpa.persistence.kernel.TestExtents2.setUp(TestExtents2.java:58)
	at junit.framework.TestCase.runBare(TestCase.java:125)
	at junit.framework.TestResult$1.protect(TestResult.java:106)
	at junit.framework.TestResult.runProtected(TestResult.java:124)
	at junit.framework.TestResult.run(TestResult.java:109)
	at junit.framework.TestCase.run(TestCase.java:118)
	at org.apache.openjpa.persistence.test.PersistenceTestCase.run(PersistenceTestCase.java:132)
	at junit.framework.TestSuite.runTest(TestSuite.java:208)
	at junit.framework.TestSuite.run(TestSuite.java:203)
	at sun.reflect.GeneratedMethodAccessor69.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:213)
	at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
	at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
	at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
	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.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:334)
	at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:980)
</error>
    <system-err>0  TestConv  INFO   [main] openjpa.Runtime - Starting OpenJPA 1.2.0
0  TestConv  INFO   [main] openjpa.jdbc.JDBC - Using dictionary class &quot;org.apache.openjpa.jdbc.sql.IngresDictionary&quot;.
2218  TestConv  WARN   [main] openjpa.MetaData - OpenJPA cannot map field &quot;org.apache.openjpa.persistence.kernel.common.apps.PCClassPC.genericInterface&quot; efficiently.  It is of an unsupported type. The field value will be serialized to a BLOB by default.
2218  TestConv  WARN   [main] openjpa.MetaData - OpenJPA cannot map field &quot;org.apache.openjpa.persistence.kernel.common.apps.PCClassPC.genericObject&quot; efficiently.  It is of an unsupported type. The field value will be serialized to a BLOB by default.
2218  TestConv  WARN   [main] openjpa.MetaData - OpenJPA cannot map field &quot;org.apache.openjpa.persistence.kernel.common.apps.PCClassPC.serializableInterface&quot; efficiently.  It is of an unsupported type. The field value will be serialized to a BLOB by default.
2250  TestConv  WARN   [main] openjpa.MetaData - OpenJPA cannot map field &quot;org.apache.openjpa.persistence.kernel.common.apps.BlobTest.blob&quot; efficiently.  It is of an unsupported type. The field value will be serialized to a BLOB by default.
2265  TestConv  WARN   [main] openjpa.MetaData - OpenJPA cannot map field &quot;org.apache.openjpa.persistence.kernel.common.apps.DetachSMPC.relSet&quot; efficiently.  It is of an unsupported type. The field value will be serialized to a BLOB by default.
</system-err>
  </testcase>
  <testcase time="130.391" name="testContainsNewlyPersisted">
    <error message="Table name &quot;PersistentMapHolder_testPCIntfKeyPCValue&quot; is 40-character long. The database allows maximum 32-character for a table name. " type="&amp;openjpa-1.2.0-r422266">&amp;lt;openjpa-1.2.0-r422266:683325 nonfatal user error&amp;gt; org.apache.openjpa.persistence.ArgumentException: Table name &quot;PersistentMapHolder_testPCIntfKeyPCValue&quot; is 40-character long. The database allows maximum 32-character for a table name. 
	at org.apache.openjpa.jdbc.sql.DBDictionary.checkNameLength(DBDictionary.java:4557)
	at org.apache.openjpa.jdbc.sql.DBDictionary.getCreateTableSQL(DBDictionary.java:3068)
	at org.apache.openjpa.jdbc.schema.SchemaTool.createTable(SchemaTool.java:949)
	at org.apache.openjpa.jdbc.schema.SchemaTool.add(SchemaTool.java:526)
	at org.apache.openjpa.jdbc.schema.SchemaTool.add(SchemaTool.java:344)
	at org.apache.openjpa.jdbc.schema.SchemaTool.run(SchemaTool.java:321)
	at org.apache.openjpa.jdbc.meta.MappingTool.record(MappingTool.java:501)
	at org.apache.openjpa.jdbc.meta.MappingTool.record(MappingTool.java:453)
	at org.apache.openjpa.jdbc.kernel.JDBCBrokerFactory.synchronizeMappings(JDBCBrokerFactory.java:159)
	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:145)
	at org.apache.openjpa.persistence.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:56)
	at org.apache.openjpa.persistence.common.utils.AbstractTestCase.deleteAll(AbstractTestCase.java:170)
	at org.apache.openjpa.persistence.kernel.TestExtents2.setUp(TestExtents2.java:58)
	at junit.framework.TestCase.runBare(TestCase.java:125)
	at junit.framework.TestResult$1.protect(TestResult.java:106)
	at junit.framework.TestResult.runProtected(TestResult.java:124)
	at junit.framework.TestResult.run(TestResult.java:109)
	at junit.framework.TestCase.run(TestCase.java:118)
	at org.apache.openjpa.persistence.test.PersistenceTestCase.run(PersistenceTestCase.java:132)
	at junit.framework.TestSuite.runTest(TestSuite.java:208)
	at junit.framework.TestSuite.run(TestSuite.java:203)
	at sun.reflect.GeneratedMethodAccessor69.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:213)
	at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
	at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
	at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
	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.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:334)
	at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:980)
</error>
    <system-err>0  TestConv  INFO   [main] openjpa.Runtime - Starting OpenJPA 1.2.0
0  TestConv  INFO   [main] openjpa.jdbc.JDBC - Using dictionary class &quot;org.apache.openjpa.jdbc.sql.IngresDictionary&quot;.
422  TestConv  WARN   [main] openjpa.MetaData - OpenJPA cannot map field &quot;org.apache.openjpa.persistence.kernel.common.apps.PCClassPC.genericInterface&quot; efficiently.  It is of an unsupported type. The field value will be serialized to a BLOB by default.
422  TestConv  WARN   [main] openjpa.MetaData - OpenJPA cannot map field &quot;org.apache.openjpa.persistence.kernel.common.apps.PCClassPC.genericObject&quot; efficiently.  It is of an unsupported type. The field value will be serialized to a BLOB by default.
422  TestConv  WARN   [main] openjpa.MetaData - OpenJPA cannot map field &quot;org.apache.openjpa.persistence.kernel.common.apps.PCClassPC.serializableInterface&quot; efficiently.  It is of an unsupported type. The field value will be serialized to a BLOB by default.
453  TestConv  WARN   [main] openjpa.MetaData - OpenJPA cannot map field &quot;org.apache.openjpa.persistence.kernel.common.apps.BlobTest.blob&quot; efficiently.  It is of an unsupported type. The field value will be serialized to a BLOB by default.
469  TestConv  WARN   [main] openjpa.MetaData - OpenJPA cannot map field &quot;org.apache.openjpa.persistence.kernel.common.apps.DetachSMPC.relSet&quot; efficiently.  It is of an unsupported type. The field value will be serialized to a BLOB by default.
</system-err>
  </testcase>
  <testcase time="129.047" name="testNotContainsNewlyDeleted">
    <error message="Table name &quot;PersistentMapHolder_testPCIntfKeyPCValue&quot; is 40-character long. The database allows maximum 32-character for a table name. " type="&amp;openjpa-1.2.0-r422266">&amp;lt;openjpa-1.2.0-r422266:683325 nonfatal user error&amp;gt; org.apache.openjpa.persistence.ArgumentException: Table name &quot;PersistentMapHolder_testPCIntfKeyPCValue&quot; is 40-character long. The database allows maximum 32-character for a table name. 
	at org.apache.openjpa.jdbc.sql.DBDictionary.checkNameLength(DBDictionary.java:4557)
	at org.apache.openjpa.jdbc.sql.DBDictionary.getCreateTableSQL(DBDictionary.java:3068)
	at org.apache.openjpa.jdbc.schema.SchemaTool.createTable(SchemaTool.java:949)
	at org.apache.openjpa.jdbc.schema.SchemaTool.add(SchemaTool.java:526)
	at org.apache.openjpa.jdbc.schema.SchemaTool.add(SchemaTool.java:344)
	at org.apache.openjpa.jdbc.schema.SchemaTool.run(SchemaTool.java:321)
	at org.apache.openjpa.jdbc.meta.MappingTool.record(MappingTool.java:501)
	at org.apache.openjpa.jdbc.meta.MappingTool.record(MappingTool.java:453)
	at org.apache.openjpa.jdbc.kernel.JDBCBrokerFactory.synchronizeMappings(JDBCBrokerFactory.java:159)
	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:145)
	at org.apache.openjpa.persistence.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:56)
	at org.apache.openjpa.persistence.common.utils.AbstractTestCase.deleteAll(AbstractTestCase.java:170)
	at org.apache.openjpa.persistence.kernel.TestExtents2.setUp(TestExtents2.java:58)
	at junit.framework.TestCase.runBare(TestCase.java:125)
	at junit.framework.TestResult$1.protect(TestResult.java:106)
	at junit.framework.TestResult.runProtected(TestResult.java:124)
	at junit.framework.TestResult.run(TestResult.java:109)
	at junit.framework.TestCase.run(TestCase.java:118)
	at org.apache.openjpa.persistence.test.PersistenceTestCase.run(PersistenceTestCase.java:132)
	at junit.framework.TestSuite.runTest(TestSuite.java:208)
	at junit.framework.TestSuite.run(TestSuite.java:203)
	at sun.reflect.GeneratedMethodAccessor69.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:213)
	at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
	at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
	at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
	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.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:334)
	at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:980)
</error>
    <system-err>0  TestConv  INFO   [main] openjpa.Runtime - Starting OpenJPA 1.2.0
0  TestConv  INFO   [main] openjpa.jdbc.JDBC - Using dictionary class &quot;org.apache.openjpa.jdbc.sql.IngresDictionary&quot;.
562  TestConv  WARN   [main] openjpa.MetaData - OpenJPA cannot map field &quot;org.apache.openjpa.persistence.kernel.common.apps.PCClassPC.genericInterface&quot; efficiently.  It is of an unsupported type. The field value will be serialized to a BLOB by default.
562  TestConv  WARN   [main] openjpa.MetaData - OpenJPA cannot map field &quot;org.apache.openjpa.persistence.kernel.common.apps.PCClassPC.genericObject&quot; efficiently.  It is of an unsupported type. The field value will be serialized to a BLOB by default.
562  TestConv  WARN   [main] openjpa.MetaData - OpenJPA cannot map field &quot;org.apache.openjpa.persistence.kernel.common.apps.PCClassPC.serializableInterface&quot; efficiently.  It is of an unsupported type. The field value will be serialized to a BLOB by default.
594  TestConv  WARN   [main] openjpa.MetaData - OpenJPA cannot map field &quot;org.apache.openjpa.persistence.kernel.common.apps.BlobTest.blob&quot; efficiently.  It is of an unsupported type. The field value will be serialized to a BLOB by default.
625  TestConv  WARN   [main] openjpa.MetaData - OpenJPA cannot map field &quot;org.apache.openjpa.persistence.kernel.common.apps.DetachSMPC.relSet&quot; efficiently.  It is of an unsupported type. The field value will be serialized to a BLOB by default.
</system-err>
  </testcase>
</testsuite>

Reply via email to