db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Kalén (JIRA) <j...@apache.org>
Subject [jira] Commented: (OJB-15) Randomly concurrency problem in Identity class
Date Sun, 10 Apr 2005 18:31:17 GMT
     [ http://issues.apache.org/jira/browse/OJB-15?page=comments#action_62520 ]
     
Martin Kalén commented on OJB-15:
---------------------------------

testRuntimeMetadataChanges	Error	org.apache.ojb.broker.PersistenceBrokerException: org.apache.ojb.broker.metadata.ClassNotPersistenceCapableException:
OJB needs at least one primary key attribute for class: objectTopLevelClass=org.apache.ojb.broker.Person
objectRealClass=org.apache.ojb.broker.Person pkValues=null object to identify: ThreadedUsingBroker_1113157183968

* Stacktrace:

org.apache.ojb.broker.metadata.ClassNotPersistenceCapableException: OJB needs at least one
primary key attribute for class: 
objectTopLevelClass=org.apache.ojb.broker.Person
objectRealClass=org.apache.ojb.broker.Person
pkValues=null
object to identify: ThreadedUsingBroker_1113157183968
	at org.apache.ojb.broker.Identity.createException(Identity.java:391)
	at org.apache.ojb.broker.Identity.checkForPrimaryKeys(Identity.java:292)
	at org.apache.ojb.broker.Identity.init(Identity.java:163)
	at org.apache.ojb.broker.Identity.&lt;init&gt;(Identity.java:116)
	at org.apache.ojb.broker.accesslayer.MtoNCollectionPrefetcher.associateBatched(MtoNCollectionPrefetcher.java:422)
	at org.apache.ojb.broker.accesslayer.MtoNCollectionPrefetcher.prefetchRelationship(MtoNCollectionPrefetcher.java:95)
	at org.apache.ojb.broker.core.QueryReferenceBroker.performRetrievalTasks(QueryReferenceBroker.java:347)
	at org.apache.ojb.broker.core.QueryReferenceBroker.getCollectionByQuery(QueryReferenceBroker.java:169)
	at org.apache.ojb.broker.core.QueryReferenceBroker.getCollectionByQuery(QueryReferenceBroker.java:251)
	at org.apache.ojb.broker.core.QueryReferenceBroker.getCollectionByQuery(QueryReferenceBroker.java:271)
	at org.apache.ojb.broker.core.PersistenceBrokerImpl.getCollectionByQuery(PersistenceBrokerImpl.java:1367)
	at org.apache.ojb.broker.core.DelegatingPersistenceBroker.getCollectionByQuery(DelegatingPersistenceBroker.java:338)
	at org.apache.ojb.broker.core.DelegatingPersistenceBroker.getCollectionByQuery(DelegatingPersistenceBroker.java:338)
	at org.apache.ojb.broker.metadata.MetadataMultithreadedTest$GlobalUsingBroker.runTestCase(MetadataMultithreadedTest.java:471)
	at org.apache.ojb.junit.JUnitExtensions$MultiThreadedTestCase$TestCaseRunnable.run(JUnitExtensions.java:186)
	at java.lang.Thread.run(Thread.java:534)
org.apache.ojb.broker.PersistenceBrokerException: org.apache.ojb.broker.metadata.ClassNotPersistenceCapableException:
OJB needs at least one primary key attribute for class: 
objectTopLevelClass=org.apache.ojb.broker.Person
objectRealClass=org.apache.ojb.broker.Person
pkValues=null
object to identify: ThreadedUsingBroker_1113157183968
	at org.apache.ojb.broker.core.QueryReferenceBroker.getCollectionByQuery(QueryReferenceBroker.java:259)
	at org.apache.ojb.broker.core.QueryReferenceBroker.getCollectionByQuery(QueryReferenceBroker.java:271)
	at org.apache.ojb.broker.core.PersistenceBrokerImpl.getCollectionByQuery(PersistenceBrokerImpl.java:1367)
	at org.apache.ojb.broker.core.DelegatingPersistenceBroker.getCollectionByQuery(DelegatingPersistenceBroker.java:338)
	at org.apache.ojb.broker.core.DelegatingPersistenceBroker.getCollectionByQuery(DelegatingPersistenceBroker.java:338)
	at org.apache.ojb.broker.metadata.MetadataMultithreadedTest$GlobalUsingBroker.runTestCase(MetadataMultithreadedTest.java:471)
	at org.apache.ojb.junit.JUnitExtensions$MultiThreadedTestCase$TestCaseRunnable.run(JUnitExtensions.java:186)
	at java.lang.Thread.run(Thread.java:534)
Caused by: org.apache.ojb.broker.metadata.ClassNotPersistenceCapableException: OJB needs at
least one primary key attribute for class: 
objectTopLevelClass=org.apache.ojb.broker.Person
objectRealClass=org.apache.ojb.broker.Person
pkValues=null
object to identify: ThreadedUsingBroker_1113157183968
	at org.apache.ojb.broker.Identity.createException(Identity.java:391)
	at org.apache.ojb.broker.Identity.checkForPrimaryKeys(Identity.java:292)
	at org.apache.ojb.broker.Identity.init(Identity.java:163)
	at org.apache.ojb.broker.Identity.&lt;init&gt;(Identity.java:116)
	at org.apache.ojb.broker.accesslayer.MtoNCollectionPrefetcher.associateBatched(MtoNCollectionPrefetcher.java:422)
	at org.apache.ojb.broker.accesslayer.MtoNCollectionPrefetcher.prefetchRelationship(MtoNCollectionPrefetcher.java:95)
	at org.apache.ojb.broker.core.QueryReferenceBroker.performRetrievalTasks(QueryReferenceBroker.java:347)
	at org.apache.ojb.broker.core.QueryReferenceBroker.getCollectionByQuery(QueryReferenceBroker.java:169)
	at org.apache.ojb.broker.core.QueryReferenceBroker.getCollectionByQuery(QueryReferenceBroker.java:251)
	... 7 more

> Randomly concurrency problem in Identity class
> ----------------------------------------------
>
>          Key: OJB-15
>          URL: http://issues.apache.org/jira/browse/OJB-15
>      Project: OJB
>         Type: Bug
>   Components: JDO-API, ODMG-API, OTM-API, PB-API
>     Versions: 1.0.x CVS, 1.1 CVS
>  Environment: all
>     Reporter: armin waibel
>     Priority: Minor

>
> Seems that randomly a concurrency problem occur in Identity class. The stack trace look
like this:
> <snip>
> testLockingOfObject Error OJB needs at least one primary key attribute for class
> OJB needs at least one primary key attribute for class:
> objectTopLevelClass=org.apache.ojb.odmg.LockingMultithreadedTest$LockObjectobjectRealClass=org.apache.ojb.odmg.LockingMultithreadedTest$LockObjectpkValues=null
> object to identify: org.apache.ojb.odmg.LockingMultithreadedTest$LockObject@ad339b at
org.apache.ojb.broker.Identity.createException(Identity.java:391) 
> </snip>
> If this happen again, please post your stack trace as comment. Maybe it is possible to
isolate the problem.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org


Mime
View raw message