CapableObjects forum



Help needed for asssertion failed

Posted By william 2014-01-09 08:15:06
Add to Favorites0
Author Message
william
 Posted 2014-01-09 08:15:06
Supreme Being

Supreme Being - (15 033 reputation)Supreme Being - (15 033 reputation)Supreme Being - (15 033 reputation)Supreme Being - (15 033 reputation)Supreme Being - (15 033 reputation)Supreme Being - (15 033 reputation)Supreme Being - (15 033 reputation)Supreme Being - (15 033 reputation)Supreme Being - (15 033 reputation)

Group: Forum Members
Last Active: 2014-03-18 11:41:59
Posts: 92, Visits: 851
I have a ASP .NET MVC using Eco 6.0.0.6646 and encountered a strange exception. In fact the web application seems to be hanging occasionally upon a POST operation in updating data to database while most of the times it does update successfully. By viewing the event log on the web server there are quite a number of "Application Popup" like this one:

Application popup: Assertion Failed: Abort=Quit, Retry=Debug, Ignore=Continue : Table InvoiceItem does not belong to class Invoice

at BoldSqlNodes.TBoldSqlNode.AliasReferenceForAlias(AliasDefinition Alias, TBoldSQLQuery Query, Boolean ForceOwntable)
at BoldSqlNodes.TBoldSqlMember.AliasReferenceForAlias(AliasDefinition Alias, TBoldSQLQuery Query, Boolean ForceOwntable)
at BoldSqlQueryGenerator.TBoldSqlQueryGenerator.CheckVersioning(TBoldSqlMember N, ClassPersistenceMapper ObjectMapper, TBoldSQLAliasReference alias)
at BoldSqlQueryGenerator.TBoldSqlQueryGenerator.HandleRelation(TBoldSqlMember N)
at BoldSqlQueryGenerator.TBoldSqlQueryGenerator.VisitTBoldSqlMember(TBoldSqlMember N)
at BoldSqlNodes.TBoldSqlMember.AcceptVisitor(TBoldSqlNodeVisitor V)
at Eco.Persistence.Impl.SystemPersistenceMapper.PMFetchClassWithCondition(IDatabaseCollection databases, ObjectIdList& resultList, AbstractCondition condition, Int32 maxResults, Int32 offset)
at Eco.Persistence.Impl.TBoldPersistenceControllerDefault.FetchIDListWithCondition(IDatabaseCollection databases, Abstra......
<truncated>


Invoice 0..1 <----> 0..* InvoiceItem

and both classes inherit from the same superclass. I am completely lost on this error and could someone give me some hints?
HansKarlsen
 Posted 2014-01-09 10:12:44
Supreme Being

Supreme Being - (102 786 reputation)Supreme Being - (102 786 reputation)Supreme Being - (102 786 reputation)Supreme Being - (102 786 reputation)Supreme Being - (102 786 reputation)Supreme Being - (102 786 reputation)Supreme Being - (102 786 reputation)Supreme Being - (102 786 reputation)Supreme Being - (102 786 reputation)

Group: Administrators
Last Active: 2016-05-11 20:56:01
Posts: 608, Visits: 3 230
It seems that the sql node building trips over something in your critera.

Can you post your condition?

One known problem with OCL2PS is that you cannot reuse loop variable names:

Class1.allinstances->select(a|a.attribute1='')->Class2s->select(a|a.attribute1="") will fail but Class1.allinstances->select(a|a.attribute1='')->Class2s->select(b|b.attribute1="") works
2014-01-09 10:13:18 by HansKarlsen
william
 Posted 2014-01-09 10:39:08
Supreme Being

Supreme Being - (15 033 reputation)Supreme Being - (15 033 reputation)Supreme Being - (15 033 reputation)Supreme Being - (15 033 reputation)Supreme Being - (15 033 reputation)Supreme Being - (15 033 reputation)Supreme Being - (15 033 reputation)Supreme Being - (15 033 reputation)Supreme Being - (15 033 reputation)

Group: Forum Members
Last Active: 2014-03-18 11:41:59
Posts: 92, Visits: 851
Since I always code against Linq and Eco, I don't think I have any OCL in the code. Of course except OCL written inside the model (e.g. default string representation, derived property, trigger, etc.). I wonder if there is any simple way to extract all OCL statements from the model for a review?

Similar Topics

Expand / Collapse

Reading This Topic

Expand / Collapse

Back To Top