[jira] Commented: (JDO-420) JPOX fails new test
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-420) JPOX fails new test




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

    [jira] Commented: (JDO-420) JPOX fails new test  
Andy Jefferson (JIRA)


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


 
09-09-06 12:11 PM

[ [url]http://issues.apache.org/jira/browse/JDO-420?page=comments#action_12433578[/
url] ]

Andy Jefferson commented on JDO-420:
------------------------------------

The ORM file contains no <field> mappings for the "role" field of Employee (
the key in the Map). Not the cause of the issue but if you expect implementa
tions to match to your schema you need to include them.

> JPOX fails new test CompletenessTestMap, configuration companyMapWithoutJo
in
> --------------------------------------------------------------------------
--
>
>                 Key: JDO-420
>                 URL: http://issues.apache.org/jira/browse/JDO-420
>             Project: JDO
>          Issue Type: Bug
>          Components: tck20
>    Affects Versions: JDO 2 maintenance release 1
>            Reporter: Michelle Caisse
>         Assigned To: Andy Jefferson
>         Attachments: project.properties.patch
>
>
> JPOX is looking for the department field in Person rather than Employee.  
To run the test, do
> maven -Djdo.tck.cfglist=companyMapWithoutJoin.conf runtck.jdori
> 17:28:20,381 (main) INFO  [org.apache.jdo.tck] - Exception during setU
p or runtest:
> javax.jdo.JDOUserException: One or more instances could not be made persis
tent
> 	at org.jpox.AbstractPersistenceManager.makePersistentAll(AbstractPersiste
nceManager.java:1293)
> 	at org.apache.jdo.tck.mapping.CompletenessTestMap.localSetUp(Completeness
TestMap.java:78)
> 	at org.apache.jdo.tck.JDO_Test.setUp(JDO_Test.java:236)
> 	at org.apache.jdo.tck.JDO_Test.runBare(JDO_Test.java:252)
> 	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 junit.framework.TestSuite.runTest(TestSuite.java:208)
> 	at junit.framework.TestSuite.run(TestSuite.java:203)
> 	at junit.textui.TestRunner.doRun(TestRunner.java:116)
> 	at org.apache.jdo.tck.util.BatchTestRunner.doRun(BatchTestRunner.java:107
)
> 	at org.apache.jdo.tck.util.BatchTestRunner.start(BatchTestRunner.java:147
)
> 	at org.apache.jdo.tck.util.BatchTestRunner.main(BatchTestRunner.java:122)
> NestedThrowablesStackTrace:
> javax.jdo.JDOUserException: Unable to find the field "department" in the c
lass "org.apache.jdo.tck.pc.companyMapWithoutJoin.Person" with a relationshi
p to the field "org.apache.jdo.tck.pc.companyMapWithoutJoin.Department.roles
"
> 	at org.jpox.store.rdbms.table.ClassTable.initializeSQLAddUniqueConstraint
sStatements(ClassTable.java:1994)
> 	at org.jpox.store.rdbms.table.ClassTable.runSpecifiedCallbacks(ClassTable
.java:904)
> 	at org.jpox.store.rdbms.table.ClassTable.runCallBacks(ClassTable.java:869
)
> 	at org.jpox.store.rdbms.table.ClassTable.addFieldMetaData(ClassTable.java
:562)
> 	at org.jpox.store.rdbms.table.ClassTable.manageClass(ClassTable.java:388)
> 	at org.jpox.store.rdbms.RDBMSManager$ClassAdder.initializeClassTables(RDB
MSManager.java:2869)
> 	at org.jpox.store.rdbms.RDBMSManager$ClassAdder.addClassTablesAndValidate
(RDBMSManager.java:3214)
> 	at org.jpox.store.rdbms.RDBMSManager$ClassAdder.run(RDBMSManager.java:245
7)
> 	at org.jpox.store.rdbms.RDBMSManager$MgmtTransaction.execute(RDBMSManager
.java:2309)
> 	at org.jpox.store.rdbms.RDBMSManager.addClasses(RDBMSManager.java:725)
> 	at org.jpox.store.rdbms.RDBMSManager.addClass(RDBMSManager.java:739)
> 	at org.jpox.store.StoreManager.getDatastoreClass(StoreManager.java:1142)
> 	at org.jpox.state.StateManagerImpl.populateStrategyFields(StateManagerImp
l.java:764)
> 	at org.jpox.state.StateManagerImpl.<init>(StateManagerImpl.java:565)
> 	at org.jpox.state.StateManagerFactory.newStateManager(StateManagerFactory
.java:105)
> 	at org.jpox.AbstractPersistenceManager.internalMakePersistent(AbstractPer
sistenceManager.java:1185)
> 	at org.jpox.AbstractPersistenceManager.makePersistent(AbstractPersistence
Manager.java:1241)
> 	at org.jpox.AbstractPersistenceManager.makePersistentAll(AbstractPersiste
nceManager.java:1283)
> 	at org.apache.jdo.tck.mapping.CompletenessTestMap.localSetUp(Completeness
TestMap.java:78)
> 	at org.apache.jdo.tck.JDO_Test.setUp(JDO_Test.java:236)
> 	at org.apache.jdo.tck.JDO_Test.runBare(JDO_Test.java:252)
> 	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 junit.framework.TestSuite.runTest(TestSuite.java:208)
> 	at junit.framework.TestSuite.run(TestSuite.java:203)
> 	at junit.textui.TestRunner.doRun(TestRunner.java:116)
> 	at org.apache.jdo.tck.util.BatchTestRunner.doRun(BatchTestRunner.java:107
)
> 	at org.apache.jdo.tck.util.BatchTestRunner.start(BatchTestRunner.java:147
)
> 	at org.apache.jdo.tck.util.BatchTestRunner.main(BatchTestRunner.java:122

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://iss
ues.apache.org/ji...nistrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira








[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 08:37 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