UNEnable to generate

Posts   
 
    
llblPowa
User
Posts: 41
Joined: 19-Nov-2006
# Posted on: 23-Jan-2007 15:26:27   

[edit] :-) wrong title : I am unable to generate :-)

Hello,

I am hvinbg the following pb when I tried to regenerate my LLBL project (I have also tried with the latest version - same pb) :

Object reference not set to an instance of an object.


-----[Core exception]--------------------
   at SD.LLBLGen.Pro.ApplicationCore.Entities.EntityDefinition.get_HierarchyType()
   at SD.LLBLGen.Pro.ApplicationCore.CatalogRefresher.MigrateRelations(LogNode entitiesLogNode, ArrayList entitiesToMigrate)
   at SD.LLBLGen.Pro.ApplicationCore.CatalogRefresher.MigrateEntities()
   at SD.LLBLGen.Pro.ApplicationCore.CatalogRefresher.MigrateProjectToNewCatalog(Boolean isUnattended, SelectTargetsForOrphanedElementsCallBack targetSelectCallBack)
   at SD.LLBLGen.Pro.Gui.Forms.MainWindow.RefreshCatalogs(Boolean unattended, Hashtable catalogsToRefresh)
   at SD.LLBLGen.Pro.Gui.Forms.MainWindow.OnProjectExplorerCatalogRefreshClicked(Object sender, CatalogRefreshEventArgs e)
   at SD.LLBLGen.Pro.Gui.Forms.ProjectExplorer._menuItemCatalogRefresh_Click(Object sender, EventArgs e)
   at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
   at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
   at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
   at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
   at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
   at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
   at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
   at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   at System.Windows.Forms.ToolStrip.WndProc(Message& m)
   at System.Windows.Forms.ToolStripDropDown.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(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)

SD.LLBLGen.Pro.ApplicationCore

Any clue? btw, I am using Vista...

jbb avatar
jbb
User
Posts: 267
Joined: 29-Nov-2005
# Posted on: 23-Jan-2007 15:30:02   

Hello,

what version of llblgen do you use? Do you use "target per entity hierarchie" in your project?

llblPowa
User
Posts: 41
Joined: 19-Nov-2006
# Posted on: 23-Jan-2007 15:33:22   

Release 22-jan-2007 Build December 6th

Yes I do use "target per entity hierarchie" in my project?

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39614
Joined: 17-Aug-2003
# Posted on: 23-Jan-2007 15:40:09   

PLease mail the .lgp to support AT llblgen.com as well as the DDL SQL for the db so I can perform a refresh properly as it seems the exception occurs during refresh (and not during code generation)

Frans Bouma | Lead developer LLBLGen Pro
llblPowa
User
Posts: 41
Joined: 19-Nov-2006
# Posted on: 23-Jan-2007 15:57:46   

Hello,

Sorry to ask, but how do I get the DDL SQL? I am using SQL Server 2005? Do you mean the SQL Script?

Cheers,

llblPowa
User
Posts: 41
Joined: 19-Nov-2006
# Posted on: 23-Jan-2007 16:12:36   

Ok, sent :-) hope you can help.

And, yep you are right the error occurs as I am trying the refresh the catalog (and therefore I am not yet able to generate.)

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39614
Joined: 17-Aug-2003
# Posted on: 23-Jan-2007 17:36:07   

Seems to be a bug in the refresher: if a 3 or more level hierarchy loses its root because the relation isn't there anymore, the refresher doesn't destroy the complete hierarchy.

Frans Bouma | Lead developer LLBLGen Pro
Otis avatar
Otis
LLBLGen Pro Team
Posts: 39614
Joined: 17-Aug-2003
# Posted on: 23-Jan-2007 18:24:31   

Fixed in next build (designer core: January 23rd, 2007)

Frans Bouma | Lead developer LLBLGen Pro
llblPowa
User
Posts: 41
Joined: 19-Nov-2006
# Posted on: 23-Jan-2007 18:34:15   

Very quick fixe ! As always LLBL support rocks :-)

Thanks again.

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39614
Joined: 17-Aug-2003
# Posted on: 23-Jan-2007 19:02:49   

smile

Frans Bouma | Lead developer LLBLGen Pro