Get More Support

Here for you 24/7

learn more
VOD Free SDK

Start Building your Engine Now

Download Now
VOD Extranet

Access to patches, license management,
tech docs and more for existing VOD customers.

Learn More
Error reopening yap-file
Last Post 26 Jul 2005 04:17 AM by Newsgroup Import. 0 Replies.
AddThis - Bookmarking and Sharing Button Printer Friendly
  •  
  •  
  •  
  •  
  •  
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
Newsgroup Import
Senior Member
Senior Member
Posts: 6986


--
26 Jul 2005 04:17 AM
    This message was imported from the former db4o newsgroup.
    
    Hi,
    
    I am running db4o under .NET v2.0 Beta 2.
    
    Opening the Server and closing works fine:
    
    ObjectServer _Server = com.db4o.Db4o.openServer(@"D:\temp\test.yap", 8001);
    _Server.close();
    
    But reopening results in an error: 'com.db4o.MetaClass' to type 
    'com.db4o.MetaClass'.
    
    _Server = com.db4o.Db4o.openServer(@"D:\temp\test.yap", 8001);
    
    Thanks for help.
    
    Best,
    Gnther Schmidlehner
    
    
    [db4o 4.5.200   2005-07-26 10:57:52]
     writing log for 'db4o 4.5.200'
    [db4o 4.5.200   2005-07-26 10:57:52]
     File not found: 'D:\temp\test.yap' Creating new file
    [db4o 4.5.200   2005-07-26 10:57:53]
     1264 new com.db4o.PBootRecord, db4o
    [db4o 4.5.200   2005-07-26 10:57:53]
     1264 update com.db4o.PBootRecord, db4o
    [db4o 4.5.200   2005-07-26 10:57:53]
     'D:\temp\test.yap' opened O.K.
    [db4o 4.5.200   2005-07-26 10:57:54]
     2028 new com.db4o.MetaClass, db4o
    [db4o 4.5.200   2005-07-26 10:57:57]
     Server listening on port: '8001'
    [db4o 4.5.200   2005-07-26 10:57:57]
     6014 new com.db4o.User, db4o
    [db4o 4.5.200   2005-07-26 10:57:57]
     'D:\temp\test.yap' close request
    [db4o 4.5.200   2005-07-26 10:57:57]
     'D:\temp\test.yap' closed
    [db4o 4.5.200   2005-07-26 10:57:58]
     5892 new com.db4o.PBootRecord, db4o
    [db4o 4.5.200   2005-07-26 10:57:58]
     5892 update com.db4o.PBootRecord, db4o
    [db4o 4.5.200   2005-07-26 10:57:58]
     'D:\temp\test.yap' opened O.K.
    Unable to cast object of type 'com.db4o.MetaClass' to type 
    'com.db4o.MetaClass'.
    Void initOnUp(com.db4o.Transaction)
       at com.db4o.Config4Class.initOnUp(Transaction systemTrans) in 
    D:\CMFramework\application\src\db4o\core\src\core\com\db4o\Config4Class.cs:line 
    186
       at com.db4o.YapClass.initConfigOnUp(Transaction systemTrans) in 
    D:\CMFramework\application\src\db4o\core\src\core\com\db4o\YapClass.cs:line 
    1033
       at com.db4o.YapClass.initOnUp(Transaction systemTrans) in 
    D:\CMFramework\application\src\db4o\core\src\core\com\db4o\YapClass.cs:line 
    1049
       at com.db4o.YapClassCollection.initYapClassesOnUp() in 
    D:\CMFramework\application\src\db4o\core\src\core\com\db4o\YapClassCollection.cs:line 
    283
       at com.db4o.YapClassCollection.readYapClass(YapClass yapClass, 
    ReflectClass a_class) in 
    D:\CMFramework\application\src\db4o\core\src\core\com\db4o\YapClassCollection.cs:line 
    382
       at com.db4o.YapClassCollection.getYapClass(ReflectClass a_class, Boolean 
    a_create) in 
    D:\CMFramework\application\src\db4o\core\src\core\com\db4o\YapClassCollection.cs:line 
    170
       at com.db4o.YapStream.getYapClass(ReflectClass a_class, Boolean a_create) 
    in 
    D:\CMFramework\application\src\db4o\core\src\core\com\db4o\YapStream.cs:line 
    812
       at com.db4o.YapServer._AnonymousInnerClass31.visit(Object a_object) in 
    D:\CMFramework\application\src\db4o\core\src\core\com\db4o\YapServer.cs:line 
    85
       at com.db4o.Hashtable4.forEachValue(Visitor4 visitor) in 
    D:\CMFramework\application\src\db4o\core\src\core\com\db4o\Hashtable4.cs:line 
    104
       at com.db4o.YapServer..ctor(YapFile a_yapFile, Int32 a_port) in 
    D:\CMFramework\application\src\db4o\core\src\core\com\db4o\YapServer.cs:line 
    44
       at com.db4o.Db4o.openServer(String databaseFileName, Int32 port) in 
    D:\CMFramework\application\src\db4o\core\src\core\com\db4o\Db4o.cs:line 266
    You are not authorized to post a reply.


    Active Forums 4.3