Issue Details (XML | Word | Printable)

Key: JDO-114
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Erik Bengtson
Reporter: Michelle Caisse
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
JDO

Embedded mapping for fields of SimpleClass not recognized

Created: 05/Aug/05 08:31 AM   Updated: 23/Apr/06 02:59 AM
Return to search
Component/s: tck2
Affects Version/s: None
Fix Version/s: JDO 2 beta

Time Tracking:
Not Specified

Resolution Date: 23/Apr/06 02:59 AM


 Description  « Hide
Field mapped as embedded appears not to be recognized as such by JPOX, which generates a name for it that does not exist in the schema. Perhaps there is a mapping problem here, but I do not see it.
 
   [java] There was 1 error:
    [java] 1) test(org.apache.jdo.tck.models.fieldtypes.TestFieldsOfSimpleClass)javax.jdo.JDODataStoreException: Insert request failed: I
S17,SIMPLECLASS109,SIMPLE_CLASS150_IDENTIFIZS,SIMPLE_CLASS151_IDENTIFIZS,SIMPLECLASS93,SIMPLE_CLASS148_IDENTIFIZS,SIMPLE_CLASS166_IDENTIF
PLECLASS120,SIMPLECLASS47,SIMPLECLASS83,SIMPLECLASS41,SIMPLECLASS108,SIMPLECLASS54,SIMPLECLASS138,SIMPLECLASS53,SIMPLECLASS37,SIMPLECLASS
LECLASS18,SIMPLE_CLASS156_IDENTIFIZS,SIMPLECLASS77,SIMPLECLASS126,SIMPLECLASS119,SIMPLECLASS2,SIMPLECLASS13,SIMPLECLASS125,SIMPLECLASS12,
ASS38,SIMPLE_CLASS165_IDENTIFIZS,SIMPLECLASS85,SIMPLECLASS140,SIMPLE_CLASS145_IDENTIFIZS,SIMPLECLASS21,SIMPLE_CLASS160_IDENTIFIZS,SIMPLEC
47_IDENTIFIZS,SIMPLECLASS56,SIMPLECLASS139,SIMPLECLASS84,SIMPLECLASS22,SIMPLECLASS129,SIMPLECLASS128,SIMPLECLASS30,SIMPLECLASS52,SIMPLECL
IMPLECLASS92,SIMPLECLASS1,SIMPLECLASS76,SIMPLECLASS5,SIMPLECLASS4,SIMPLE_CLASS163_IDENTIFIZS,SIMPLECLASS36,SIMPLECLASS102,SIMPLE_CLASS154
ASS112,SIMPLECLASS16,SIMPLECLASS57,SIMPLECLASS49,SIMPLECLASS104,SIMPLECLASS6,SIMPLECLASS72,SIMPLECLASS0,SIMPLECLASS67,SIMPLECLASS31,SIMPL
8,SIMPLECLASS94,SIMPLECLASS88,SIMPLECLASS121,IDENTIFIER) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,
,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)
    [java] at org.jpox.store.rdbms.request.InsertRequest.execute(InsertRequest.java:329)
    [java] at org.jpox.store.rdbms.table.ClassTable.insert(ClassTable.java:1755)
    [java] at org.jpox.store.StoreManager.insert(StoreManager.java:721)
    [java] at org.jpox.state.StateManagerImpl.internalMakePersistent(StateManagerImpl.java:3092)
    [java] at org.jpox.state.StateManagerImpl.makePersistent(StateManagerImpl.java:3065)
    [java] at org.jpox.AbstractPersistenceManager.internalMakePersistent(AbstractPersistenceManager.java:1016)
    [java] at org.jpox.AbstractPersistenceManager.makePersistent(AbstractPersistenceManager.java:1052)
    [java] at org.apache.jdo.tck.models.fieldtypes.TestFieldsOfSimpleClass.runTest(TestFieldsOfSimpleClass.java:82)
    [java] at org.apache.jdo.tck.models.fieldtypes.TestFieldsOfSimpleClass.test(TestFieldsOfSimpleClass.java:65)
    [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [java] at org.apache.jdo.tck.JDO_Test.runBare(JDO_Test.java:197)
    [java] at org.apache.jdo.tck.util.BatchTestRunner.start(BatchTestRunner.java:128)
    [java] at org.apache.jdo.tck.util.BatchTestRunner.main(BatchTestRunner.java:106)
    [java] NestedThrowablesStackTrace:
    [java] ERROR 42X14: 'SIMPLE_CLASS150_IDENTIFIZS' is not a column in table or VTI APPLICATIONIDENTITY0.FIELDSOFSIMPLECLASS'.
    [java] at org.apache.derby.iapi.error.StandardException.newException(StandardException.java)
    [java] at org.apache.derby.impl.sql.compile.ResultColumn.bindResultColumnByName(ResultColumn.java)
    [java] at org.apache.derby.impl.sql.compile.ResultColumnList.bindResultColumnsByName(ResultColumnList.java)
    [java] at org.apache.derby.impl.sql.compile.InsertNode.bind(InsertNode.java)
    [java] at org.apache.derby.impl.sql.GenericStatement.prepMinion(GenericStatement.java)
    [java] at org.apache.derby.impl.sql.GenericStatement.prepare(GenericStatement.java)
    [java] at org.apache.derby.impl.sql.conn.GenericLanguageConnectionContext.prepareInternalStatement(GenericLanguageConnectionCont
    [java] at org.apache.derby.impl.jdbc.EmbedPreparedStatement.<init>(EmbedPreparedStatement.java)
    [java] at org.apache.derby.impl.jdbc.EmbedPreparedStatement20.<init>(EmbedPreparedStatement20.java)
    [java] at org.apache.derby.impl.jdbc.EmbedPreparedStatement30.<init>(EmbedPreparedStatement30.java)
    [java] at org.apache.derby.jdbc.Driver30.newEmbedPreparedStatement(Driver30.java)
    [java] at org.apache.derby.impl.jdbc.EmbedConnection.prepareStatement(EmbedConnection.java)
    [java] at org.apache.derby.impl.jdbc.EmbedConnection.prepareStatement(EmbedConnection.java)
    [java] at com.mchange.v2.c3p0.impl.NewProxyConnection.prepareStatement(NewProxyConnection.java:303)
    [java] at org.jpox.store.rdbms.request.InsertRequest.execute(InsertRequest.java:156)
    [java] at org.jpox.store.rdbms.table.ClassTable.insert(ClassTable.java:1755)
    [java] at org.jpox.store.StoreManager.insert(StoreManager.java:721)
    [java] at org.jpox.state.StateManagerImpl.internalMakePersistent(StateManagerImpl.java:3092)
    [java] at org.jpox.state.StateManagerImpl.makePersistent(StateManagerImpl.java:3065)
    [java] at org.jpox.AbstractPersistenceManager.internalMakePersistent(AbstractPersistenceManager.java:1016)
    [java] at org.jpox.AbstractPersistenceManager.makePersistent(AbstractPersistenceManager.java:1052)
    [java] at org.apache.jdo.tck.models.fieldtypes.TestFieldsOfSimpleClass.runTest(TestFieldsOfSimpleClass.java:82)
    [java] at org.apache.jdo.tck.models.fieldtypes.TestFieldsOfSimpleClass.test(TestFieldsOfSimpleClass.java:65)
    [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [java] at org.apache.jdo.tck.JDO_Test.runBare(JDO_Test.java:197)
    [java] at org.apache.jdo.tck.util.BatchTestRunner.start(BatchTestRunner.java:128)
    [java] at org.apache.jdo.tck.util.BatchTestRunner.main(BatchTestRunner.java:106)

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Repository Revision Date User Message
ASF #227413 Thu Aug 04 15:39:53 UTC 2005 mcaisse JDO-112: Mismatch between ORM metadata and schema; JDO-113: Types of key/value columns and index columns in join tables; JDO-114: Change mapping of char fields; submitted by Michael Watzek
Files Changed
MODIFY /incubator/jdo/trunk/tck20/test/sql/derby/applicationidentity/schema.sql
MODIFY /incubator/jdo/trunk/tck20/test/orm/applicationidentity/org/apache/jdo/tck/pc/fieldtypes/TreeMapStringKeyCollections-derby.orm
MODIFY /incubator/jdo/trunk/tck20/test/orm/applicationidentity/org/apache/jdo/tck/pc/fieldtypes/HashtableStringValueCollections-derby.orm
MODIFY /incubator/jdo/trunk/tck20/test/orm/applicationidentity/org/apache/jdo/tck/pc/fieldtypes/HashMapStringKeyCollections-derby.orm
MODIFY /incubator/jdo/trunk/tck20/test/orm/applicationidentity/org/apache/jdo/tck/pc/fieldtypes/HashtableStringKeyCollections-derby.orm
MODIFY /incubator/jdo/trunk/tck20/test/orm/applicationidentity/org/apache/jdo/tck/pc/fieldtypes/HashSetCollections-derby.orm
MODIFY /incubator/jdo/trunk/tck20/test/orm/applicationidentity/org/apache/jdo/tck/pc/fieldtypes/FieldsOfCharacter-derby.orm
MODIFY /incubator/jdo/trunk/tck20/test/orm/applicationidentity/org/apache/jdo/tck/pc/fieldtypes/SetCollections-derby.orm
MODIFY /incubator/jdo/trunk/tck20/test/orm/applicationidentity/org/apache/jdo/tck/pc/singlefieldidentity/package-derby.orm
MODIFY /incubator/jdo/trunk/tck20/test/orm/applicationidentity/org/apache/jdo/tck/pc/fieldtypes/AllTypes-derby.orm
MODIFY /incubator/jdo/trunk/tck20/test/orm/applicationidentity/org/apache/jdo/tck/pc/fieldtypes/MapStringValueCollections-derby.orm
MODIFY /incubator/jdo/trunk/tck20/test/orm/applicationidentity/org/apache/jdo/tck/pc/fieldtypes/HashMapStringValueCollections-derby.orm
MODIFY /incubator/jdo/trunk/tck20/test/orm/applicationidentity/org/apache/jdo/tck/pc/fieldtypes/MapStringKeyCollections-derby.orm
MODIFY /incubator/jdo/trunk/tck20/test/orm/applicationidentity/org/apache/jdo/tck/pc/fieldtypes/TreeMapStringValueCollections-derby.orm

Repository Revision Date User Message
ASF #227434 Thu Aug 04 16:50:15 UTC 2005 mcaisse JDO-112: Mismatch between ORM metadata and schema; JDO-113: Types of key/value columns and index columns in join tables; JDO-114: Change mapping of char fields; all for datastoreidentity, submitted by Michael Watzek
Files Changed
MODIFY /incubator/jdo/trunk/tck20/test/sql/derby/applicationidentity/schema.sql
MODIFY /incubator/jdo/trunk/tck20/test/orm/datastoreidentity/org/apache/jdo/tck/pc/fieldtypes/AllTypes-derby.orm
MODIFY /incubator/jdo/trunk/tck20/test/orm/datastoreidentity/org/apache/jdo/tck/pc/fieldtypes/MapStringValueCollections-derby.orm
MODIFY /incubator/jdo/trunk/tck20/test/orm/datastoreidentity/org/apache/jdo/tck/pc/fieldtypes/TreeMapStringValueCollections-derby.orm
MODIFY /incubator/jdo/trunk/tck20/test/orm/datastoreidentity/org/apache/jdo/tck/pc/fieldtypes/HashMapStringValueCollections-derby.orm
MODIFY /incubator/jdo/trunk/tck20/test/orm/datastoreidentity/org/apache/jdo/tck/pc/fieldtypes/MapStringKeyCollections-derby.orm
MODIFY /incubator/jdo/trunk/tck20/test/sql/derby/datastoreidentity/schema.sql
MODIFY /incubator/jdo/trunk/tck20/test/orm/datastoreidentity/org/apache/jdo/tck/pc/fieldtypes/HashSetCollections-derby.orm
MODIFY /incubator/jdo/trunk/tck20/test/orm/datastoreidentity/org/apache/jdo/tck/pc/fieldtypes/HashtableStringValueCollections-derby.orm
MODIFY /incubator/jdo/trunk/tck20/test/orm/datastoreidentity/org/apache/jdo/tck/pc/fieldtypes/HashMapStringKeyCollections-derby.orm
MODIFY /incubator/jdo/trunk/tck20/test/orm/datastoreidentity/org/apache/jdo/tck/pc/fieldtypes/TreeMapStringKeyCollections-derby.orm
MODIFY /incubator/jdo/trunk/tck20/test/orm/datastoreidentity/org/apache/jdo/tck/pc/fieldtypes/HashtableStringKeyCollections-derby.orm
MODIFY /incubator/jdo/trunk/tck20/test/orm/datastoreidentity/org/apache/jdo/tck/pc/fieldtypes/SetCollections-derby.orm
MODIFY /incubator/jdo/trunk/tck20/test/orm/datastoreidentity/org/apache/jdo/tck/pc/fieldtypes/FieldsOfCharacter-derby.orm

Michael Watzek added a comment - 08/Aug/05 07:05 PM
Using the latest JPOX build test "TestFieldsOfSimpleClass" successfully passes for datastore identity and application identity.

Michael Watzek made changes - 08/Aug/05 07:05 PM
Field Original Value New Value
Status Open [ 1 ] Resolved [ 5 ]
Resolution Fixed [ 1 ]
Michelle Caisse made changes - 01/Nov/05 06:41 AM
Status Resolved [ 5 ] Closed [ 6 ]
Michael Bouschen added a comment - 23/Apr/06 02:57 AM
Reopened to set the Fix Version/s field to JDO 2 beta.

Michael Bouschen made changes - 23/Apr/06 02:57 AM
Status Closed [ 6 ] Reopened [ 4 ]
Resolution Fixed [ 1 ]
Michael Bouschen made changes - 23/Apr/06 02:59 AM
Fix Version/s JDO 2 beta [ 12310683 ]
Status Reopened [ 4 ] Closed [ 6 ]
Resolution Fixed [ 1 ]