[jira] Commented: (JDO-539) JPA annotations tests fail
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Apache Server configuration support > Apache JDO Project > [jira] Commented: (JDO-539) JPA annotations tests fail




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    [jira] Commented: (JDO-539) JPA annotations tests fail  
Michelle Caisse (JIRA)


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
10-09-07 06:11 PM


[ https://issues.apache.org/jira/brow...action_12533390 ]

Michelle Caisse commented on JDO-539:
-------------------------------------

Right. This requires some changes to the build mechanism, so it may be easie
r to let them run twice. Needs some thought.

> JPA annotations tests fail
> --------------------------
>
>                 Key: JDO-539
>                 URL: https://issues.apache.org/jira/browse/JDO-539
>             Project: JDO
>          Issue Type: Bug
>          Components: tck2
>    Affects Versions: JDO 2 maintenance release 1
>            Reporter: Michelle Caisse
>            Assignee: Michelle Caisse
>
>  companyAnnotatedNoRelationshipsJPAConcre
te.conf and companyAnnotatedNoRela
tionshipsJPAConcrete.conf fail:
>  test(org.apache.jdo.tck.mapping.CompletenessTest)javax.jdo.JDOUserExcepti
on: One or more instances could not be made persistent
> 	at org.jpox.AbstractPersistenceManager.makePersistentAll(AbstractPersiste
nceManager.java:694)
> 	at org.apache.jdo.tck.mapping.CompletenessTest.localSetUp(CompletenessTes
t.java:79)
> 	at org.apache.jdo.tck.JDO_Test.setUp(JDO_Test.java:237)
> 	at org.apache.jdo.tck.JDO_Test.runBare(JDO_Test.java:253)
> 	at org.apache.jdo.tck.util.BatchTestRunner.doRun(BatchTestRunner.java:108
)
> 	at org.apache.jdo.tck.util.BatchTestRunner.start(BatchTestRunner.java:148
)
> 	at org.apache.jdo.tck.util.BatchTestRunner.main(BatchTestRunner.java:123)
> NestedThrowablesStackTrace:
> javax.jdo.JDOFatalInternalException: Duplicate column name "PERSONID" defined for 
table "applicationidentity0.EMPLOYEE_PHONENO_TYPE". You cannot map multiple fields t
o the same column. The duplicated columns are specified by org.apache.jdo.tck.pc.com
pan
yAnnotatedJPA.JPAAppPhoneNumber.personid and org.apache.jdo.tck.pc.companyAnnotatedJPA.JPAAp
pPhoneNumber.person.
> 	at org.jpox.jdo.JPOXJDOHelper. getJDOExceptionForJPOXException(JPOXJDOH
elp
er.java:369)
> 	at org.jpox.AbstractPersistenceManager.jdoMakePersistent(AbstractPersiste
nceManager.java:631)
> 	at org.jpox.AbstractPersistenceManager.makePersistentAll(AbstractPersiste
nceManager.java:680)
> 	at org.apache.jdo.tck.mapping.CompletenessTest.localSetUp(CompletenessTes
t.java:79)
> 	at org.apache.jdo.tck.JDO_Test.setUp(JDO_Test.java:237)
> 	at org.apache.jdo.tck.JDO_Test.runBare(JDO_Test.java:253)
> 	at org.apache.jdo.tck.util.BatchTestRunner.doRun(BatchTestRunner.java:108
)
> 	at org.apache.jdo.tck.util.BatchTestRunner.start(BatchTestRunner.java:148
)
> 	at org.apache.jdo.tck.util.BatchTestRunner.main(BatchTestRunner.java:123)
> NestedThrowablesStackTrace:
> Duplicate column name "PERSONID" defined for table "applicationidentity0.EMPLOYEE_
PHONENO_TYPE". You cannot map multiple fields to the same column. The duplicated col
umns are specified by org.apache.jdo.tck.pc.companyAnnotatedJPA.JPAAppPhoneNumber.pe
rso
nid and org.apache.jdo.tck.pc.companyAnnotatedJPA.JPAAppPhoneNumber.person.
> org.jpox.store.rdbms.exceptions.DuplicateColumnNameException: Duplicate column nam
e "PERSONID" defined for table "applicationidentity0.EMPLOYEE_PHONENO_TYPE". You can
not map multiple fields to the same column. The duplicated columns are specified by 
org
.apache.jdo.tck.pc.companyAnnotatedJPA.JPAAppPhoneNumber.personid and org.apache.jdo.tck.pc.
companyAnnotatedJPA.JPAAppPhoneNumber.person.
> 	at org.jpox.store.rdbms.table.AbstractTable.addDatastoreField(AbstractTab
le.java:261)
> 	at org.jpox.store.rdbms.mapping.RDBMSMappingManager.createDatastoreField(
RDBMSMappingManager.java:840)
> 	at org.jpox.store.mapping.PersistenceCapableMapping.prepareDatastoreMappi
ng(PersistenceCapableMapping.java:227)
> 	at org.jpox.store.mapping.PersistenceCapableMapping.initialize(Persistenc
eCapableMapping.java:123)
> 	at org.jpox.store.mapping.MappingFactory.createMapping(MappingFactory.jav
a:93)
> 	at org.jpox.store.mapping.AbstractMappingManager.getMapping(AbstractMappi
ngManager.java:234)
> 	at org.jpox.store.rdbms.table.ClassTable.manageFields(ClassTable.java:520
)
> 	at org.jpox.store.rdbms.table.ClassTable.manageClass(ClassTable.java:400)
> 	at org.jpox.store.rdbms.table.ClassTable.initializeForClass(ClassTable.ja
va:971)
> 	at org.jpox.store.rdbms.table.ClassTable.initialize(ClassTable.java:271)
> 	at org.jpox.store.rdbms.RDBMSManager$ClassAdder.initializeClassTables(RDB
MSManager.java:3408)
> 	at org.jpox.store.rdbms.RDBMSManager$ClassAdder.addClassTablesAndValidate
(RDBMSManager.java:3315)
> 	at org.jpox.store.rdbms.RDBMSManager$ClassAdder.run(RDBMSManager.java:294
3)
> 	at org.jpox.store.rdbms.RDBMSManager$MgmtTransaction.execute(RDBMSManager
.java:2822)
> 	at org.jpox.store.rdbms.RDBMSManager.addClasses(RDBMSManager.java:859)
> 	at org.jpox.store.StoreManager.addClass(StoreManager.java:481)
> 	at org.jpox.store.StoreManager.getDatastoreClass(StoreManager.java:1089)
> 	at org.jpox.state.JDOStateManagerImpl.populateStrategyFields(JDOStateMana
gerImpl.java:661)
> 	at org.jpox.state.JDOStateManagerImpl. initialiseForPersistentNew(JDOStateManag
erI
mpl.java:408)

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 05:25 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register