This question is locked. New answers and comments are not allowed.
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.
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
0
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
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
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
"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
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
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
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.
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
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
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