This is a migrated thread and some comments may be shown as answers.

Error 'getClassMetaData() on unresolved oid'

5 Answers 38 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
devoas
Top achievements
Rank 1
devoas asked on 25 May 2011, 03:40 PM
Hello,

We are getting following error.
 
Error 'getClassMetaData() on unresolved oid'  when transaction.flush is executed in order to get id and update in another table before final commit.
While searching for this error on google found some code from  "Versant Open Access - JAVA" 

Can you please advise what can be the reason of this error. 

Thanks,
devoas.

5 Answers, 1 is accepted

Sort by
0
Jan Blessenohl
Telerik team
answered on 25 May 2011, 06:04 PM
Hi devoas,
Can you please catch the exception and send me the output of exception.ToString(), that will help us to find the place where it occurs.

Greetings,
Jan Blessenohl
the Telerik team
Q1’11 SP1 of Telerik OpenAccess is available for download; also available is the Q2'11 Roadmap for Telerik OpenAccess ORM.
0
devoas
Top achievements
Rank 1
answered on 26 May 2011, 09:05 AM
Following is the exception Details.


"Telerik.OpenAccess.OpenAccessException: Called 'getClassMetaData()' on unresolved oid\r\n   at Telerik.OpenAccess.SPI.Backends.ThrowException(Exception e)\r\n   at Telerik.OpenAccess.RT.ExceptionWrapper.Throw()\r\n   at OpenAccessRuntime.DataObjects.OpenAccessPersistenceManagerImp.handleException(Exception x)\r\n   at OpenAccessRuntime.DataObjects.OpenAccessPersistenceManagerImp.flush()\r\n   at OpenAccessRuntime.DataObjects.UnsynchronizedPMProxy.flush()\r\n   at Telerik.OpenAccess.RT.TransactionImpl.Flush()\r\n   at devdata`1.Save() in Z:\\Dev\dev.cs:line 1421"


Thanks,
devoas
0
Jan Blessenohl
Telerik team
answered on 26 May 2011, 10:31 AM
Hi devoas,
This is the outer exception, it has a set of inner exceptions that desribe the real location. Those are printed if you call exception.ToString(). Can you please give me these additonal information?

All the best,
Jan Blessenohl
the Telerik team
Q1’11 SP1 of Telerik OpenAccess is available for download; also available is the Q2'11 Roadmap for Telerik OpenAccess ORM.
0
devoas
Top achievements
Rank 1
answered on 26 May 2011, 02:29 PM
Dear Jan,

I have following code

try 
{
scope.Transaction.Flush();
}

catch (exception e)

{

}

Exception catch and string send to you.... Also I checked e.innerException which is null...  Following is for your reference.

{"Called 'getClassMetaData()' on unresolved oid"}
    [Telerik.OpenAccess.OpenAccessException]: {"Called 'getClassMetaData()' on unresolved oid"}
    Data: {System.Collections.ListDictionaryInternal}
    HelpLink: null
    InnerException: null
    Message: "Called 'getClassMetaData()' on unresolved oid"
    Source: "Telerik.OpenAccess"
    StackTrace: "   at Telerik.OpenAccess.SPI.Backends.ThrowException(Exception e)\r\n   at Telerik.OpenAccess.RT.ExceptionWrapper.Throw()\r\n   at OpenAccessRuntime.DataObjects.OpenAccessPersistenceManagerImp.handleException(Exception x)\r\n   at OpenAccessRuntime.DataObjects.OpenAccessPersistenceManagerImp.flush()\r\n   at OpenAccessRuntime.DataObjects.UnsynchronizedPMProxy.flush()\r\n   at Telerik.OpenAccess.RT.TransactionImpl.Flush()\r\n  
    TargetSite: {Void ThrowException(System.Exception)}


Thanks
devoas.


 
0
Jan Blessenohl
Telerik team
answered on 26 May 2011, 04:44 PM
Hello devoas,
I looked through our code and i cannot see where this can happen, weird. Can I get more information what you are trying to flush, maybe you have an example for me that shows the problem? 

Best wishes,
Jan Blessenohl
the Telerik team
Q1’11 SP1 of Telerik OpenAccess is available for download; also available is the Q2'11 Roadmap for Telerik OpenAccess ORM.
Tags
General Discussions
Asked by
devoas
Top achievements
Rank 1
Answers by
Jan Blessenohl
Telerik team
devoas
Top achievements
Rank 1
Share this question
or