NullReferenceException on firebird database refresh

Posts   
 
    
wtijsma
User
Posts: 252
Joined: 18-Apr-2006
# Posted on: 01-Jul-2010 18:04:42   

Hi,

I got a NullReferenceException while refreshing my FireBird database, after making changes to the update scripts (and applying them to the database):

-----[Core exception]--------------------
   at SD.LLBLGen.Pro.ApplicationCore.MetaData.CatalogRefresher.FindRenamedTargets[TElement](HashSet`1 orphanedElements, LogNode parentLogNode, Dictionary`2 elementToNewTargetList, Dictionary`2 allElementsWithMappings, String elementTypeName)
   at SD.LLBLGen.Pro.ApplicationCore.MetaData.CatalogRefresher.MigrateEntities()
   at SD.LLBLGen.Pro.ApplicationCore.MetaData.CatalogRefresher.MigrateProjectToNewCatalog()
   at SD.LLBLGen.Pro.ApplicationCore.MetaData.DatabaseMetaData.RefreshMetaData(IEnumerable`1 populatedCatalogs, LogNode refreshLogNode, Project containingProject, UserConfiguration preferences)
   at SD.LLBLGen.Pro.ApplicationCore.MetaData.MetaDataStore.RefreshMetaData(String driverID, IEnumerable`1 populatedCatalogs, Project containingProject, UserConfiguration preferences)
   at SD.LLBLGen.Pro.ApplicationCore.ProjectClasses.Project.RefreshMetaData(String driverID, List`1 populatedCatalogs, UserConfiguration preferences)
   at SD.LLBLGen.Pro.Gui.Classes.GuiController.PerformRefreshMetaDataAction(String driverID)
   at SD.LLBLGen.Pro.Gui.Controls.CatalogExplorer._commandManager_CommandClick(Object sender, CommandEventArgs e)
   at Janus.Windows.UI.CommandBars.UICommandCollection.c(Object , CommandEventArgs )
   at Janus.Windows.UI.CommandBars.UICommand.ar()
   at Janus.Windows.UI.Internal.JNSCZ.OnMouseUp(MouseEventArgs e)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at Janus.Windows.UI.Internal.JNSCZ.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Basically what I did was - create a new entity and table named 'Invoice' in the LLBLGen designer, - applied the generated SQL update script to the database (can I do this from the designer too?) - refresh relational model data from database

LLBLGen version: 3.0 Final, June 8th, 2010 Firebird driver version: 2.5.2

Thanks,

Wiebe

EDIT: I keep getting the error consistently on trying to refresh the database. It also automatically closes my project.

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39588
Joined: 17-Aug-2003
# Posted on: 01-Jul-2010 19:12:52   

Please download the latest v3 version and retry. Some issues were fixed in the refresher lately.

Frans Bouma | Lead developer LLBLGen Pro