From: <ge...@mo...> - 2007-02-23 12:10:11
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type"> <title></title> </head> <body bgcolor="#ffffff" text="#000000"> <br> I´m getting a quite similar error after updating to the latest version of ERExtensions (Needless to say, it used to work before <span class="moz-smiley-s1"><span> :-) </span></span>). <br> One Entity ConsultaXGrupoDeMedicoes in EOModel NUST of my app has a relationship to Entity GrupoDeMedicoes, which is part of the Framework "ObjetoSaude". It seems that when the connection dictionary of NUST is adjusted, the Entity cannot yet be resolved. I´m not using ERPrototypes, though, nor do I use inheritance.<br> <br> <br> 08:42:43 DEBUG [ERXModelGroup.java:74] - Loading bundles("Auditoria", "ObjetoSaude", "Permissao",...)<br> 08:42:43 DEBUG [ERXModelGroup.java:697] - Adjusting NUST<br> 08:42:43 DEBUG [ERXModelGroup.java:728] - New Connection Dictionary for NUST: {...}<br> 08:42:45 WARN [ERXNSLogLog4jBridge.java:42] - A fatal exception occurred: EORelationship(): cannot find entity named GrupoDeMedicoes for destination of relationship grupoDeMedicoes in entity ConsultaXGrupoDeMedicoes.<br> [2007-02-23 08:42:45 BRT] <main> java.lang.IllegalArgumentException: EORelationship(): cannot find entity named GrupoDeMedicoes for destination of relationship grupoDeMedicoes in entity ConsultaXGrupoDeMedicoes.<br> at com.webobjects.eoaccess.EORelationship.<init>(EORelationship.java:731)...<br> <br> <br> I have to admit I´m on Windows ... any clue what to do?<br> <br> Georg<br> <br> <blockquote cite="mid...@ma..." type="cite"> <pre wrap="">You could be on the right track there. Looking at it again, The error occurs when it's trying to access the attributes of entity A which has a relationship to entity B which is in another model. As it turns out, entity A is also a subclass of an entity which is in a model which hasn't been loaded yet. Alan On 22-Feb-07, at 6:27 PM, Chuck Hill wrote: </pre> <blockquote type="cite"> <pre wrap="">I have an old bit of code in a framework that says: /** * Registers all of the EOModels that we have switched connection dictionaries for with their * EODatabase provided that the model's name is not in modelNamesToIgnore(). This was done to * work around a bug in this situation: two EOModels, an EOEntity in one is a sub-class of an * EOEntity in the other, and an instance of the sub-class is created before any entities in the * model containing the superclass are created. This results in this exception:<br> * <br> * java.lang.NullPointerException<br> * at com .webobjects .jdbcadaptor.FrontbasePlugIn._newPrimaryKey(FrontbasePlugIn.java: 215)<br> * at com .webobjects .jdbcadaptor.FrontbasePlugIn.newPrimaryKeys(FrontbasePlugIn.java: 205)<br> * at com .webobjects .jdbcadaptor .JDBCChannel.primaryKeysForNewRowsWithEntity(JDBCChannel.java:544)<br> * at com .webobjects .eoaccess .EODatabaseContext ._batchNewPrimaryKeysWithEntity(EODatabaseContext.java:5697)<br> * at com .webobjects .eoaccess .EODatabaseContext .prepareForSaveWithCoordinator(EODatabaseContext.java:5676)<br> * at com .webobjects .eocontrol .EOObjectStoreCoordinator .saveChangesInEditingContext(EOObjectStoreCoordinator.java:389)<br> * at com .webobjects .eocontrol.EOEditingContext.saveChanges(EOEditingContext.java: 2486)<br> * <br> * It appears that when the sub-class referred to its parent that it was not found in the database. This code just registeres each EOModel with it's database. */ Does that sound at all plausible to be what is afflicting you? Chuck On Feb 22, 2007, at 3:15 PM, Alan Zebchuk wrote: </pre> <blockquote type="cite"> <pre wrap="">Yes. The entity in the other model has a parent entity. Alan On 22-Feb-07, at 6:07 PM, Chuck Hill wrote: </pre> <blockquote type="cite"> <pre wrap="">Are you using inheritance in any of the relavent entities? On Feb 22, 2007, at 3:02 PM, Alan Zebchuk wrote: </pre> <blockquote type="cite"> <pre wrap="">Actually it's not a flattened relationship. At first thought, I thought it was because it was looking for an Entity in a Model which hasn't been loaded yet (which is the case). However, it has already loaded another model which has relationships to the same entity which it now can't find. Alan On 22-Feb-07, at 5:26 PM, <a class="moz-txt-link-abbreviated" href="mailto:won...@li...">won...@li...</a> wrote: </pre> <blockquote type="cite"> <pre wrap="">I'm guessing that is a flattened relationship ... I THINK I should skip flattened relationships when flattening prototypes? Anyone have a reason to believe this is not true? </pre> </blockquote> <pre wrap=""> ---------------------------------------------------------------------- --- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash <a class="moz-txt-link-freetext" href="http://www.techsay.com/default.php">http://www.techsay.com/default.php</a>? page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Wonder-disc mailing list <a class="moz-txt-link-abbreviated" href="mailto:Won...@li...">Won...@li...</a> <a class="moz-txt-link-freetext" href="https://lists.sourceforge.net/lists/listinfo/wonder-disc">https://lists.sourceforge.net/lists/listinfo/wonder-disc</a> </pre> </blockquote> <pre wrap="">-- Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. <a class="moz-txt-link-freetext" href="http://www.global-village.net/products/practical_webobjects">http://www.global-village.net/products/practical_webobjects</a> ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash <a class="moz-txt-link-freetext" href="http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV">http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV</a> _______________________________________________ Wonder-disc mailing list <a class="moz-txt-link-abbreviated" href="mailto:Won...@li...">Won...@li...</a> <a class="moz-txt-link-freetext" href="https://lists.sourceforge.net/lists/listinfo/wonder-disc">https://lists.sourceforge.net/lists/listinfo/wonder-disc</a> </pre> </blockquote> <pre wrap=""> </pre> </blockquote> <pre wrap="">-- Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. <a class="moz-txt-link-freetext" href="http://www.global-village.net/products/practical_webobjects">http://www.global-village.net/products/practical_webobjects</a> </pre> </blockquote> <pre wrap=""><!----> ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash <a class="moz-txt-link-freetext" href="http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV">http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV</a> _______________________________________________ Wonder-disc mailing list <a class="moz-txt-link-abbreviated" href="mailto:Won...@li...">Won...@li...</a> <a class="moz-txt-link-freetext" href="https://lists.sourceforge.net/lists/listinfo/wonder-disc">https://lists.sourceforge.net/lists/listinfo/wonder-disc</a> </pre> </blockquote> <br> <br> <pre class="moz-signature" cols="72">-- \o/ Georg von Bülow, Moleque de Idéias Educação e Tecnologia Ltda | Phone: 55-21-2710-0178 E-mail: <a class="moz-txt-link-abbreviated" href="mailto:ge...@mo...">ge...@mo...</a> / \ <a class="moz-txt-link-freetext" href="http://www.moleque.com.br">http://www.moleque.com.br</a> Niterói - Rio de Janeiro - Brasil</pre> </body> </html> |